Class: Google::Apis::ContentV2_1::RepricingRuleCostOfGoodsSaleRule
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RepricingRuleCostOfGoodsSaleRule
- 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
A repricing rule that changes the sale price based on cost of goods sale.
Instance Attribute Summary collapse
-
#percentage_delta ⇒ Fixnum
The percent change against the COGS.
-
#price_delta ⇒ String
The price delta against the COGS.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RepricingRuleCostOfGoodsSaleRule
constructor
A new instance of RepricingRuleCostOfGoodsSaleRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RepricingRuleCostOfGoodsSaleRule
Returns a new instance of RepricingRuleCostOfGoodsSaleRule.
11712 11713 11714 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11712 def initialize(**args) update!(**args) end |
Instance Attribute Details
#percentage_delta ⇒ Fixnum
The percent change against the COGS. Ex: 20 would mean to set the adjusted
price 1.2X of the COGS data.
Corresponds to the JSON property percentageDelta
11705 11706 11707 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11705 def percentage_delta @percentage_delta end |
#price_delta ⇒ String
The price delta against the COGS. E.g. 2 means $2 more of the COGS.
Corresponds to the JSON property priceDelta
11710 11711 11712 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11710 def price_delta @price_delta end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11717 11718 11719 11720 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11717 def update!(**args) @percentage_delta = args[:percentage_delta] if args.key?(:percentage_delta) @price_delta = args[:price_delta] if args.key?(:price_delta) end |