class Google::Apis::GanV1beta1::Link::SpecialOffers
Special offers on the link.
Attributes
Whether there is a free gift Corresponds to the JSON property `freeGift` @return [Boolean]
Whether there is a free gift Corresponds to the JSON property `freeGift` @return [Boolean]
Whether there is free shipping Corresponds to the JSON property `freeShipping` @return [Boolean]
Whether there is free shipping Corresponds to the JSON property `freeShipping` @return [Boolean]
An ApiMoneyProto. Corresponds to the JSON property `freeShippingMin` @return [Google::Apis::GanV1beta1::Money]
Percent off on the purchase Corresponds to the JSON property `percentOff` @return [Float]
An ApiMoneyProto. Corresponds to the JSON property `percentOffMin` @return [Google::Apis::GanV1beta1::Money]
An ApiMoneyProto. Corresponds to the JSON property `priceCut` @return [Google::Apis::GanV1beta1::Money]
An ApiMoneyProto. Corresponds to the JSON property `priceCutMin` @return [Google::Apis::GanV1beta1::Money]
List of promotion code associated with the link Corresponds to the JSON property `promotionCodes` @return [Array<String>]
Public Class Methods
# File generated/google/apis/gan_v1beta1/classes.rb, line 1176 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/gan_v1beta1/classes.rb, line 1181 def update!(**args) @free_gift = args[:free_gift] if args.key?(:free_gift) @free_shipping = args[:free_shipping] if args.key?(:free_shipping) @free_shipping_min = args[:free_shipping_min] if args.key?(:free_shipping_min) @percent_off = args[:percent_off] if args.key?(:percent_off) @percent_off_min = args[:percent_off_min] if args.key?(:percent_off_min) @price_cut = args[:price_cut] if args.key?(:price_cut) @price_cut_min = args[:price_cut_min] if args.key?(:price_cut_min) @promotion_codes = args[:promotion_codes] if args.key?(:promotion_codes) end