class Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Promotion

A Promotion resource that defines a promotion for a subscription that can be resold.

Attributes

applicable_products[RW]

Output only. The product ids this promotion can be applied to. Corresponds to the JSON property `applicableProducts` @return [Array<String>]

end_time[RW]

Optional. Specifies the end time (exclusive) of the period that the promotion is available in. If unset, the promotion is available indefinitely. Corresponds to the JSON property `endTime` @return [String]

free_trial_duration[RW]

Describes the length of a period of a time. Corresponds to the JSON property `freeTrialDuration` @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration]

name[RW]

Output only. Response only. Resource name of the subscription promotion. It will have the format of “partners/`partner_id`/promotion/`promotion_id`” Corresponds to the JSON property `name` @return [String]

region_codes[RW]

Output only. 2-letter ISO region code where the promotion is available in. Ex. “US” Please refers to: en.wikipedia.org/wiki/ISO_3166-1 Corresponds to the JSON property `regionCodes` @return [Array<String>]

start_time[RW]

Optional. Specifies the start time (inclusive) of the period that the promotion is available in. Corresponds to the JSON property `startTime` @return [String]

titles[RW]

Output only. Localized human readable name of the promotion. Corresponds to the JSON property `titles` @return [Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleTypeLocalizedText>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/paymentsresellersubscription_v1/classes.rb, line 375
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/paymentsresellersubscription_v1/classes.rb, line 380
def update!(**args)
  @applicable_products = args[:applicable_products] if args.key?(:applicable_products)
  @end_time = args[:end_time] if args.key?(:end_time)
  @free_trial_duration = args[:free_trial_duration] if args.key?(:free_trial_duration)
  @name = args[:name] if args.key?(:name)
  @region_codes = args[:region_codes] if args.key?(:region_codes)
  @start_time = args[:start_time] if args.key?(:start_time)
  @titles = args[:titles] if args.key?(:titles)
end