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.
4969 4970 4971 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4969 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
4961 4962 4963 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4961 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
4967 4968 4969 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4967 def price_threshold @price_threshold end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4974 4975 4976 4977 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4974 def update!(**args) @country = args[:country] if args.key?(:country) @price_threshold = args[:price_threshold] if args.key?(:price_threshold) end |