Class: Google::Apis::GanV1beta1::Link::SpecialOffers
- Inherits:
-
Object
- Object
- Google::Apis::GanV1beta1::Link::SpecialOffers
- 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
-
#free_gift ⇒ Boolean
(also: #free_gift?)
Whether there is a free gift Corresponds to the JSON property
freeGift
. -
#free_shipping ⇒ Boolean
(also: #free_shipping?)
Whether there is free shipping Corresponds to the JSON property
freeShipping
. -
#free_shipping_min ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
-
#percent_off ⇒ Float
Percent off on the purchase Corresponds to the JSON property
percentOff
. -
#percent_off_min ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
-
#price_cut ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
-
#price_cut_min ⇒ Google::Apis::GanV1beta1::Money
An ApiMoneyProto.
-
#promotion_codes ⇒ Array<String>
List of promotion code associated with the link Corresponds to the JSON property
promotionCodes
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpecialOffers
constructor
A new instance of SpecialOffers.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_gift ⇒ Boolean Also known as: free_gift?
Whether there is a free gift
Corresponds to the JSON property freeGift
1137 1138 1139 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1137 def free_gift @free_gift end |
#free_shipping ⇒ Boolean Also known as: free_shipping?
Whether there is free shipping
Corresponds to the JSON property freeShipping
1143 1144 1145 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1143 def free_shipping @free_shipping end |
#free_shipping_min ⇒ Google::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_off ⇒ Float
Percent off on the purchase
Corresponds to the JSON property percentOff
1154 1155 1156 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1154 def percent_off @percent_off end |
#percent_off_min ⇒ Google::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_cut ⇒ Google::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_min ⇒ Google::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_codes ⇒ Array<String>
List of promotion code associated with the link
Corresponds to the JSON property promotionCodes
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 |