Class: Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#invoice_id ⇒ String
[required] The ID of the invoice.
-
#operation_id ⇒ String
[required] The ID of the operation, unique across all operations for a given order.
-
#refund_only_option ⇒ Google::Apis::ContentV2_1::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
Option to create a refund-only invoice.
-
#return_option ⇒ Google::Apis::ContentV2_1::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
Option to create an invoice for a refund and mark all items within the invoice as returned.
-
#shipment_invoices ⇒ Array<Google::Apis::ContentV2_1::ShipmentInvoice>
Invoice details for different shipment groups.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderinvoicesCreateRefundInvoiceRequest
constructor
A new instance of OrderinvoicesCreateRefundInvoiceRequest.
-
#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) ⇒ OrderinvoicesCreateRefundInvoiceRequest
Returns a new instance of OrderinvoicesCreateRefundInvoiceRequest
4702 4703 4704 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 4702 def initialize(**args) update!(**args) end |
Instance Attribute Details
#invoice_id ⇒ String
[required] The ID of the invoice.
Corresponds to the JSON property invoiceId
4677 4678 4679 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 4677 def invoice_id @invoice_id end |
#operation_id ⇒ String
[required] The ID of the operation, unique across all operations for a given
order.
Corresponds to the JSON property operationId
4683 4684 4685 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 4683 def operation_id @operation_id end |
#refund_only_option ⇒ Google::Apis::ContentV2_1::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
Option to create a refund-only invoice. Exactly one of refundOnlyOption or
returnOption must be provided.
Corresponds to the JSON property refundOnlyOption
4689 4690 4691 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 4689 def refund_only_option @refund_only_option end |
#return_option ⇒ Google::Apis::ContentV2_1::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
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
4695 4696 4697 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 4695 def return_option @return_option end |
#shipment_invoices ⇒ Array<Google::Apis::ContentV2_1::ShipmentInvoice>
Invoice details for different shipment groups.
Corresponds to the JSON property shipmentInvoices
4700 4701 4702 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 4700 def shipment_invoices @shipment_invoices end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4707 4708 4709 4710 4711 4712 4713 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 4707 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 |