Class: Google::Apis::AndroidpublisherV3::SubscriptionPriceChange
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::SubscriptionPriceChange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidpublisher_v3/classes.rb,
generated/google/apis/androidpublisher_v3/representations.rb,
generated/google/apis/androidpublisher_v3/representations.rb
Overview
Contains the price change information for a subscription that can be used to control the user journey for the price change in the app. This can be in the form of seeking confirmation from the user or tailoring the experience for a successful conversion.
Instance Attribute Summary collapse
-
#new_price ⇒ Google::Apis::AndroidpublisherV3::Price
The new price the subscription will renew with if the price change is accepted by the user.
-
#state ⇒ Fixnum
The current state of the price change.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SubscriptionPriceChange
constructor
A new instance of SubscriptionPriceChange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SubscriptionPriceChange
Returns a new instance of SubscriptionPriceChange
1520 1521 1522 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1520 def initialize(**args) update!(**args) end |
Instance Attribute Details
#new_price ⇒ Google::Apis::AndroidpublisherV3::Price
The new price the subscription will renew with if the price change is accepted
by the user.
Corresponds to the JSON property newPrice
1506 1507 1508 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1506 def new_price @new_price end |
#state ⇒ Fixnum
The current state of the price change. Possible values are:
- Outstanding: State for a pending price change waiting for the user to agree. In this state, you can optionally seek confirmation from the user using the In- App API.
- Accepted: State for an accepted price change that the subscription will
renew with unless it's canceled. The price change takes effect on a future
date when the subscription renews. Note that the change might not occur when
the subscription is renewed next.
Corresponds to the JSON property
state
1518 1519 1520 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1518 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1525 1526 1527 1528 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1525 def update!(**args) @new_price = args[:new_price] if args.key?(:new_price) @state = args[:state] if args.key?(:state) end |