Class: Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceRequest
- Defined in:
- generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/representations.rb
Instance Attribute Summary collapse
-
#invoice_id ⇒ String
The ID of the invoice.
-
#operation_id ⇒ String
The ID of the operation, unique across all operations for a given order.
-
#refund_only_option ⇒ Google::Apis::ContentV2sandbox::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
Option to create a refund-only invoice.
-
#return_option ⇒ Google::Apis::ContentV2sandbox::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
Option to create an invoice for a refund and mark all items within the invoice as returned.
-
#shipment_invoices ⇒ Array<Google::Apis::ContentV2sandbox::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
1363 1364 1365 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1363 def initialize(**args) update!(**args) end |
Instance Attribute Details
#invoice_id ⇒ String
The ID of the invoice.
Corresponds to the JSON property invoiceId
1339 1340 1341 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1339 def invoice_id @invoice_id end |
#operation_id ⇒ String
The ID of the operation, unique across all operations for a given order.
Corresponds to the JSON property operationId
1344 1345 1346 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1344 def operation_id @operation_id end |
#refund_only_option ⇒ Google::Apis::ContentV2sandbox::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
Option to create a refund-only invoice. Exactly one of refund_option and
return_option must be provided.
Corresponds to the JSON property refundOnlyOption
1350 1351 1352 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1350 def refund_only_option @refund_only_option end |
#return_option ⇒ Google::Apis::ContentV2sandbox::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
Option to create an invoice for a refund and mark all items within the invoice
as returned. Exactly one of refund_option and return_option must be provided.
Corresponds to the JSON property returnOption
1356 1357 1358 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1356 def return_option @return_option end |
#shipment_invoices ⇒ Array<Google::Apis::ContentV2sandbox::ShipmentInvoice>
Invoice details for different shipment groups.
Corresponds to the JSON property shipmentInvoices
1361 1362 1363 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1361 def shipment_invoices @shipment_invoices end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1368 1369 1370 1371 1372 1373 1374 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1368 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 |