Class: Google::Apis::ContentV2_1::RepricingRuleRestrictionBoundary

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_deltaFixnum

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

Returns:

  • (Fixnum)


11417
11418
11419
# File 'generated/google/apis/content_v2_1/classes.rb', line 11417

def percentage_delta
  @percentage_delta
end

#price_deltaString

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

Returns:

  • (String)


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