devdraft 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +155 -253
  3. data/Rakefile +2 -0
  4. data/devdraft-1.0.0.gem +0 -0
  5. data/{devdraft_ai_sdk.gemspec → devdraft.gemspec} +15 -11
  6. data/docs/APIHealthApi.md +82 -30
  7. data/docs/AggregatedBalanceResponse.md +19 -6
  8. data/docs/AllBalancesResponse.md +19 -6
  9. data/docs/AppBalancesApi.md +125 -65
  10. data/docs/BridgeFiatPaymentRail.md +15 -0
  11. data/docs/BridgePaymentRail.md +12 -3
  12. data/docs/CreateBankPaymentIntentDto.md +49 -21
  13. data/docs/CreateCustomerDto.md +25 -9
  14. data/docs/CreateDirectBankTransferDto.md +29 -11
  15. data/docs/CreateDirectWalletTransferDto.md +21 -7
  16. data/docs/CreateExternalBankTransferDto.md +40 -0
  17. data/docs/CreateExternalStablecoinTransferDto.md +28 -0
  18. data/docs/CreateInvoiceDto.md +45 -19
  19. data/docs/CreateLiquidationAddressDto.md +43 -18
  20. data/docs/CreatePaymentLinkDto.md +53 -28
  21. data/docs/CreateStablePaymentIntentDto.md +43 -18
  22. data/docs/CreateStablecoinConversionDto.md +23 -8
  23. data/docs/CreateTaxDto.md +26 -0
  24. data/docs/CreateWebhookDto.md +23 -8
  25. data/docs/CustomerStatus.md +12 -3
  26. data/docs/CustomerType.md +15 -0
  27. data/docs/CustomersApi.md +187 -114
  28. data/docs/DestinationCurrency.md +12 -3
  29. data/docs/ExchangeRateResponseDto.md +25 -9
  30. data/docs/ExchangeRatesApi.md +130 -72
  31. data/docs/FiatCurrency.md +12 -3
  32. data/docs/HealthResponseDto.md +25 -9
  33. data/docs/InvoiceProductDto.md +17 -5
  34. data/docs/InvoicesApi.md +177 -104
  35. data/docs/LiquidationAddressResponseDto.md +41 -17
  36. data/docs/LiquidationAddressesApi.md +115 -61
  37. data/docs/PaymentIntentsApi.md +93 -57
  38. data/docs/PaymentLinkProductDto.md +17 -5
  39. data/docs/PaymentLinksApi.md +175 -102
  40. data/docs/PaymentRequestDto.md +21 -7
  41. data/docs/PaymentResponseDto.md +23 -8
  42. data/docs/ProductsApi.md +307 -194
  43. data/docs/PublicHealthResponseDto.md +19 -6
  44. data/docs/RefundResponseDto.md +23 -8
  45. data/docs/StableCoinCurrency.md +12 -3
  46. data/docs/TaxControllerCreate201Response.md +30 -0
  47. data/docs/TaxControllerDeleteWithoutId400Response.md +22 -0
  48. data/docs/TaxControllerUpdateWithoutId400Response.md +22 -0
  49. data/docs/TaxesApi.md +374 -122
  50. data/docs/TestPaymentsApi.md +150 -60
  51. data/docs/TransfersApi.md +274 -72
  52. data/docs/UpdateCustomerDto.md +25 -9
  53. data/docs/UpdateTaxDto.md +26 -0
  54. data/docs/UpdateWebhookDto.md +23 -8
  55. data/docs/WalletsApi.md +44 -24
  56. data/docs/WebhookResponseDto.md +29 -11
  57. data/docs/WebhooksApi.md +225 -134
  58. data/git_push.sh +41 -28
  59. data/lib/devdraft/api/api_health_api.rb +32 -16
  60. data/lib/devdraft/api/app_balances_api.rb +45 -22
  61. data/lib/devdraft/api/customers_api.rb +124 -71
  62. data/lib/devdraft/api/exchange_rates_api.rb +49 -26
  63. data/lib/devdraft/api/invoices_api.rb +89 -53
  64. data/lib/devdraft/api/liquidation_addresses_api.rb +70 -44
  65. data/lib/devdraft/api/payment_intents_api.rb +62 -40
  66. data/lib/devdraft/api/payment_links_api.rb +85 -49
  67. data/lib/devdraft/api/products_api.rb +214 -216
  68. data/lib/devdraft/api/taxes_api.rb +257 -66
  69. data/lib/devdraft/api/test_payments_api.rb +70 -44
  70. data/lib/devdraft/api/transfers_api.rb +206 -46
  71. data/lib/devdraft/api/wallets_api.rb +18 -9
  72. data/lib/devdraft/api/webhooks_api.rb +109 -66
  73. data/lib/devdraft/api_client.rb +76 -71
  74. data/lib/devdraft/api_error.rb +5 -4
  75. data/lib/devdraft/api_model_base.rb +88 -0
  76. data/lib/devdraft/configuration.rb +121 -18
  77. data/lib/devdraft/models/aggregated_balance_response.rb +68 -101
  78. data/lib/devdraft/models/all_balances_response.rb +76 -99
  79. data/lib/devdraft/models/bridge_fiat_payment_rail.rb +45 -0
  80. data/lib/devdraft/models/bridge_payment_rail.rb +36 -24
  81. data/lib/devdraft/models/create_bank_payment_intent_dto.rb +191 -114
  82. data/lib/devdraft/models/create_customer_dto.rb +123 -113
  83. data/lib/devdraft/models/create_direct_bank_transfer_dto.rb +105 -104
  84. data/lib/devdraft/models/create_direct_wallet_transfer_dto.rb +89 -100
  85. data/lib/devdraft/models/create_external_bank_transfer_dto.rb +505 -0
  86. data/lib/devdraft/models/create_external_stablecoin_transfer_dto.rb +266 -0
  87. data/lib/devdraft/models/create_invoice_dto.rb +151 -121
  88. data/lib/devdraft/models/create_liquidation_address_dto.rb +195 -115
  89. data/lib/devdraft/models/create_payment_link_dto.rb +192 -214
  90. data/lib/devdraft/models/create_stable_payment_intent_dto.rb +324 -111
  91. data/lib/devdraft/models/create_stablecoin_conversion_dto.rb +102 -101
  92. data/lib/devdraft/models/create_tax_dto.rb +281 -0
  93. data/lib/devdraft/models/create_webhook_dto.rb +104 -101
  94. data/lib/devdraft/models/customer_status.rb +23 -10
  95. data/lib/devdraft/models/customer_type.rb +45 -0
  96. data/lib/devdraft/models/destination_currency.rb +27 -15
  97. data/lib/devdraft/models/exchange_rate_response_dto.rb +103 -102
  98. data/lib/devdraft/models/fiat_currency.rb +22 -10
  99. data/lib/devdraft/models/health_response_dto.rb +99 -106
  100. data/lib/devdraft/models/invoice_product_dto.rb +63 -98
  101. data/lib/devdraft/models/liquidation_address_response_dto.rb +147 -110
  102. data/lib/devdraft/models/payment_link_product_dto.rb +70 -98
  103. data/lib/devdraft/models/payment_request_dto.rb +77 -100
  104. data/lib/devdraft/models/payment_response_dto.rb +102 -101
  105. data/lib/devdraft/models/public_health_response_dto.rb +68 -101
  106. data/lib/devdraft/models/refund_response_dto.rb +102 -101
  107. data/lib/devdraft/models/stable_coin_currency.rb +21 -9
  108. data/lib/devdraft/models/tax_controller_create201_response.rb +201 -0
  109. data/lib/devdraft/models/tax_controller_delete_without_id400_response.rb +165 -0
  110. data/lib/devdraft/models/tax_controller_update_without_id400_response.rb +165 -0
  111. data/lib/devdraft/models/update_customer_dto.rb +117 -113
  112. data/lib/devdraft/models/update_tax_dto.rb +256 -0
  113. data/lib/devdraft/models/update_webhook_dto.rb +70 -101
  114. data/lib/devdraft/models/webhook_response_dto.rb +140 -103
  115. data/lib/devdraft/version.rb +6 -5
  116. data/lib/devdraft.rb +18 -27
  117. data/spec/api/api_health_api_spec.rb +10 -9
  118. data/spec/api/app_balances_api_spec.rb +11 -10
  119. data/spec/api/customers_api_spec.rb +25 -24
  120. data/spec/api/exchange_rates_api_spec.rb +11 -10
  121. data/spec/api/invoices_api_spec.rb +16 -15
  122. data/spec/api/liquidation_addresses_api_spec.rb +13 -12
  123. data/spec/api/payment_intents_api_spec.rb +12 -11
  124. data/spec/api/payment_links_api_spec.rb +14 -13
  125. data/spec/api/products_api_spec.rb +41 -40
  126. data/spec/api/taxes_api_spec.rb +51 -21
  127. data/spec/api/test_payments_api_spec.rb +14 -13
  128. data/spec/api/transfers_api_spec.rb +36 -13
  129. data/spec/api/wallets_api_spec.rb +9 -8
  130. data/spec/api/webhooks_api_spec.rb +20 -19
  131. data/spec/models/aggregated_balance_response_spec.rb +15 -19
  132. data/spec/models/all_balances_response_spec.rb +14 -18
  133. data/spec/models/bridge_fiat_payment_rail_spec.rb +30 -0
  134. data/spec/models/bridge_payment_rail_spec.rb +11 -15
  135. data/spec/models/create_bank_payment_intent_dto_spec.rb +29 -33
  136. data/spec/models/create_customer_dto_spec.rb +17 -25
  137. data/spec/models/create_direct_bank_transfer_dto_spec.rb +19 -23
  138. data/spec/models/create_direct_wallet_transfer_dto_spec.rb +15 -19
  139. data/spec/models/create_external_bank_transfer_dto_spec.rb +102 -0
  140. data/spec/models/create_external_stablecoin_transfer_dto_spec.rb +66 -0
  141. data/spec/models/create_invoice_dto_spec.rb +31 -35
  142. data/spec/models/create_liquidation_address_dto_spec.rb +28 -32
  143. data/spec/models/create_payment_link_dto_spec.rb +34 -76
  144. data/spec/models/create_stable_payment_intent_dto_spec.rb +26 -30
  145. data/spec/models/create_stablecoin_conversion_dto_spec.rb +16 -20
  146. data/spec/models/create_tax_dto_spec.rb +60 -0
  147. data/spec/models/create_webhook_dto_spec.rb +16 -20
  148. data/spec/models/customer_status_spec.rb +11 -15
  149. data/spec/models/customer_type_spec.rb +30 -0
  150. data/spec/models/destination_currency_spec.rb +11 -15
  151. data/spec/models/exchange_rate_response_dto_spec.rb +17 -21
  152. data/spec/models/fiat_currency_spec.rb +11 -15
  153. data/spec/models/health_response_dto_spec.rb +19 -23
  154. data/spec/models/invoice_product_dto_spec.rb +13 -17
  155. data/spec/models/liquidation_address_response_dto_spec.rb +25 -29
  156. data/spec/models/payment_link_product_dto_spec.rb +13 -17
  157. data/spec/models/payment_request_dto_spec.rb +15 -19
  158. data/spec/models/payment_response_dto_spec.rb +16 -20
  159. data/spec/models/public_health_response_dto_spec.rb +15 -19
  160. data/spec/models/refund_response_dto_spec.rb +16 -20
  161. data/spec/models/stable_coin_currency_spec.rb +11 -15
  162. data/spec/models/tax_controller_create201_response_spec.rb +72 -0
  163. data/spec/models/tax_controller_delete_without_id400_response_spec.rb +48 -0
  164. data/spec/models/tax_controller_update_without_id400_response_spec.rb +48 -0
  165. data/spec/models/update_customer_dto_spec.rb +17 -25
  166. data/spec/models/update_tax_dto_spec.rb +60 -0
  167. data/spec/models/update_webhook_dto_spec.rb +16 -20
  168. data/spec/models/webhook_response_dto_spec.rb +19 -23
  169. data/spec/spec_helper.rb +5 -4
  170. metadata +49 -116
  171. data/docs/AllOfAllBalancesResponseEurc.md +0 -9
  172. data/docs/AllOfAllBalancesResponseUsdc.md +0 -9
  173. data/docs/AllOfCreateBankPaymentIntentDtoDestinationCurrency.md +0 -6
  174. data/docs/AllOfCreateBankPaymentIntentDtoDestinationNetwork.md +0 -6
  175. data/docs/AllOfCreateBankPaymentIntentDtoSourceCurrency.md +0 -6
  176. data/docs/AllOfCreateBankPaymentIntentDtoSourcePaymentRail.md +0 -6
  177. data/docs/AllOfCreateCustomerDtoStatus.md +0 -6
  178. data/docs/AllOfCreateLiquidationAddressDtoDestinationCurrency.md +0 -6
  179. data/docs/AllOfCreateLiquidationAddressDtoDestinationPaymentRail.md +0 -6
  180. data/docs/AllOfCreateStablePaymentIntentDtoDestinationCurrency.md +0 -6
  181. data/docs/AllOfCreateStablePaymentIntentDtoDestinationNetwork.md +0 -6
  182. data/docs/AllOfCreateStablePaymentIntentDtoSourceCurrency.md +0 -6
  183. data/docs/AllOfCreateStablePaymentIntentDtoSourceNetwork.md +0 -6
  184. data/docs/AllOfUpdateCustomerDtoStatus.md +0 -6
  185. data/docs/CreateProductDto.md +0 -18
  186. data/docs/CreateTaxInput.md +0 -6
  187. data/docs/UpdatePaymentLinkDto.md +0 -6
  188. data/docs/UpdatePreferenceInput.md +0 -6
  189. data/docs/UpdateProductDto.md +0 -18
  190. data/docs/UpdateTaxInput.md +0 -6
  191. data/example.rb +0 -129
  192. data/lib/devdraft/models/all_of_all_balances_response_eurc.rb +0 -283
  193. data/lib/devdraft/models/all_of_all_balances_response_usdc.rb +0 -283
  194. data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_currency.rb +0 -202
  195. data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_network.rb +0 -202
  196. data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_currency.rb +0 -202
  197. data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_payment_rail.rb +0 -202
  198. data/lib/devdraft/models/all_of_create_customer_dto_status.rb +0 -202
  199. data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_currency.rb +0 -202
  200. data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_payment_rail.rb +0 -202
  201. data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_currency.rb +0 -202
  202. data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_network.rb +0 -202
  203. data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_currency.rb +0 -202
  204. data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_network.rb +0 -202
  205. data/lib/devdraft/models/all_of_update_customer_dto_status.rb +0 -202
  206. data/lib/devdraft/models/create_product_dto.rb +0 -370
  207. data/lib/devdraft/models/create_tax_input.rb +0 -197
  208. data/lib/devdraft/models/update_payment_link_dto.rb +0 -197
  209. data/lib/devdraft/models/update_preference_input.rb +0 -197
  210. data/lib/devdraft/models/update_product_dto.rb +0 -355
  211. data/lib/devdraft/models/update_tax_input.rb +0 -197
  212. data/spec/api_client_spec.rb +0 -225
  213. data/spec/base_object_spec.rb +0 -109
  214. data/spec/configuration_spec.rb +0 -41
  215. data/spec/models/all_of_all_balances_response_eurc_spec.rb +0 -56
  216. data/spec/models/all_of_all_balances_response_usdc_spec.rb +0 -56
  217. data/spec/models/all_of_create_bank_payment_intent_dto_destination_currency_spec.rb +0 -34
  218. data/spec/models/all_of_create_bank_payment_intent_dto_destination_network_spec.rb +0 -34
  219. data/spec/models/all_of_create_bank_payment_intent_dto_source_currency_spec.rb +0 -34
  220. data/spec/models/all_of_create_bank_payment_intent_dto_source_payment_rail_spec.rb +0 -34
  221. data/spec/models/all_of_create_customer_dto_status_spec.rb +0 -34
  222. data/spec/models/all_of_create_liquidation_address_dto_destination_currency_spec.rb +0 -34
  223. data/spec/models/all_of_create_liquidation_address_dto_destination_payment_rail_spec.rb +0 -34
  224. data/spec/models/all_of_create_stable_payment_intent_dto_destination_currency_spec.rb +0 -34
  225. data/spec/models/all_of_create_stable_payment_intent_dto_destination_network_spec.rb +0 -34
  226. data/spec/models/all_of_create_stable_payment_intent_dto_source_currency_spec.rb +0 -34
  227. data/spec/models/all_of_create_stable_payment_intent_dto_source_network_spec.rb +0 -34
  228. data/spec/models/all_of_update_customer_dto_status_spec.rb +0 -34
  229. data/spec/models/create_product_dto_spec.rb +0 -110
  230. data/spec/models/create_tax_input_spec.rb +0 -34
  231. data/spec/models/update_payment_link_dto_spec.rb +0 -34
  232. data/spec/models/update_preference_input_spec.rb +0 -34
  233. data/spec/models/update_product_dto_spec.rb +0 -110
  234. data/spec/models/update_tax_input_spec.rb +0 -34
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 119e96bf6695e96bea4209911ff19c1bbbfc3eacec3a66c8c350c4f89a063dcf
4
- data.tar.gz: 90bbf1d9ea17e0fe6ebcd1512e91000916875160eec911e14d620e378d7ff4b2
3
+ metadata.gz: 286ba4f773316c9e0c6c7382bbb8ad4cf057907300162be8f186df2894664a64
4
+ data.tar.gz: cfd3aca39640ca0eb6e92938a1fdf8f36cbd73ff523c1f0a1e88c55ed92f16b3
5
5
  SHA512:
6
- metadata.gz: 6378362531af2cb84fa329fb1d3f1d6a24f7c229ddb518086d68552577c01bd3330e9a20c6c688207def2ea212a64e07d6535424f0efe6777fb3a235e761059b
7
- data.tar.gz: 62660c3be121a8e30289438f81ea26a274ea3db69255c5c27142ea8999776e99db4b7411413f374bc3dfefc1ac434a95c395937fc8d3367d8eb7c837788c6060
6
+ metadata.gz: f98be3f527993886dcbd821703562f26b398c2ad71236db9340ef1433df2d8fecbf4afa34b5a5513df9b2bc8fc3ea85eadda1cad5900848c0b167e5a8137065c
7
+ data.tar.gz: 109e4aced6b6b194135672ccb56679831b440aa7b3173cd4f9776a45cccc556eca18a3d7f8e8f612c0c86ba6e3b2c07afdd83e5e89fc19d359ccbedb0f0e3f28
data/README.md CHANGED
@@ -1,185 +1,88 @@
1
- # Devdraft Ruby SDK
1
+ # devdraft
2
2
 
3
- A Ruby client library for the Devdraft Payment & Business Management API.
3
+ Devdraft - the Ruby gem for the Devdraft AI Payment & Business Management API
4
4
 
5
- ## Installation
6
5
 
7
- Add this line to your application's Gemfile:
6
+ A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
7
+
8
8
 
9
- ```ruby
10
- gem 'devdraft', '~> 1.0.1'
11
- ```
9
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
12
10
 
13
- And then execute:
14
- ```bash
15
- $ bundle install
16
- ```
11
+ - API version: 1.0.0
12
+ - Package version: 1.0.0
13
+ - Generator version: 7.17.0
14
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
17
15
 
18
- Or install it yourself as:
19
- ```bash
20
- $ gem install devdraft
21
- ```
16
+ ## Installation
22
17
 
23
- ## Usage
18
+ ### Build a gem
24
19
 
25
- ### Basic Setup
20
+ To build the Ruby code into a gem:
26
21
 
27
- ```ruby
28
- require 'devdraft'
22
+ ```shell
23
+ gem build devdraft.gemspec
24
+ ```
29
25
 
30
- # Configure the SDK
31
- Devdraft.configure do |config|
32
- # Set your authentication headers (required for authenticated endpoints)
33
- config.default_headers = {
34
- 'x-client-key' => 'YOUR_CLIENT_KEY',
35
- 'x-secret-key' => 'YOUR_SECRET_KEY'
36
- }
37
-
38
- # Optional: Set a custom base URL if needed
39
- # config.base_url = 'https://api.devdraft.com'
40
-
41
- # Optional: Enable debug logging
42
- config.debugging = true
43
- end
26
+ Then either install the gem locally:
27
+
28
+ ```shell
29
+ gem install ./devdraft-1.0.0.gem
44
30
  ```
45
31
 
46
- You can generate your client key and secret key from the [Devdraft Console](https://console.devdraft.ai) under App Settings.
32
+ (for development, run `gem install --dev ./devdraft-1.0.0.gem` to install the development dependencies)
47
33
 
48
- ### Examples
34
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
49
35
 
50
- #### Basic Setup
51
- ```ruby
52
- require 'devdraft'
36
+ Finally add this to the Gemfile:
53
37
 
54
- # Configure the SDK
55
- Devdraft.configure do |config|
56
- # Set your authentication headers (required for authenticated endpoints)
57
- config.default_headers = {
58
- 'x-client-key' => 'YOUR_CLIENT_KEY',
59
- 'x-secret-key' => 'YOUR_SECRET_KEY'
60
- }
61
-
62
- # Optional: Set a custom base URL if needed
63
- # config.base_url = 'https://api.devdraft.com'
64
-
65
- # Optional: Enable debug logging
66
- config.debugging = true
67
- end
68
- ```
38
+ gem 'devdraft', '~> 1.0.0'
69
39
 
70
- You can generate your client key and secret key from the [Devdraft Console](https://console.devdraft.ai) under App Settings.
40
+ ### Install from Git
71
41
 
72
- #### Create a Customer
73
- ```ruby
74
- api_instance = Devdraft::CustomersApi.new
42
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
75
43
 
76
- # Create a new customer
77
- customer_data = Devdraft::CreateCustomerDto.new(
78
- email: 'customer@example.com',
79
- name: 'John Doe',
80
- status: 'active'
81
- )
44
+ gem 'devdraft', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
82
45
 
83
- begin
84
- result = api_instance.customer_controller_create(customer_data)
85
- puts "Customer created: #{result.inspect}"
86
- rescue Devdraft::ApiError => e
87
- puts "Error creating customer: #{e.response_body}"
88
- end
89
- ```
46
+ ### Include the Ruby code directly
90
47
 
91
- #### Create a Payment Link
92
- ```ruby
93
- api_instance = Devdraft::PaymentLinksApi.new
94
-
95
- # Create a payment link for a product
96
- payment_link = Devdraft::CreatePaymentLinkDto.new(
97
- amount: 99.99,
98
- currency: 'USD',
99
- description: 'Premium Subscription',
100
- expires_at: (Time.now + 7.days).iso8601, # Expires in 7 days
101
- products: [
102
- Devdraft::PaymentLinkProductDto.new(
103
- name: 'Premium Plan',
104
- quantity: 1,
105
- price: 99.99
106
- )
107
- ]
108
- )
48
+ Include the Ruby code directly using `-I` as follows:
109
49
 
110
- begin
111
- result = api_instance.payment_links_controller_create(payment_link)
112
- puts "Payment link created: #{result.inspect}"
113
- rescue Devdraft::ApiError => e
114
- puts "Error creating payment link: #{e.response_body}"
115
- end
50
+ ```shell
51
+ ruby -Ilib script.rb
116
52
  ```
117
53
 
118
- #### Check Balance
119
- ```ruby
120
- api_instance = Devdraft::AppBalancesApi.new
54
+ ## Getting Started
121
55
 
122
- begin
123
- # Get all balances
124
- balances = api_instance.balance_controller_get_all_balances
125
- puts "All balances: #{balances.inspect}"
126
-
127
- # Get specific currency balance
128
- usdc_balance = api_instance.balance_controller_get_usdc_balance
129
- puts "USDC balance: #{usdc_balance.inspect}"
130
- rescue Devdraft::ApiError => e
131
- puts "Error checking balance: #{e.response_body}"
132
- end
133
- ```
56
+ Please follow the [installation](#installation) procedure and then run the following code:
134
57
 
135
- #### Create a Webhook
136
58
  ```ruby
137
- api_instance = Devdraft::WebhooksApi.new
59
+ # Load the gem
60
+ require 'devdraft'
61
+
62
+ # Setup authorization
63
+ Devdraft.configure do |config|
64
+ # Configure API key authorization: x-client-secret
65
+ config.api_key['x-client-secret'] = 'YOUR API KEY'
66
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
67
+ # config.api_key_prefix['x-client-secret'] = 'Bearer'
68
+
69
+ # Configure API key authorization: x-client-key
70
+ config.api_key['x-client-key'] = 'YOUR API KEY'
71
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
72
+ # config.api_key_prefix['x-client-key'] = 'Bearer'
73
+ end
138
74
 
139
- webhook = Devdraft::CreateWebhookDto.new(
140
- url: 'https://your-domain.com/webhooks',
141
- events: ['payment.created', 'payment.completed'],
142
- description: 'Payment notifications'
143
- )
75
+ api_instance = Devdraft::APIHealthApi.new
144
76
 
145
77
  begin
146
- result = api_instance.webhook_controller_create(webhook)
147
- puts "Webhook created: #{result.inspect}"
78
+ #Authenticated health check endpoint
79
+ result = api_instance.health_controller_check_v0
80
+ p result
148
81
  rescue Devdraft::ApiError => e
149
- puts "Error creating webhook: #{e.response_body}"
82
+ puts "Exception when calling APIHealthApi->health_controller_check_v0: #{e}"
150
83
  end
151
- ```
152
-
153
- ### Available APIs
154
-
155
- The SDK provides access to the following APIs:
156
-
157
- - `APIHealthApi`: Health check endpoints
158
- - `AppBalancesApi`: Balance management
159
- - `CustomersApi`: Customer management
160
- - `ExchangeRatesApi`: Exchange rate information
161
- - `InvoicesApi`: Invoice management
162
- - `LiquidationAddressesApi`: Liquidation address management
163
- - `PaymentIntentsApi`: Payment intent management
164
- - `PaymentLinksApi`: Payment link management
165
- - `ProductsApi`: Product management
166
- - `TaxesApi`: Tax management
167
- - `TestPaymentsApi`: Test payment endpoints
168
- - `TransfersApi`: Transfer management
169
- - `WalletsApi`: Wallet management
170
- - `WebhooksApi`: Webhook management
171
84
 
172
- ## Development
173
-
174
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
175
-
176
- ## Contributing
177
-
178
- Bug reports and pull requests are welcome on GitHub.
179
-
180
- ## License
181
-
182
- The gem is available as open source under the terms of the [Unlicense](http://unlicense.org/).
85
+ ```
183
86
 
184
87
  ## Documentation for API Endpoints
185
88
 
@@ -187,125 +90,124 @@ All URIs are relative to *https://api.devdraft.ai*
187
90
 
188
91
  Class | Method | HTTP request | Description
189
92
  ------------ | ------------- | ------------- | -------------
190
- *DevDraftAI::APIHealthApi* | [**health_controller_check_v0**](docs/APIHealthApi.md#health_controller_check_v0) | **GET** /api/v0/health | Authenticated health check endpoint
191
- *DevDraftAI::APIHealthApi* | [**health_controller_public_health_check_v0**](docs/APIHealthApi.md#health_controller_public_health_check_v0) | **GET** /api/v0/health/public | Public health check endpoint
192
- *DevDraftAI::AppBalancesApi* | [**balance_controller_get_all_balances**](docs/AppBalancesApi.md#balance_controller_get_all_balances) | **GET** /api/v0/balance | Get all stablecoin balances for an app
193
- *DevDraftAI::AppBalancesApi* | [**balance_controller_get_eurc_balance**](docs/AppBalancesApi.md#balance_controller_get_eurc_balance) | **GET** /api/v0/balance/eurc | Get EURC balance for an app
194
- *DevDraftAI::AppBalancesApi* | [**balance_controller_get_usdc_balance**](docs/AppBalancesApi.md#balance_controller_get_usdc_balance) | **GET** /api/v0/balance/usdc | Get USDC balance for an app
195
- *DevDraftAI::CustomersApi* | [**customer_controller_create**](docs/CustomersApi.md#customer_controller_create) | **POST** /api/v0/customers | Create a new customer
196
- *DevDraftAI::CustomersApi* | [**customer_controller_find_all**](docs/CustomersApi.md#customer_controller_find_all) | **GET** /api/v0/customers | Get all customers with filters
197
- *DevDraftAI::CustomersApi* | [**customer_controller_find_one**](docs/CustomersApi.md#customer_controller_find_one) | **GET** /api/v0/customers/{id} | Get a customer by ID
198
- *DevDraftAI::CustomersApi* | [**customer_controller_update**](docs/CustomersApi.md#customer_controller_update) | **PATCH** /api/v0/customers/{id} | Update a customer
199
- *DevDraftAI::ExchangeRatesApi* | [**exchange_rate_controller_get_eurto_usd_rate**](docs/ExchangeRatesApi.md#exchange_rate_controller_get_eurto_usd_rate) | **GET** /api/v0/exchange-rate/eur-to-usd | Get EUR to USD exchange rate
200
- *DevDraftAI::ExchangeRatesApi* | [**exchange_rate_controller_get_exchange_rate**](docs/ExchangeRatesApi.md#exchange_rate_controller_get_exchange_rate) | **GET** /api/v0/exchange-rate | Get exchange rate between specified currencies
201
- *DevDraftAI::ExchangeRatesApi* | [**exchange_rate_controller_get_usdto_eur_rate**](docs/ExchangeRatesApi.md#exchange_rate_controller_get_usdto_eur_rate) | **GET** /api/v0/exchange-rate/usd-to-eur | Get USD to EUR exchange rate
202
- *DevDraftAI::InvoicesApi* | [**invoice_controller_create**](docs/InvoicesApi.md#invoice_controller_create) | **POST** /api/v0/invoices | Create a new invoice
203
- *DevDraftAI::InvoicesApi* | [**invoice_controller_find_all**](docs/InvoicesApi.md#invoice_controller_find_all) | **GET** /api/v0/invoices | Get all invoices
204
- *DevDraftAI::InvoicesApi* | [**invoice_controller_find_one**](docs/InvoicesApi.md#invoice_controller_find_one) | **GET** /api/v0/invoices/{id} | Get an invoice by ID
205
- *DevDraftAI::InvoicesApi* | [**invoice_controller_update**](docs/InvoicesApi.md#invoice_controller_update) | **PUT** /api/v0/invoices/{id} | Update an invoice
206
- *DevDraftAI::LiquidationAddressesApi* | [**liquidation_address_controller_create_liquidation_address**](docs/LiquidationAddressesApi.md#liquidation_address_controller_create_liquidation_address) | **POST** /api/v0/customers/{customerId}/liquidation_addresses | Create a new liquidation address for a customer
207
- *DevDraftAI::LiquidationAddressesApi* | [**liquidation_address_controller_get_liquidation_address**](docs/LiquidationAddressesApi.md#liquidation_address_controller_get_liquidation_address) | **GET** /api/v0/customers/{customerId}/liquidation_addresses/{liquidationAddressId} | Get a specific liquidation address
208
- *DevDraftAI::LiquidationAddressesApi* | [**liquidation_address_controller_get_liquidation_addresses**](docs/LiquidationAddressesApi.md#liquidation_address_controller_get_liquidation_addresses) | **GET** /api/v0/customers/{customerId}/liquidation_addresses | Get all liquidation addresses for a customer
209
- *DevDraftAI::PaymentIntentsApi* | [**payment_intent_controller_create_bank_payment_intent**](docs/PaymentIntentsApi.md#payment_intent_controller_create_bank_payment_intent) | **POST** /api/v0/payment-intents/bank | Create a bank payment intent
210
- *DevDraftAI::PaymentIntentsApi* | [**payment_intent_controller_create_stable_payment_intent**](docs/PaymentIntentsApi.md#payment_intent_controller_create_stable_payment_intent) | **POST** /api/v0/payment-intents/stablecoin | Create a stable payment intent
211
- *DevDraftAI::PaymentLinksApi* | [**payment_links_controller_create**](docs/PaymentLinksApi.md#payment_links_controller_create) | **POST** /api/v0/payment-links | Create a new payment link
212
- *DevDraftAI::PaymentLinksApi* | [**payment_links_controller_find_all**](docs/PaymentLinksApi.md#payment_links_controller_find_all) | **GET** /api/v0/payment-links | Get all payment links
213
- *DevDraftAI::PaymentLinksApi* | [**payment_links_controller_find_one**](docs/PaymentLinksApi.md#payment_links_controller_find_one) | **GET** /api/v0/payment-links/{id} | Get a payment link by ID
214
- *DevDraftAI::PaymentLinksApi* | [**payment_links_controller_update**](docs/PaymentLinksApi.md#payment_links_controller_update) | **PUT** /api/v0/payment-links/{id} | Update a payment link
215
- *DevDraftAI::ProductsApi* | [**product_controller_create**](docs/ProductsApi.md#product_controller_create) | **POST** /api/v0/products | Create a new product
216
- *DevDraftAI::ProductsApi* | [**product_controller_find_all**](docs/ProductsApi.md#product_controller_find_all) | **GET** /api/v0/products | Get all products
217
- *DevDraftAI::ProductsApi* | [**product_controller_find_one**](docs/ProductsApi.md#product_controller_find_one) | **GET** /api/v0/products/{id} | Get a product by ID
218
- *DevDraftAI::ProductsApi* | [**product_controller_remove**](docs/ProductsApi.md#product_controller_remove) | **DELETE** /api/v0/products/{id} | Delete a product
219
- *DevDraftAI::ProductsApi* | [**product_controller_update**](docs/ProductsApi.md#product_controller_update) | **PUT** /api/v0/products/{id} | Update a product
220
- *DevDraftAI::ProductsApi* | [**product_controller_upload_image**](docs/ProductsApi.md#product_controller_upload_image) | **POST** /api/v0/products/{id}/images | Upload images for a product
221
- *DevDraftAI::TaxesApi* | [**tax_controller_create**](docs/TaxesApi.md#tax_controller_create) | **POST** /api/v0/taxes | Create a new tax
222
- *DevDraftAI::TaxesApi* | [**tax_controller_find_all**](docs/TaxesApi.md#tax_controller_find_all) | **GET** /api/v0/taxes | Get all taxes
223
- *DevDraftAI::TaxesApi* | [**tax_controller_find_one**](docs/TaxesApi.md#tax_controller_find_one) | **GET** /api/v0/taxes/{id} | Get a tax by ID
224
- *DevDraftAI::TaxesApi* | [**tax_controller_remove**](docs/TaxesApi.md#tax_controller_remove) | **DELETE** /api/v0/taxes/{id} | Delete a tax
225
- *DevDraftAI::TaxesApi* | [**tax_controller_update**](docs/TaxesApi.md#tax_controller_update) | **PUT** /api/v0/taxes/{id} | Update a tax
226
- *DevDraftAI::TestPaymentsApi* | [**test_payment_controller_create_payment_v0**](docs/TestPaymentsApi.md#test_payment_controller_create_payment_v0) | **POST** /api/v0/test-payment | Process a test payment
227
- *DevDraftAI::TestPaymentsApi* | [**test_payment_controller_get_payment_v0**](docs/TestPaymentsApi.md#test_payment_controller_get_payment_v0) | **GET** /api/v0/test-payment/{id} | Get payment details by ID
228
- *DevDraftAI::TestPaymentsApi* | [**test_payment_controller_refund_payment_v0**](docs/TestPaymentsApi.md#test_payment_controller_refund_payment_v0) | **POST** /api/v0/test-payment/{id}/refund | Refund a payment
229
- *DevDraftAI::TransfersApi* | [**transfer_controller_create_direct_bank_transfer**](docs/TransfersApi.md#transfer_controller_create_direct_bank_transfer) | **POST** /api/v0/transfers/direct-bank | Create a direct bank transfer
230
- *DevDraftAI::TransfersApi* | [**transfer_controller_create_direct_wallet_transfer**](docs/TransfersApi.md#transfer_controller_create_direct_wallet_transfer) | **POST** /api/v0/transfers/direct-wallet | Create a direct wallet transfer
231
- *DevDraftAI::TransfersApi* | [**transfer_controller_create_stablecoin_conversion**](docs/TransfersApi.md#transfer_controller_create_stablecoin_conversion) | **POST** /api/v0/transfers/stablecoin-conversion | Create a stablecoin conversion
232
- *DevDraftAI::WalletsApi* | [**wallet_controller_get_wallets**](docs/WalletsApi.md#wallet_controller_get_wallets) | **GET** /api/v0/wallets | Get wallets for an app
233
- *DevDraftAI::WebhooksApi* | [**webhook_controller_create**](docs/WebhooksApi.md#webhook_controller_create) | **POST** /api/v0/webhooks | Create a new webhook
234
- *DevDraftAI::WebhooksApi* | [**webhook_controller_find_all**](docs/WebhooksApi.md#webhook_controller_find_all) | **GET** /api/v0/webhooks | Get all webhooks
235
- *DevDraftAI::WebhooksApi* | [**webhook_controller_find_one**](docs/WebhooksApi.md#webhook_controller_find_one) | **GET** /api/v0/webhooks/{id} | Get a webhook by id
236
- *DevDraftAI::WebhooksApi* | [**webhook_controller_remove**](docs/WebhooksApi.md#webhook_controller_remove) | **DELETE** /api/v0/webhooks/{id} | Delete a webhook
237
- *DevDraftAI::WebhooksApi* | [**webhook_controller_update**](docs/WebhooksApi.md#webhook_controller_update) | **PATCH** /api/v0/webhooks/{id} | Update a webhook
93
+ *Devdraft::APIHealthApi* | [**health_controller_check_v0**](docs/APIHealthApi.md#health_controller_check_v0) | **GET** /api/v0/health | Authenticated health check endpoint
94
+ *Devdraft::APIHealthApi* | [**health_controller_public_health_check_v0**](docs/APIHealthApi.md#health_controller_public_health_check_v0) | **GET** /api/v0/health/public | Public health check endpoint
95
+ *Devdraft::AppBalancesApi* | [**balance_controller_get_all_balances**](docs/AppBalancesApi.md#balance_controller_get_all_balances) | **GET** /api/v0/balance | Get all stablecoin balances for an app
96
+ *Devdraft::AppBalancesApi* | [**balance_controller_get_eurc_balance**](docs/AppBalancesApi.md#balance_controller_get_eurc_balance) | **GET** /api/v0/balance/eurc | Get EURC balance for an app
97
+ *Devdraft::AppBalancesApi* | [**balance_controller_get_usdc_balance**](docs/AppBalancesApi.md#balance_controller_get_usdc_balance) | **GET** /api/v0/balance/usdc | Get USDC balance for an app
98
+ *Devdraft::CustomersApi* | [**customer_controller_create**](docs/CustomersApi.md#customer_controller_create) | **POST** /api/v0/customers | Create a new customer
99
+ *Devdraft::CustomersApi* | [**customer_controller_find_all**](docs/CustomersApi.md#customer_controller_find_all) | **GET** /api/v0/customers | Get all customers with filters
100
+ *Devdraft::CustomersApi* | [**customer_controller_find_one**](docs/CustomersApi.md#customer_controller_find_one) | **GET** /api/v0/customers/{id} | Get a customer by ID
101
+ *Devdraft::CustomersApi* | [**customer_controller_update**](docs/CustomersApi.md#customer_controller_update) | **PATCH** /api/v0/customers/{id} | Update a customer
102
+ *Devdraft::ExchangeRatesApi* | [**exchange_rate_controller_get_eurto_usd_rate**](docs/ExchangeRatesApi.md#exchange_rate_controller_get_eurto_usd_rate) | **GET** /api/v0/exchange-rate/eur-to-usd | Get EUR to USD exchange rate
103
+ *Devdraft::ExchangeRatesApi* | [**exchange_rate_controller_get_exchange_rate**](docs/ExchangeRatesApi.md#exchange_rate_controller_get_exchange_rate) | **GET** /api/v0/exchange-rate | Get exchange rate between specified currencies
104
+ *Devdraft::ExchangeRatesApi* | [**exchange_rate_controller_get_usdto_eur_rate**](docs/ExchangeRatesApi.md#exchange_rate_controller_get_usdto_eur_rate) | **GET** /api/v0/exchange-rate/usd-to-eur | Get USD to EUR exchange rate
105
+ *Devdraft::InvoicesApi* | [**invoice_controller_create**](docs/InvoicesApi.md#invoice_controller_create) | **POST** /api/v0/invoices | Create a new invoice
106
+ *Devdraft::InvoicesApi* | [**invoice_controller_find_all**](docs/InvoicesApi.md#invoice_controller_find_all) | **GET** /api/v0/invoices | Get all invoices
107
+ *Devdraft::InvoicesApi* | [**invoice_controller_find_one**](docs/InvoicesApi.md#invoice_controller_find_one) | **GET** /api/v0/invoices/{id} | Get an invoice by ID
108
+ *Devdraft::InvoicesApi* | [**invoice_controller_update**](docs/InvoicesApi.md#invoice_controller_update) | **PUT** /api/v0/invoices/{id} | Update an invoice
109
+ *Devdraft::LiquidationAddressesApi* | [**liquidation_address_controller_create_liquidation_address**](docs/LiquidationAddressesApi.md#liquidation_address_controller_create_liquidation_address) | **POST** /api/v0/customers/{customerId}/liquidation_addresses | Create a new liquidation address for a customer
110
+ *Devdraft::LiquidationAddressesApi* | [**liquidation_address_controller_get_liquidation_address**](docs/LiquidationAddressesApi.md#liquidation_address_controller_get_liquidation_address) | **GET** /api/v0/customers/{customerId}/liquidation_addresses/{liquidationAddressId} | Get a specific liquidation address
111
+ *Devdraft::LiquidationAddressesApi* | [**liquidation_address_controller_get_liquidation_addresses**](docs/LiquidationAddressesApi.md#liquidation_address_controller_get_liquidation_addresses) | **GET** /api/v0/customers/{customerId}/liquidation_addresses | Get all liquidation addresses for a customer
112
+ *Devdraft::PaymentIntentsApi* | [**payment_intent_controller_create_bank_payment_intent**](docs/PaymentIntentsApi.md#payment_intent_controller_create_bank_payment_intent) | **POST** /api/v0/payment-intents/bank | Create a bank payment intent
113
+ *Devdraft::PaymentIntentsApi* | [**payment_intent_controller_create_stable_payment_intent**](docs/PaymentIntentsApi.md#payment_intent_controller_create_stable_payment_intent) | **POST** /api/v0/payment-intents/stablecoin | Create a stable payment intent
114
+ *Devdraft::PaymentLinksApi* | [**payment_links_controller_create**](docs/PaymentLinksApi.md#payment_links_controller_create) | **POST** /api/v0/payment-links | Create a new payment link
115
+ *Devdraft::PaymentLinksApi* | [**payment_links_controller_find_all**](docs/PaymentLinksApi.md#payment_links_controller_find_all) | **GET** /api/v0/payment-links | Get all payment links
116
+ *Devdraft::PaymentLinksApi* | [**payment_links_controller_find_one**](docs/PaymentLinksApi.md#payment_links_controller_find_one) | **GET** /api/v0/payment-links/{id} | Get a payment link by ID
117
+ *Devdraft::PaymentLinksApi* | [**payment_links_controller_update**](docs/PaymentLinksApi.md#payment_links_controller_update) | **PUT** /api/v0/payment-links/{id} | Update a payment link
118
+ *Devdraft::ProductsApi* | [**product_controller_create**](docs/ProductsApi.md#product_controller_create) | **POST** /api/v0/products | Create a new product
119
+ *Devdraft::ProductsApi* | [**product_controller_find_all**](docs/ProductsApi.md#product_controller_find_all) | **GET** /api/v0/products | Get all products
120
+ *Devdraft::ProductsApi* | [**product_controller_find_one**](docs/ProductsApi.md#product_controller_find_one) | **GET** /api/v0/products/{id} | Get a product by ID
121
+ *Devdraft::ProductsApi* | [**product_controller_remove**](docs/ProductsApi.md#product_controller_remove) | **DELETE** /api/v0/products/{id} | Delete a product
122
+ *Devdraft::ProductsApi* | [**product_controller_update**](docs/ProductsApi.md#product_controller_update) | **PUT** /api/v0/products/{id} | Update a product
123
+ *Devdraft::ProductsApi* | [**product_controller_upload_image**](docs/ProductsApi.md#product_controller_upload_image) | **POST** /api/v0/products/{id}/images | Upload images for a product
124
+ *Devdraft::TaxesApi* | [**tax_controller_create**](docs/TaxesApi.md#tax_controller_create) | **POST** /api/v0/taxes | Create a new tax
125
+ *Devdraft::TaxesApi* | [**tax_controller_delete_without_id**](docs/TaxesApi.md#tax_controller_delete_without_id) | **DELETE** /api/v0/taxes | Tax ID required for deletion
126
+ *Devdraft::TaxesApi* | [**tax_controller_find_all**](docs/TaxesApi.md#tax_controller_find_all) | **GET** /api/v0/taxes | Get all taxes with filters
127
+ *Devdraft::TaxesApi* | [**tax_controller_find_one**](docs/TaxesApi.md#tax_controller_find_one) | **GET** /api/v0/taxes/{id} | Get a tax by ID
128
+ *Devdraft::TaxesApi* | [**tax_controller_remove**](docs/TaxesApi.md#tax_controller_remove) | **DELETE** /api/v0/taxes/{id} | Delete a tax
129
+ *Devdraft::TaxesApi* | [**tax_controller_update**](docs/TaxesApi.md#tax_controller_update) | **PUT** /api/v0/taxes/{id} | Update a tax
130
+ *Devdraft::TaxesApi* | [**tax_controller_update_without_id**](docs/TaxesApi.md#tax_controller_update_without_id) | **PUT** /api/v0/taxes | Tax ID required for updates
131
+ *Devdraft::TestPaymentsApi* | [**test_payment_controller_create_payment_v0**](docs/TestPaymentsApi.md#test_payment_controller_create_payment_v0) | **POST** /api/v0/test-payment | Process a test payment
132
+ *Devdraft::TestPaymentsApi* | [**test_payment_controller_get_payment_v0**](docs/TestPaymentsApi.md#test_payment_controller_get_payment_v0) | **GET** /api/v0/test-payment/{id} | Get payment details by ID
133
+ *Devdraft::TestPaymentsApi* | [**test_payment_controller_refund_payment_v0**](docs/TestPaymentsApi.md#test_payment_controller_refund_payment_v0) | **POST** /api/v0/test-payment/{id}/refund | Refund a payment
134
+ *Devdraft::TransfersApi* | [**transfer_controller_create_direct_bank_transfer**](docs/TransfersApi.md#transfer_controller_create_direct_bank_transfer) | **POST** /api/v0/transfers/direct-bank | Create a direct bank transfer
135
+ *Devdraft::TransfersApi* | [**transfer_controller_create_direct_wallet_transfer**](docs/TransfersApi.md#transfer_controller_create_direct_wallet_transfer) | **POST** /api/v0/transfers/direct-wallet | Create a direct wallet transfer
136
+ *Devdraft::TransfersApi* | [**transfer_controller_create_external_bank_transfer**](docs/TransfersApi.md#transfer_controller_create_external_bank_transfer) | **POST** /api/v0/transfers/external-bank-transfer | Create an external bank transfer
137
+ *Devdraft::TransfersApi* | [**transfer_controller_create_external_stablecoin_transfer**](docs/TransfersApi.md#transfer_controller_create_external_stablecoin_transfer) | **POST** /api/v0/transfers/external-stablecoin-transfer | Create an external stablecoin transfer
138
+ *Devdraft::TransfersApi* | [**transfer_controller_create_stablecoin_conversion**](docs/TransfersApi.md#transfer_controller_create_stablecoin_conversion) | **POST** /api/v0/transfers/stablecoin-conversion | Create a stablecoin conversion
139
+ *Devdraft::WalletsApi* | [**wallet_controller_get_wallets**](docs/WalletsApi.md#wallet_controller_get_wallets) | **GET** /api/v0/wallets | Get wallets for an app
140
+ *Devdraft::WebhooksApi* | [**webhook_controller_create**](docs/WebhooksApi.md#webhook_controller_create) | **POST** /api/v0/webhooks | Create a new webhook
141
+ *Devdraft::WebhooksApi* | [**webhook_controller_find_all**](docs/WebhooksApi.md#webhook_controller_find_all) | **GET** /api/v0/webhooks | Get all webhooks
142
+ *Devdraft::WebhooksApi* | [**webhook_controller_find_one**](docs/WebhooksApi.md#webhook_controller_find_one) | **GET** /api/v0/webhooks/{id} | Get a webhook by id
143
+ *Devdraft::WebhooksApi* | [**webhook_controller_remove**](docs/WebhooksApi.md#webhook_controller_remove) | **DELETE** /api/v0/webhooks/{id} | Delete a webhook
144
+ *Devdraft::WebhooksApi* | [**webhook_controller_update**](docs/WebhooksApi.md#webhook_controller_update) | **PATCH** /api/v0/webhooks/{id} | Update a webhook
145
+
238
146
 
239
147
  ## Documentation for Models
240
148
 
241
- - [DevDraftAI::AggregatedBalanceResponse](docs/AggregatedBalanceResponse.md)
242
- - [DevDraftAI::AllBalancesResponse](docs/AllBalancesResponse.md)
243
- - [DevDraftAI::AllOfAllBalancesResponseEurc](docs/AllOfAllBalancesResponseEurc.md)
244
- - [DevDraftAI::AllOfAllBalancesResponseUsdc](docs/AllOfAllBalancesResponseUsdc.md)
245
- - [DevDraftAI::AllOfCreateBankPaymentIntentDtoDestinationCurrency](docs/AllOfCreateBankPaymentIntentDtoDestinationCurrency.md)
246
- - [DevDraftAI::AllOfCreateBankPaymentIntentDtoDestinationNetwork](docs/AllOfCreateBankPaymentIntentDtoDestinationNetwork.md)
247
- - [DevDraftAI::AllOfCreateBankPaymentIntentDtoSourceCurrency](docs/AllOfCreateBankPaymentIntentDtoSourceCurrency.md)
248
- - [DevDraftAI::AllOfCreateBankPaymentIntentDtoSourcePaymentRail](docs/AllOfCreateBankPaymentIntentDtoSourcePaymentRail.md)
249
- - [DevDraftAI::AllOfCreateCustomerDtoStatus](docs/AllOfCreateCustomerDtoStatus.md)
250
- - [DevDraftAI::AllOfCreateLiquidationAddressDtoDestinationCurrency](docs/AllOfCreateLiquidationAddressDtoDestinationCurrency.md)
251
- - [DevDraftAI::AllOfCreateLiquidationAddressDtoDestinationPaymentRail](docs/AllOfCreateLiquidationAddressDtoDestinationPaymentRail.md)
252
- - [DevDraftAI::AllOfCreateStablePaymentIntentDtoDestinationCurrency](docs/AllOfCreateStablePaymentIntentDtoDestinationCurrency.md)
253
- - [DevDraftAI::AllOfCreateStablePaymentIntentDtoDestinationNetwork](docs/AllOfCreateStablePaymentIntentDtoDestinationNetwork.md)
254
- - [DevDraftAI::AllOfCreateStablePaymentIntentDtoSourceCurrency](docs/AllOfCreateStablePaymentIntentDtoSourceCurrency.md)
255
- - [DevDraftAI::AllOfCreateStablePaymentIntentDtoSourceNetwork](docs/AllOfCreateStablePaymentIntentDtoSourceNetwork.md)
256
- - [DevDraftAI::AllOfUpdateCustomerDtoStatus](docs/AllOfUpdateCustomerDtoStatus.md)
257
- - [DevDraftAI::BridgePaymentRail](docs/BridgePaymentRail.md)
258
- - [DevDraftAI::CreateBankPaymentIntentDto](docs/CreateBankPaymentIntentDto.md)
259
- - [DevDraftAI::CreateCustomerDto](docs/CreateCustomerDto.md)
260
- - [DevDraftAI::CreateDirectBankTransferDto](docs/CreateDirectBankTransferDto.md)
261
- - [DevDraftAI::CreateDirectWalletTransferDto](docs/CreateDirectWalletTransferDto.md)
262
- - [DevDraftAI::CreateInvoiceDto](docs/CreateInvoiceDto.md)
263
- - [DevDraftAI::CreateLiquidationAddressDto](docs/CreateLiquidationAddressDto.md)
264
- - [DevDraftAI::CreatePaymentLinkDto](docs/CreatePaymentLinkDto.md)
265
- - [DevDraftAI::CreateProductDto](docs/CreateProductDto.md)
266
- - [DevDraftAI::CreateStablePaymentIntentDto](docs/CreateStablePaymentIntentDto.md)
267
- - [DevDraftAI::CreateStablecoinConversionDto](docs/CreateStablecoinConversionDto.md)
268
- - [DevDraftAI::CreateTaxInput](docs/CreateTaxInput.md)
269
- - [DevDraftAI::CreateWebhookDto](docs/CreateWebhookDto.md)
270
- - [DevDraftAI::CustomerStatus](docs/CustomerStatus.md)
271
- - [DevDraftAI::DestinationCurrency](docs/DestinationCurrency.md)
272
- - [DevDraftAI::ExchangeRateResponseDto](docs/ExchangeRateResponseDto.md)
273
- - [DevDraftAI::FiatCurrency](docs/FiatCurrency.md)
274
- - [DevDraftAI::HealthResponseDto](docs/HealthResponseDto.md)
275
- - [DevDraftAI::InvoiceProductDto](docs/InvoiceProductDto.md)
276
- - [DevDraftAI::LiquidationAddressResponseDto](docs/LiquidationAddressResponseDto.md)
277
- - [DevDraftAI::PaymentLinkProductDto](docs/PaymentLinkProductDto.md)
278
- - [DevDraftAI::PaymentRequestDto](docs/PaymentRequestDto.md)
279
- - [DevDraftAI::PaymentResponseDto](docs/PaymentResponseDto.md)
280
- - [DevDraftAI::PublicHealthResponseDto](docs/PublicHealthResponseDto.md)
281
- - [DevDraftAI::RefundResponseDto](docs/RefundResponseDto.md)
282
- - [DevDraftAI::StableCoinCurrency](docs/StableCoinCurrency.md)
283
- - [DevDraftAI::UpdateCustomerDto](docs/UpdateCustomerDto.md)
284
- - [DevDraftAI::UpdatePaymentLinkDto](docs/UpdatePaymentLinkDto.md)
285
- - [DevDraftAI::UpdatePreferenceInput](docs/UpdatePreferenceInput.md)
286
- - [DevDraftAI::UpdateProductDto](docs/UpdateProductDto.md)
287
- - [DevDraftAI::UpdateTaxInput](docs/UpdateTaxInput.md)
288
- - [DevDraftAI::UpdateWebhookDto](docs/UpdateWebhookDto.md)
289
- - [DevDraftAI::WebhookResponseDto](docs/WebhookResponseDto.md)
149
+ - [Devdraft::AggregatedBalanceResponse](docs/AggregatedBalanceResponse.md)
150
+ - [Devdraft::AllBalancesResponse](docs/AllBalancesResponse.md)
151
+ - [Devdraft::BridgeFiatPaymentRail](docs/BridgeFiatPaymentRail.md)
152
+ - [Devdraft::BridgePaymentRail](docs/BridgePaymentRail.md)
153
+ - [Devdraft::CreateBankPaymentIntentDto](docs/CreateBankPaymentIntentDto.md)
154
+ - [Devdraft::CreateCustomerDto](docs/CreateCustomerDto.md)
155
+ - [Devdraft::CreateDirectBankTransferDto](docs/CreateDirectBankTransferDto.md)
156
+ - [Devdraft::CreateDirectWalletTransferDto](docs/CreateDirectWalletTransferDto.md)
157
+ - [Devdraft::CreateExternalBankTransferDto](docs/CreateExternalBankTransferDto.md)
158
+ - [Devdraft::CreateExternalStablecoinTransferDto](docs/CreateExternalStablecoinTransferDto.md)
159
+ - [Devdraft::CreateInvoiceDto](docs/CreateInvoiceDto.md)
160
+ - [Devdraft::CreateLiquidationAddressDto](docs/CreateLiquidationAddressDto.md)
161
+ - [Devdraft::CreatePaymentLinkDto](docs/CreatePaymentLinkDto.md)
162
+ - [Devdraft::CreateStablePaymentIntentDto](docs/CreateStablePaymentIntentDto.md)
163
+ - [Devdraft::CreateStablecoinConversionDto](docs/CreateStablecoinConversionDto.md)
164
+ - [Devdraft::CreateTaxDto](docs/CreateTaxDto.md)
165
+ - [Devdraft::CreateWebhookDto](docs/CreateWebhookDto.md)
166
+ - [Devdraft::CustomerStatus](docs/CustomerStatus.md)
167
+ - [Devdraft::CustomerType](docs/CustomerType.md)
168
+ - [Devdraft::DestinationCurrency](docs/DestinationCurrency.md)
169
+ - [Devdraft::ExchangeRateResponseDto](docs/ExchangeRateResponseDto.md)
170
+ - [Devdraft::FiatCurrency](docs/FiatCurrency.md)
171
+ - [Devdraft::HealthResponseDto](docs/HealthResponseDto.md)
172
+ - [Devdraft::InvoiceProductDto](docs/InvoiceProductDto.md)
173
+ - [Devdraft::LiquidationAddressResponseDto](docs/LiquidationAddressResponseDto.md)
174
+ - [Devdraft::PaymentLinkProductDto](docs/PaymentLinkProductDto.md)
175
+ - [Devdraft::PaymentRequestDto](docs/PaymentRequestDto.md)
176
+ - [Devdraft::PaymentResponseDto](docs/PaymentResponseDto.md)
177
+ - [Devdraft::PublicHealthResponseDto](docs/PublicHealthResponseDto.md)
178
+ - [Devdraft::RefundResponseDto](docs/RefundResponseDto.md)
179
+ - [Devdraft::StableCoinCurrency](docs/StableCoinCurrency.md)
180
+ - [Devdraft::TaxControllerCreate201Response](docs/TaxControllerCreate201Response.md)
181
+ - [Devdraft::TaxControllerDeleteWithoutId400Response](docs/TaxControllerDeleteWithoutId400Response.md)
182
+ - [Devdraft::TaxControllerUpdateWithoutId400Response](docs/TaxControllerUpdateWithoutId400Response.md)
183
+ - [Devdraft::UpdateCustomerDto](docs/UpdateCustomerDto.md)
184
+ - [Devdraft::UpdateTaxDto](docs/UpdateTaxDto.md)
185
+ - [Devdraft::UpdateWebhookDto](docs/UpdateWebhookDto.md)
186
+ - [Devdraft::WebhookResponseDto](docs/WebhookResponseDto.md)
290
187
 
291
- ## Documentation for Authorization
292
188
 
189
+ ## Documentation for Authorization
293
190
 
294
- ### idempotency-key
295
-
296
- - **Type**: API key
297
- - **API key parameter name**: idempotency-key
298
- - **Location**: HTTP header
299
191
 
192
+ Authentication schemes defined for the API:
300
193
  ### x-client-key
301
194
 
195
+
302
196
  - **Type**: API key
303
197
  - **API key parameter name**: x-client-key
304
198
  - **Location**: HTTP header
305
199
 
306
200
  ### x-client-secret
307
201
 
202
+
308
203
  - **Type**: API key
309
204
  - **API key parameter name**: x-client-secret
310
205
  - **Location**: HTTP header
311
206
 
207
+ ### idempotency-key
208
+
209
+
210
+ - **Type**: API key
211
+ - **API key parameter name**: idempotency-key
212
+ - **Location**: HTTP header
213
+
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ require "bundler/gem_tasks"
2
+
1
3
  begin
2
4
  require 'rspec/core/rake_task'
3
5
 
Binary file
@@ -1,14 +1,15 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  =begin
4
- #Devdraft Payment & Business Management API
4
+ #Devdraft AI Payment & Business Management API
5
5
 
6
6
  # A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
7
7
 
8
- OpenAPI spec version: 1.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
+
10
+ Generated by: https://openapi-generator.tech
11
+ Generator version: 7.17.0
9
12
 
10
- Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- Swagger Codegen version: 3.0.65
12
13
  =end
13
14
 
14
15
  $:.push File.expand_path("../lib", __FILE__)
@@ -18,20 +19,23 @@ Gem::Specification.new do |s|
18
19
  s.name = "devdraft"
19
20
  s.version = Devdraft::VERSION
20
21
  s.platform = Gem::Platform::RUBY
21
- s.authors = ["Devdraft Engineer"]
22
- s.email = ["engineering@devdraft.ai"]
23
- s.homepage = "https://github.com/devdraftengineer/devdraft-sdk-ruby"
24
- s.summary = "Devdraft Payment & Business Management API Ruby Gem"
22
+ s.authors = ["Devdraft"]
23
+ s.email = ["support@devdraft.com"]
24
+ s.homepage = "https://github.com/devdraftengineer/ruby"
25
+ s.summary = "Devdraft AI Payment & Business Management API Ruby Gem"
25
26
  s.description = " A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods. "
26
27
  s.license = "Unlicense"
27
- s.required_ruby_version = ">= 1.9"
28
+ s.required_ruby_version = ">= 2.7"
29
+ s.metadata = {
30
+ "source_code_uri" => "https://github.com/devdraftengineer/ruby",
31
+ "homepage_uri" => "https://github.com/devdraftengineer/ruby"
32
+ }
28
33
 
29
34
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
30
- s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
31
35
 
32
36
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
33
37
 
34
- s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? && !f.end_with?('.gem') }
38
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
35
39
  s.test_files = `find spec/*`.split("\n")
36
40
  s.executables = []
37
41
  s.require_paths = ["lib"]