class Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest
Attributes
- required
-
The ID of the invoice.
Corresponds to the JSON property `invoiceId` @return [String]
- required
-
The ID of the operation, unique across all operations for a given
order. Corresponds to the JSON property `operationId` @return [String]
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]
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]
Invoice details for different shipment groups. Corresponds to the JSON property `shipmentInvoices` @return [Array<Google::Apis::ContentV2_1::ShipmentInvoice>]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 7137 def initialize(**args) update!(**args) end
Public Instance Methods
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