Class: Google::Apis::ContentV2_1::RepricingRuleRestriction
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RepricingRuleRestriction
- 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
Definition of a rule restriction. At least one of the following needs to be
true: (1) use_auto_pricing_min_price is true (2) floor.price_delta exists (3)
floor.percentage_delta exists If floor.price_delta and floor.percentage_delta
are both set on a rule, the highest value will be chosen by the Repricer. In
other words, for a product with a price of $50, if the floor.percentage_delta
is "-10" and the floor.price_delta is "-12", the offer price will only be
lowered $5 (10% lower than the original offer price).
Instance Attribute Summary collapse
-
#floor ⇒ Google::Apis::ContentV2_1::RepricingRuleRestrictionBoundary
Definition of a boundary.
-
#use_auto_pricing_min_price ⇒ Boolean
(also: #use_auto_pricing_min_price?)
If true, use the AUTO_PRICING_MIN_PRICE offer attribute as the lower bound of the rule.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RepricingRuleRestriction
constructor
A new instance of RepricingRuleRestriction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RepricingRuleRestriction
Returns a new instance of RepricingRuleRestriction.
11396 11397 11398 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11396 def initialize(**args) update!(**args) end |
Instance Attribute Details
#floor ⇒ Google::Apis::ContentV2_1::RepricingRuleRestrictionBoundary
Definition of a boundary.
Corresponds to the JSON property floor
11384 11385 11386 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11384 def floor @floor end |
#use_auto_pricing_min_price ⇒ Boolean Also known as: use_auto_pricing_min_price?
If true, use the AUTO_PRICING_MIN_PRICE offer attribute as the lower bound of
the rule. If use_auto_pricing_min_price is true, then only offers with
AUTO_PRICING_MIN_PRICE
existing on the offer will get Repricer treatment,
even if a floor value is set on the rule. Also, if use_auto_pricing_min_price
is true, the floor restriction will be ignored.
Corresponds to the JSON property useAutoPricingMinPrice
11393 11394 11395 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11393 def use_auto_pricing_min_price @use_auto_pricing_min_price end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11401 11402 11403 11404 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11401 def update!(**args) @floor = args[:floor] if args.key?(:floor) @use_auto_pricing_min_price = args[:use_auto_pricing_min_price] if args.key?(:use_auto_pricing_min_price) end |