Class: Google::Apis::PaymentsresellersubscriptionV1::ProductPriceConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/paymentsresellersubscription_v1/classes.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb

Overview

Configs the prices in an available region.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductPriceConfig

Returns a new instance of ProductPriceConfig.



915
916
917
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 915

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

Instance Attribute Details

#amountGoogle::Apis::PaymentsresellersubscriptionV1::Amount

Describes the amount unit including the currency code. Corresponds to the JSON property amount



907
908
909
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 907

def amount
  @amount
end

#region_codeString

Output only. 2-letter ISO region code where the product is available in. Ex. " US". Corresponds to the JSON property regionCode

Returns:

  • (String)


913
914
915
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 913

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



920
921
922
923
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 920

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