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:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/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.
11139 11140 11141 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11139 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
11132 11133 11134 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11132 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
11137 11138 11139 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11137 def price_delta @price_delta end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11144 11145 11146 11147 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11144 def update!(**args) @percentage_delta = args[:percentage_delta] if args.key?(:percentage_delta) @price_delta = args[:price_delta] if args.key?(:price_delta) end |