class Google::Apis::GanV1beta1::CcOffer::Reward

Attributes

additional_details[RW]

Other limits, for example, if this rule only applies during an introductory period. Corresponds to the JSON property `additionalDetails` @return [String]

amount[RW]

The number of units rewarded per purchase dollar. Corresponds to the JSON property `amount` @return [Float]

category[RW]

The kind of purchases covered by this rule. Corresponds to the JSON property `category` @return [String]

expiration_months[RW]

How long rewards granted by this rule last. Corresponds to the JSON property `expirationMonths` @return [Float]

max_reward_tier[RW]

The maximum purchase amount in the given category for this rule to apply. Corresponds to the JSON property `maxRewardTier` @return [Float]

min_reward_tier[RW]

The minimum purchase amount in the given category before this rule applies. Corresponds to the JSON property `minRewardTier` @return [Float]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/gan_v1beta1/classes.rb, line 732
def update!(**args)
  @additional_details = args[:additional_details] if args.key?(:additional_details)
  @amount = args[:amount] if args.key?(:amount)
  @category = args[:category] if args.key?(:category)
  @expiration_months = args[:expiration_months] if args.key?(:expiration_months)
  @max_reward_tier = args[:max_reward_tier] if args.key?(:max_reward_tier)
  @min_reward_tier = args[:min_reward_tier] if args.key?(:min_reward_tier)
end