class Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceRequest

Attributes

invoice_id[RW]
required

The ID of the invoice.

Corresponds to the JSON property `invoiceId` @return [String]

invoice_summary[RW]
required

Invoice summary.

Corresponds to the JSON property `invoiceSummary` @return [Google::Apis::ContentV2_1::InvoiceSummary]

line_item_invoices[RW]
required

Invoice details per line item.

Corresponds to the JSON property `lineItemInvoices` @return [Array<Google::Apis::ContentV2_1::ShipmentInvoiceLineItemInvoice>]

operation_id[RW]
required

The ID of the operation, unique across all operations for a given

order. Corresponds to the JSON property `operationId` @return [String]

shipment_group_id[RW]
required

ID of the shipment group. It is assigned by the merchant in the `

shipLineItems` method and is used to group multiple line items that have the same kind of shipping charges. Corresponds to the JSON property `shipmentGroupId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 7063
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 7068
def update!(**args)
  @invoice_id = args[:invoice_id] if args.key?(:invoice_id)
  @invoice_summary = args[:invoice_summary] if args.key?(:invoice_summary)
  @line_item_invoices = args[:line_item_invoices] if args.key?(:line_item_invoices)
  @operation_id = args[:operation_id] if args.key?(:operation_id)
  @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
end