Class: Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice
 
 
- 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
- 
  
    
      #line_item_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
ID of the line item.
 - 
  
    
      #product_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
ID of the product.
 - 
  
    
      #shipment_unit_ids  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
[required] Unit IDs to define specific units within the line item.
 - 
  
    
      #unit_invoice  ⇒ Google::Apis::ContentV2::UnitInvoice 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
[required] Invoice details for a single unit.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ShipmentInvoiceLineItemInvoice 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ShipmentInvoiceLineItemInvoice.
 - 
  
    
      #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) ⇒ ShipmentInvoiceLineItemInvoice
Returns a new instance of ShipmentInvoiceLineItemInvoice
      9737 9738 9739  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9737 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#line_item_id ⇒ String
ID of the line item. Either lineItemId or productId must be set.
Corresponds to the JSON property lineItemId
      9719 9720 9721  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9719 def line_item_id @line_item_id end  | 
  
#product_id ⇒ String
ID of the product. This is the REST ID used in the products service. Either
lineItemId or productId must be set.
Corresponds to the JSON property productId
      9725 9726 9727  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9725 def product_id @product_id end  | 
  
#shipment_unit_ids ⇒ Array<String>
[required] Unit IDs to define specific units within the line item.
Corresponds to the JSON property shipmentUnitIds
      9730 9731 9732  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9730 def shipment_unit_ids @shipment_unit_ids end  | 
  
#unit_invoice ⇒ Google::Apis::ContentV2::UnitInvoice
[required] Invoice details for a single unit.
Corresponds to the JSON property unitInvoice
      9735 9736 9737  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9735 def unit_invoice @unit_invoice end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      9742 9743 9744 9745 9746 9747  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9742 def update!(**args) @line_item_id = args[:line_item_id] if args.key?(:line_item_id) @product_id = args[:product_id] if args.key?(:product_id) @shipment_unit_ids = args[:shipment_unit_ids] if args.key?(:shipment_unit_ids) @unit_invoice = args[:unit_invoice] if args.key?(:unit_invoice) end  |