Class: Google::Apis::ContentV2_1::RepricingRuleRestrictionBoundary
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RepricingRuleRestrictionBoundary
- 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 boundary.
Instance Attribute Summary collapse
-
#percentage_delta ⇒ Fixnum
The percentage delta relative to the offer selling price.
-
#price_delta ⇒ String
The price micros relative to the offer selling price.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RepricingRuleRestrictionBoundary
constructor
A new instance of RepricingRuleRestrictionBoundary.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RepricingRuleRestrictionBoundary
Returns a new instance of RepricingRuleRestrictionBoundary.
11427 11428 11429 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11427 def initialize(**args) update!(**args) end |
Instance Attribute Details
#percentage_delta ⇒ Fixnum
The percentage delta relative to the offer selling price. This field is signed.
It must be negative in floor. When it is used in floor, it should be > -100.
For example, if an offer is selling at $10 and this field is -30 in floor, the
repricing rule only applies if the calculated new price is >= $7.
Corresponds to the JSON property percentageDelta
11417 11418 11419 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11417 def percentage_delta @percentage_delta end |
#price_delta ⇒ String
The price micros relative to the offer selling price. This field is signed. It
must be negative in floor. For example, if an offer is selling at $10 and this
field is -$2 in floor, the repricing rule only applies if the calculated new
price is >= $8.
Corresponds to the JSON property priceDelta
11425 11426 11427 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11425 def price_delta @price_delta end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11432 11433 11434 11435 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11432 def update!(**args) @percentage_delta = args[:percentage_delta] if args.key?(:percentage_delta) @price_delta = args[:price_delta] if args.key?(:price_delta) end |