Class: Google::Apis::ContentV2::UnitInvoice
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::UnitInvoice
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#additional_charges ⇒ Array<Google::Apis::ContentV2::UnitInvoiceAdditionalCharge>
Additional charges for a unit, e.g.
-
#promotions ⇒ Array<Google::Apis::ContentV2::Promotion>
Promotions applied to a unit.
-
#unit_price_pretax ⇒ Google::Apis::ContentV2::Price
[required] Price of the unit, before applying taxes.
-
#unit_price_taxes ⇒ Array<Google::Apis::ContentV2::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
9815 9816 9817 |
# File 'generated/google/apis/content_v2/classes.rb', line 9815 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_charges ⇒ Array<Google::Apis::ContentV2::UnitInvoiceAdditionalCharge>
Additional charges for a unit, e.g. shipping costs.
Corresponds to the JSON property additionalCharges
9798 9799 9800 |
# File 'generated/google/apis/content_v2/classes.rb', line 9798 def additional_charges @additional_charges end |
#promotions ⇒ Array<Google::Apis::ContentV2::Promotion>
Promotions applied to a unit.
Corresponds to the JSON property promotions
9803 9804 9805 |
# File 'generated/google/apis/content_v2/classes.rb', line 9803 def promotions @promotions end |
#unit_price_pretax ⇒ Google::Apis::ContentV2::Price
[required] Price of the unit, before applying taxes.
Corresponds to the JSON property unitPricePretax
9808 9809 9810 |
# File 'generated/google/apis/content_v2/classes.rb', line 9808 def unit_price_pretax @unit_price_pretax end |
#unit_price_taxes ⇒ Array<Google::Apis::ContentV2::UnitInvoiceTaxLine>
Tax amounts to apply to the unit price.
Corresponds to the JSON property unitPriceTaxes
9813 9814 9815 |
# File 'generated/google/apis/content_v2/classes.rb', line 9813 def unit_price_taxes @unit_price_taxes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9820 9821 9822 9823 9824 9825 |
# File 'generated/google/apis/content_v2/classes.rb', line 9820 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 |