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,238 @@
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 InvoicesApi
14
+ attr_accessor :api_client
15
+
16
+ def initialize(api_client = ApiClient.default)
17
+ @api_client = api_client
18
+ end
19
+ # Create a new invoice
20
+ # @param body
21
+ # @param [Hash] opts the optional parameters
22
+ # @return [nil]
23
+ def invoice_controller_create(body, opts = {})
24
+ invoice_controller_create_with_http_info(body, opts)
25
+ nil
26
+ end
27
+
28
+ # Create a new invoice
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 invoice_controller_create_with_http_info(body, opts = {})
33
+ if @api_client.config.debugging
34
+ @api_client.config.logger.debug 'Calling API: InvoicesApi.invoice_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 InvoicesApi.invoice_controller_create"
39
+ end
40
+ # resource path
41
+ local_var_path = '/api/v0/invoices'
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: InvoicesApi#invoice_controller_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ end
71
+ return data, status_code, headers
72
+ end
73
+ # Get all invoices
74
+ # @param [Hash] opts the optional parameters
75
+ # @option opts [BigDecimal] :skip Number of records to skip
76
+ # @option opts [BigDecimal] :take Number of records to take
77
+ # @return [nil]
78
+ def invoice_controller_find_all(opts = {})
79
+ invoice_controller_find_all_with_http_info(opts)
80
+ nil
81
+ end
82
+
83
+ # Get all invoices
84
+ # @param [Hash] opts the optional parameters
85
+ # @option opts [BigDecimal] :skip Number of records to skip
86
+ # @option opts [BigDecimal] :take Number of records to take
87
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
88
+ def invoice_controller_find_all_with_http_info(opts = {})
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug 'Calling API: InvoicesApi.invoice_controller_find_all ...'
91
+ end
92
+ # resource path
93
+ local_var_path = '/api/v0/invoices'
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: InvoicesApi#invoice_controller_find_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
122
+ end
123
+ return data, status_code, headers
124
+ end
125
+ # Get an invoice by ID
126
+ # @param id Invoice ID
127
+ # @param [Hash] opts the optional parameters
128
+ # @return [nil]
129
+ def invoice_controller_find_one(id, opts = {})
130
+ invoice_controller_find_one_with_http_info(id, opts)
131
+ nil
132
+ end
133
+
134
+ # Get an invoice by ID
135
+ # @param id Invoice ID
136
+ # @param [Hash] opts the optional parameters
137
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
138
+ def invoice_controller_find_one_with_http_info(id, opts = {})
139
+ if @api_client.config.debugging
140
+ @api_client.config.logger.debug 'Calling API: InvoicesApi.invoice_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 InvoicesApi.invoice_controller_find_one"
145
+ end
146
+ # resource path
147
+ local_var_path = '/api/v0/invoices/{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: InvoicesApi#invoice_controller_find_one\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
174
+ end
175
+ return data, status_code, headers
176
+ end
177
+ # Update an invoice
178
+ # @param body
179
+ # @param id Invoice ID
180
+ # @param [Hash] opts the optional parameters
181
+ # @return [nil]
182
+ def invoice_controller_update(body, id, opts = {})
183
+ invoice_controller_update_with_http_info(body, id, opts)
184
+ nil
185
+ end
186
+
187
+ # Update an invoice
188
+ # @param body
189
+ # @param id Invoice ID
190
+ # @param [Hash] opts the optional parameters
191
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
192
+ def invoice_controller_update_with_http_info(body, id, opts = {})
193
+ if @api_client.config.debugging
194
+ @api_client.config.logger.debug 'Calling API: InvoicesApi.invoice_controller_update ...'
195
+ 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
+ # verify the required parameter 'id' is set
201
+ if @api_client.config.client_side_validation && id.nil?
202
+ fail ArgumentError, "Missing the required parameter 'id' when calling InvoicesApi.invoice_controller_update"
203
+ end
204
+ # resource path
205
+ local_var_path = '/api/v0/invoices/{id}'.sub('{' + 'id' + '}', id.to_s)
206
+
207
+ # query parameters
208
+ query_params = opts[:query_params] || {}
209
+
210
+ # header parameters
211
+ header_params = opts[:header_params] || {}
212
+ # HTTP header 'Content-Type'
213
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
214
+
215
+ # form parameters
216
+ form_params = opts[:form_params] || {}
217
+
218
+ # http body (model)
219
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
220
+
221
+ return_type = opts[:return_type]
222
+
223
+ auth_names = opts[:auth_names] || ['x-client-key', 'x-client-secret']
224
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
225
+ :header_params => header_params,
226
+ :query_params => query_params,
227
+ :form_params => form_params,
228
+ :body => post_body,
229
+ :auth_names => auth_names,
230
+ :return_type => return_type)
231
+
232
+ if @api_client.config.debugging
233
+ @api_client.config.logger.debug "API called: InvoicesApi#invoice_controller_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
234
+ end
235
+ return data, status_code, headers
236
+ end
237
+ end
238
+ 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 LiquidationAddressesApi
14
+ attr_accessor :api_client
15
+
16
+ def initialize(api_client = ApiClient.default)
17
+ @api_client = api_client
18
+ end
19
+ # Create a new liquidation address for a customer
20
+ # 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 body
22
+ # @param customer_id Unique identifier for the customer
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [LiquidationAddressResponseDto]
25
+ def liquidation_address_controller_create_liquidation_address(body, customer_id, opts = {})
26
+ data, _status_code, _headers = liquidation_address_controller_create_liquidation_address_with_http_info(body, customer_id, opts)
27
+ data
28
+ end
29
+
30
+ # 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&#x27;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
32
+ # @param body
33
+ # @param customer_id Unique identifier for the customer
34
+ # @param [Hash] opts the optional parameters
35
+ # @return [Array<(LiquidationAddressResponseDto, Integer, Hash)>] LiquidationAddressResponseDto data, response status code and response headers
36
+ def liquidation_address_controller_create_liquidation_address_with_http_info(body, customer_id, opts = {})
37
+ if @api_client.config.debugging
38
+ @api_client.config.logger.debug 'Calling API: LiquidationAddressesApi.liquidation_address_controller_create_liquidation_address ...'
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 LiquidationAddressesApi.liquidation_address_controller_create_liquidation_address"
43
+ end
44
+ # verify the required parameter 'customer_id' is set
45
+ if @api_client.config.client_side_validation && customer_id.nil?
46
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling LiquidationAddressesApi.liquidation_address_controller_create_liquidation_address"
47
+ end
48
+ # resource path
49
+ local_var_path = '/api/v0/customers/{customerId}/liquidation_addresses'.sub('{' + 'customerId' + '}', customer_id.to_s)
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
+
61
+ # form parameters
62
+ form_params = opts[:form_params] || {}
63
+
64
+ # http body (model)
65
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
66
+
67
+ return_type = opts[:return_type] || 'LiquidationAddressResponseDto'
68
+
69
+ auth_names = opts[:auth_names] || []
70
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type)
77
+
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: LiquidationAddressesApi#liquidation_address_controller_create_liquidation_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+ # Get a specific liquidation address
84
+ # 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
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [LiquidationAddressResponseDto]
89
+ def liquidation_address_controller_get_liquidation_address(customer_id, liquidation_address_id, opts = {})
90
+ data, _status_code, _headers = liquidation_address_controller_get_liquidation_address_with_http_info(customer_id, liquidation_address_id, opts)
91
+ data
92
+ end
93
+
94
+ # Get a specific liquidation address
95
+ # 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
98
+ # @param [Hash] opts the optional parameters
99
+ # @return [Array<(LiquidationAddressResponseDto, Integer, Hash)>] LiquidationAddressResponseDto data, response status code and response headers
100
+ def liquidation_address_controller_get_liquidation_address_with_http_info(customer_id, liquidation_address_id, opts = {})
101
+ if @api_client.config.debugging
102
+ @api_client.config.logger.debug 'Calling API: LiquidationAddressesApi.liquidation_address_controller_get_liquidation_address ...'
103
+ end
104
+ # verify the required parameter 'customer_id' is set
105
+ if @api_client.config.client_side_validation && customer_id.nil?
106
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling LiquidationAddressesApi.liquidation_address_controller_get_liquidation_address"
107
+ end
108
+ # verify the required parameter 'liquidation_address_id' is set
109
+ if @api_client.config.client_side_validation && liquidation_address_id.nil?
110
+ fail ArgumentError, "Missing the required parameter 'liquidation_address_id' when calling LiquidationAddressesApi.liquidation_address_controller_get_liquidation_address"
111
+ end
112
+ # 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)
114
+
115
+ # query parameters
116
+ query_params = opts[:query_params] || {}
117
+
118
+ # header parameters
119
+ header_params = opts[:header_params] || {}
120
+ # HTTP header 'Accept' (if needed)
121
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
122
+
123
+ # form parameters
124
+ form_params = opts[:form_params] || {}
125
+
126
+ # http body (model)
127
+ post_body = opts[:body]
128
+
129
+ return_type = opts[:return_type] || 'LiquidationAddressResponseDto'
130
+
131
+ auth_names = opts[:auth_names] || []
132
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
133
+ :header_params => header_params,
134
+ :query_params => query_params,
135
+ :form_params => form_params,
136
+ :body => post_body,
137
+ :auth_names => auth_names,
138
+ :return_type => return_type)
139
+
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug "API called: LiquidationAddressesApi#liquidation_address_controller_get_liquidation_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+ # Get all liquidation addresses for a customer
146
+ # Retrieve all liquidation addresses associated with a specific customer.
147
+ # @param customer_id Unique identifier for the customer
148
+ # @param [Hash] opts the optional parameters
149
+ # @return [Array<LiquidationAddressResponseDto>]
150
+ def liquidation_address_controller_get_liquidation_addresses(customer_id, opts = {})
151
+ data, _status_code, _headers = liquidation_address_controller_get_liquidation_addresses_with_http_info(customer_id, opts)
152
+ data
153
+ end
154
+
155
+ # Get all liquidation addresses for a customer
156
+ # Retrieve all liquidation addresses associated with a specific customer.
157
+ # @param customer_id Unique identifier for the customer
158
+ # @param [Hash] opts the optional parameters
159
+ # @return [Array<(Array<LiquidationAddressResponseDto>, Integer, Hash)>] Array<LiquidationAddressResponseDto> data, response status code and response headers
160
+ def liquidation_address_controller_get_liquidation_addresses_with_http_info(customer_id, opts = {})
161
+ if @api_client.config.debugging
162
+ @api_client.config.logger.debug 'Calling API: LiquidationAddressesApi.liquidation_address_controller_get_liquidation_addresses ...'
163
+ end
164
+ # verify the required parameter 'customer_id' is set
165
+ if @api_client.config.client_side_validation && customer_id.nil?
166
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling LiquidationAddressesApi.liquidation_address_controller_get_liquidation_addresses"
167
+ end
168
+ # resource path
169
+ local_var_path = '/api/v0/customers/{customerId}/liquidation_addresses'.sub('{' + 'customerId' + '}', customer_id.to_s)
170
+
171
+ # query parameters
172
+ query_params = opts[:query_params] || {}
173
+
174
+ # header parameters
175
+ header_params = opts[:header_params] || {}
176
+ # HTTP header 'Accept' (if needed)
177
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
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] || 'Array<LiquidationAddressResponseDto>'
186
+
187
+ auth_names = opts[:auth_names] || []
188
+ data, status_code, headers = @api_client.call_api(:GET, 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: LiquidationAddressesApi#liquidation_address_controller_get_liquidation_addresses\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,150 @@
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 PaymentIntentsApi
14
+ attr_accessor :api_client
15
+
16
+ def initialize(api_client = ApiClient.default)
17
+ @api_client = api_client
18
+ end
19
+ # Create a bank payment intent
20
+ # Creates a new bank payment intent for fiat-to-stablecoin transfers. This endpoint allows you to create payment intents for bank transfers (ACH, Wire, SEPA) that convert to stablecoins. Perfect for onboarding users from traditional banking to crypto. ## Supported Payment Rails - **ACH_PUSH**: US bank transfers (same-day or standard) - **WIRE**: International wire transfers - **SEPA**: European bank transfers ## Use Cases - USD bank account to USDC conversion - EUR bank account to EURC conversion - MXN bank account to stablecoin conversion - Flexible amount payment intents for variable pricing ## Supported Source Currencies - **USD**: US Dollar - **EUR**: Euro - **MXN**: Mexican Peso ## Example: USD Bank to USDC ```json { \"sourcePaymentRail\": \"ach_push\", \"sourceCurrency\": \"usd\", \"destinationCurrency\": \"usdc\", \"destinationNetwork\": \"ethereum\", \"destinationAddress\": \"0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8e1\", \"amount\": \"1000.00\", \"customer_first_name\": \"John\", \"customer_last_name\": \"Doe\", \"customer_email\": \"john.doe@example.com\", \"ach_reference\": \"INV12345\" } ``` ## Reference Fields Use appropriate reference fields based on the payment rail: - `ach_reference`: For ACH transfers (max 10 chars, alphanumeric + spaces) - `wire_message`: For wire transfers (max 256 chars) - `sepa_reference`: For SEPA transfers (6-140 chars, specific character set) ## Idempotency Include an `idempotency-key` header with a unique UUID v4 to prevent duplicate payments. Subsequent requests with the same key will return the original response.
21
+ # @param body Bank payment intent creation data
22
+ # @param idempotency_key Unique UUID v4 for idempotent requests. Prevents duplicate payments.
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [nil]
25
+ def payment_intent_controller_create_bank_payment_intent(body, idempotency_key, opts = {})
26
+ payment_intent_controller_create_bank_payment_intent_with_http_info(body, idempotency_key, opts)
27
+ nil
28
+ end
29
+
30
+ # Create a bank payment intent
31
+ # Creates a new bank payment intent for fiat-to-stablecoin transfers. This endpoint allows you to create payment intents for bank transfers (ACH, Wire, SEPA) that convert to stablecoins. Perfect for onboarding users from traditional banking to crypto. ## Supported Payment Rails - **ACH_PUSH**: US bank transfers (same-day or standard) - **WIRE**: International wire transfers - **SEPA**: European bank transfers ## Use Cases - USD bank account to USDC conversion - EUR bank account to EURC conversion - MXN bank account to stablecoin conversion - Flexible amount payment intents for variable pricing ## Supported Source Currencies - **USD**: US Dollar - **EUR**: Euro - **MXN**: Mexican Peso ## Example: USD Bank to USDC &#x60;&#x60;&#x60;json { \&quot;sourcePaymentRail\&quot;: \&quot;ach_push\&quot;, \&quot;sourceCurrency\&quot;: \&quot;usd\&quot;, \&quot;destinationCurrency\&quot;: \&quot;usdc\&quot;, \&quot;destinationNetwork\&quot;: \&quot;ethereum\&quot;, \&quot;destinationAddress\&quot;: \&quot;0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8e1\&quot;, \&quot;amount\&quot;: \&quot;1000.00\&quot;, \&quot;customer_first_name\&quot;: \&quot;John\&quot;, \&quot;customer_last_name\&quot;: \&quot;Doe\&quot;, \&quot;customer_email\&quot;: \&quot;john.doe@example.com\&quot;, \&quot;ach_reference\&quot;: \&quot;INV12345\&quot; } &#x60;&#x60;&#x60; ## Reference Fields Use appropriate reference fields based on the payment rail: - &#x60;ach_reference&#x60;: For ACH transfers (max 10 chars, alphanumeric + spaces) - &#x60;wire_message&#x60;: For wire transfers (max 256 chars) - &#x60;sepa_reference&#x60;: For SEPA transfers (6-140 chars, specific character set) ## Idempotency Include an &#x60;idempotency-key&#x60; header with a unique UUID v4 to prevent duplicate payments. Subsequent requests with the same key will return the original response.
32
+ # @param body Bank payment intent creation data
33
+ # @param idempotency_key Unique UUID v4 for idempotent requests. Prevents duplicate payments.
34
+ # @param [Hash] opts the optional parameters
35
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
36
+ def payment_intent_controller_create_bank_payment_intent_with_http_info(body, idempotency_key, opts = {})
37
+ if @api_client.config.debugging
38
+ @api_client.config.logger.debug 'Calling API: PaymentIntentsApi.payment_intent_controller_create_bank_payment_intent ...'
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 PaymentIntentsApi.payment_intent_controller_create_bank_payment_intent"
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 PaymentIntentsApi.payment_intent_controller_create_bank_payment_intent"
47
+ end
48
+ # resource path
49
+ local_var_path = '/api/v0/payment-intents/bank'
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]
69
+
70
+ auth_names = opts[:auth_names] || ['x-client-key', 'x-client-secret']
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: PaymentIntentsApi#payment_intent_controller_create_bank_payment_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
+ end
82
+ return data, status_code, headers
83
+ end
84
+ # Create a stable payment intent
85
+ # Creates a new stable payment intent for stablecoin-to-stablecoin transfers. This endpoint allows you to create payment intents for transfers between different stablecoins and networks. Perfect for cross-chain stablecoin swaps and conversions. ## Use Cases - USDC to EURC conversions - Cross-chain stablecoin transfers (e.g., Ethereum USDC to Polygon USDC) - Flexible amount payment intents for dynamic pricing ## Example: USDC to EURC Conversion ```json { \"sourceCurrency\": \"usdc\", \"sourceNetwork\": \"ethereum\", \"destinationCurrency\": \"eurc\", \"destinationNetwork\": \"polygon\", \"destinationAddress\": \"0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8e1\", \"amount\": \"100.00\", \"customer_first_name\": \"John\", \"customer_last_name\": \"Doe\", \"customer_email\": \"john.doe@example.com\" } ``` ## Flexible Amount Payments Omit the `amount` field to create a flexible payment intent where users can specify the amount during payment. ## Idempotency Include an `idempotency-key` header with a unique UUID v4 to prevent duplicate payments. Subsequent requests with the same key will return the original response.
86
+ # @param body Stable payment intent creation data
87
+ # @param idempotency_key Unique UUID v4 for idempotent requests. Prevents duplicate payments.
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [nil]
90
+ def payment_intent_controller_create_stable_payment_intent(body, idempotency_key, opts = {})
91
+ payment_intent_controller_create_stable_payment_intent_with_http_info(body, idempotency_key, opts)
92
+ nil
93
+ end
94
+
95
+ # Create a stable payment intent
96
+ # Creates a new stable payment intent for stablecoin-to-stablecoin transfers. This endpoint allows you to create payment intents for transfers between different stablecoins and networks. Perfect for cross-chain stablecoin swaps and conversions. ## Use Cases - USDC to EURC conversions - Cross-chain stablecoin transfers (e.g., Ethereum USDC to Polygon USDC) - Flexible amount payment intents for dynamic pricing ## Example: USDC to EURC Conversion &#x60;&#x60;&#x60;json { \&quot;sourceCurrency\&quot;: \&quot;usdc\&quot;, \&quot;sourceNetwork\&quot;: \&quot;ethereum\&quot;, \&quot;destinationCurrency\&quot;: \&quot;eurc\&quot;, \&quot;destinationNetwork\&quot;: \&quot;polygon\&quot;, \&quot;destinationAddress\&quot;: \&quot;0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8e1\&quot;, \&quot;amount\&quot;: \&quot;100.00\&quot;, \&quot;customer_first_name\&quot;: \&quot;John\&quot;, \&quot;customer_last_name\&quot;: \&quot;Doe\&quot;, \&quot;customer_email\&quot;: \&quot;john.doe@example.com\&quot; } &#x60;&#x60;&#x60; ## Flexible Amount Payments Omit the &#x60;amount&#x60; field to create a flexible payment intent where users can specify the amount during payment. ## Idempotency Include an &#x60;idempotency-key&#x60; header with a unique UUID v4 to prevent duplicate payments. Subsequent requests with the same key will return the original response.
97
+ # @param body Stable payment intent creation data
98
+ # @param idempotency_key Unique UUID v4 for idempotent requests. Prevents duplicate payments.
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
101
+ def payment_intent_controller_create_stable_payment_intent_with_http_info(body, idempotency_key, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: PaymentIntentsApi.payment_intent_controller_create_stable_payment_intent ...'
104
+ end
105
+ # verify the required parameter 'body' is set
106
+ if @api_client.config.client_side_validation && body.nil?
107
+ fail ArgumentError, "Missing the required parameter 'body' when calling PaymentIntentsApi.payment_intent_controller_create_stable_payment_intent"
108
+ end
109
+ # verify the required parameter 'idempotency_key' is set
110
+ if @api_client.config.client_side_validation && idempotency_key.nil?
111
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PaymentIntentsApi.payment_intent_controller_create_stable_payment_intent"
112
+ end
113
+ # resource path
114
+ local_var_path = '/api/v0/payment-intents/stablecoin'
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
123
+ # HTTP header 'Content-Type'
124
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
125
+ header_params[:'idempotency-key'] = idempotency_key
126
+
127
+ # form parameters
128
+ form_params = opts[:form_params] || {}
129
+
130
+ # http body (model)
131
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
132
+
133
+ return_type = opts[:return_type]
134
+
135
+ auth_names = opts[:auth_names] || ['x-client-key', 'x-client-secret']
136
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
137
+ :header_params => header_params,
138
+ :query_params => query_params,
139
+ :form_params => form_params,
140
+ :body => post_body,
141
+ :auth_names => auth_names,
142
+ :return_type => return_type)
143
+
144
+ if @api_client.config.debugging
145
+ @api_client.config.logger.debug "API called: PaymentIntentsApi#payment_intent_controller_create_stable_payment_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
+ end
147
+ return data, status_code, headers
148
+ end
149
+ end
150
+ end