Class: Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderinvoicesCreateRefundInvoiceRequest

Returns a new instance of OrderinvoicesCreateRefundInvoiceRequest



4868
4869
4870
# File 'generated/google/apis/content_v2_1/classes.rb', line 4868

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)


4843
4844
4845
# File 'generated/google/apis/content_v2_1/classes.rb', line 4843

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)


4849
4850
4851
# File 'generated/google/apis/content_v2_1/classes.rb', line 4849

def operation_id
  @operation_id
end

#refund_only_optionGoogle::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



4855
4856
4857
# File 'generated/google/apis/content_v2_1/classes.rb', line 4855

def refund_only_option
  @refund_only_option
end

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



4861
4862
4863
# File 'generated/google/apis/content_v2_1/classes.rb', line 4861

def return_option
  @return_option
end

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

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



4866
4867
4868
# File 'generated/google/apis/content_v2_1/classes.rb', line 4866

def shipment_invoices
  @shipment_invoices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4873
4874
4875
4876
4877
4878
4879
# File 'generated/google/apis/content_v2_1/classes.rb', line 4873

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