Class: Google::Apis::ContentV2_1::FreeShippingThreshold
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::FreeShippingThreshold
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Conditions to be met for a product to have free shipping.
Instance Attribute Summary collapse
-
#country ⇒ String
Required.
-
#price_threshold ⇒ Google::Apis::ContentV2_1::Price
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FreeShippingThreshold
constructor
A new instance of FreeShippingThreshold.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FreeShippingThreshold
Returns a new instance of FreeShippingThreshold.
4921 4922 4923 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4921 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country ⇒ String
Required. The CLDR territory code of the country to which an item will ship.
Corresponds to the JSON property country
4913 4914 4915 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4913 def country @country end |
#price_threshold ⇒ Google::Apis::ContentV2_1::Price
Required. The minimum product price for the shipping cost to become free.
Represented as a number.
Corresponds to the JSON property priceThreshold
4919 4920 4921 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4919 def price_threshold @price_threshold end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4926 4927 4928 4929 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4926 def update!(**args) @country = args[:country] if args.key?(:country) @price_threshold = args[:price_threshold] if args.key?(:price_threshold) end |