Class: Google::Apis::MerchantapiProductsV1beta::FreeShippingThreshold

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#countryString

The CLDR territory code of the country to which an item will ship. Corresponds to the JSON property country

Returns:

  • (String)


848
849
850
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 848

def country
  @country
end

#price_thresholdGoogle::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