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
data/docs/TaxesApi.md ADDED
@@ -0,0 +1,292 @@
1
+ # DevDraftAI::TaxesApi
2
+
3
+ All URIs are relative to *https://api.devdraft.ai*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**tax_controller_create**](TaxesApi.md#tax_controller_create) | **POST** /api/v0/taxes | Create a new tax
8
+ [**tax_controller_find_all**](TaxesApi.md#tax_controller_find_all) | **GET** /api/v0/taxes | Get all taxes
9
+ [**tax_controller_find_one**](TaxesApi.md#tax_controller_find_one) | **GET** /api/v0/taxes/{id} | Get a tax by ID
10
+ [**tax_controller_remove**](TaxesApi.md#tax_controller_remove) | **DELETE** /api/v0/taxes/{id} | Delete a tax
11
+ [**tax_controller_update**](TaxesApi.md#tax_controller_update) | **PUT** /api/v0/taxes/{id} | Update a tax
12
+
13
+ # **tax_controller_create**
14
+ > tax_controller_create(body)
15
+
16
+ Create a new tax
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'devdraft_ai_sdk'
22
+ # setup authorization
23
+ DevDraftAI.configure do |config|
24
+ # Configure API key authorization: x-client-key
25
+ config.api_key['x-client-key'] = 'YOUR API KEY'
26
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
27
+ #config.api_key_prefix['x-client-key'] = 'Bearer'
28
+
29
+ # Configure API key authorization: x-client-secret
30
+ config.api_key['x-client-secret'] = 'YOUR API KEY'
31
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32
+ #config.api_key_prefix['x-client-secret'] = 'Bearer'
33
+ end
34
+
35
+ api_instance = DevDraftAI::TaxesApi.new
36
+ body = DevDraftAI::CreateTaxInput.new # CreateTaxInput |
37
+
38
+
39
+ begin
40
+ #Create a new tax
41
+ api_instance.tax_controller_create(body)
42
+ rescue DevDraftAI::ApiError => e
43
+ puts "Exception when calling TaxesApi->tax_controller_create: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **body** | [**CreateTaxInput**](CreateTaxInput.md)| |
52
+
53
+ ### Return type
54
+
55
+ nil (empty response body)
56
+
57
+ ### Authorization
58
+
59
+ [x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json
64
+ - **Accept**: Not defined
65
+
66
+
67
+
68
+ # **tax_controller_find_all**
69
+ > tax_controller_find_all(opts)
70
+
71
+ Get all taxes
72
+
73
+ ### Example
74
+ ```ruby
75
+ # load the gem
76
+ require 'devdraft_ai_sdk'
77
+ # setup authorization
78
+ DevDraftAI.configure do |config|
79
+ # Configure API key authorization: x-client-key
80
+ config.api_key['x-client-key'] = 'YOUR API KEY'
81
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
82
+ #config.api_key_prefix['x-client-key'] = 'Bearer'
83
+
84
+ # Configure API key authorization: x-client-secret
85
+ config.api_key['x-client-secret'] = 'YOUR API KEY'
86
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
87
+ #config.api_key_prefix['x-client-secret'] = 'Bearer'
88
+ end
89
+
90
+ api_instance = DevDraftAI::TaxesApi.new
91
+ opts = {
92
+ skip: 'skip_example', # String | Number of records to skip
93
+ take: 'take_example' # String | Number of records to take
94
+ }
95
+
96
+ begin
97
+ #Get all taxes
98
+ api_instance.tax_controller_find_all(opts)
99
+ rescue DevDraftAI::ApiError => e
100
+ puts "Exception when calling TaxesApi->tax_controller_find_all: #{e}"
101
+ end
102
+ ```
103
+
104
+ ### Parameters
105
+
106
+ Name | Type | Description | Notes
107
+ ------------- | ------------- | ------------- | -------------
108
+ **skip** | **String**| Number of records to skip | [optional]
109
+ **take** | **String**| Number of records to take | [optional]
110
+
111
+ ### Return type
112
+
113
+ nil (empty response body)
114
+
115
+ ### Authorization
116
+
117
+ [x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: Not defined
122
+ - **Accept**: Not defined
123
+
124
+
125
+
126
+ # **tax_controller_find_one**
127
+ > tax_controller_find_one(id)
128
+
129
+ Get a tax by ID
130
+
131
+ ### Example
132
+ ```ruby
133
+ # load the gem
134
+ require 'devdraft_ai_sdk'
135
+ # setup authorization
136
+ DevDraftAI.configure do |config|
137
+ # Configure API key authorization: x-client-key
138
+ config.api_key['x-client-key'] = 'YOUR API KEY'
139
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
140
+ #config.api_key_prefix['x-client-key'] = 'Bearer'
141
+
142
+ # Configure API key authorization: x-client-secret
143
+ config.api_key['x-client-secret'] = 'YOUR API KEY'
144
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
145
+ #config.api_key_prefix['x-client-secret'] = 'Bearer'
146
+ end
147
+
148
+ api_instance = DevDraftAI::TaxesApi.new
149
+ id = 'id_example' # String | Tax ID
150
+
151
+
152
+ begin
153
+ #Get a tax by ID
154
+ api_instance.tax_controller_find_one(id)
155
+ rescue DevDraftAI::ApiError => e
156
+ puts "Exception when calling TaxesApi->tax_controller_find_one: #{e}"
157
+ end
158
+ ```
159
+
160
+ ### Parameters
161
+
162
+ Name | Type | Description | Notes
163
+ ------------- | ------------- | ------------- | -------------
164
+ **id** | **String**| Tax ID |
165
+
166
+ ### Return type
167
+
168
+ nil (empty response body)
169
+
170
+ ### Authorization
171
+
172
+ [x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
173
+
174
+ ### HTTP request headers
175
+
176
+ - **Content-Type**: Not defined
177
+ - **Accept**: Not defined
178
+
179
+
180
+
181
+ # **tax_controller_remove**
182
+ > tax_controller_remove(id)
183
+
184
+ Delete a tax
185
+
186
+ ### Example
187
+ ```ruby
188
+ # load the gem
189
+ require 'devdraft_ai_sdk'
190
+ # setup authorization
191
+ DevDraftAI.configure do |config|
192
+ # Configure API key authorization: x-client-key
193
+ config.api_key['x-client-key'] = 'YOUR API KEY'
194
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
195
+ #config.api_key_prefix['x-client-key'] = 'Bearer'
196
+
197
+ # Configure API key authorization: x-client-secret
198
+ config.api_key['x-client-secret'] = 'YOUR API KEY'
199
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
200
+ #config.api_key_prefix['x-client-secret'] = 'Bearer'
201
+ end
202
+
203
+ api_instance = DevDraftAI::TaxesApi.new
204
+ id = 'id_example' # String | Tax ID
205
+
206
+
207
+ begin
208
+ #Delete a tax
209
+ api_instance.tax_controller_remove(id)
210
+ rescue DevDraftAI::ApiError => e
211
+ puts "Exception when calling TaxesApi->tax_controller_remove: #{e}"
212
+ end
213
+ ```
214
+
215
+ ### Parameters
216
+
217
+ Name | Type | Description | Notes
218
+ ------------- | ------------- | ------------- | -------------
219
+ **id** | **String**| Tax ID |
220
+
221
+ ### Return type
222
+
223
+ nil (empty response body)
224
+
225
+ ### Authorization
226
+
227
+ [x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
228
+
229
+ ### HTTP request headers
230
+
231
+ - **Content-Type**: Not defined
232
+ - **Accept**: Not defined
233
+
234
+
235
+
236
+ # **tax_controller_update**
237
+ > tax_controller_update(bodyid)
238
+
239
+ Update a tax
240
+
241
+ ### Example
242
+ ```ruby
243
+ # load the gem
244
+ require 'devdraft_ai_sdk'
245
+ # setup authorization
246
+ DevDraftAI.configure do |config|
247
+ # Configure API key authorization: x-client-key
248
+ config.api_key['x-client-key'] = 'YOUR API KEY'
249
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
250
+ #config.api_key_prefix['x-client-key'] = 'Bearer'
251
+
252
+ # Configure API key authorization: x-client-secret
253
+ config.api_key['x-client-secret'] = 'YOUR API KEY'
254
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
255
+ #config.api_key_prefix['x-client-secret'] = 'Bearer'
256
+ end
257
+
258
+ api_instance = DevDraftAI::TaxesApi.new
259
+ body = DevDraftAI::UpdateTaxInput.new # UpdateTaxInput |
260
+ id = 'id_example' # String | Tax ID
261
+
262
+
263
+ begin
264
+ #Update a tax
265
+ api_instance.tax_controller_update(bodyid)
266
+ rescue DevDraftAI::ApiError => e
267
+ puts "Exception when calling TaxesApi->tax_controller_update: #{e}"
268
+ end
269
+ ```
270
+
271
+ ### Parameters
272
+
273
+ Name | Type | Description | Notes
274
+ ------------- | ------------- | ------------- | -------------
275
+ **body** | [**UpdateTaxInput**](UpdateTaxInput.md)| |
276
+ **id** | **String**| Tax ID |
277
+
278
+ ### Return type
279
+
280
+ nil (empty response body)
281
+
282
+ ### Authorization
283
+
284
+ [x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
285
+
286
+ ### HTTP request headers
287
+
288
+ - **Content-Type**: application/json
289
+ - **Accept**: Not defined
290
+
291
+
292
+
@@ -0,0 +1,150 @@
1
+ # DevDraftAI::TestPaymentsApi
2
+
3
+ All URIs are relative to *https://api.devdraft.ai*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**test_payment_controller_create_payment_v0**](TestPaymentsApi.md#test_payment_controller_create_payment_v0) | **POST** /api/v0/test-payment | Process a test payment
8
+ [**test_payment_controller_get_payment_v0**](TestPaymentsApi.md#test_payment_controller_get_payment_v0) | **GET** /api/v0/test-payment/{id} | Get payment details by ID
9
+ [**test_payment_controller_refund_payment_v0**](TestPaymentsApi.md#test_payment_controller_refund_payment_v0) | **POST** /api/v0/test-payment/{id}/refund | Refund a payment
10
+
11
+ # **test_payment_controller_create_payment_v0**
12
+ > PaymentResponseDto test_payment_controller_create_payment_v0(bodyidempotency_key)
13
+
14
+ Process a test payment
15
+
16
+ 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.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'devdraft_ai_sdk'
22
+
23
+ api_instance = DevDraftAI::TestPaymentsApi.new
24
+ body = DevDraftAI::PaymentRequestDto.new # PaymentRequestDto |
25
+ idempotency_key = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | 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.
26
+
27
+
28
+ begin
29
+ #Process a test payment
30
+ result = api_instance.test_payment_controller_create_payment_v0(bodyidempotency_key)
31
+ p result
32
+ rescue DevDraftAI::ApiError => e
33
+ puts "Exception when calling TestPaymentsApi->test_payment_controller_create_payment_v0: #{e}"
34
+ end
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ Name | Type | Description | Notes
40
+ ------------- | ------------- | ------------- | -------------
41
+ **body** | [**PaymentRequestDto**](PaymentRequestDto.md)| |
42
+ **idempotency_key** | [**String**](.md)| 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. |
43
+
44
+ ### Return type
45
+
46
+ [**PaymentResponseDto**](PaymentResponseDto.md)
47
+
48
+ ### Authorization
49
+
50
+ No authorization required
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: application/json
55
+ - **Accept**: application/json
56
+
57
+
58
+
59
+ # **test_payment_controller_get_payment_v0**
60
+ > PaymentResponseDto test_payment_controller_get_payment_v0(id)
61
+
62
+ Get payment details by ID
63
+
64
+ ### Example
65
+ ```ruby
66
+ # load the gem
67
+ require 'devdraft_ai_sdk'
68
+
69
+ api_instance = DevDraftAI::TestPaymentsApi.new
70
+ id = 'id_example' # String | Payment ID
71
+
72
+
73
+ begin
74
+ #Get payment details by ID
75
+ result = api_instance.test_payment_controller_get_payment_v0(id)
76
+ p result
77
+ rescue DevDraftAI::ApiError => e
78
+ puts "Exception when calling TestPaymentsApi->test_payment_controller_get_payment_v0: #{e}"
79
+ end
80
+ ```
81
+
82
+ ### Parameters
83
+
84
+ Name | Type | Description | Notes
85
+ ------------- | ------------- | ------------- | -------------
86
+ **id** | **String**| Payment ID |
87
+
88
+ ### Return type
89
+
90
+ [**PaymentResponseDto**](PaymentResponseDto.md)
91
+
92
+ ### Authorization
93
+
94
+ No authorization required
95
+
96
+ ### HTTP request headers
97
+
98
+ - **Content-Type**: Not defined
99
+ - **Accept**: application/json
100
+
101
+
102
+
103
+ # **test_payment_controller_refund_payment_v0**
104
+ > RefundResponseDto test_payment_controller_refund_payment_v0(id, idempotency_key)
105
+
106
+ Refund a payment
107
+
108
+ 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
109
+
110
+ ### Example
111
+ ```ruby
112
+ # load the gem
113
+ require 'devdraft_ai_sdk'
114
+
115
+ api_instance = DevDraftAI::TestPaymentsApi.new
116
+ id = 'id_example' # String | Payment ID to refund
117
+ idempotency_key = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | 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.
118
+
119
+
120
+ begin
121
+ #Refund a payment
122
+ result = api_instance.test_payment_controller_refund_payment_v0(id, idempotency_key)
123
+ p result
124
+ rescue DevDraftAI::ApiError => e
125
+ puts "Exception when calling TestPaymentsApi->test_payment_controller_refund_payment_v0: #{e}"
126
+ end
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+ Name | Type | Description | Notes
132
+ ------------- | ------------- | ------------- | -------------
133
+ **id** | **String**| Payment ID to refund |
134
+ **idempotency_key** | [**String**](.md)| 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. |
135
+
136
+ ### Return type
137
+
138
+ [**RefundResponseDto**](RefundResponseDto.md)
139
+
140
+ ### Authorization
141
+
142
+ No authorization required
143
+
144
+ ### HTTP request headers
145
+
146
+ - **Content-Type**: Not defined
147
+ - **Accept**: application/json
148
+
149
+
150
+
@@ -0,0 +1,175 @@
1
+ # DevDraftAI::TransfersApi
2
+
3
+ All URIs are relative to *https://api.devdraft.ai*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**transfer_controller_create_direct_bank_transfer**](TransfersApi.md#transfer_controller_create_direct_bank_transfer) | **POST** /api/v0/transfers/direct-bank | Create a direct bank transfer
8
+ [**transfer_controller_create_direct_wallet_transfer**](TransfersApi.md#transfer_controller_create_direct_wallet_transfer) | **POST** /api/v0/transfers/direct-wallet | Create a direct wallet transfer
9
+ [**transfer_controller_create_stablecoin_conversion**](TransfersApi.md#transfer_controller_create_stablecoin_conversion) | **POST** /api/v0/transfers/stablecoin-conversion | Create a stablecoin conversion
10
+
11
+ # **transfer_controller_create_direct_bank_transfer**
12
+ > transfer_controller_create_direct_bank_transfer(body)
13
+
14
+ Create a direct bank transfer
15
+
16
+ ### Example
17
+ ```ruby
18
+ # load the gem
19
+ require 'devdraft_ai_sdk'
20
+ # setup authorization
21
+ DevDraftAI.configure do |config|
22
+ # Configure API key authorization: x-client-key
23
+ config.api_key['x-client-key'] = 'YOUR API KEY'
24
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
25
+ #config.api_key_prefix['x-client-key'] = 'Bearer'
26
+
27
+ # Configure API key authorization: x-client-secret
28
+ config.api_key['x-client-secret'] = 'YOUR API KEY'
29
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
+ #config.api_key_prefix['x-client-secret'] = 'Bearer'
31
+ end
32
+
33
+ api_instance = DevDraftAI::TransfersApi.new
34
+ body = DevDraftAI::CreateDirectBankTransferDto.new # CreateDirectBankTransferDto |
35
+
36
+
37
+ begin
38
+ #Create a direct bank transfer
39
+ api_instance.transfer_controller_create_direct_bank_transfer(body)
40
+ rescue DevDraftAI::ApiError => e
41
+ puts "Exception when calling TransfersApi->transfer_controller_create_direct_bank_transfer: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+ Name | Type | Description | Notes
48
+ ------------- | ------------- | ------------- | -------------
49
+ **body** | [**CreateDirectBankTransferDto**](CreateDirectBankTransferDto.md)| |
50
+
51
+ ### Return type
52
+
53
+ nil (empty response body)
54
+
55
+ ### Authorization
56
+
57
+ [x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: application/json
62
+ - **Accept**: Not defined
63
+
64
+
65
+
66
+ # **transfer_controller_create_direct_wallet_transfer**
67
+ > transfer_controller_create_direct_wallet_transfer(body)
68
+
69
+ Create a direct wallet transfer
70
+
71
+ ### Example
72
+ ```ruby
73
+ # load the gem
74
+ require 'devdraft_ai_sdk'
75
+ # setup authorization
76
+ DevDraftAI.configure do |config|
77
+ # Configure API key authorization: x-client-key
78
+ config.api_key['x-client-key'] = 'YOUR API KEY'
79
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
80
+ #config.api_key_prefix['x-client-key'] = 'Bearer'
81
+
82
+ # Configure API key authorization: x-client-secret
83
+ config.api_key['x-client-secret'] = 'YOUR API KEY'
84
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
85
+ #config.api_key_prefix['x-client-secret'] = 'Bearer'
86
+ end
87
+
88
+ api_instance = DevDraftAI::TransfersApi.new
89
+ body = DevDraftAI::CreateDirectWalletTransferDto.new # CreateDirectWalletTransferDto |
90
+
91
+
92
+ begin
93
+ #Create a direct wallet transfer
94
+ api_instance.transfer_controller_create_direct_wallet_transfer(body)
95
+ rescue DevDraftAI::ApiError => e
96
+ puts "Exception when calling TransfersApi->transfer_controller_create_direct_wallet_transfer: #{e}"
97
+ end
98
+ ```
99
+
100
+ ### Parameters
101
+
102
+ Name | Type | Description | Notes
103
+ ------------- | ------------- | ------------- | -------------
104
+ **body** | [**CreateDirectWalletTransferDto**](CreateDirectWalletTransferDto.md)| |
105
+
106
+ ### Return type
107
+
108
+ nil (empty response body)
109
+
110
+ ### Authorization
111
+
112
+ [x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
113
+
114
+ ### HTTP request headers
115
+
116
+ - **Content-Type**: application/json
117
+ - **Accept**: Not defined
118
+
119
+
120
+
121
+ # **transfer_controller_create_stablecoin_conversion**
122
+ > transfer_controller_create_stablecoin_conversion(body)
123
+
124
+ Create a stablecoin conversion
125
+
126
+ ### Example
127
+ ```ruby
128
+ # load the gem
129
+ require 'devdraft_ai_sdk'
130
+ # setup authorization
131
+ DevDraftAI.configure do |config|
132
+ # Configure API key authorization: x-client-key
133
+ config.api_key['x-client-key'] = 'YOUR API KEY'
134
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
135
+ #config.api_key_prefix['x-client-key'] = 'Bearer'
136
+
137
+ # Configure API key authorization: x-client-secret
138
+ config.api_key['x-client-secret'] = 'YOUR API KEY'
139
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
140
+ #config.api_key_prefix['x-client-secret'] = 'Bearer'
141
+ end
142
+
143
+ api_instance = DevDraftAI::TransfersApi.new
144
+ body = DevDraftAI::CreateStablecoinConversionDto.new # CreateStablecoinConversionDto |
145
+
146
+
147
+ begin
148
+ #Create a stablecoin conversion
149
+ api_instance.transfer_controller_create_stablecoin_conversion(body)
150
+ rescue DevDraftAI::ApiError => e
151
+ puts "Exception when calling TransfersApi->transfer_controller_create_stablecoin_conversion: #{e}"
152
+ end
153
+ ```
154
+
155
+ ### Parameters
156
+
157
+ Name | Type | Description | Notes
158
+ ------------- | ------------- | ------------- | -------------
159
+ **body** | [**CreateStablecoinConversionDto**](CreateStablecoinConversionDto.md)| |
160
+
161
+ ### Return type
162
+
163
+ nil (empty response body)
164
+
165
+ ### Authorization
166
+
167
+ [x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
168
+
169
+ ### HTTP request headers
170
+
171
+ - **Content-Type**: application/json
172
+ - **Accept**: Not defined
173
+
174
+
175
+
@@ -0,0 +1,12 @@
1
+ # DevDraftAI::UpdateCustomerDto
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **first_name** | **String** | Customer's first name. Used for personalization and legal documentation. | [optional]
7
+ **last_name** | **String** | Customer's last name. Used for personalization and legal documentation. | [optional]
8
+ **email** | **String** | Customer's email address. Used for notifications, receipts, and account management. Must be a valid email format. | [optional]
9
+ **phone_number** | **String** | Customer's phone number. Used for SMS notifications and verification. Include country code for international numbers. | [optional]
10
+ **customer_type** | **String** | Type of customer account. Determines available features and compliance requirements. | [optional] [default to 'Individual']
11
+ **status** | [**AllOfUpdateCustomerDtoStatus**](AllOfUpdateCustomerDtoStatus.md) | Current status of the customer account. Controls access to services and features. | [optional]
12
+
@@ -0,0 +1,6 @@
1
+ # DevDraftAI::UpdatePaymentLinkDto
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # DevDraftAI::UpdatePreferenceInput
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,18 @@
1
+ # DevDraftAI::UpdateProductDto
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | Product name as it will appear to customers. Should be clear and descriptive. | [optional]
7
+ **description** | **String** | Detailed description of the product. Supports markdown formatting for rich text display. | [optional]
8
+ **price** | [**BigDecimal**](BigDecimal.md) | Product price in the specified currency. Must be greater than 0. | [optional]
9
+ **currency** | **String** | Currency code for the price. Defaults to USD if not specified. | [optional] [default to 'USD']
10
+ **type** | **String** | Product type | [optional]
11
+ **weight** | [**BigDecimal**](BigDecimal.md) | Weight of the product | [optional]
12
+ **unit** | **String** | Unit of measurement | [optional]
13
+ **quantity** | [**BigDecimal**](BigDecimal.md) | Quantity available | [optional]
14
+ **stock_count** | [**BigDecimal**](BigDecimal.md) | Stock count | [optional]
15
+ **status** | **String** | Product status | [optional]
16
+ **product_type** | **String** | Product type | [optional]
17
+ **images** | **Array<String>** | Array of image URLs | [optional]
18
+
@@ -0,0 +1,6 @@
1
+ # DevDraftAI::UpdateTaxInput
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,11 @@
1
+ # DevDraftAI::UpdateWebhookDto
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | Name of the webhook for identification purposes | [optional]
7
+ **url** | **String** | URL where webhook events will be sent | [optional]
8
+ **is_active** | **BOOLEAN** | Whether the webhook is active and will receive events | [optional] [default to true]
9
+ **signing_secret** | **String** | Secret key used to sign webhook payloads for verification | [optional]
10
+ **encrypted** | **BOOLEAN** | Whether webhook payloads should be encrypted | [optional] [default to false]
11
+