Class: Google::Apis::ContentV2sandbox::UnitInvoice
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContentV2sandbox::UnitInvoice
 
 
- Defined in:
 - generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/representations.rb 
Instance Attribute Summary collapse
- 
  
    
      #additional_charges  ⇒ Array<Google::Apis::ContentV2sandbox::UnitInvoiceAdditionalCharge> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Additional charges for a unit, e.g.
 - 
  
    
      #promotions  ⇒ Array<Google::Apis::ContentV2sandbox::Promotion> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Promotions applied to a unit.
 - 
  
    
      #unit_price_pretax  ⇒ Google::Apis::ContentV2sandbox::Price 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
[required] Price of the unit, before applying taxes.
 - 
  
    
      #unit_price_taxes  ⇒ Array<Google::Apis::ContentV2sandbox::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
      4106 4107 4108  | 
    
      # File 'generated/google/apis/content_v2sandbox/classes.rb', line 4106 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#additional_charges ⇒ Array<Google::Apis::ContentV2sandbox::UnitInvoiceAdditionalCharge>
Additional charges for a unit, e.g. shipping costs.
Corresponds to the JSON property additionalCharges
      4089 4090 4091  | 
    
      # File 'generated/google/apis/content_v2sandbox/classes.rb', line 4089 def additional_charges @additional_charges end  | 
  
#promotions ⇒ Array<Google::Apis::ContentV2sandbox::Promotion>
Promotions applied to a unit.
Corresponds to the JSON property promotions
      4094 4095 4096  | 
    
      # File 'generated/google/apis/content_v2sandbox/classes.rb', line 4094 def promotions @promotions end  | 
  
#unit_price_pretax ⇒ Google::Apis::ContentV2sandbox::Price
[required] Price of the unit, before applying taxes.
Corresponds to the JSON property unitPricePretax
      4099 4100 4101  | 
    
      # File 'generated/google/apis/content_v2sandbox/classes.rb', line 4099 def unit_price_pretax @unit_price_pretax end  | 
  
#unit_price_taxes ⇒ Array<Google::Apis::ContentV2sandbox::UnitInvoiceTaxLine>
Tax amounts to apply to the unit price.
Corresponds to the JSON property unitPriceTaxes
      4104 4105 4106  | 
    
      # File 'generated/google/apis/content_v2sandbox/classes.rb', line 4104 def unit_price_taxes @unit_price_taxes end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4111 4112 4113 4114 4115 4116  | 
    
      # File 'generated/google/apis/content_v2sandbox/classes.rb', line 4111 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  |