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.
-
#promotions ⇒ Array<Google::Apis::ContentV2_1::Promotion>
Promotions applied to a unit.
-
#unit_price_pretax ⇒ Google::Apis::ContentV2_1::Price
[required] Price of the unit, before applying taxes.
-
#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
8952 8953 8954 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8952 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
8935 8936 8937 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8935 def additional_charges @additional_charges end |
#promotions ⇒ Array<Google::Apis::ContentV2_1::Promotion>
Promotions applied to a unit.
Corresponds to the JSON property promotions
8940 8941 8942 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8940 def promotions @promotions end |
#unit_price_pretax ⇒ Google::Apis::ContentV2_1::Price
[required] Price of the unit, before applying taxes.
Corresponds to the JSON property unitPricePretax
8945 8946 8947 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8945 def unit_price_pretax @unit_price_pretax end |
#unit_price_taxes ⇒ Array<Google::Apis::ContentV2_1::UnitInvoiceTaxLine>
Tax amounts to apply to the unit price.
Corresponds to the JSON property unitPriceTaxes
8950 8951 8952 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8950 def unit_price_taxes @unit_price_taxes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8957 8958 8959 8960 8961 8962 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8957 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 |