Class: Google::Apis::MerchantapiProductsV1beta::FreeShippingThreshold
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiProductsV1beta::FreeShippingThreshold
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_products_v1beta/classes.rb,
lib/google/apis/merchantapi_products_v1beta/representations.rb,
lib/google/apis/merchantapi_products_v1beta/representations.rb
Overview
Conditions to be met for a product to have free shipping.
Instance Attribute Summary collapse
-
#country ⇒ String
The CLDR territory code of the country to which an item will ship.
-
#price_threshold ⇒ Google::Apis::MerchantapiProductsV1beta::Price
The price represented as a number and currency.
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.
855 856 857 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 855 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country ⇒ String
The CLDR territory code of the country to which an item will ship.
Corresponds to the JSON property country
848 849 850 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 848 def country @country end |
#price_threshold ⇒ Google::Apis::MerchantapiProductsV1beta::Price
The price represented as a number and currency.
Corresponds to the JSON property priceThreshold
853 854 855 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 853 def price_threshold @price_threshold end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
860 861 862 863 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 860 def update!(**args) @country = args[:country] if args.key?(:country) @price_threshold = args[:price_threshold] if args.key?(:price_threshold) end |