Class: Google::Apis::ContentV2_1::UnitInvoice

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UnitInvoice

Returns a new instance of UnitInvoice.



14879
14880
14881
# File 'lib/google/apis/content_v2_1/classes.rb', line 14879

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#additional_chargesArray<Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge>

Additional charges for a unit, e.g. shipping costs. Corresponds to the JSON property additionalCharges



14866
14867
14868
# File 'lib/google/apis/content_v2_1/classes.rb', line 14866

def additional_charges
  @additional_charges
end

#unit_priceGoogle::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



14872
14873
14874
# File 'lib/google/apis/content_v2_1/classes.rb', line 14872

def unit_price
  @unit_price
end

#unit_price_taxesArray<Google::Apis::ContentV2_1::UnitInvoiceTaxLine>

Tax amounts to apply to the unit price. Corresponds to the JSON property unitPriceTaxes



14877
14878
14879
# File 'lib/google/apis/content_v2_1/classes.rb', line 14877

def unit_price_taxes
  @unit_price_taxes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14884
14885
14886
14887
14888
# File 'lib/google/apis/content_v2_1/classes.rb', line 14884

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