class Google::Apis::ContentV2_1::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_1::UnitInvoiceAdditionalCharge>]

unit_price[RW]
required

Pre-tax or post-tax price of one unit depending on the locality of

the order. Note: Invoicing works on a per unit basis. The `unitPrice` is the price of a single unit, and will be multiplied by the number of entries in ` shipmentUnitId`. Corresponds to the JSON property `unitPrice` @return [Google::Apis::ContentV2_1::Price]

unit_price_taxes[RW]

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

Public Class Methods

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