Class: Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderinvoicesCreateRefundInvoiceRequest

Returns a new instance of OrderinvoicesCreateRefundInvoiceRequest.



5685
5686
5687
# File 'lib/google/apis/content_v2/classes.rb', line 5685

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#invoice_idString

[required] The ID of the invoice. Corresponds to the JSON property invoiceId

Returns:

  • (String)


5659
5660
5661
# File 'lib/google/apis/content_v2/classes.rb', line 5659

def invoice_id
  @invoice_id
end

#operation_idString

[required] The ID of the operation, unique across all operations for a given order. Corresponds to the JSON property operationId

Returns:

  • (String)


5665
5666
5667
# File 'lib/google/apis/content_v2/classes.rb', line 5665

def operation_id
  @operation_id
end

#refund_only_optionGoogle::Apis::ContentV2::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption

Option to create a refund-only invoice. Exactly one of refundOnlyOption or returnOption must be provided. Corresponds to the JSON property refundOnlyOption



5671
5672
5673
# File 'lib/google/apis/content_v2/classes.rb', line 5671

def refund_only_option
  @refund_only_option
end

#return_optionGoogle::Apis::ContentV2::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



5678
5679
5680
# File 'lib/google/apis/content_v2/classes.rb', line 5678

def return_option
  @return_option
end

#shipment_invoicesArray<Google::Apis::ContentV2::ShipmentInvoice>

Invoice details for different shipment groups. Corresponds to the JSON property shipmentInvoices



5683
5684
5685
# File 'lib/google/apis/content_v2/classes.rb', line 5683

def shipment_invoices
  @shipment_invoices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5690
5691
5692
5693
5694
5695
5696
# File 'lib/google/apis/content_v2/classes.rb', line 5690

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