Class: Google::Apis::MerchantapiProductsV1beta::AutomatedDiscounts
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiProductsV1beta::AutomatedDiscounts
- 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
Information regarding Automated Discounts.
Instance Attribute Summary collapse
-
#gad_price ⇒ Google::Apis::MerchantapiProductsV1beta::Price
The price represented as a number and currency.
-
#prior_price ⇒ Google::Apis::MerchantapiProductsV1beta::Price
The price represented as a number and currency.
-
#prior_price_progressive ⇒ Google::Apis::MerchantapiProductsV1beta::Price
The price represented as a number and currency.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutomatedDiscounts
constructor
A new instance of AutomatedDiscounts.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AutomatedDiscounts
Returns a new instance of AutomatedDiscounts.
713 714 715 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 713 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gad_price ⇒ Google::Apis::MerchantapiProductsV1beta::Price
The price represented as a number and currency.
Corresponds to the JSON property gadPrice
701 702 703 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 701 def gad_price @gad_price end |
#prior_price ⇒ Google::Apis::MerchantapiProductsV1beta::Price
The price represented as a number and currency.
Corresponds to the JSON property priorPrice
706 707 708 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 706 def prior_price @prior_price end |
#prior_price_progressive ⇒ Google::Apis::MerchantapiProductsV1beta::Price
The price represented as a number and currency.
Corresponds to the JSON property priorPriceProgressive
711 712 713 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 711 def prior_price_progressive @prior_price_progressive end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
718 719 720 721 722 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 718 def update!(**args) @gad_price = args[:gad_price] if args.key?(:gad_price) @prior_price = args[:prior_price] if args.key?(:prior_price) @prior_price_progressive = args[:prior_price_progressive] if args.key?(:prior_price_progressive) end |