Class: Google::Apis::ContentV2_1::UnitInvoice
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::UnitInvoice
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#additional_charges ⇒ Array<Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge>
Additional charges for a unit, e.g.
-
#unit_price ⇒ Google::Apis::ContentV2_1::Price
[required] Pre-tax or post-tax price of one unit depending on the locality of the order.
-
#unit_price_taxes ⇒ Array<Google::Apis::ContentV2_1::UnitInvoiceTaxLine>
Tax amounts to apply to the unit price.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UnitInvoice
constructor
A new instance of UnitInvoice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UnitInvoice
Returns a new instance of UnitInvoice.
15516 15517 15518 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15516 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_charges ⇒ Array<Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge>
Additional charges for a unit, e.g. shipping costs.
Corresponds to the JSON property additionalCharges
15501 15502 15503 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15501 def additional_charges @additional_charges end |
#unit_price ⇒ Google::Apis::ContentV2_1::Price
[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
15509 15510 15511 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15509 def unit_price @unit_price end |
#unit_price_taxes ⇒ Array<Google::Apis::ContentV2_1::UnitInvoiceTaxLine>
Tax amounts to apply to the unit price.
Corresponds to the JSON property unitPriceTaxes
15514 15515 15516 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15514 def unit_price_taxes @unit_price_taxes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15521 15522 15523 15524 15525 |
# 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 |