Class: Google::Apis::AndroidpublisherV3::AutoRenewingBasePlanType
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::AutoRenewingBasePlanType
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androidpublisher_v3/classes.rb,
lib/google/apis/androidpublisher_v3/representations.rb,
lib/google/apis/androidpublisher_v3/representations.rb
Overview
Represents a base plan that automatically renews at the end of its subscription period.
Instance Attribute Summary collapse
-
#billing_period_duration ⇒ String
Required.
-
#grace_period_duration ⇒ String
Grace period of the subscription, specified in ISO 8601 format.
-
#legacy_compatible ⇒ Boolean
(also: #legacy_compatible?)
Whether the renewing base plan is compatible with legacy version of the Play Billing Library (prior to version 3) or not.
-
#proration_mode ⇒ String
The proration mode for the base plan determines what happens when a user switches to this plan from another base plan.
-
#resubscribe_state ⇒ String
Whether users should be able to resubscribe to this base plan in Google Play surfaces.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoRenewingBasePlanType
constructor
A new instance of AutoRenewingBasePlanType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AutoRenewingBasePlanType
Returns a new instance of AutoRenewingBasePlanType.
308 309 310 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 308 def initialize(**args) update!(**args) end |
Instance Attribute Details
#billing_period_duration ⇒ String
Required. Subscription period, specified in ISO 8601 format. For a list of
acceptable billing periods, refer to the help center.
Corresponds to the JSON property billingPeriodDuration
277 278 279 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 277 def billing_period_duration @billing_period_duration end |
#grace_period_duration ⇒ String
Grace period of the subscription, specified in ISO 8601 format. Acceptable
values are P0D (zero days), P3D (3 days), P7D (7 days), P14D (14 days), and
P30D (30 days). If not specified, a default value will be used based on the
recurring period duration.
Corresponds to the JSON property gracePeriodDuration
285 286 287 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 285 def grace_period_duration @grace_period_duration end |
#legacy_compatible ⇒ Boolean Also known as: legacy_compatible?
Whether the renewing base plan is compatible with legacy version of the Play
Billing Library (prior to version 3) or not. Only one renewing base plan can
be marked as legacy compatible for a given subscription.
Corresponds to the JSON property legacyCompatible
292 293 294 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 292 def legacy_compatible @legacy_compatible end |
#proration_mode ⇒ String
The proration mode for the base plan determines what happens when a user
switches to this plan from another base plan. If unspecified, defaults to
CHARGE_ON_NEXT_BILLING_DATE.
Corresponds to the JSON property prorationMode
300 301 302 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 300 def proration_mode @proration_mode end |
#resubscribe_state ⇒ String
Whether users should be able to resubscribe to this base plan in Google Play
surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified.
Corresponds to the JSON property resubscribeState
306 307 308 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 306 def resubscribe_state @resubscribe_state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
313 314 315 316 317 318 319 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 313 def update!(**args) @billing_period_duration = args[:billing_period_duration] if args.key?(:billing_period_duration) @grace_period_duration = args[:grace_period_duration] if args.key?(:grace_period_duration) @legacy_compatible = args[:legacy_compatible] if args.key?(:legacy_compatible) @proration_mode = args[:proration_mode] if args.key?(:proration_mode) @resubscribe_state = args[:resubscribe_state] if args.key?(:resubscribe_state) end |