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.



11899
11900
11901
# File 'lib/google/apis/content_v2_1/classes.rb', line 11899

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)


11889
11890
11891
# File 'lib/google/apis/content_v2_1/classes.rb', line 11889

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)


11897
11898
11899
# File 'lib/google/apis/content_v2_1/classes.rb', line 11897

def price_delta
  @price_delta
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11904
11905
11906
11907
# File 'lib/google/apis/content_v2_1/classes.rb', line 11904

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