Class: Google::Apis::AndroidpublisherV3::RegionalPriceMigrationConfig

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

Configuration for a price migration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RegionalPriceMigrationConfig

Returns a new instance of RegionalPriceMigrationConfig.



2644
2645
2646
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2644

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

Instance Attribute Details

#oldest_allowed_price_version_timeString

Required. The cutoff time for historical prices that subscribers can remain paying. Subscribers who are on a price that was created before this cutoff time will be migrated to the currently-offered price. These subscribers will receive a notification that they will be paying a different price. Subscribers who do not agree to the new price will have their subscription ended at the next renewal. Corresponds to the JSON property oldestAllowedPriceVersionTime

Returns:

  • (String)


2636
2637
2638
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2636

def oldest_allowed_price_version_time
  @oldest_allowed_price_version_time
end

#region_codeString

Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. "US". Corresponds to the JSON property regionCode

Returns:

  • (String)


2642
2643
2644
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2642

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2649
2650
2651
2652
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2649

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