Class: Google::Apis::AndroidpublisherV3::AutoRenewingPlan

Inherits:
Object
  • Object
show all
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

Information related to an auto renewing plan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutoRenewingPlan

Returns a new instance of AutoRenewingPlan.



349
350
351
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 349

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#auto_renew_enabledBoolean Also known as: auto_renew_enabled?

If the subscription is currently set to auto-renew, e.g. the user has not canceled the subscription Corresponds to the JSON property autoRenewEnabled

Returns:

  • (Boolean)


341
342
343
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 341

def auto_renew_enabled
  @auto_renew_enabled
end

#price_change_detailsGoogle::Apis::AndroidpublisherV3::SubscriptionItemPriceChangeDetails

Price change related information of a subscription item. Corresponds to the JSON property priceChangeDetails



347
348
349
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 347

def price_change_details
  @price_change_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



354
355
356
357
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 354

def update!(**args)
  @auto_renew_enabled = args[:auto_renew_enabled] if args.key?(:auto_renew_enabled)
  @price_change_details = args[:price_change_details] if args.key?(:price_change_details)
end