class Google::Apis::ContentV2_1::OrderLineItemAdjustment

Attributes

price_adjustment[RW]

Adjustment for total price of the line item. Corresponds to the JSON property `priceAdjustment` @return [Google::Apis::ContentV2_1::Price]

tax_adjustment[RW]

Adjustment for total tax of the line item. Corresponds to the JSON property `taxAdjustment` @return [Google::Apis::ContentV2_1::Price]

type[RW]

Type of this adjustment. Acceptable values are: - “`promotion`” Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 5801
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 5806
def update!(**args)
  @price_adjustment = args[:price_adjustment] if args.key?(:price_adjustment)
  @tax_adjustment = args[:tax_adjustment] if args.key?(:tax_adjustment)
  @type = args[:type] if args.key?(:type)
end