Class: Google::Apis::ContentV2::UnitInvoice

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UnitInvoice

Returns a new instance of UnitInvoice.



11384
11385
11386
# File 'lib/google/apis/content_v2/classes.rb', line 11384

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

Instance Attribute Details

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

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



11367
11368
11369
# File 'lib/google/apis/content_v2/classes.rb', line 11367

def additional_charges
  @additional_charges
end

#promotionsArray<Google::Apis::ContentV2::Promotion>

Deprecated. Corresponds to the JSON property promotions



11372
11373
11374
# File 'lib/google/apis/content_v2/classes.rb', line 11372

def promotions
  @promotions
end

#unit_price_pretaxGoogle::Apis::ContentV2::Price

[required] Price of the unit, before applying taxes. Corresponds to the JSON property unitPricePretax



11377
11378
11379
# File 'lib/google/apis/content_v2/classes.rb', line 11377

def unit_price_pretax
  @unit_price_pretax
end

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

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



11382
11383
11384
# File 'lib/google/apis/content_v2/classes.rb', line 11382

def unit_price_taxes
  @unit_price_taxes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11389
11390
11391
11392
11393
11394
# File 'lib/google/apis/content_v2/classes.rb', line 11389

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