devdraft 1.0.0

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.
Files changed (205) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +1246 -0
  4. data/Rakefile +8 -0
  5. data/devdraft_ai_sdk.gemspec +38 -0
  6. data/docs/APIHealthApi.md +87 -0
  7. data/docs/AggregatedBalanceResponse.md +9 -0
  8. data/docs/AllBalancesResponse.md +9 -0
  9. data/docs/AllOfAllBalancesResponseEurc.md +9 -0
  10. data/docs/AllOfAllBalancesResponseUsdc.md +9 -0
  11. data/docs/AllOfCreateBankPaymentIntentDtoDestinationCurrency.md +6 -0
  12. data/docs/AllOfCreateBankPaymentIntentDtoDestinationNetwork.md +6 -0
  13. data/docs/AllOfCreateBankPaymentIntentDtoSourceCurrency.md +6 -0
  14. data/docs/AllOfCreateBankPaymentIntentDtoSourcePaymentRail.md +6 -0
  15. data/docs/AllOfCreateCustomerDtoStatus.md +6 -0
  16. data/docs/AllOfCreateLiquidationAddressDtoDestinationCurrency.md +6 -0
  17. data/docs/AllOfCreateLiquidationAddressDtoDestinationPaymentRail.md +6 -0
  18. data/docs/AllOfCreateStablePaymentIntentDtoDestinationCurrency.md +6 -0
  19. data/docs/AllOfCreateStablePaymentIntentDtoDestinationNetwork.md +6 -0
  20. data/docs/AllOfCreateStablePaymentIntentDtoSourceCurrency.md +6 -0
  21. data/docs/AllOfCreateStablePaymentIntentDtoSourceNetwork.md +6 -0
  22. data/docs/AllOfUpdateCustomerDtoStatus.md +6 -0
  23. data/docs/AppBalancesApi.md +169 -0
  24. data/docs/BridgePaymentRail.md +6 -0
  25. data/docs/CreateBankPaymentIntentDto.md +24 -0
  26. data/docs/CreateCustomerDto.md +12 -0
  27. data/docs/CreateDirectBankTransferDto.md +14 -0
  28. data/docs/CreateDirectWalletTransferDto.md +10 -0
  29. data/docs/CreateInvoiceDto.md +22 -0
  30. data/docs/CreateLiquidationAddressDto.md +21 -0
  31. data/docs/CreatePaymentLinkDto.md +31 -0
  32. data/docs/CreateProductDto.md +18 -0
  33. data/docs/CreateStablePaymentIntentDto.md +21 -0
  34. data/docs/CreateStablecoinConversionDto.md +11 -0
  35. data/docs/CreateTaxInput.md +6 -0
  36. data/docs/CreateWebhookDto.md +11 -0
  37. data/docs/CustomerStatus.md +6 -0
  38. data/docs/CustomersApi.md +250 -0
  39. data/docs/DestinationCurrency.md +6 -0
  40. data/docs/ExchangeRateResponseDto.md +12 -0
  41. data/docs/ExchangeRatesApi.md +176 -0
  42. data/docs/FiatCurrency.md +6 -0
  43. data/docs/HealthResponseDto.md +12 -0
  44. data/docs/InvoiceProductDto.md +8 -0
  45. data/docs/InvoicesApi.md +236 -0
  46. data/docs/LiquidationAddressResponseDto.md +20 -0
  47. data/docs/LiquidationAddressesApi.md +152 -0
  48. data/docs/PaymentIntentsApi.md +127 -0
  49. data/docs/PaymentLinkProductDto.md +8 -0
  50. data/docs/PaymentLinksApi.md +238 -0
  51. data/docs/PaymentRequestDto.md +10 -0
  52. data/docs/PaymentResponseDto.md +11 -0
  53. data/docs/ProductsApi.md +404 -0
  54. data/docs/PublicHealthResponseDto.md +9 -0
  55. data/docs/RefundResponseDto.md +11 -0
  56. data/docs/StableCoinCurrency.md +6 -0
  57. data/docs/TaxesApi.md +292 -0
  58. data/docs/TestPaymentsApi.md +150 -0
  59. data/docs/TransfersApi.md +175 -0
  60. data/docs/UpdateCustomerDto.md +12 -0
  61. data/docs/UpdatePaymentLinkDto.md +6 -0
  62. data/docs/UpdatePreferenceInput.md +6 -0
  63. data/docs/UpdateProductDto.md +18 -0
  64. data/docs/UpdateTaxInput.md +6 -0
  65. data/docs/UpdateWebhookDto.md +11 -0
  66. data/docs/WalletsApi.md +58 -0
  67. data/docs/WebhookResponseDto.md +14 -0
  68. data/docs/WebhooksApi.md +307 -0
  69. data/git_push.sh +44 -0
  70. data/lib/devdraft/api/api_health_api.rb +116 -0
  71. data/lib/devdraft/api/app_balances_api.rb +170 -0
  72. data/lib/devdraft/api/customers_api.rb +258 -0
  73. data/lib/devdraft/api/exchange_rates_api.rb +184 -0
  74. data/lib/devdraft/api/invoices_api.rb +238 -0
  75. data/lib/devdraft/api/liquidation_addresses_api.rb +202 -0
  76. data/lib/devdraft/api/payment_intents_api.rb +150 -0
  77. data/lib/devdraft/api/payment_links_api.rb +240 -0
  78. data/lib/devdraft/api/products_api.rb +518 -0
  79. data/lib/devdraft/api/taxes_api.rb +290 -0
  80. data/lib/devdraft/api/test_payments_api.rb +202 -0
  81. data/lib/devdraft/api/transfers_api.rb +182 -0
  82. data/lib/devdraft/api/wallets_api.rb +66 -0
  83. data/lib/devdraft/api/webhooks_api.rb +310 -0
  84. data/lib/devdraft/api_client.rb +388 -0
  85. data/lib/devdraft/api_error.rb +57 -0
  86. data/lib/devdraft/configuration.rb +219 -0
  87. data/lib/devdraft/models/aggregated_balance_response.rb +278 -0
  88. data/lib/devdraft/models/all_balances_response.rb +242 -0
  89. data/lib/devdraft/models/all_of_all_balances_response_eurc.rb +283 -0
  90. data/lib/devdraft/models/all_of_all_balances_response_usdc.rb +283 -0
  91. data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_currency.rb +202 -0
  92. data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_network.rb +202 -0
  93. data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_currency.rb +202 -0
  94. data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_payment_rail.rb +202 -0
  95. data/lib/devdraft/models/all_of_create_customer_dto_status.rb +202 -0
  96. data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_currency.rb +202 -0
  97. data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_payment_rail.rb +202 -0
  98. data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_currency.rb +202 -0
  99. data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_network.rb +202 -0
  100. data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_currency.rb +202 -0
  101. data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_network.rb +202 -0
  102. data/lib/devdraft/models/all_of_update_customer_dto_status.rb +202 -0
  103. data/lib/devdraft/models/bridge_payment_rail.rb +43 -0
  104. data/lib/devdraft/models/create_bank_payment_intent_dto.rb +397 -0
  105. data/lib/devdraft/models/create_customer_dto.rb +308 -0
  106. data/lib/devdraft/models/create_direct_bank_transfer_dto.rb +302 -0
  107. data/lib/devdraft/models/create_direct_wallet_transfer_dto.rb +257 -0
  108. data/lib/devdraft/models/create_invoice_dto.rb +474 -0
  109. data/lib/devdraft/models/create_liquidation_address_dto.rb +408 -0
  110. data/lib/devdraft/models/create_payment_link_dto.rb +603 -0
  111. data/lib/devdraft/models/create_product_dto.rb +370 -0
  112. data/lib/devdraft/models/create_stable_payment_intent_dto.rb +362 -0
  113. data/lib/devdraft/models/create_stablecoin_conversion_dto.rb +272 -0
  114. data/lib/devdraft/models/create_tax_input.rb +197 -0
  115. data/lib/devdraft/models/create_webhook_dto.rb +271 -0
  116. data/lib/devdraft/models/customer_status.rb +29 -0
  117. data/lib/devdraft/models/destination_currency.rb +34 -0
  118. data/lib/devdraft/models/exchange_rate_response_dto.rb +282 -0
  119. data/lib/devdraft/models/fiat_currency.rb +29 -0
  120. data/lib/devdraft/models/health_response_dto.rb +333 -0
  121. data/lib/devdraft/models/invoice_product_dto.rb +227 -0
  122. data/lib/devdraft/models/liquidation_address_response_dto.rb +377 -0
  123. data/lib/devdraft/models/payment_link_product_dto.rb +229 -0
  124. data/lib/devdraft/models/payment_request_dto.rb +252 -0
  125. data/lib/devdraft/models/payment_response_dto.rb +272 -0
  126. data/lib/devdraft/models/public_health_response_dto.rb +276 -0
  127. data/lib/devdraft/models/refund_response_dto.rb +272 -0
  128. data/lib/devdraft/models/stable_coin_currency.rb +28 -0
  129. data/lib/devdraft/models/update_customer_dto.rb +293 -0
  130. data/lib/devdraft/models/update_payment_link_dto.rb +197 -0
  131. data/lib/devdraft/models/update_preference_input.rb +197 -0
  132. data/lib/devdraft/models/update_product_dto.rb +355 -0
  133. data/lib/devdraft/models/update_tax_input.rb +197 -0
  134. data/lib/devdraft/models/update_webhook_dto.rb +251 -0
  135. data/lib/devdraft/models/webhook_response_dto.rb +317 -0
  136. data/lib/devdraft/version.rb +14 -0
  137. data/lib/devdraft.rb +101 -0
  138. data/spec/api/api_health_api_spec.rb +54 -0
  139. data/spec/api/app_balances_api_spec.rb +67 -0
  140. data/spec/api/customers_api_spec.rb +87 -0
  141. data/spec/api/exchange_rates_api_spec.rb +69 -0
  142. data/spec/api/invoices_api_spec.rb +80 -0
  143. data/spec/api/liquidation_addresses_api_spec.rb +72 -0
  144. data/spec/api/payment_intents_api_spec.rb +60 -0
  145. data/spec/api/payment_links_api_spec.rb +81 -0
  146. data/spec/api/products_api_spec.rb +130 -0
  147. data/spec/api/taxes_api_spec.rb +91 -0
  148. data/spec/api/test_payments_api_spec.rb +71 -0
  149. data/spec/api/transfers_api_spec.rb +67 -0
  150. data/spec/api/wallets_api_spec.rb +44 -0
  151. data/spec/api/webhooks_api_spec.rb +96 -0
  152. data/spec/api_client_spec.rb +225 -0
  153. data/spec/base_object_spec.rb +109 -0
  154. data/spec/configuration_spec.rb +41 -0
  155. data/spec/models/aggregated_balance_response_spec.rb +56 -0
  156. data/spec/models/all_balances_response_spec.rb +52 -0
  157. data/spec/models/all_of_all_balances_response_eurc_spec.rb +56 -0
  158. data/spec/models/all_of_all_balances_response_usdc_spec.rb +56 -0
  159. data/spec/models/all_of_create_bank_payment_intent_dto_destination_currency_spec.rb +34 -0
  160. data/spec/models/all_of_create_bank_payment_intent_dto_destination_network_spec.rb +34 -0
  161. data/spec/models/all_of_create_bank_payment_intent_dto_source_currency_spec.rb +34 -0
  162. data/spec/models/all_of_create_bank_payment_intent_dto_source_payment_rail_spec.rb +34 -0
  163. data/spec/models/all_of_create_customer_dto_status_spec.rb +34 -0
  164. data/spec/models/all_of_create_liquidation_address_dto_destination_currency_spec.rb +34 -0
  165. data/spec/models/all_of_create_liquidation_address_dto_destination_payment_rail_spec.rb +34 -0
  166. data/spec/models/all_of_create_stable_payment_intent_dto_destination_currency_spec.rb +34 -0
  167. data/spec/models/all_of_create_stable_payment_intent_dto_destination_network_spec.rb +34 -0
  168. data/spec/models/all_of_create_stable_payment_intent_dto_source_currency_spec.rb +34 -0
  169. data/spec/models/all_of_create_stable_payment_intent_dto_source_network_spec.rb +34 -0
  170. data/spec/models/all_of_update_customer_dto_status_spec.rb +34 -0
  171. data/spec/models/bridge_payment_rail_spec.rb +34 -0
  172. data/spec/models/create_bank_payment_intent_dto_spec.rb +142 -0
  173. data/spec/models/create_customer_dto_spec.rb +74 -0
  174. data/spec/models/create_direct_bank_transfer_dto_spec.rb +82 -0
  175. data/spec/models/create_direct_wallet_transfer_dto_spec.rb +58 -0
  176. data/spec/models/create_invoice_dto_spec.rb +146 -0
  177. data/spec/models/create_liquidation_address_dto_spec.rb +132 -0
  178. data/spec/models/create_payment_link_dto_spec.rb +200 -0
  179. data/spec/models/create_product_dto_spec.rb +110 -0
  180. data/spec/models/create_stable_payment_intent_dto_spec.rb +124 -0
  181. data/spec/models/create_stablecoin_conversion_dto_spec.rb +64 -0
  182. data/spec/models/create_tax_input_spec.rb +34 -0
  183. data/spec/models/create_webhook_dto_spec.rb +64 -0
  184. data/spec/models/customer_status_spec.rb +34 -0
  185. data/spec/models/destination_currency_spec.rb +34 -0
  186. data/spec/models/exchange_rate_response_dto_spec.rb +70 -0
  187. data/spec/models/fiat_currency_spec.rb +34 -0
  188. data/spec/models/health_response_dto_spec.rb +78 -0
  189. data/spec/models/invoice_product_dto_spec.rb +46 -0
  190. data/spec/models/liquidation_address_response_dto_spec.rb +118 -0
  191. data/spec/models/payment_link_product_dto_spec.rb +46 -0
  192. data/spec/models/payment_request_dto_spec.rb +58 -0
  193. data/spec/models/payment_response_dto_spec.rb +64 -0
  194. data/spec/models/public_health_response_dto_spec.rb +56 -0
  195. data/spec/models/refund_response_dto_spec.rb +64 -0
  196. data/spec/models/stable_coin_currency_spec.rb +34 -0
  197. data/spec/models/update_customer_dto_spec.rb +74 -0
  198. data/spec/models/update_payment_link_dto_spec.rb +34 -0
  199. data/spec/models/update_preference_input_spec.rb +34 -0
  200. data/spec/models/update_product_dto_spec.rb +110 -0
  201. data/spec/models/update_tax_input_spec.rb +34 -0
  202. data/spec/models/update_webhook_dto_spec.rb +64 -0
  203. data/spec/models/webhook_response_dto_spec.rb +82 -0
  204. data/spec/spec_helper.rb +110 -0
  205. metadata +375 -0
@@ -0,0 +1,290 @@
1
+ =begin
2
+ #Devdraft AI Payment & Business Management API
3
+
4
+ # A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.65
10
+ =end
11
+
12
+ module DevDraftAI
13
+ class TaxesApi
14
+ attr_accessor :api_client
15
+
16
+ def initialize(api_client = ApiClient.default)
17
+ @api_client = api_client
18
+ end
19
+ # Create a new tax
20
+ # @param body
21
+ # @param [Hash] opts the optional parameters
22
+ # @return [nil]
23
+ def tax_controller_create(body, opts = {})
24
+ tax_controller_create_with_http_info(body, opts)
25
+ nil
26
+ end
27
+
28
+ # Create a new tax
29
+ # @param body
30
+ # @param [Hash] opts the optional parameters
31
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
32
+ def tax_controller_create_with_http_info(body, opts = {})
33
+ if @api_client.config.debugging
34
+ @api_client.config.logger.debug 'Calling API: TaxesApi.tax_controller_create ...'
35
+ end
36
+ # verify the required parameter 'body' is set
37
+ if @api_client.config.client_side_validation && body.nil?
38
+ fail ArgumentError, "Missing the required parameter 'body' when calling TaxesApi.tax_controller_create"
39
+ end
40
+ # resource path
41
+ local_var_path = '/api/v0/taxes'
42
+
43
+ # query parameters
44
+ query_params = opts[:query_params] || {}
45
+
46
+ # header parameters
47
+ header_params = opts[:header_params] || {}
48
+ # HTTP header 'Content-Type'
49
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
50
+
51
+ # form parameters
52
+ form_params = opts[:form_params] || {}
53
+
54
+ # http body (model)
55
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
56
+
57
+ return_type = opts[:return_type]
58
+
59
+ auth_names = opts[:auth_names] || ['x-client-key', 'x-client-secret']
60
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
61
+ :header_params => header_params,
62
+ :query_params => query_params,
63
+ :form_params => form_params,
64
+ :body => post_body,
65
+ :auth_names => auth_names,
66
+ :return_type => return_type)
67
+
68
+ if @api_client.config.debugging
69
+ @api_client.config.logger.debug "API called: TaxesApi#tax_controller_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ end
71
+ return data, status_code, headers
72
+ end
73
+ # Get all taxes
74
+ # @param [Hash] opts the optional parameters
75
+ # @option opts [String] :skip Number of records to skip
76
+ # @option opts [String] :take Number of records to take
77
+ # @return [nil]
78
+ def tax_controller_find_all(opts = {})
79
+ tax_controller_find_all_with_http_info(opts)
80
+ nil
81
+ end
82
+
83
+ # Get all taxes
84
+ # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :skip Number of records to skip
86
+ # @option opts [String] :take Number of records to take
87
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
88
+ def tax_controller_find_all_with_http_info(opts = {})
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug 'Calling API: TaxesApi.tax_controller_find_all ...'
91
+ end
92
+ # resource path
93
+ local_var_path = '/api/v0/taxes'
94
+
95
+ # query parameters
96
+ query_params = opts[:query_params] || {}
97
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
98
+ query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
99
+
100
+ # header parameters
101
+ header_params = opts[:header_params] || {}
102
+
103
+ # form parameters
104
+ form_params = opts[:form_params] || {}
105
+
106
+ # http body (model)
107
+ post_body = opts[:body]
108
+
109
+ return_type = opts[:return_type]
110
+
111
+ auth_names = opts[:auth_names] || ['x-client-key', 'x-client-secret']
112
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
113
+ :header_params => header_params,
114
+ :query_params => query_params,
115
+ :form_params => form_params,
116
+ :body => post_body,
117
+ :auth_names => auth_names,
118
+ :return_type => return_type)
119
+
120
+ if @api_client.config.debugging
121
+ @api_client.config.logger.debug "API called: TaxesApi#tax_controller_find_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
122
+ end
123
+ return data, status_code, headers
124
+ end
125
+ # Get a tax by ID
126
+ # @param id Tax ID
127
+ # @param [Hash] opts the optional parameters
128
+ # @return [nil]
129
+ def tax_controller_find_one(id, opts = {})
130
+ tax_controller_find_one_with_http_info(id, opts)
131
+ nil
132
+ end
133
+
134
+ # Get a tax by ID
135
+ # @param id Tax ID
136
+ # @param [Hash] opts the optional parameters
137
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
138
+ def tax_controller_find_one_with_http_info(id, opts = {})
139
+ if @api_client.config.debugging
140
+ @api_client.config.logger.debug 'Calling API: TaxesApi.tax_controller_find_one ...'
141
+ end
142
+ # verify the required parameter 'id' is set
143
+ if @api_client.config.client_side_validation && id.nil?
144
+ fail ArgumentError, "Missing the required parameter 'id' when calling TaxesApi.tax_controller_find_one"
145
+ end
146
+ # resource path
147
+ local_var_path = '/api/v0/taxes/{id}'.sub('{' + 'id' + '}', id.to_s)
148
+
149
+ # query parameters
150
+ query_params = opts[:query_params] || {}
151
+
152
+ # header parameters
153
+ header_params = opts[:header_params] || {}
154
+
155
+ # form parameters
156
+ form_params = opts[:form_params] || {}
157
+
158
+ # http body (model)
159
+ post_body = opts[:body]
160
+
161
+ return_type = opts[:return_type]
162
+
163
+ auth_names = opts[:auth_names] || ['x-client-key', 'x-client-secret']
164
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
165
+ :header_params => header_params,
166
+ :query_params => query_params,
167
+ :form_params => form_params,
168
+ :body => post_body,
169
+ :auth_names => auth_names,
170
+ :return_type => return_type)
171
+
172
+ if @api_client.config.debugging
173
+ @api_client.config.logger.debug "API called: TaxesApi#tax_controller_find_one\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
174
+ end
175
+ return data, status_code, headers
176
+ end
177
+ # Delete a tax
178
+ # @param id Tax ID
179
+ # @param [Hash] opts the optional parameters
180
+ # @return [nil]
181
+ def tax_controller_remove(id, opts = {})
182
+ tax_controller_remove_with_http_info(id, opts)
183
+ nil
184
+ end
185
+
186
+ # Delete a tax
187
+ # @param id Tax ID
188
+ # @param [Hash] opts the optional parameters
189
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
190
+ def tax_controller_remove_with_http_info(id, opts = {})
191
+ if @api_client.config.debugging
192
+ @api_client.config.logger.debug 'Calling API: TaxesApi.tax_controller_remove ...'
193
+ end
194
+ # verify the required parameter 'id' is set
195
+ if @api_client.config.client_side_validation && id.nil?
196
+ fail ArgumentError, "Missing the required parameter 'id' when calling TaxesApi.tax_controller_remove"
197
+ end
198
+ # resource path
199
+ local_var_path = '/api/v0/taxes/{id}'.sub('{' + 'id' + '}', id.to_s)
200
+
201
+ # query parameters
202
+ query_params = opts[:query_params] || {}
203
+
204
+ # header parameters
205
+ header_params = opts[:header_params] || {}
206
+
207
+ # form parameters
208
+ form_params = opts[:form_params] || {}
209
+
210
+ # http body (model)
211
+ post_body = opts[:body]
212
+
213
+ return_type = opts[:return_type]
214
+
215
+ auth_names = opts[:auth_names] || ['x-client-key', 'x-client-secret']
216
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
217
+ :header_params => header_params,
218
+ :query_params => query_params,
219
+ :form_params => form_params,
220
+ :body => post_body,
221
+ :auth_names => auth_names,
222
+ :return_type => return_type)
223
+
224
+ if @api_client.config.debugging
225
+ @api_client.config.logger.debug "API called: TaxesApi#tax_controller_remove\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
226
+ end
227
+ return data, status_code, headers
228
+ end
229
+ # Update a tax
230
+ # @param body
231
+ # @param id Tax ID
232
+ # @param [Hash] opts the optional parameters
233
+ # @return [nil]
234
+ def tax_controller_update(body, id, opts = {})
235
+ tax_controller_update_with_http_info(body, id, opts)
236
+ nil
237
+ end
238
+
239
+ # Update a tax
240
+ # @param body
241
+ # @param id Tax ID
242
+ # @param [Hash] opts the optional parameters
243
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
244
+ def tax_controller_update_with_http_info(body, id, opts = {})
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug 'Calling API: TaxesApi.tax_controller_update ...'
247
+ end
248
+ # verify the required parameter 'body' is set
249
+ if @api_client.config.client_side_validation && body.nil?
250
+ fail ArgumentError, "Missing the required parameter 'body' when calling TaxesApi.tax_controller_update"
251
+ end
252
+ # verify the required parameter 'id' is set
253
+ if @api_client.config.client_side_validation && id.nil?
254
+ fail ArgumentError, "Missing the required parameter 'id' when calling TaxesApi.tax_controller_update"
255
+ end
256
+ # resource path
257
+ local_var_path = '/api/v0/taxes/{id}'.sub('{' + 'id' + '}', id.to_s)
258
+
259
+ # query parameters
260
+ query_params = opts[:query_params] || {}
261
+
262
+ # header parameters
263
+ header_params = opts[:header_params] || {}
264
+ # HTTP header 'Content-Type'
265
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
266
+
267
+ # form parameters
268
+ form_params = opts[:form_params] || {}
269
+
270
+ # http body (model)
271
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
272
+
273
+ return_type = opts[:return_type]
274
+
275
+ auth_names = opts[:auth_names] || ['x-client-key', 'x-client-secret']
276
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
277
+ :header_params => header_params,
278
+ :query_params => query_params,
279
+ :form_params => form_params,
280
+ :body => post_body,
281
+ :auth_names => auth_names,
282
+ :return_type => return_type)
283
+
284
+ if @api_client.config.debugging
285
+ @api_client.config.logger.debug "API called: TaxesApi#tax_controller_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
286
+ end
287
+ return data, status_code, headers
288
+ end
289
+ end
290
+ end
@@ -0,0 +1,202 @@
1
+ =begin
2
+ #Devdraft AI Payment & Business Management API
3
+
4
+ # A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.65
10
+ =end
11
+
12
+ module DevDraftAI
13
+ class TestPaymentsApi
14
+ attr_accessor :api_client
15
+
16
+ def initialize(api_client = ApiClient.default)
17
+ @api_client = api_client
18
+ end
19
+ # Process a test payment
20
+ # Creates a new payment. Requires an idempotency key to prevent duplicate payments on retry. ## Idempotency Key Best Practices 1. **Generate unique keys**: Use UUIDs or similar unique identifiers, prefixed with a descriptive operation name 2. **Store keys client-side**: Save the key with the original request so you can retry with the same key 3. **Key format**: Between 6-64 alphanumeric characters 4. **Expiration**: Keys expire after 24 hours by default 5. **Use case**: Perfect for ensuring payment operations are never processed twice, even during network failures ## Example Request (curl) ```bash curl -X POST \\ https://api.example.com/rest-api/v0/test-payment \\ -H 'Content-Type: application/json' \\ -H 'Client-Key: your-api-key' \\ -H 'Client-Secret: your-api-secret' \\ -H 'Idempotency-Key: payment_123456_unique_key' \\ -d '{ \"amount\": 100.00, \"currency\": \"USD\", \"description\": \"Test payment for order #12345\", \"customerId\": \"cus_12345\" }' ``` ## Example Response (First Request) ```json { \"id\": \"pay_abc123xyz456\", \"amount\": 100.00, \"currency\": \"USD\", \"status\": \"succeeded\", \"timestamp\": \"2023-07-01T12:00:00.000Z\" } ``` ## Example Response (Duplicate Request) The exact same response will be returned for any duplicate request with the same idempotency key, without creating a new payment. ## Retry Scenario Example Network failure during payment submission: 1. Client creates payment request with idempotency key: \"payment_123456_unique_key\" 2. Request begins processing, but network connection fails before response received 3. Client retries the exact same request with the same idempotency key 4. Server detects duplicate idempotency key and returns the result of the first request 5. No duplicate payment is created If you retry with same key but different parameters (e.g., different amount), you'll receive a 409 Conflict error.
21
+ # @param body
22
+ # @param idempotency_key Unique key to ensure the request is idempotent. If a request with the same key is sent multiple times, only the first will be processed, and subsequent requests will return the same response.
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [PaymentResponseDto]
25
+ def test_payment_controller_create_payment_v0(body, idempotency_key, opts = {})
26
+ data, _status_code, _headers = test_payment_controller_create_payment_v0_with_http_info(body, idempotency_key, opts)
27
+ data
28
+ end
29
+
30
+ # Process a test payment
31
+ # Creates a new payment. Requires an idempotency key to prevent duplicate payments on retry. ## Idempotency Key Best Practices 1. **Generate unique keys**: Use UUIDs or similar unique identifiers, prefixed with a descriptive operation name 2. **Store keys client-side**: Save the key with the original request so you can retry with the same key 3. **Key format**: Between 6-64 alphanumeric characters 4. **Expiration**: Keys expire after 24 hours by default 5. **Use case**: Perfect for ensuring payment operations are never processed twice, even during network failures ## Example Request (curl) &#x60;&#x60;&#x60;bash curl -X POST \\ https://api.example.com/rest-api/v0/test-payment \\ -H &#x27;Content-Type: application/json&#x27; \\ -H &#x27;Client-Key: your-api-key&#x27; \\ -H &#x27;Client-Secret: your-api-secret&#x27; \\ -H &#x27;Idempotency-Key: payment_123456_unique_key&#x27; \\ -d &#x27;{ \&quot;amount\&quot;: 100.00, \&quot;currency\&quot;: \&quot;USD\&quot;, \&quot;description\&quot;: \&quot;Test payment for order #12345\&quot;, \&quot;customerId\&quot;: \&quot;cus_12345\&quot; }&#x27; &#x60;&#x60;&#x60; ## Example Response (First Request) &#x60;&#x60;&#x60;json { \&quot;id\&quot;: \&quot;pay_abc123xyz456\&quot;, \&quot;amount\&quot;: 100.00, \&quot;currency\&quot;: \&quot;USD\&quot;, \&quot;status\&quot;: \&quot;succeeded\&quot;, \&quot;timestamp\&quot;: \&quot;2023-07-01T12:00:00.000Z\&quot; } &#x60;&#x60;&#x60; ## Example Response (Duplicate Request) The exact same response will be returned for any duplicate request with the same idempotency key, without creating a new payment. ## Retry Scenario Example Network failure during payment submission: 1. Client creates payment request with idempotency key: \&quot;payment_123456_unique_key\&quot; 2. Request begins processing, but network connection fails before response received 3. Client retries the exact same request with the same idempotency key 4. Server detects duplicate idempotency key and returns the result of the first request 5. No duplicate payment is created If you retry with same key but different parameters (e.g., different amount), you&#x27;ll receive a 409 Conflict error.
32
+ # @param body
33
+ # @param idempotency_key Unique key to ensure the request is idempotent. If a request with the same key is sent multiple times, only the first will be processed, and subsequent requests will return the same response.
34
+ # @param [Hash] opts the optional parameters
35
+ # @return [Array<(PaymentResponseDto, Integer, Hash)>] PaymentResponseDto data, response status code and response headers
36
+ def test_payment_controller_create_payment_v0_with_http_info(body, idempotency_key, opts = {})
37
+ if @api_client.config.debugging
38
+ @api_client.config.logger.debug 'Calling API: TestPaymentsApi.test_payment_controller_create_payment_v0 ...'
39
+ 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 TestPaymentsApi.test_payment_controller_create_payment_v0"
43
+ end
44
+ # verify the required parameter 'idempotency_key' is set
45
+ if @api_client.config.client_side_validation && idempotency_key.nil?
46
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling TestPaymentsApi.test_payment_controller_create_payment_v0"
47
+ end
48
+ # resource path
49
+ local_var_path = '/api/v0/test-payment'
50
+
51
+ # query parameters
52
+ query_params = opts[:query_params] || {}
53
+
54
+ # header parameters
55
+ header_params = opts[:header_params] || {}
56
+ # HTTP header 'Accept' (if needed)
57
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
58
+ # HTTP header 'Content-Type'
59
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
60
+ header_params[:'idempotency-key'] = idempotency_key
61
+
62
+ # form parameters
63
+ form_params = opts[:form_params] || {}
64
+
65
+ # http body (model)
66
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
67
+
68
+ return_type = opts[:return_type] || 'PaymentResponseDto'
69
+
70
+ auth_names = opts[:auth_names] || []
71
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names,
77
+ :return_type => return_type)
78
+
79
+ if @api_client.config.debugging
80
+ @api_client.config.logger.debug "API called: TestPaymentsApi#test_payment_controller_create_payment_v0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
+ end
82
+ return data, status_code, headers
83
+ end
84
+ # Get payment details by ID
85
+ # @param id Payment ID
86
+ # @param [Hash] opts the optional parameters
87
+ # @return [PaymentResponseDto]
88
+ def test_payment_controller_get_payment_v0(id, opts = {})
89
+ data, _status_code, _headers = test_payment_controller_get_payment_v0_with_http_info(id, opts)
90
+ data
91
+ end
92
+
93
+ # Get payment details by ID
94
+ # @param id Payment ID
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [Array<(PaymentResponseDto, Integer, Hash)>] PaymentResponseDto data, response status code and response headers
97
+ def test_payment_controller_get_payment_v0_with_http_info(id, opts = {})
98
+ if @api_client.config.debugging
99
+ @api_client.config.logger.debug 'Calling API: TestPaymentsApi.test_payment_controller_get_payment_v0 ...'
100
+ end
101
+ # verify the required parameter 'id' is set
102
+ if @api_client.config.client_side_validation && id.nil?
103
+ fail ArgumentError, "Missing the required parameter 'id' when calling TestPaymentsApi.test_payment_controller_get_payment_v0"
104
+ end
105
+ # resource path
106
+ local_var_path = '/api/v0/test-payment/{id}'.sub('{' + 'id' + '}', id.to_s)
107
+
108
+ # query parameters
109
+ query_params = opts[:query_params] || {}
110
+
111
+ # header parameters
112
+ header_params = opts[:header_params] || {}
113
+ # HTTP header 'Accept' (if needed)
114
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
115
+
116
+ # form parameters
117
+ form_params = opts[:form_params] || {}
118
+
119
+ # http body (model)
120
+ post_body = opts[:body]
121
+
122
+ return_type = opts[:return_type] || 'PaymentResponseDto'
123
+
124
+ auth_names = opts[:auth_names] || []
125
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
126
+ :header_params => header_params,
127
+ :query_params => query_params,
128
+ :form_params => form_params,
129
+ :body => post_body,
130
+ :auth_names => auth_names,
131
+ :return_type => return_type)
132
+
133
+ if @api_client.config.debugging
134
+ @api_client.config.logger.debug "API called: TestPaymentsApi#test_payment_controller_get_payment_v0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
+ end
136
+ return data, status_code, headers
137
+ end
138
+ # Refund a payment
139
+ # Refunds an existing payment. Requires an idempotency key to prevent duplicate refunds on retry. ## Idempotency Key Benefits for Refunds Refunds are critical financial operations where duplicates can cause serious issues. Using idempotency keys ensures: 1. **Prevent duplicate refunds**: Even if a request times out or fails, retrying with the same key won't issue multiple refunds 2. **Safe retries**: Network failures or timeouts won't risk creating multiple refunds 3. **Consistent response**: Always get the same response for the same operation ## Example Request (curl) ```bash curl -X POST \\ https://api.example.com/rest-api/v0/test-payment/pay_abc123xyz456/refund \\ -H 'Content-Type: application/json' \\ -H 'Client-Key: your-api-key' \\ -H 'Client-Secret: your-api-secret' \\ -H 'Idempotency-Key: refund_123456_unique_key' ``` ## Example Response (First Request) ```json { \"id\": \"ref_xyz789\", \"paymentId\": \"pay_abc123xyz456\", \"amount\": 100.00, \"status\": \"succeeded\", \"timestamp\": \"2023-07-01T14:30:00.000Z\" } ``` ## Example Response (Duplicate Request) The exact same response will be returned for any duplicate request with the same idempotency key, without creating a new refund. ## Idempotency Key Guidelines - Use a unique key for each distinct refund operation - Store keys client-side to ensure you can retry with the same key if needed - Keys expire after 24 hours by default
140
+ # @param id Payment ID to refund
141
+ # @param idempotency_key Unique key to ensure the refund request is idempotent. If a request with the same key is sent multiple times, only the first will be processed, and subsequent requests will return the same response.
142
+ # @param [Hash] opts the optional parameters
143
+ # @return [RefundResponseDto]
144
+ def test_payment_controller_refund_payment_v0(id, idempotency_key, opts = {})
145
+ data, _status_code, _headers = test_payment_controller_refund_payment_v0_with_http_info(id, idempotency_key, opts)
146
+ data
147
+ end
148
+
149
+ # Refund a payment
150
+ # Refunds an existing payment. Requires an idempotency key to prevent duplicate refunds on retry. ## Idempotency Key Benefits for Refunds Refunds are critical financial operations where duplicates can cause serious issues. Using idempotency keys ensures: 1. **Prevent duplicate refunds**: Even if a request times out or fails, retrying with the same key won&#x27;t issue multiple refunds 2. **Safe retries**: Network failures or timeouts won&#x27;t risk creating multiple refunds 3. **Consistent response**: Always get the same response for the same operation ## Example Request (curl) &#x60;&#x60;&#x60;bash curl -X POST \\ https://api.example.com/rest-api/v0/test-payment/pay_abc123xyz456/refund \\ -H &#x27;Content-Type: application/json&#x27; \\ -H &#x27;Client-Key: your-api-key&#x27; \\ -H &#x27;Client-Secret: your-api-secret&#x27; \\ -H &#x27;Idempotency-Key: refund_123456_unique_key&#x27; &#x60;&#x60;&#x60; ## Example Response (First Request) &#x60;&#x60;&#x60;json { \&quot;id\&quot;: \&quot;ref_xyz789\&quot;, \&quot;paymentId\&quot;: \&quot;pay_abc123xyz456\&quot;, \&quot;amount\&quot;: 100.00, \&quot;status\&quot;: \&quot;succeeded\&quot;, \&quot;timestamp\&quot;: \&quot;2023-07-01T14:30:00.000Z\&quot; } &#x60;&#x60;&#x60; ## Example Response (Duplicate Request) The exact same response will be returned for any duplicate request with the same idempotency key, without creating a new refund. ## Idempotency Key Guidelines - Use a unique key for each distinct refund operation - Store keys client-side to ensure you can retry with the same key if needed - Keys expire after 24 hours by default
151
+ # @param id Payment ID to refund
152
+ # @param idempotency_key Unique key to ensure the refund request is idempotent. If a request with the same key is sent multiple times, only the first will be processed, and subsequent requests will return the same response.
153
+ # @param [Hash] opts the optional parameters
154
+ # @return [Array<(RefundResponseDto, Integer, Hash)>] RefundResponseDto data, response status code and response headers
155
+ def test_payment_controller_refund_payment_v0_with_http_info(id, idempotency_key, opts = {})
156
+ if @api_client.config.debugging
157
+ @api_client.config.logger.debug 'Calling API: TestPaymentsApi.test_payment_controller_refund_payment_v0 ...'
158
+ end
159
+ # verify the required parameter 'id' is set
160
+ if @api_client.config.client_side_validation && id.nil?
161
+ fail ArgumentError, "Missing the required parameter 'id' when calling TestPaymentsApi.test_payment_controller_refund_payment_v0"
162
+ end
163
+ # verify the required parameter 'idempotency_key' is set
164
+ if @api_client.config.client_side_validation && idempotency_key.nil?
165
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling TestPaymentsApi.test_payment_controller_refund_payment_v0"
166
+ end
167
+ # resource path
168
+ local_var_path = '/api/v0/test-payment/{id}/refund'.sub('{' + 'id' + '}', id.to_s)
169
+
170
+ # query parameters
171
+ query_params = opts[:query_params] || {}
172
+
173
+ # header parameters
174
+ header_params = opts[:header_params] || {}
175
+ # HTTP header 'Accept' (if needed)
176
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
177
+ header_params[:'idempotency-key'] = idempotency_key
178
+
179
+ # form parameters
180
+ form_params = opts[:form_params] || {}
181
+
182
+ # http body (model)
183
+ post_body = opts[:body]
184
+
185
+ return_type = opts[:return_type] || 'RefundResponseDto'
186
+
187
+ auth_names = opts[:auth_names] || []
188
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
189
+ :header_params => header_params,
190
+ :query_params => query_params,
191
+ :form_params => form_params,
192
+ :body => post_body,
193
+ :auth_names => auth_names,
194
+ :return_type => return_type)
195
+
196
+ if @api_client.config.debugging
197
+ @api_client.config.logger.debug "API called: TestPaymentsApi#test_payment_controller_refund_payment_v0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
198
+ end
199
+ return data, status_code, headers
200
+ end
201
+ end
202
+ end
@@ -0,0 +1,182 @@
1
+ =begin
2
+ #Devdraft AI Payment & Business Management API
3
+
4
+ # A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.65
10
+ =end
11
+
12
+ module DevDraftAI
13
+ class TransfersApi
14
+ attr_accessor :api_client
15
+
16
+ def initialize(api_client = ApiClient.default)
17
+ @api_client = api_client
18
+ end
19
+ # Create a direct bank transfer
20
+ # @param body
21
+ # @param [Hash] opts the optional parameters
22
+ # @return [nil]
23
+ def transfer_controller_create_direct_bank_transfer(body, opts = {})
24
+ transfer_controller_create_direct_bank_transfer_with_http_info(body, opts)
25
+ nil
26
+ end
27
+
28
+ # Create a direct bank transfer
29
+ # @param body
30
+ # @param [Hash] opts the optional parameters
31
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
32
+ def transfer_controller_create_direct_bank_transfer_with_http_info(body, opts = {})
33
+ if @api_client.config.debugging
34
+ @api_client.config.logger.debug 'Calling API: TransfersApi.transfer_controller_create_direct_bank_transfer ...'
35
+ end
36
+ # verify the required parameter 'body' is set
37
+ if @api_client.config.client_side_validation && body.nil?
38
+ fail ArgumentError, "Missing the required parameter 'body' when calling TransfersApi.transfer_controller_create_direct_bank_transfer"
39
+ end
40
+ # resource path
41
+ local_var_path = '/api/v0/transfers/direct-bank'
42
+
43
+ # query parameters
44
+ query_params = opts[:query_params] || {}
45
+
46
+ # header parameters
47
+ header_params = opts[:header_params] || {}
48
+ # HTTP header 'Content-Type'
49
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
50
+
51
+ # form parameters
52
+ form_params = opts[:form_params] || {}
53
+
54
+ # http body (model)
55
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
56
+
57
+ return_type = opts[:return_type]
58
+
59
+ auth_names = opts[:auth_names] || ['x-client-key', 'x-client-secret']
60
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
61
+ :header_params => header_params,
62
+ :query_params => query_params,
63
+ :form_params => form_params,
64
+ :body => post_body,
65
+ :auth_names => auth_names,
66
+ :return_type => return_type)
67
+
68
+ if @api_client.config.debugging
69
+ @api_client.config.logger.debug "API called: TransfersApi#transfer_controller_create_direct_bank_transfer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ end
71
+ return data, status_code, headers
72
+ end
73
+ # Create a direct wallet transfer
74
+ # @param body
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [nil]
77
+ def transfer_controller_create_direct_wallet_transfer(body, opts = {})
78
+ transfer_controller_create_direct_wallet_transfer_with_http_info(body, opts)
79
+ nil
80
+ end
81
+
82
+ # Create a direct wallet transfer
83
+ # @param body
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
86
+ def transfer_controller_create_direct_wallet_transfer_with_http_info(body, opts = {})
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug 'Calling API: TransfersApi.transfer_controller_create_direct_wallet_transfer ...'
89
+ end
90
+ # verify the required parameter 'body' is set
91
+ if @api_client.config.client_side_validation && body.nil?
92
+ fail ArgumentError, "Missing the required parameter 'body' when calling TransfersApi.transfer_controller_create_direct_wallet_transfer"
93
+ end
94
+ # resource path
95
+ local_var_path = '/api/v0/transfers/direct-wallet'
96
+
97
+ # query parameters
98
+ query_params = opts[:query_params] || {}
99
+
100
+ # header parameters
101
+ header_params = opts[:header_params] || {}
102
+ # HTTP header 'Content-Type'
103
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
104
+
105
+ # form parameters
106
+ form_params = opts[:form_params] || {}
107
+
108
+ # http body (model)
109
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
110
+
111
+ return_type = opts[:return_type]
112
+
113
+ auth_names = opts[:auth_names] || ['x-client-key', 'x-client-secret']
114
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
115
+ :header_params => header_params,
116
+ :query_params => query_params,
117
+ :form_params => form_params,
118
+ :body => post_body,
119
+ :auth_names => auth_names,
120
+ :return_type => return_type)
121
+
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug "API called: TransfersApi#transfer_controller_create_direct_wallet_transfer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
124
+ end
125
+ return data, status_code, headers
126
+ end
127
+ # Create a stablecoin conversion
128
+ # @param body
129
+ # @param [Hash] opts the optional parameters
130
+ # @return [nil]
131
+ def transfer_controller_create_stablecoin_conversion(body, opts = {})
132
+ transfer_controller_create_stablecoin_conversion_with_http_info(body, opts)
133
+ nil
134
+ end
135
+
136
+ # Create a stablecoin conversion
137
+ # @param body
138
+ # @param [Hash] opts the optional parameters
139
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
140
+ def transfer_controller_create_stablecoin_conversion_with_http_info(body, opts = {})
141
+ if @api_client.config.debugging
142
+ @api_client.config.logger.debug 'Calling API: TransfersApi.transfer_controller_create_stablecoin_conversion ...'
143
+ end
144
+ # verify the required parameter 'body' is set
145
+ if @api_client.config.client_side_validation && body.nil?
146
+ fail ArgumentError, "Missing the required parameter 'body' when calling TransfersApi.transfer_controller_create_stablecoin_conversion"
147
+ end
148
+ # resource path
149
+ local_var_path = '/api/v0/transfers/stablecoin-conversion'
150
+
151
+ # query parameters
152
+ query_params = opts[:query_params] || {}
153
+
154
+ # header parameters
155
+ header_params = opts[:header_params] || {}
156
+ # HTTP header 'Content-Type'
157
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
158
+
159
+ # form parameters
160
+ form_params = opts[:form_params] || {}
161
+
162
+ # http body (model)
163
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
164
+
165
+ return_type = opts[:return_type]
166
+
167
+ auth_names = opts[:auth_names] || ['x-client-key', 'x-client-secret']
168
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
169
+ :header_params => header_params,
170
+ :query_params => query_params,
171
+ :form_params => form_params,
172
+ :body => post_body,
173
+ :auth_names => auth_names,
174
+ :return_type => return_type)
175
+
176
+ if @api_client.config.debugging
177
+ @api_client.config.logger.debug "API called: TransfersApi#transfer_controller_create_stablecoin_conversion\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
178
+ end
179
+ return data, status_code, headers
180
+ end
181
+ end
182
+ end