Class: Google::Apis::ContentV2_1::UnitInvoice
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::UnitInvoice
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/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 the 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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ UnitInvoice
Returns a new instance of UnitInvoice
9809 9810 9811 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9809 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
9796 9797 9798 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9796 def additional_charges @additional_charges end |
#unit_price ⇒ Google::Apis::ContentV2_1::Price
[required] Pre-tax or post-tax price of the unit depending on the locality of
the order.
Corresponds to the JSON property unitPrice
9802 9803 9804 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9802 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
9807 9808 9809 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9807 def unit_price_taxes @unit_price_taxes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9814 9815 9816 9817 9818 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9814 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 |