class Google::Apis::ContentV2_1::ShipmentInvoiceLineItemInvoice

Attributes

line_item_id[RW]

ID of the line item. Either lineItemId or productId must be set. Corresponds to the JSON property `lineItemId` @return [String]

product_id[RW]

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` @return [String]

shipment_unit_ids[RW]
required

The shipment unit ID is assigned by the merchant and defines

individual quantities within a line item. The same ID can be assigned to units that are the same while units that differ must be assigned a different ID (for example: free or promotional units). Corresponds to the JSON property `shipmentUnitIds` @return [Array<String>]

unit_invoice[RW]
required

Invoice details for a single unit.

Corresponds to the JSON property `unitInvoice` @return [Google::Apis::ContentV2_1::UnitInvoice]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 14557
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 14562
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