Class: Google::Apis::PaymentsresellersubscriptionV1::SubscriptionPromotionSpec

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

Describes the spec for one promotion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SubscriptionPromotionSpec

Returns a new instance of SubscriptionPromotionSpec.



1533
1534
1535
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1533

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

Instance Attribute Details

#free_trial_durationGoogle::Apis::PaymentsresellersubscriptionV1::Duration

Describes the length of a period of a time. Corresponds to the JSON property freeTrialDuration



1515
1516
1517
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1515

def free_trial_duration
  @free_trial_duration
end

#introductory_pricing_detailsGoogle::Apis::PaymentsresellersubscriptionV1::PromotionIntroductoryPricingDetails

The details of a introductory pricing promotion. Corresponds to the JSON property introductoryPricingDetails



1520
1521
1522
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1520

def introductory_pricing_details
  @introductory_pricing_details
end

#promotionString

Required. Promotion resource name that identifies a promotion. The format is ' partners/partner_id/promotions/promotion_id'. Corresponds to the JSON property promotion

Returns:

  • (String)


1526
1527
1528
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1526

def promotion
  @promotion
end

#typeString

Output only. The type of the promotion for the spec. Corresponds to the JSON property type

Returns:

  • (String)


1531
1532
1533
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1531

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1538
1539
1540
1541
1542
1543
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1538

def update!(**args)
  @free_trial_duration = args[:free_trial_duration] if args.key?(:free_trial_duration)
  @introductory_pricing_details = args[:introductory_pricing_details] if args.key?(:introductory_pricing_details)
  @promotion = args[:promotion] if args.key?(:promotion)
  @type = args[:type] if args.key?(:type)
end