class Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest

Attributes

invoice_id[RW]
required

The ID of the invoice.

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

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]

refund_only_option[RW]

Option to create a refund-only invoice. Exactly one of `refundOnlyOption` or ` returnOption` must be provided. Corresponds to the JSON property `refundOnlyOption` @return [Google::Apis::ContentV2_1::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption]

return_option[RW]

Option to create an invoice for a refund and mark all items within the invoice as returned. Exactly one of `refundOnlyOption` or `returnOption` must be provided. Corresponds to the JSON property `returnOption` @return [Google::Apis::ContentV2_1::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption]

shipment_invoices[RW]

Invoice details for different shipment groups. Corresponds to the JSON property `shipmentInvoices` @return [Array<Google::Apis::ContentV2_1::ShipmentInvoice>]

Public Class Methods

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