class Google::Apis::ContentV2_1::RepricingRuleStatsBasedRule

Definition of stats based rule.

Attributes

percentage_delta[RW]

The percent change against the price target. Valid from 0 to 100 inclusively. Corresponds to the JSON property `percentageDelta` @return [Fixnum]

price_delta[RW]

The price delta against the above price target. A positive value means the price should be adjusted to be above statistical measure, and a negative value means below. Currency code must not be included. 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 12762
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 12767
def update!(**args)
  @percentage_delta = args[:percentage_delta] if args.key?(:percentage_delta)
  @price_delta = args[:price_delta] if args.key?(:price_delta)
end