Class: Google::Apis::AndroidpublisherV3::PrepaidBasePlanType
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::PrepaidBasePlanType
- 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 does not automatically renew at the end of the base plan, and must be manually renewed by the user.
Instance Attribute Summary collapse
-
#billing_period_duration ⇒ String
Required.
-
#time_extension ⇒ String
Whether users should be able to extend this prepaid base plan in Google Play surfaces.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PrepaidBasePlanType
constructor
A new instance of PrepaidBasePlanType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PrepaidBasePlanType
Returns a new instance of PrepaidBasePlanType.
4248 4249 4250 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4248 def initialize(**args) update!(**args) end |
Instance Attribute Details
#billing_period_duration ⇒ String
Required. Immutable. Subscription period, specified in ISO 8601 format. For a
list of acceptable billing periods, refer to the help center. The duration is
immutable after the base plan is created.
Corresponds to the JSON property billingPeriodDuration
4240 4241 4242 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4240 def billing_period_duration @billing_period_duration end |
#time_extension ⇒ String
Whether users should be able to extend this prepaid base plan in Google Play
surfaces. Defaults to TIME_EXTENSION_ACTIVE if not specified.
Corresponds to the JSON property timeExtension
4246 4247 4248 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4246 def time_extension @time_extension end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4253 4254 4255 4256 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4253 def update!(**args) @billing_period_duration = args[:billing_period_duration] if args.key?(:billing_period_duration) @time_extension = args[:time_extension] if args.key?(:time_extension) end |