Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec
- 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
-
#discount_amount ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount
Describes the amount unit including the currency code.
-
#discount_ratio_micros ⇒ Fixnum
Output only.
-
#recurrence_count ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec
constructor
A new instance of GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec
Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec.
582 583 584 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 582 def initialize(**args) update!(**args) end |
Instance Attribute Details
#discount_amount ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount
Describes the amount unit including the currency code.
Corresponds to the JSON property discountAmount
568 569 570 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 568 def discount_amount @discount_amount end |
#discount_ratio_micros ⇒ Fixnum
Output only. The discount percentage in micros. For example, 50,000 represents
5%.
Corresponds to the JSON property discountRatioMicros
574 575 576 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 574 def discount_ratio_micros @discount_ratio_micros end |
#recurrence_count ⇒ Fixnum
Output only. Output Only. The duration of an introductory offer in billing
cycles.
Corresponds to the JSON property recurrenceCount
580 581 582 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 580 def recurrence_count @recurrence_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
587 588 589 590 591 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 587 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) end |