class Google::Apis::ContentV2_1::RepricingRuleCostOfGoodsSaleRule
A repricing rule that changes the sale price based on cost of goods sale.
Attributes
percentage_delta[RW]
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` @return [Fixnum]
price_delta[RW]
The price delta against the COGS. E.g. 2 means $2 more of the COGS. Corresponds to the JSON property `priceDelta` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 12447 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 12452 def update!(**args) @percentage_delta = args[:percentage_delta] if args.key?(:percentage_delta) @price_delta = args[:price_delta] if args.key?(:price_delta) end