Class: Google::Apis::GanV1beta1::Link::SpecialOffers

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/gan_v1beta1/classes.rb,
generated/google/apis/gan_v1beta1/representations.rb,
generated/google/apis/gan_v1beta1/representations.rb

Overview

Special offers on the link.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SpecialOffers

Returns a new instance of SpecialOffers



1176
1177
1178
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1176

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#free_giftBoolean Also known as: free_gift?

Whether there is a free gift Corresponds to the JSON property freeGift

Returns:

  • (Boolean)


1137
1138
1139
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1137

def free_gift
  @free_gift
end

#free_shippingBoolean Also known as: free_shipping?

Whether there is free shipping Corresponds to the JSON property freeShipping

Returns:

  • (Boolean)


1143
1144
1145
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1143

def free_shipping
  @free_shipping
end

#free_shipping_minGoogle::Apis::GanV1beta1::Money

An ApiMoneyProto. Corresponds to the JSON property freeShippingMin



1149
1150
1151
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1149

def free_shipping_min
  @free_shipping_min
end

#percent_offFloat

Percent off on the purchase Corresponds to the JSON property percentOff

Returns:

  • (Float)


1154
1155
1156
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1154

def percent_off
  @percent_off
end

#percent_off_minGoogle::Apis::GanV1beta1::Money

An ApiMoneyProto. Corresponds to the JSON property percentOffMin



1159
1160
1161
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1159

def percent_off_min
  @percent_off_min
end

#price_cutGoogle::Apis::GanV1beta1::Money

An ApiMoneyProto. Corresponds to the JSON property priceCut



1164
1165
1166
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1164

def price_cut
  @price_cut
end

#price_cut_minGoogle::Apis::GanV1beta1::Money

An ApiMoneyProto. Corresponds to the JSON property priceCutMin



1169
1170
1171
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1169

def price_cut_min
  @price_cut_min
end

#promotion_codesArray<String>

List of promotion code associated with the link Corresponds to the JSON property promotionCodes

Returns:

  • (Array<String>)


1174
1175
1176
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1174

def promotion_codes
  @promotion_codes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
# 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