class Google::Apis::ContentV2_1::Amount

Attributes

price_amount[RW]
required

The pre-tax or post-tax price depending on the location of the

order. Corresponds to the JSON property `priceAmount` @return [Google::Apis::ContentV2_1::Price]

tax_amount[RW]
required

Tax value.

Corresponds to the JSON property `taxAmount` @return [Google::Apis::ContentV2_1::Price]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 1640
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 1645
def update!(**args)
  @price_amount = args[:price_amount] if args.key?(:price_amount)
  @tax_amount = args[:tax_amount] if args.key?(:tax_amount)
end