devdraft 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +160 -191
- data/Rakefile +2 -0
- data/devdraft-1.0.0.gem +0 -0
- data/{devdraft_ai_sdk.gemspec → devdraft.gemspec} +15 -11
- data/docs/APIHealthApi.md +82 -30
- data/docs/AggregatedBalanceResponse.md +19 -6
- data/docs/AllBalancesResponse.md +19 -6
- data/docs/AppBalancesApi.md +125 -65
- data/docs/BridgeFiatPaymentRail.md +15 -0
- data/docs/BridgePaymentRail.md +12 -3
- data/docs/CreateBankPaymentIntentDto.md +49 -21
- data/docs/CreateCustomerDto.md +25 -9
- data/docs/CreateDirectBankTransferDto.md +29 -11
- data/docs/CreateDirectWalletTransferDto.md +21 -7
- data/docs/CreateExternalBankTransferDto.md +40 -0
- data/docs/CreateExternalStablecoinTransferDto.md +28 -0
- data/docs/CreateInvoiceDto.md +45 -19
- data/docs/CreateLiquidationAddressDto.md +43 -18
- data/docs/CreatePaymentLinkDto.md +53 -28
- data/docs/CreateStablePaymentIntentDto.md +43 -18
- data/docs/CreateStablecoinConversionDto.md +23 -8
- data/docs/CreateTaxDto.md +26 -0
- data/docs/CreateWebhookDto.md +23 -8
- data/docs/CustomerStatus.md +12 -3
- data/docs/CustomerType.md +15 -0
- data/docs/CustomersApi.md +187 -114
- data/docs/DestinationCurrency.md +12 -3
- data/docs/ExchangeRateResponseDto.md +25 -9
- data/docs/ExchangeRatesApi.md +130 -72
- data/docs/FiatCurrency.md +12 -3
- data/docs/HealthResponseDto.md +25 -9
- data/docs/InvoiceProductDto.md +17 -5
- data/docs/InvoicesApi.md +177 -104
- data/docs/LiquidationAddressResponseDto.md +41 -17
- data/docs/LiquidationAddressesApi.md +115 -61
- data/docs/PaymentIntentsApi.md +93 -57
- data/docs/PaymentLinkProductDto.md +17 -5
- data/docs/PaymentLinksApi.md +175 -102
- data/docs/PaymentRequestDto.md +21 -7
- data/docs/PaymentResponseDto.md +23 -8
- data/docs/ProductsApi.md +307 -194
- data/docs/PublicHealthResponseDto.md +19 -6
- data/docs/RefundResponseDto.md +23 -8
- data/docs/StableCoinCurrency.md +12 -3
- data/docs/TaxControllerCreate201Response.md +30 -0
- data/docs/TaxControllerDeleteWithoutId400Response.md +22 -0
- data/docs/TaxControllerUpdateWithoutId400Response.md +22 -0
- data/docs/TaxesApi.md +374 -122
- data/docs/TestPaymentsApi.md +150 -60
- data/docs/TransfersApi.md +274 -72
- data/docs/UpdateCustomerDto.md +25 -9
- data/docs/UpdateTaxDto.md +26 -0
- data/docs/UpdateWebhookDto.md +23 -8
- data/docs/WalletsApi.md +44 -24
- data/docs/WebhookResponseDto.md +29 -11
- data/docs/WebhooksApi.md +225 -134
- data/git_push.sh +41 -28
- data/lib/devdraft/api/api_health_api.rb +32 -16
- data/lib/devdraft/api/app_balances_api.rb +45 -22
- data/lib/devdraft/api/customers_api.rb +124 -71
- data/lib/devdraft/api/exchange_rates_api.rb +49 -26
- data/lib/devdraft/api/invoices_api.rb +89 -53
- data/lib/devdraft/api/liquidation_addresses_api.rb +70 -44
- data/lib/devdraft/api/payment_intents_api.rb +62 -40
- data/lib/devdraft/api/payment_links_api.rb +85 -49
- data/lib/devdraft/api/products_api.rb +214 -216
- data/lib/devdraft/api/taxes_api.rb +257 -66
- data/lib/devdraft/api/test_payments_api.rb +70 -44
- data/lib/devdraft/api/transfers_api.rb +206 -46
- data/lib/devdraft/api/wallets_api.rb +18 -9
- data/lib/devdraft/api/webhooks_api.rb +109 -66
- data/lib/devdraft/api_client.rb +76 -71
- data/lib/devdraft/api_error.rb +5 -4
- data/lib/devdraft/api_model_base.rb +88 -0
- data/lib/devdraft/configuration.rb +121 -18
- data/lib/devdraft/models/aggregated_balance_response.rb +68 -101
- data/lib/devdraft/models/all_balances_response.rb +76 -99
- data/lib/devdraft/models/bridge_fiat_payment_rail.rb +45 -0
- data/lib/devdraft/models/bridge_payment_rail.rb +36 -24
- data/lib/devdraft/models/create_bank_payment_intent_dto.rb +191 -114
- data/lib/devdraft/models/create_customer_dto.rb +123 -113
- data/lib/devdraft/models/create_direct_bank_transfer_dto.rb +105 -104
- data/lib/devdraft/models/create_direct_wallet_transfer_dto.rb +89 -100
- data/lib/devdraft/models/create_external_bank_transfer_dto.rb +505 -0
- data/lib/devdraft/models/create_external_stablecoin_transfer_dto.rb +266 -0
- data/lib/devdraft/models/create_invoice_dto.rb +151 -121
- data/lib/devdraft/models/create_liquidation_address_dto.rb +195 -115
- data/lib/devdraft/models/create_payment_link_dto.rb +192 -214
- data/lib/devdraft/models/create_stable_payment_intent_dto.rb +324 -111
- data/lib/devdraft/models/create_stablecoin_conversion_dto.rb +102 -101
- data/lib/devdraft/models/create_tax_dto.rb +281 -0
- data/lib/devdraft/models/create_webhook_dto.rb +104 -101
- data/lib/devdraft/models/customer_status.rb +23 -10
- data/lib/devdraft/models/customer_type.rb +45 -0
- data/lib/devdraft/models/destination_currency.rb +27 -15
- data/lib/devdraft/models/exchange_rate_response_dto.rb +103 -102
- data/lib/devdraft/models/fiat_currency.rb +22 -10
- data/lib/devdraft/models/health_response_dto.rb +99 -106
- data/lib/devdraft/models/invoice_product_dto.rb +63 -98
- data/lib/devdraft/models/liquidation_address_response_dto.rb +147 -110
- data/lib/devdraft/models/payment_link_product_dto.rb +70 -98
- data/lib/devdraft/models/payment_request_dto.rb +77 -100
- data/lib/devdraft/models/payment_response_dto.rb +102 -101
- data/lib/devdraft/models/public_health_response_dto.rb +68 -101
- data/lib/devdraft/models/refund_response_dto.rb +102 -101
- data/lib/devdraft/models/stable_coin_currency.rb +21 -9
- data/lib/devdraft/models/tax_controller_create201_response.rb +201 -0
- data/lib/devdraft/models/tax_controller_delete_without_id400_response.rb +165 -0
- data/lib/devdraft/models/tax_controller_update_without_id400_response.rb +165 -0
- data/lib/devdraft/models/update_customer_dto.rb +117 -113
- data/lib/devdraft/models/update_tax_dto.rb +256 -0
- data/lib/devdraft/models/update_webhook_dto.rb +70 -101
- data/lib/devdraft/models/webhook_response_dto.rb +140 -103
- data/lib/devdraft/version.rb +6 -5
- data/lib/devdraft.rb +18 -27
- data/spec/api/api_health_api_spec.rb +10 -9
- data/spec/api/app_balances_api_spec.rb +11 -10
- data/spec/api/customers_api_spec.rb +25 -24
- data/spec/api/exchange_rates_api_spec.rb +11 -10
- data/spec/api/invoices_api_spec.rb +16 -15
- data/spec/api/liquidation_addresses_api_spec.rb +13 -12
- data/spec/api/payment_intents_api_spec.rb +12 -11
- data/spec/api/payment_links_api_spec.rb +14 -13
- data/spec/api/products_api_spec.rb +41 -40
- data/spec/api/taxes_api_spec.rb +51 -21
- data/spec/api/test_payments_api_spec.rb +14 -13
- data/spec/api/transfers_api_spec.rb +36 -13
- data/spec/api/wallets_api_spec.rb +9 -8
- data/spec/api/webhooks_api_spec.rb +20 -19
- data/spec/models/aggregated_balance_response_spec.rb +15 -19
- data/spec/models/all_balances_response_spec.rb +14 -18
- data/spec/models/bridge_fiat_payment_rail_spec.rb +30 -0
- data/spec/models/bridge_payment_rail_spec.rb +11 -15
- data/spec/models/create_bank_payment_intent_dto_spec.rb +29 -33
- data/spec/models/create_customer_dto_spec.rb +17 -25
- data/spec/models/create_direct_bank_transfer_dto_spec.rb +19 -23
- data/spec/models/create_direct_wallet_transfer_dto_spec.rb +15 -19
- data/spec/models/create_external_bank_transfer_dto_spec.rb +102 -0
- data/spec/models/create_external_stablecoin_transfer_dto_spec.rb +66 -0
- data/spec/models/create_invoice_dto_spec.rb +31 -35
- data/spec/models/create_liquidation_address_dto_spec.rb +28 -32
- data/spec/models/create_payment_link_dto_spec.rb +34 -76
- data/spec/models/create_stable_payment_intent_dto_spec.rb +26 -30
- data/spec/models/create_stablecoin_conversion_dto_spec.rb +16 -20
- data/spec/models/create_tax_dto_spec.rb +60 -0
- data/spec/models/create_webhook_dto_spec.rb +16 -20
- data/spec/models/customer_status_spec.rb +11 -15
- data/spec/models/customer_type_spec.rb +30 -0
- data/spec/models/destination_currency_spec.rb +11 -15
- data/spec/models/exchange_rate_response_dto_spec.rb +17 -21
- data/spec/models/fiat_currency_spec.rb +11 -15
- data/spec/models/health_response_dto_spec.rb +19 -23
- data/spec/models/invoice_product_dto_spec.rb +13 -17
- data/spec/models/liquidation_address_response_dto_spec.rb +25 -29
- data/spec/models/payment_link_product_dto_spec.rb +13 -17
- data/spec/models/payment_request_dto_spec.rb +15 -19
- data/spec/models/payment_response_dto_spec.rb +16 -20
- data/spec/models/public_health_response_dto_spec.rb +15 -19
- data/spec/models/refund_response_dto_spec.rb +16 -20
- data/spec/models/stable_coin_currency_spec.rb +11 -15
- data/spec/models/tax_controller_create201_response_spec.rb +72 -0
- data/spec/models/tax_controller_delete_without_id400_response_spec.rb +48 -0
- data/spec/models/tax_controller_update_without_id400_response_spec.rb +48 -0
- data/spec/models/update_customer_dto_spec.rb +17 -25
- data/spec/models/update_tax_dto_spec.rb +60 -0
- data/spec/models/update_webhook_dto_spec.rb +16 -20
- data/spec/models/webhook_response_dto_spec.rb +19 -23
- data/spec/spec_helper.rb +5 -4
- metadata +49 -116
- data/docs/AllOfAllBalancesResponseEurc.md +0 -9
- data/docs/AllOfAllBalancesResponseUsdc.md +0 -9
- data/docs/AllOfCreateBankPaymentIntentDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoDestinationNetwork.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoSourceCurrency.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoSourcePaymentRail.md +0 -6
- data/docs/AllOfCreateCustomerDtoStatus.md +0 -6
- data/docs/AllOfCreateLiquidationAddressDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateLiquidationAddressDtoDestinationPaymentRail.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoDestinationNetwork.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoSourceCurrency.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoSourceNetwork.md +0 -6
- data/docs/AllOfUpdateCustomerDtoStatus.md +0 -6
- data/docs/CreateProductDto.md +0 -18
- data/docs/CreateTaxInput.md +0 -6
- data/docs/UpdatePaymentLinkDto.md +0 -6
- data/docs/UpdatePreferenceInput.md +0 -6
- data/docs/UpdateProductDto.md +0 -18
- data/docs/UpdateTaxInput.md +0 -6
- data/example.rb +0 -94
- data/lib/devdraft/models/all_of_all_balances_response_eurc.rb +0 -283
- data/lib/devdraft/models/all_of_all_balances_response_usdc.rb +0 -283
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_network.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_payment_rail.rb +0 -202
- data/lib/devdraft/models/all_of_create_customer_dto_status.rb +0 -202
- data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_payment_rail.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_network.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_network.rb +0 -202
- data/lib/devdraft/models/all_of_update_customer_dto_status.rb +0 -202
- data/lib/devdraft/models/create_product_dto.rb +0 -370
- data/lib/devdraft/models/create_tax_input.rb +0 -197
- data/lib/devdraft/models/update_payment_link_dto.rb +0 -197
- data/lib/devdraft/models/update_preference_input.rb +0 -197
- data/lib/devdraft/models/update_product_dto.rb +0 -355
- data/lib/devdraft/models/update_tax_input.rb +0 -197
- data/spec/api_client_spec.rb +0 -225
- data/spec/base_object_spec.rb +0 -109
- data/spec/configuration_spec.rb +0 -41
- data/spec/models/all_of_all_balances_response_eurc_spec.rb +0 -56
- data/spec/models/all_of_all_balances_response_usdc_spec.rb +0 -56
- data/spec/models/all_of_create_bank_payment_intent_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_destination_network_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_source_currency_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_source_payment_rail_spec.rb +0 -34
- data/spec/models/all_of_create_customer_dto_status_spec.rb +0 -34
- data/spec/models/all_of_create_liquidation_address_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_liquidation_address_dto_destination_payment_rail_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_destination_network_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_source_currency_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_source_network_spec.rb +0 -34
- data/spec/models/all_of_update_customer_dto_status_spec.rb +0 -34
- data/spec/models/create_product_dto_spec.rb +0 -110
- data/spec/models/create_tax_input_spec.rb +0 -34
- data/spec/models/update_payment_link_dto_spec.rb +0 -34
- data/spec/models/update_preference_input_spec.rb +0 -34
- data/spec/models/update_product_dto_spec.rb +0 -110
- data/spec/models/update_tax_input_spec.rb +0 -34
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
# A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
|
|
5
5
|
|
|
6
|
-
OpenAPI
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.17.0
|
|
7
10
|
|
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.65
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Devdraft
|
|
13
16
|
class InvoicesApi
|
|
14
17
|
attr_accessor :api_client
|
|
15
18
|
|
|
@@ -17,25 +20,25 @@ module DevDraftAI
|
|
|
17
20
|
@api_client = api_client
|
|
18
21
|
end
|
|
19
22
|
# Create a new invoice
|
|
20
|
-
# @param
|
|
23
|
+
# @param create_invoice_dto [CreateInvoiceDto]
|
|
21
24
|
# @param [Hash] opts the optional parameters
|
|
22
25
|
# @return [nil]
|
|
23
|
-
def invoice_controller_create(
|
|
24
|
-
invoice_controller_create_with_http_info(
|
|
26
|
+
def invoice_controller_create(create_invoice_dto, opts = {})
|
|
27
|
+
invoice_controller_create_with_http_info(create_invoice_dto, opts)
|
|
25
28
|
nil
|
|
26
29
|
end
|
|
27
30
|
|
|
28
31
|
# Create a new invoice
|
|
29
|
-
# @param
|
|
32
|
+
# @param create_invoice_dto [CreateInvoiceDto]
|
|
30
33
|
# @param [Hash] opts the optional parameters
|
|
31
34
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
32
|
-
def invoice_controller_create_with_http_info(
|
|
35
|
+
def invoice_controller_create_with_http_info(create_invoice_dto, opts = {})
|
|
33
36
|
if @api_client.config.debugging
|
|
34
37
|
@api_client.config.logger.debug 'Calling API: InvoicesApi.invoice_controller_create ...'
|
|
35
38
|
end
|
|
36
|
-
# verify the required parameter '
|
|
37
|
-
if @api_client.config.client_side_validation &&
|
|
38
|
-
fail ArgumentError, "Missing the required parameter '
|
|
39
|
+
# verify the required parameter 'create_invoice_dto' is set
|
|
40
|
+
if @api_client.config.client_side_validation && create_invoice_dto.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'create_invoice_dto' when calling InvoicesApi.invoice_controller_create"
|
|
39
42
|
end
|
|
40
43
|
# resource path
|
|
41
44
|
local_var_path = '/api/v0/invoices'
|
|
@@ -46,34 +49,44 @@ module DevDraftAI
|
|
|
46
49
|
# header parameters
|
|
47
50
|
header_params = opts[:header_params] || {}
|
|
48
51
|
# HTTP header 'Content-Type'
|
|
49
|
-
|
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
53
|
+
if !content_type.nil?
|
|
54
|
+
header_params['Content-Type'] = content_type
|
|
55
|
+
end
|
|
50
56
|
|
|
51
57
|
# form parameters
|
|
52
58
|
form_params = opts[:form_params] || {}
|
|
53
59
|
|
|
54
60
|
# http body (model)
|
|
55
|
-
post_body = opts[:
|
|
61
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_invoice_dto)
|
|
62
|
+
|
|
63
|
+
# return_type
|
|
64
|
+
return_type = opts[:debug_return_type]
|
|
56
65
|
|
|
57
|
-
|
|
66
|
+
# auth_names
|
|
67
|
+
auth_names = opts[:debug_auth_names] || ['x-client-secret', 'x-client-key']
|
|
58
68
|
|
|
59
|
-
|
|
60
|
-
|
|
69
|
+
new_options = opts.merge(
|
|
70
|
+
:operation => :"InvoicesApi.invoice_controller_create",
|
|
61
71
|
:header_params => header_params,
|
|
62
72
|
:query_params => query_params,
|
|
63
73
|
:form_params => form_params,
|
|
64
74
|
:body => post_body,
|
|
65
75
|
:auth_names => auth_names,
|
|
66
|
-
:return_type => return_type
|
|
76
|
+
:return_type => return_type
|
|
77
|
+
)
|
|
67
78
|
|
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
68
80
|
if @api_client.config.debugging
|
|
69
81
|
@api_client.config.logger.debug "API called: InvoicesApi#invoice_controller_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
70
82
|
end
|
|
71
83
|
return data, status_code, headers
|
|
72
84
|
end
|
|
85
|
+
|
|
73
86
|
# Get all invoices
|
|
74
87
|
# @param [Hash] opts the optional parameters
|
|
75
|
-
# @option opts [
|
|
76
|
-
# @option opts [
|
|
88
|
+
# @option opts [Float] :skip Number of records to skip
|
|
89
|
+
# @option opts [Float] :take Number of records to take
|
|
77
90
|
# @return [nil]
|
|
78
91
|
def invoice_controller_find_all(opts = {})
|
|
79
92
|
invoice_controller_find_all_with_http_info(opts)
|
|
@@ -82,8 +95,8 @@ module DevDraftAI
|
|
|
82
95
|
|
|
83
96
|
# Get all invoices
|
|
84
97
|
# @param [Hash] opts the optional parameters
|
|
85
|
-
# @option opts [
|
|
86
|
-
# @option opts [
|
|
98
|
+
# @option opts [Float] :skip Number of records to skip
|
|
99
|
+
# @option opts [Float] :take Number of records to take
|
|
87
100
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
88
101
|
def invoice_controller_find_all_with_http_info(opts = {})
|
|
89
102
|
if @api_client.config.debugging
|
|
@@ -104,26 +117,33 @@ module DevDraftAI
|
|
|
104
117
|
form_params = opts[:form_params] || {}
|
|
105
118
|
|
|
106
119
|
# http body (model)
|
|
107
|
-
post_body = opts[:
|
|
120
|
+
post_body = opts[:debug_body]
|
|
121
|
+
|
|
122
|
+
# return_type
|
|
123
|
+
return_type = opts[:debug_return_type]
|
|
108
124
|
|
|
109
|
-
|
|
125
|
+
# auth_names
|
|
126
|
+
auth_names = opts[:debug_auth_names] || ['x-client-secret', 'x-client-key']
|
|
110
127
|
|
|
111
|
-
|
|
112
|
-
|
|
128
|
+
new_options = opts.merge(
|
|
129
|
+
:operation => :"InvoicesApi.invoice_controller_find_all",
|
|
113
130
|
:header_params => header_params,
|
|
114
131
|
:query_params => query_params,
|
|
115
132
|
:form_params => form_params,
|
|
116
133
|
:body => post_body,
|
|
117
134
|
:auth_names => auth_names,
|
|
118
|
-
:return_type => return_type
|
|
135
|
+
:return_type => return_type
|
|
136
|
+
)
|
|
119
137
|
|
|
138
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
120
139
|
if @api_client.config.debugging
|
|
121
140
|
@api_client.config.logger.debug "API called: InvoicesApi#invoice_controller_find_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
122
141
|
end
|
|
123
142
|
return data, status_code, headers
|
|
124
143
|
end
|
|
144
|
+
|
|
125
145
|
# Get an invoice by ID
|
|
126
|
-
# @param id Invoice ID
|
|
146
|
+
# @param id [String] Invoice ID
|
|
127
147
|
# @param [Hash] opts the optional parameters
|
|
128
148
|
# @return [nil]
|
|
129
149
|
def invoice_controller_find_one(id, opts = {})
|
|
@@ -132,7 +152,7 @@ module DevDraftAI
|
|
|
132
152
|
end
|
|
133
153
|
|
|
134
154
|
# Get an invoice by ID
|
|
135
|
-
# @param id Invoice ID
|
|
155
|
+
# @param id [String] Invoice ID
|
|
136
156
|
# @param [Hash] opts the optional parameters
|
|
137
157
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
138
158
|
def invoice_controller_find_one_with_http_info(id, opts = {})
|
|
@@ -144,7 +164,7 @@ module DevDraftAI
|
|
|
144
164
|
fail ArgumentError, "Missing the required parameter 'id' when calling InvoicesApi.invoice_controller_find_one"
|
|
145
165
|
end
|
|
146
166
|
# resource path
|
|
147
|
-
local_var_path = '/api/v0/invoices/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
167
|
+
local_var_path = '/api/v0/invoices/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
148
168
|
|
|
149
169
|
# query parameters
|
|
150
170
|
query_params = opts[:query_params] || {}
|
|
@@ -156,53 +176,60 @@ module DevDraftAI
|
|
|
156
176
|
form_params = opts[:form_params] || {}
|
|
157
177
|
|
|
158
178
|
# http body (model)
|
|
159
|
-
post_body = opts[:
|
|
179
|
+
post_body = opts[:debug_body]
|
|
160
180
|
|
|
161
|
-
|
|
181
|
+
# return_type
|
|
182
|
+
return_type = opts[:debug_return_type]
|
|
162
183
|
|
|
163
|
-
|
|
164
|
-
|
|
184
|
+
# auth_names
|
|
185
|
+
auth_names = opts[:debug_auth_names] || ['x-client-secret', 'x-client-key']
|
|
186
|
+
|
|
187
|
+
new_options = opts.merge(
|
|
188
|
+
:operation => :"InvoicesApi.invoice_controller_find_one",
|
|
165
189
|
:header_params => header_params,
|
|
166
190
|
:query_params => query_params,
|
|
167
191
|
:form_params => form_params,
|
|
168
192
|
:body => post_body,
|
|
169
193
|
:auth_names => auth_names,
|
|
170
|
-
:return_type => return_type
|
|
194
|
+
:return_type => return_type
|
|
195
|
+
)
|
|
171
196
|
|
|
197
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
172
198
|
if @api_client.config.debugging
|
|
173
199
|
@api_client.config.logger.debug "API called: InvoicesApi#invoice_controller_find_one\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
174
200
|
end
|
|
175
201
|
return data, status_code, headers
|
|
176
202
|
end
|
|
203
|
+
|
|
177
204
|
# Update an invoice
|
|
178
|
-
# @param
|
|
179
|
-
# @param
|
|
205
|
+
# @param id [String] Invoice ID
|
|
206
|
+
# @param create_invoice_dto [CreateInvoiceDto]
|
|
180
207
|
# @param [Hash] opts the optional parameters
|
|
181
208
|
# @return [nil]
|
|
182
|
-
def invoice_controller_update(
|
|
183
|
-
invoice_controller_update_with_http_info(
|
|
209
|
+
def invoice_controller_update(id, create_invoice_dto, opts = {})
|
|
210
|
+
invoice_controller_update_with_http_info(id, create_invoice_dto, opts)
|
|
184
211
|
nil
|
|
185
212
|
end
|
|
186
213
|
|
|
187
214
|
# Update an invoice
|
|
188
|
-
# @param
|
|
189
|
-
# @param
|
|
215
|
+
# @param id [String] Invoice ID
|
|
216
|
+
# @param create_invoice_dto [CreateInvoiceDto]
|
|
190
217
|
# @param [Hash] opts the optional parameters
|
|
191
218
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
192
|
-
def invoice_controller_update_with_http_info(
|
|
219
|
+
def invoice_controller_update_with_http_info(id, create_invoice_dto, opts = {})
|
|
193
220
|
if @api_client.config.debugging
|
|
194
221
|
@api_client.config.logger.debug 'Calling API: InvoicesApi.invoice_controller_update ...'
|
|
195
222
|
end
|
|
196
|
-
# verify the required parameter 'body' is set
|
|
197
|
-
if @api_client.config.client_side_validation && body.nil?
|
|
198
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling InvoicesApi.invoice_controller_update"
|
|
199
|
-
end
|
|
200
223
|
# verify the required parameter 'id' is set
|
|
201
224
|
if @api_client.config.client_side_validation && id.nil?
|
|
202
225
|
fail ArgumentError, "Missing the required parameter 'id' when calling InvoicesApi.invoice_controller_update"
|
|
203
226
|
end
|
|
227
|
+
# verify the required parameter 'create_invoice_dto' is set
|
|
228
|
+
if @api_client.config.client_side_validation && create_invoice_dto.nil?
|
|
229
|
+
fail ArgumentError, "Missing the required parameter 'create_invoice_dto' when calling InvoicesApi.invoice_controller_update"
|
|
230
|
+
end
|
|
204
231
|
# resource path
|
|
205
|
-
local_var_path = '/api/v0/invoices/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
232
|
+
local_var_path = '/api/v0/invoices/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
206
233
|
|
|
207
234
|
# query parameters
|
|
208
235
|
query_params = opts[:query_params] || {}
|
|
@@ -210,25 +237,34 @@ module DevDraftAI
|
|
|
210
237
|
# header parameters
|
|
211
238
|
header_params = opts[:header_params] || {}
|
|
212
239
|
# HTTP header 'Content-Type'
|
|
213
|
-
|
|
240
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
241
|
+
if !content_type.nil?
|
|
242
|
+
header_params['Content-Type'] = content_type
|
|
243
|
+
end
|
|
214
244
|
|
|
215
245
|
# form parameters
|
|
216
246
|
form_params = opts[:form_params] || {}
|
|
217
247
|
|
|
218
248
|
# http body (model)
|
|
219
|
-
post_body = opts[:
|
|
249
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_invoice_dto)
|
|
250
|
+
|
|
251
|
+
# return_type
|
|
252
|
+
return_type = opts[:debug_return_type]
|
|
220
253
|
|
|
221
|
-
|
|
254
|
+
# auth_names
|
|
255
|
+
auth_names = opts[:debug_auth_names] || ['x-client-secret', 'x-client-key']
|
|
222
256
|
|
|
223
|
-
|
|
224
|
-
|
|
257
|
+
new_options = opts.merge(
|
|
258
|
+
:operation => :"InvoicesApi.invoice_controller_update",
|
|
225
259
|
:header_params => header_params,
|
|
226
260
|
:query_params => query_params,
|
|
227
261
|
:form_params => form_params,
|
|
228
262
|
:body => post_body,
|
|
229
263
|
:auth_names => auth_names,
|
|
230
|
-
:return_type => return_type
|
|
264
|
+
:return_type => return_type
|
|
265
|
+
)
|
|
231
266
|
|
|
267
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
232
268
|
if @api_client.config.debugging
|
|
233
269
|
@api_client.config.logger.debug "API called: InvoicesApi#invoice_controller_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
234
270
|
end
|
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
# A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
|
|
5
5
|
|
|
6
|
-
OpenAPI
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.17.0
|
|
7
10
|
|
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.65
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Devdraft
|
|
13
16
|
class LiquidationAddressesApi
|
|
14
17
|
attr_accessor :api_client
|
|
15
18
|
|
|
@@ -18,35 +21,35 @@ module DevDraftAI
|
|
|
18
21
|
end
|
|
19
22
|
# Create a new liquidation address for a customer
|
|
20
23
|
# Create a new liquidation address for a customer. Liquidation addresses allow customers to automatically liquidate cryptocurrency holdings to fiat or other stablecoins based on configured parameters. **Required fields:** - chain: Blockchain network (ethereum, polygon, arbitrum, base) - currency: Stablecoin currency (usdc, eurc, dai, pyusd, usdt) - address: Valid blockchain address **At least one destination must be specified:** - external_account_id: External bank account - prefunded_account_id: Developer's prefunded account - bridge_wallet_id: Bridge wallet - destination_address: Crypto wallet address **Payment Rails:** Different payment rails have different requirements: - ACH: Requires external_account_id, supports destination_ach_reference - SEPA: Requires external_account_id, supports destination_sepa_reference - Wire: Requires external_account_id, supports destination_wire_message - Crypto: Requires destination_address, supports destination_blockchain_memo
|
|
21
|
-
# @param
|
|
22
|
-
# @param
|
|
24
|
+
# @param customer_id [String] Unique identifier for the customer
|
|
25
|
+
# @param create_liquidation_address_dto [CreateLiquidationAddressDto]
|
|
23
26
|
# @param [Hash] opts the optional parameters
|
|
24
27
|
# @return [LiquidationAddressResponseDto]
|
|
25
|
-
def liquidation_address_controller_create_liquidation_address(
|
|
26
|
-
data, _status_code, _headers = liquidation_address_controller_create_liquidation_address_with_http_info(
|
|
28
|
+
def liquidation_address_controller_create_liquidation_address(customer_id, create_liquidation_address_dto, opts = {})
|
|
29
|
+
data, _status_code, _headers = liquidation_address_controller_create_liquidation_address_with_http_info(customer_id, create_liquidation_address_dto, opts)
|
|
27
30
|
data
|
|
28
31
|
end
|
|
29
32
|
|
|
30
33
|
# Create a new liquidation address for a customer
|
|
31
|
-
# Create a new liquidation address for a customer. Liquidation addresses allow customers to automatically liquidate cryptocurrency holdings to fiat or other stablecoins based on configured parameters. **Required fields:** - chain: Blockchain network (ethereum, polygon, arbitrum, base) - currency: Stablecoin currency (usdc, eurc, dai, pyusd, usdt) - address: Valid blockchain address **At least one destination must be specified:** - external_account_id: External bank account - prefunded_account_id: Developer&#
|
|
32
|
-
# @param
|
|
33
|
-
# @param
|
|
34
|
+
# Create a new liquidation address for a customer. Liquidation addresses allow customers to automatically liquidate cryptocurrency holdings to fiat or other stablecoins based on configured parameters. **Required fields:** - chain: Blockchain network (ethereum, polygon, arbitrum, base) - currency: Stablecoin currency (usdc, eurc, dai, pyusd, usdt) - address: Valid blockchain address **At least one destination must be specified:** - external_account_id: External bank account - prefunded_account_id: Developer's prefunded account - bridge_wallet_id: Bridge wallet - destination_address: Crypto wallet address **Payment Rails:** Different payment rails have different requirements: - ACH: Requires external_account_id, supports destination_ach_reference - SEPA: Requires external_account_id, supports destination_sepa_reference - Wire: Requires external_account_id, supports destination_wire_message - Crypto: Requires destination_address, supports destination_blockchain_memo
|
|
35
|
+
# @param customer_id [String] Unique identifier for the customer
|
|
36
|
+
# @param create_liquidation_address_dto [CreateLiquidationAddressDto]
|
|
34
37
|
# @param [Hash] opts the optional parameters
|
|
35
38
|
# @return [Array<(LiquidationAddressResponseDto, Integer, Hash)>] LiquidationAddressResponseDto data, response status code and response headers
|
|
36
|
-
def liquidation_address_controller_create_liquidation_address_with_http_info(
|
|
39
|
+
def liquidation_address_controller_create_liquidation_address_with_http_info(customer_id, create_liquidation_address_dto, opts = {})
|
|
37
40
|
if @api_client.config.debugging
|
|
38
41
|
@api_client.config.logger.debug 'Calling API: LiquidationAddressesApi.liquidation_address_controller_create_liquidation_address ...'
|
|
39
42
|
end
|
|
40
|
-
# verify the required parameter 'body' is set
|
|
41
|
-
if @api_client.config.client_side_validation && body.nil?
|
|
42
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling LiquidationAddressesApi.liquidation_address_controller_create_liquidation_address"
|
|
43
|
-
end
|
|
44
43
|
# verify the required parameter 'customer_id' is set
|
|
45
44
|
if @api_client.config.client_side_validation && customer_id.nil?
|
|
46
45
|
fail ArgumentError, "Missing the required parameter 'customer_id' when calling LiquidationAddressesApi.liquidation_address_controller_create_liquidation_address"
|
|
47
46
|
end
|
|
47
|
+
# verify the required parameter 'create_liquidation_address_dto' is set
|
|
48
|
+
if @api_client.config.client_side_validation && create_liquidation_address_dto.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'create_liquidation_address_dto' when calling LiquidationAddressesApi.liquidation_address_controller_create_liquidation_address"
|
|
50
|
+
end
|
|
48
51
|
# resource path
|
|
49
|
-
local_var_path = '/api/v0/customers/{customerId}/liquidation_addresses'.sub('{' + 'customerId' + '}', customer_id.to_s)
|
|
52
|
+
local_var_path = '/api/v0/customers/{customerId}/liquidation_addresses'.sub('{' + 'customerId' + '}', CGI.escape(customer_id.to_s))
|
|
50
53
|
|
|
51
54
|
# query parameters
|
|
52
55
|
query_params = opts[:query_params] || {}
|
|
@@ -54,36 +57,46 @@ module DevDraftAI
|
|
|
54
57
|
# header parameters
|
|
55
58
|
header_params = opts[:header_params] || {}
|
|
56
59
|
# HTTP header 'Accept' (if needed)
|
|
57
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
58
61
|
# HTTP header 'Content-Type'
|
|
59
|
-
|
|
62
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
63
|
+
if !content_type.nil?
|
|
64
|
+
header_params['Content-Type'] = content_type
|
|
65
|
+
end
|
|
60
66
|
|
|
61
67
|
# form parameters
|
|
62
68
|
form_params = opts[:form_params] || {}
|
|
63
69
|
|
|
64
70
|
# http body (model)
|
|
65
|
-
post_body = opts[:
|
|
71
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_liquidation_address_dto)
|
|
66
72
|
|
|
67
|
-
|
|
73
|
+
# return_type
|
|
74
|
+
return_type = opts[:debug_return_type] || 'LiquidationAddressResponseDto'
|
|
68
75
|
|
|
69
|
-
|
|
70
|
-
|
|
76
|
+
# auth_names
|
|
77
|
+
auth_names = opts[:debug_auth_names] || []
|
|
78
|
+
|
|
79
|
+
new_options = opts.merge(
|
|
80
|
+
:operation => :"LiquidationAddressesApi.liquidation_address_controller_create_liquidation_address",
|
|
71
81
|
:header_params => header_params,
|
|
72
82
|
:query_params => query_params,
|
|
73
83
|
:form_params => form_params,
|
|
74
84
|
:body => post_body,
|
|
75
85
|
:auth_names => auth_names,
|
|
76
|
-
:return_type => return_type
|
|
86
|
+
:return_type => return_type
|
|
87
|
+
)
|
|
77
88
|
|
|
89
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
78
90
|
if @api_client.config.debugging
|
|
79
91
|
@api_client.config.logger.debug "API called: LiquidationAddressesApi#liquidation_address_controller_create_liquidation_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
80
92
|
end
|
|
81
93
|
return data, status_code, headers
|
|
82
94
|
end
|
|
95
|
+
|
|
83
96
|
# Get a specific liquidation address
|
|
84
97
|
# Retrieve a specific liquidation address by its ID for a given customer.
|
|
85
|
-
# @param customer_id Unique identifier for the customer
|
|
86
|
-
# @param liquidation_address_id Unique identifier for the liquidation address
|
|
98
|
+
# @param customer_id [String] Unique identifier for the customer
|
|
99
|
+
# @param liquidation_address_id [String] Unique identifier for the liquidation address
|
|
87
100
|
# @param [Hash] opts the optional parameters
|
|
88
101
|
# @return [LiquidationAddressResponseDto]
|
|
89
102
|
def liquidation_address_controller_get_liquidation_address(customer_id, liquidation_address_id, opts = {})
|
|
@@ -93,8 +106,8 @@ module DevDraftAI
|
|
|
93
106
|
|
|
94
107
|
# Get a specific liquidation address
|
|
95
108
|
# Retrieve a specific liquidation address by its ID for a given customer.
|
|
96
|
-
# @param customer_id Unique identifier for the customer
|
|
97
|
-
# @param liquidation_address_id Unique identifier for the liquidation address
|
|
109
|
+
# @param customer_id [String] Unique identifier for the customer
|
|
110
|
+
# @param liquidation_address_id [String] Unique identifier for the liquidation address
|
|
98
111
|
# @param [Hash] opts the optional parameters
|
|
99
112
|
# @return [Array<(LiquidationAddressResponseDto, Integer, Hash)>] LiquidationAddressResponseDto data, response status code and response headers
|
|
100
113
|
def liquidation_address_controller_get_liquidation_address_with_http_info(customer_id, liquidation_address_id, opts = {})
|
|
@@ -110,7 +123,7 @@ module DevDraftAI
|
|
|
110
123
|
fail ArgumentError, "Missing the required parameter 'liquidation_address_id' when calling LiquidationAddressesApi.liquidation_address_controller_get_liquidation_address"
|
|
111
124
|
end
|
|
112
125
|
# resource path
|
|
113
|
-
local_var_path = '/api/v0/customers/{customerId}/liquidation_addresses/{liquidationAddressId}'.sub('{' + 'customerId' + '}', customer_id.to_s).sub('{' + 'liquidationAddressId' + '}', liquidation_address_id.to_s)
|
|
126
|
+
local_var_path = '/api/v0/customers/{customerId}/liquidation_addresses/{liquidationAddressId}'.sub('{' + 'customerId' + '}', CGI.escape(customer_id.to_s)).sub('{' + 'liquidationAddressId' + '}', CGI.escape(liquidation_address_id.to_s))
|
|
114
127
|
|
|
115
128
|
# query parameters
|
|
116
129
|
query_params = opts[:query_params] || {}
|
|
@@ -118,33 +131,40 @@ module DevDraftAI
|
|
|
118
131
|
# header parameters
|
|
119
132
|
header_params = opts[:header_params] || {}
|
|
120
133
|
# HTTP header 'Accept' (if needed)
|
|
121
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
134
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
122
135
|
|
|
123
136
|
# form parameters
|
|
124
137
|
form_params = opts[:form_params] || {}
|
|
125
138
|
|
|
126
139
|
# http body (model)
|
|
127
|
-
post_body = opts[:
|
|
140
|
+
post_body = opts[:debug_body]
|
|
141
|
+
|
|
142
|
+
# return_type
|
|
143
|
+
return_type = opts[:debug_return_type] || 'LiquidationAddressResponseDto'
|
|
128
144
|
|
|
129
|
-
|
|
145
|
+
# auth_names
|
|
146
|
+
auth_names = opts[:debug_auth_names] || []
|
|
130
147
|
|
|
131
|
-
|
|
132
|
-
|
|
148
|
+
new_options = opts.merge(
|
|
149
|
+
:operation => :"LiquidationAddressesApi.liquidation_address_controller_get_liquidation_address",
|
|
133
150
|
:header_params => header_params,
|
|
134
151
|
:query_params => query_params,
|
|
135
152
|
:form_params => form_params,
|
|
136
153
|
:body => post_body,
|
|
137
154
|
:auth_names => auth_names,
|
|
138
|
-
:return_type => return_type
|
|
155
|
+
:return_type => return_type
|
|
156
|
+
)
|
|
139
157
|
|
|
158
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
140
159
|
if @api_client.config.debugging
|
|
141
160
|
@api_client.config.logger.debug "API called: LiquidationAddressesApi#liquidation_address_controller_get_liquidation_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
161
|
end
|
|
143
162
|
return data, status_code, headers
|
|
144
163
|
end
|
|
164
|
+
|
|
145
165
|
# Get all liquidation addresses for a customer
|
|
146
166
|
# Retrieve all liquidation addresses associated with a specific customer.
|
|
147
|
-
# @param customer_id Unique identifier for the customer
|
|
167
|
+
# @param customer_id [String] Unique identifier for the customer
|
|
148
168
|
# @param [Hash] opts the optional parameters
|
|
149
169
|
# @return [Array<LiquidationAddressResponseDto>]
|
|
150
170
|
def liquidation_address_controller_get_liquidation_addresses(customer_id, opts = {})
|
|
@@ -154,7 +174,7 @@ module DevDraftAI
|
|
|
154
174
|
|
|
155
175
|
# Get all liquidation addresses for a customer
|
|
156
176
|
# Retrieve all liquidation addresses associated with a specific customer.
|
|
157
|
-
# @param customer_id Unique identifier for the customer
|
|
177
|
+
# @param customer_id [String] Unique identifier for the customer
|
|
158
178
|
# @param [Hash] opts the optional parameters
|
|
159
179
|
# @return [Array<(Array<LiquidationAddressResponseDto>, Integer, Hash)>] Array<LiquidationAddressResponseDto> data, response status code and response headers
|
|
160
180
|
def liquidation_address_controller_get_liquidation_addresses_with_http_info(customer_id, opts = {})
|
|
@@ -166,7 +186,7 @@ module DevDraftAI
|
|
|
166
186
|
fail ArgumentError, "Missing the required parameter 'customer_id' when calling LiquidationAddressesApi.liquidation_address_controller_get_liquidation_addresses"
|
|
167
187
|
end
|
|
168
188
|
# resource path
|
|
169
|
-
local_var_path = '/api/v0/customers/{customerId}/liquidation_addresses'.sub('{' + 'customerId' + '}', customer_id.to_s)
|
|
189
|
+
local_var_path = '/api/v0/customers/{customerId}/liquidation_addresses'.sub('{' + 'customerId' + '}', CGI.escape(customer_id.to_s))
|
|
170
190
|
|
|
171
191
|
# query parameters
|
|
172
192
|
query_params = opts[:query_params] || {}
|
|
@@ -174,25 +194,31 @@ module DevDraftAI
|
|
|
174
194
|
# header parameters
|
|
175
195
|
header_params = opts[:header_params] || {}
|
|
176
196
|
# HTTP header 'Accept' (if needed)
|
|
177
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
197
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
178
198
|
|
|
179
199
|
# form parameters
|
|
180
200
|
form_params = opts[:form_params] || {}
|
|
181
201
|
|
|
182
202
|
# http body (model)
|
|
183
|
-
post_body = opts[:
|
|
203
|
+
post_body = opts[:debug_body]
|
|
204
|
+
|
|
205
|
+
# return_type
|
|
206
|
+
return_type = opts[:debug_return_type] || 'Array<LiquidationAddressResponseDto>'
|
|
184
207
|
|
|
185
|
-
|
|
208
|
+
# auth_names
|
|
209
|
+
auth_names = opts[:debug_auth_names] || []
|
|
186
210
|
|
|
187
|
-
|
|
188
|
-
|
|
211
|
+
new_options = opts.merge(
|
|
212
|
+
:operation => :"LiquidationAddressesApi.liquidation_address_controller_get_liquidation_addresses",
|
|
189
213
|
:header_params => header_params,
|
|
190
214
|
:query_params => query_params,
|
|
191
215
|
:form_params => form_params,
|
|
192
216
|
:body => post_body,
|
|
193
217
|
:auth_names => auth_names,
|
|
194
|
-
:return_type => return_type
|
|
218
|
+
:return_type => return_type
|
|
219
|
+
)
|
|
195
220
|
|
|
221
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
196
222
|
if @api_client.config.debugging
|
|
197
223
|
@api_client.config.logger.debug "API called: LiquidationAddressesApi#liquidation_address_controller_get_liquidation_addresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
198
224
|
end
|