class Google::Apis::ContentV2_1::ProductAmount

Attributes

price_amount[RW]

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]

remitted_tax_amount[RW]

Remitted tax value. Corresponds to the JSON property `remittedTaxAmount` @return [Google::Apis::ContentV2_1::Price]

tax_amount[RW]

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 10605
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 10610
def update!(**args)
  @price_amount = args[:price_amount] if args.key?(:price_amount)
  @remitted_tax_amount = args[:remitted_tax_amount] if args.key?(:remitted_tax_amount)
  @tax_amount = args[:tax_amount] if args.key?(:tax_amount)
end