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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/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.



12118
12119
12120
# File 'lib/google/apis/content_v2_1/classes.rb', line 12118

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)


12108
12109
12110
# File 'lib/google/apis/content_v2_1/classes.rb', line 12108

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)


12116
12117
12118
# File 'lib/google/apis/content_v2_1/classes.rb', line 12116

def price_delta
  @price_delta
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12123
12124
12125
12126
# File 'lib/google/apis/content_v2_1/classes.rb', line 12123

def update!(**args)
  @percentage_delta = args[:percentage_delta] if args.key?(:percentage_delta)
  @price_delta = args[:price_delta] if args.key?(:price_delta)
end