class Google::Apis::GanV1beta1::CcOffer::Reward
Attributes
Other limits, for example, if this rule only applies during an introductory period. Corresponds to the JSON property `additionalDetails` @return [String]
The number of units rewarded per purchase dollar. Corresponds to the JSON property `amount` @return [Float]
The kind of purchases covered by this rule. Corresponds to the JSON property `category` @return [String]
How long rewards granted by this rule last. Corresponds to the JSON property `expirationMonths` @return [Float]
The maximum purchase amount in the given category for this rule to apply. Corresponds to the JSON property `maxRewardTier` @return [Float]
The minimum purchase amount in the given category before this rule applies. Corresponds to the JSON property `minRewardTier` @return [Float]
Public Class Methods
# File generated/google/apis/gan_v1beta1/classes.rb, line 727 def initialize(**args) update!(**args) end
Public Instance Methods
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