class Google::Apis::ContentV2::UnitInvoice

Attributes

additional_charges[RW]

Additional charges for a unit, e.g. shipping costs. Corresponds to the JSON property `additionalCharges` @return [Array<Google::Apis::ContentV2::UnitInvoiceAdditionalCharge>]

promotions[RW]

Deprecated. Corresponds to the JSON property `promotions` @return [Array<Google::Apis::ContentV2::Promotion>]

unit_price_pretax[RW]
required

Price of the unit, before applying taxes.

Corresponds to the JSON property `unitPricePretax` @return [Google::Apis::ContentV2::Price]

unit_price_taxes[RW]

Tax amounts to apply to the unit price. Corresponds to the JSON property `unitPriceTaxes` @return [Array<Google::Apis::ContentV2::UnitInvoiceTaxLine>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 11392
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/classes.rb, line 11397
def update!(**args)
  @additional_charges = args[:additional_charges] if args.key?(:additional_charges)
  @promotions = args[:promotions] if args.key?(:promotions)
  @unit_price_pretax = args[:unit_price_pretax] if args.key?(:unit_price_pretax)
  @unit_price_taxes = args[:unit_price_taxes] if args.key?(:unit_price_taxes)
end