Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec

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

The duration of an introductory pricing promotion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec.



762
763
764
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 762

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

Instance Attribute Details

#discount_amountGoogle::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount

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



742
743
744
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 742

def discount_amount
  @discount_amount
end

#discount_ratio_microsFixnum

Output only. The discount percentage in micros. For example, 50,000 represents 5%. Corresponds to the JSON property discountRatioMicros

Returns:

  • (Fixnum)


748
749
750
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 748

def discount_ratio_micros
  @discount_ratio_micros
end

#recurrence_countFixnum

Output only. Output Only. The duration of an introductory offer in billing cycles. Corresponds to the JSON property recurrenceCount

Returns:

  • (Fixnum)


754
755
756
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 754

def recurrence_count
  @recurrence_count
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)


760
761
762
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 760

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



767
768
769
770
771
772
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 767

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