class Google::Apis::GanV1beta1::Link::SpecialOffers

Special offers on the link.

Attributes

free_gift[RW]

Whether there is a free gift Corresponds to the JSON property `freeGift` @return [Boolean]

free_gift?[RW]

Whether there is a free gift Corresponds to the JSON property `freeGift` @return [Boolean]

free_shipping[RW]

Whether there is free shipping Corresponds to the JSON property `freeShipping` @return [Boolean]

free_shipping?[RW]

Whether there is free shipping Corresponds to the JSON property `freeShipping` @return [Boolean]

free_shipping_min[RW]

An ApiMoneyProto. Corresponds to the JSON property `freeShippingMin` @return [Google::Apis::GanV1beta1::Money]

percent_off[RW]

Percent off on the purchase Corresponds to the JSON property `percentOff` @return [Float]

percent_off_min[RW]

An ApiMoneyProto. Corresponds to the JSON property `percentOffMin` @return [Google::Apis::GanV1beta1::Money]

price_cut[RW]

An ApiMoneyProto. Corresponds to the JSON property `priceCut` @return [Google::Apis::GanV1beta1::Money]

price_cut_min[RW]

An ApiMoneyProto. Corresponds to the JSON property `priceCutMin` @return [Google::Apis::GanV1beta1::Money]

promotion_codes[RW]

List of promotion code associated with the link Corresponds to the JSON property `promotionCodes` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/gan_v1beta1/classes.rb, line 1176
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 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