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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devdraft
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
- - Devdraft Engineer
7
+ - Devdraft
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-17 00:00:00.000000000 Z
11
+ date: 2025-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -30,26 +30,6 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.1
33
- - !ruby/object:Gem::Dependency
34
- name: json
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 2.1.0
40
- - - "~>"
41
- - !ruby/object:Gem::Version
42
- version: '2.1'
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 2.1.0
50
- - - "~>"
51
- - !ruby/object:Gem::Version
52
- version: '2.1'
53
33
  - !ruby/object:Gem::Dependency
54
34
  name: rspec
55
35
  requirement: !ruby/object:Gem::Requirement
@@ -74,7 +54,7 @@ description: " A comprehensive payment processing and business management API th
74
54
  enables seamless integration of cryptocurrency and traditional payment methods.
75
55
  \ "
76
56
  email:
77
- - engineering@devdraft.ai
57
+ - support@devdraft.com
78
58
  executables: []
79
59
  extensions: []
80
60
  extra_rdoc_files: []
@@ -82,39 +62,29 @@ files:
82
62
  - Gemfile
83
63
  - README.md
84
64
  - Rakefile
85
- - devdraft_ai_sdk.gemspec
65
+ - devdraft-1.0.0.gem
66
+ - devdraft.gemspec
86
67
  - docs/APIHealthApi.md
87
68
  - docs/AggregatedBalanceResponse.md
88
69
  - docs/AllBalancesResponse.md
89
- - docs/AllOfAllBalancesResponseEurc.md
90
- - docs/AllOfAllBalancesResponseUsdc.md
91
- - docs/AllOfCreateBankPaymentIntentDtoDestinationCurrency.md
92
- - docs/AllOfCreateBankPaymentIntentDtoDestinationNetwork.md
93
- - docs/AllOfCreateBankPaymentIntentDtoSourceCurrency.md
94
- - docs/AllOfCreateBankPaymentIntentDtoSourcePaymentRail.md
95
- - docs/AllOfCreateCustomerDtoStatus.md
96
- - docs/AllOfCreateLiquidationAddressDtoDestinationCurrency.md
97
- - docs/AllOfCreateLiquidationAddressDtoDestinationPaymentRail.md
98
- - docs/AllOfCreateStablePaymentIntentDtoDestinationCurrency.md
99
- - docs/AllOfCreateStablePaymentIntentDtoDestinationNetwork.md
100
- - docs/AllOfCreateStablePaymentIntentDtoSourceCurrency.md
101
- - docs/AllOfCreateStablePaymentIntentDtoSourceNetwork.md
102
- - docs/AllOfUpdateCustomerDtoStatus.md
103
70
  - docs/AppBalancesApi.md
71
+ - docs/BridgeFiatPaymentRail.md
104
72
  - docs/BridgePaymentRail.md
105
73
  - docs/CreateBankPaymentIntentDto.md
106
74
  - docs/CreateCustomerDto.md
107
75
  - docs/CreateDirectBankTransferDto.md
108
76
  - docs/CreateDirectWalletTransferDto.md
77
+ - docs/CreateExternalBankTransferDto.md
78
+ - docs/CreateExternalStablecoinTransferDto.md
109
79
  - docs/CreateInvoiceDto.md
110
80
  - docs/CreateLiquidationAddressDto.md
111
81
  - docs/CreatePaymentLinkDto.md
112
- - docs/CreateProductDto.md
113
82
  - docs/CreateStablePaymentIntentDto.md
114
83
  - docs/CreateStablecoinConversionDto.md
115
- - docs/CreateTaxInput.md
84
+ - docs/CreateTaxDto.md
116
85
  - docs/CreateWebhookDto.md
117
86
  - docs/CustomerStatus.md
87
+ - docs/CustomerType.md
118
88
  - docs/CustomersApi.md
119
89
  - docs/DestinationCurrency.md
120
90
  - docs/ExchangeRateResponseDto.md
@@ -134,19 +104,18 @@ files:
134
104
  - docs/PublicHealthResponseDto.md
135
105
  - docs/RefundResponseDto.md
136
106
  - docs/StableCoinCurrency.md
107
+ - docs/TaxControllerCreate201Response.md
108
+ - docs/TaxControllerDeleteWithoutId400Response.md
109
+ - docs/TaxControllerUpdateWithoutId400Response.md
137
110
  - docs/TaxesApi.md
138
111
  - docs/TestPaymentsApi.md
139
112
  - docs/TransfersApi.md
140
113
  - docs/UpdateCustomerDto.md
141
- - docs/UpdatePaymentLinkDto.md
142
- - docs/UpdatePreferenceInput.md
143
- - docs/UpdateProductDto.md
144
- - docs/UpdateTaxInput.md
114
+ - docs/UpdateTaxDto.md
145
115
  - docs/UpdateWebhookDto.md
146
116
  - docs/WalletsApi.md
147
117
  - docs/WebhookResponseDto.md
148
118
  - docs/WebhooksApi.md
149
- - example.rb
150
119
  - git_push.sh
151
120
  - lib/devdraft.rb
152
121
  - lib/devdraft/api/api_health_api.rb
@@ -165,37 +134,27 @@ files:
165
134
  - lib/devdraft/api/webhooks_api.rb
166
135
  - lib/devdraft/api_client.rb
167
136
  - lib/devdraft/api_error.rb
137
+ - lib/devdraft/api_model_base.rb
168
138
  - lib/devdraft/configuration.rb
169
139
  - lib/devdraft/models/aggregated_balance_response.rb
170
140
  - lib/devdraft/models/all_balances_response.rb
171
- - lib/devdraft/models/all_of_all_balances_response_eurc.rb
172
- - lib/devdraft/models/all_of_all_balances_response_usdc.rb
173
- - lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_currency.rb
174
- - lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_network.rb
175
- - lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_currency.rb
176
- - lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_payment_rail.rb
177
- - lib/devdraft/models/all_of_create_customer_dto_status.rb
178
- - lib/devdraft/models/all_of_create_liquidation_address_dto_destination_currency.rb
179
- - lib/devdraft/models/all_of_create_liquidation_address_dto_destination_payment_rail.rb
180
- - lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_currency.rb
181
- - lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_network.rb
182
- - lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_currency.rb
183
- - lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_network.rb
184
- - lib/devdraft/models/all_of_update_customer_dto_status.rb
141
+ - lib/devdraft/models/bridge_fiat_payment_rail.rb
185
142
  - lib/devdraft/models/bridge_payment_rail.rb
186
143
  - lib/devdraft/models/create_bank_payment_intent_dto.rb
187
144
  - lib/devdraft/models/create_customer_dto.rb
188
145
  - lib/devdraft/models/create_direct_bank_transfer_dto.rb
189
146
  - lib/devdraft/models/create_direct_wallet_transfer_dto.rb
147
+ - lib/devdraft/models/create_external_bank_transfer_dto.rb
148
+ - lib/devdraft/models/create_external_stablecoin_transfer_dto.rb
190
149
  - lib/devdraft/models/create_invoice_dto.rb
191
150
  - lib/devdraft/models/create_liquidation_address_dto.rb
192
151
  - lib/devdraft/models/create_payment_link_dto.rb
193
- - lib/devdraft/models/create_product_dto.rb
194
152
  - lib/devdraft/models/create_stable_payment_intent_dto.rb
195
153
  - lib/devdraft/models/create_stablecoin_conversion_dto.rb
196
- - lib/devdraft/models/create_tax_input.rb
154
+ - lib/devdraft/models/create_tax_dto.rb
197
155
  - lib/devdraft/models/create_webhook_dto.rb
198
156
  - lib/devdraft/models/customer_status.rb
157
+ - lib/devdraft/models/customer_type.rb
199
158
  - lib/devdraft/models/destination_currency.rb
200
159
  - lib/devdraft/models/exchange_rate_response_dto.rb
201
160
  - lib/devdraft/models/fiat_currency.rb
@@ -208,11 +167,11 @@ files:
208
167
  - lib/devdraft/models/public_health_response_dto.rb
209
168
  - lib/devdraft/models/refund_response_dto.rb
210
169
  - lib/devdraft/models/stable_coin_currency.rb
170
+ - lib/devdraft/models/tax_controller_create201_response.rb
171
+ - lib/devdraft/models/tax_controller_delete_without_id400_response.rb
172
+ - lib/devdraft/models/tax_controller_update_without_id400_response.rb
211
173
  - lib/devdraft/models/update_customer_dto.rb
212
- - lib/devdraft/models/update_payment_link_dto.rb
213
- - lib/devdraft/models/update_preference_input.rb
214
- - lib/devdraft/models/update_product_dto.rb
215
- - lib/devdraft/models/update_tax_input.rb
174
+ - lib/devdraft/models/update_tax_dto.rb
216
175
  - lib/devdraft/models/update_webhook_dto.rb
217
176
  - lib/devdraft/models/webhook_response_dto.rb
218
177
  - lib/devdraft/version.rb
@@ -230,39 +189,25 @@ files:
230
189
  - spec/api/transfers_api_spec.rb
231
190
  - spec/api/wallets_api_spec.rb
232
191
  - spec/api/webhooks_api_spec.rb
233
- - spec/api_client_spec.rb
234
- - spec/base_object_spec.rb
235
- - spec/configuration_spec.rb
236
192
  - spec/models/aggregated_balance_response_spec.rb
237
193
  - spec/models/all_balances_response_spec.rb
238
- - spec/models/all_of_all_balances_response_eurc_spec.rb
239
- - spec/models/all_of_all_balances_response_usdc_spec.rb
240
- - spec/models/all_of_create_bank_payment_intent_dto_destination_currency_spec.rb
241
- - spec/models/all_of_create_bank_payment_intent_dto_destination_network_spec.rb
242
- - spec/models/all_of_create_bank_payment_intent_dto_source_currency_spec.rb
243
- - spec/models/all_of_create_bank_payment_intent_dto_source_payment_rail_spec.rb
244
- - spec/models/all_of_create_customer_dto_status_spec.rb
245
- - spec/models/all_of_create_liquidation_address_dto_destination_currency_spec.rb
246
- - spec/models/all_of_create_liquidation_address_dto_destination_payment_rail_spec.rb
247
- - spec/models/all_of_create_stable_payment_intent_dto_destination_currency_spec.rb
248
- - spec/models/all_of_create_stable_payment_intent_dto_destination_network_spec.rb
249
- - spec/models/all_of_create_stable_payment_intent_dto_source_currency_spec.rb
250
- - spec/models/all_of_create_stable_payment_intent_dto_source_network_spec.rb
251
- - spec/models/all_of_update_customer_dto_status_spec.rb
194
+ - spec/models/bridge_fiat_payment_rail_spec.rb
252
195
  - spec/models/bridge_payment_rail_spec.rb
253
196
  - spec/models/create_bank_payment_intent_dto_spec.rb
254
197
  - spec/models/create_customer_dto_spec.rb
255
198
  - spec/models/create_direct_bank_transfer_dto_spec.rb
256
199
  - spec/models/create_direct_wallet_transfer_dto_spec.rb
200
+ - spec/models/create_external_bank_transfer_dto_spec.rb
201
+ - spec/models/create_external_stablecoin_transfer_dto_spec.rb
257
202
  - spec/models/create_invoice_dto_spec.rb
258
203
  - spec/models/create_liquidation_address_dto_spec.rb
259
204
  - spec/models/create_payment_link_dto_spec.rb
260
- - spec/models/create_product_dto_spec.rb
261
205
  - spec/models/create_stable_payment_intent_dto_spec.rb
262
206
  - spec/models/create_stablecoin_conversion_dto_spec.rb
263
- - spec/models/create_tax_input_spec.rb
207
+ - spec/models/create_tax_dto_spec.rb
264
208
  - spec/models/create_webhook_dto_spec.rb
265
209
  - spec/models/customer_status_spec.rb
210
+ - spec/models/customer_type_spec.rb
266
211
  - spec/models/destination_currency_spec.rb
267
212
  - spec/models/exchange_rate_response_dto_spec.rb
268
213
  - spec/models/fiat_currency_spec.rb
@@ -275,18 +220,20 @@ files:
275
220
  - spec/models/public_health_response_dto_spec.rb
276
221
  - spec/models/refund_response_dto_spec.rb
277
222
  - spec/models/stable_coin_currency_spec.rb
223
+ - spec/models/tax_controller_create201_response_spec.rb
224
+ - spec/models/tax_controller_delete_without_id400_response_spec.rb
225
+ - spec/models/tax_controller_update_without_id400_response_spec.rb
278
226
  - spec/models/update_customer_dto_spec.rb
279
- - spec/models/update_payment_link_dto_spec.rb
280
- - spec/models/update_preference_input_spec.rb
281
- - spec/models/update_product_dto_spec.rb
282
- - spec/models/update_tax_input_spec.rb
227
+ - spec/models/update_tax_dto_spec.rb
283
228
  - spec/models/update_webhook_dto_spec.rb
284
229
  - spec/models/webhook_response_dto_spec.rb
285
230
  - spec/spec_helper.rb
286
- homepage: https://github.com/devdraftengineer/devdraft-sdk-ruby
231
+ homepage: https://github.com/devdraftengineer/ruby
287
232
  licenses:
288
233
  - Unlicense
289
- metadata: {}
234
+ metadata:
235
+ source_code_uri: https://github.com/devdraftengineer/ruby
236
+ homepage_uri: https://github.com/devdraftengineer/ruby
290
237
  post_install_message:
291
238
  rdoc_options: []
292
239
  require_paths:
@@ -295,7 +242,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
295
242
  requirements:
296
243
  - - ">="
297
244
  - !ruby/object:Gem::Version
298
- version: '1.9'
245
+ version: '2.7'
299
246
  required_rubygems_version: !ruby/object:Gem::Requirement
300
247
  requirements:
301
248
  - - ">="
@@ -305,7 +252,7 @@ requirements: []
305
252
  rubygems_version: 3.0.3.1
306
253
  signing_key:
307
254
  specification_version: 4
308
- summary: Devdraft Payment & Business Management API Ruby Gem
255
+ summary: Devdraft AI Payment & Business Management API Ruby Gem
309
256
  test_files:
310
257
  - spec/api/test_payments_api_spec.rb
311
258
  - spec/api/customers_api_spec.rb
@@ -321,56 +268,42 @@ test_files:
321
268
  - spec/api/api_health_api_spec.rb
322
269
  - spec/api/liquidation_addresses_api_spec.rb
323
270
  - spec/api/payment_intents_api_spec.rb
324
- - spec/api_client_spec.rb
325
- - spec/base_object_spec.rb
326
- - spec/configuration_spec.rb
327
- - spec/models/update_preference_input_spec.rb
328
- - spec/models/all_of_create_bank_payment_intent_dto_source_currency_spec.rb
329
271
  - spec/models/destination_currency_spec.rb
330
- - spec/models/update_product_dto_spec.rb
272
+ - spec/models/create_external_stablecoin_transfer_dto_spec.rb
331
273
  - spec/models/refund_response_dto_spec.rb
274
+ - spec/models/tax_controller_create201_response_spec.rb
332
275
  - spec/models/bridge_payment_rail_spec.rb
333
276
  - spec/models/payment_link_product_dto_spec.rb
334
277
  - spec/models/customer_status_spec.rb
278
+ - spec/models/tax_controller_delete_without_id400_response_spec.rb
335
279
  - spec/models/payment_response_dto_spec.rb
336
- - spec/models/all_of_create_stable_payment_intent_dto_destination_network_spec.rb
337
280
  - spec/models/create_direct_bank_transfer_dto_spec.rb
338
281
  - spec/models/all_balances_response_spec.rb
339
282
  - spec/models/create_stable_payment_intent_dto_spec.rb
340
283
  - spec/models/liquidation_address_response_dto_spec.rb
341
284
  - spec/models/public_health_response_dto_spec.rb
342
- - spec/models/all_of_create_bank_payment_intent_dto_destination_network_spec.rb
343
285
  - spec/models/health_response_dto_spec.rb
286
+ - spec/models/tax_controller_update_without_id400_response_spec.rb
344
287
  - spec/models/payment_request_dto_spec.rb
345
288
  - spec/models/exchange_rate_response_dto_spec.rb
346
- - spec/models/all_of_create_stable_payment_intent_dto_destination_currency_spec.rb
347
- - spec/models/all_of_create_bank_payment_intent_dto_destination_currency_spec.rb
348
- - spec/models/create_product_dto_spec.rb
349
289
  - spec/models/create_stablecoin_conversion_dto_spec.rb
350
290
  - spec/models/webhook_response_dto_spec.rb
351
- - spec/models/update_tax_input_spec.rb
352
291
  - spec/models/create_webhook_dto_spec.rb
353
292
  - spec/models/create_invoice_dto_spec.rb
354
293
  - spec/models/fiat_currency_spec.rb
355
294
  - spec/models/create_payment_link_dto_spec.rb
356
- - spec/models/all_of_create_liquidation_address_dto_destination_payment_rail_spec.rb
295
+ - spec/models/create_tax_dto_spec.rb
357
296
  - spec/models/update_customer_dto_spec.rb
358
297
  - spec/models/create_customer_dto_spec.rb
359
- - spec/models/all_of_all_balances_response_usdc_spec.rb
360
- - spec/models/all_of_create_liquidation_address_dto_destination_currency_spec.rb
361
- - spec/models/update_payment_link_dto_spec.rb
362
298
  - spec/models/create_liquidation_address_dto_spec.rb
363
- - spec/models/all_of_create_customer_dto_status_spec.rb
364
299
  - spec/models/create_direct_wallet_transfer_dto_spec.rb
365
- - spec/models/all_of_create_bank_payment_intent_dto_source_payment_rail_spec.rb
366
300
  - spec/models/update_webhook_dto_spec.rb
367
301
  - spec/models/create_bank_payment_intent_dto_spec.rb
368
- - spec/models/all_of_create_stable_payment_intent_dto_source_network_spec.rb
369
- - spec/models/all_of_all_balances_response_eurc_spec.rb
302
+ - spec/models/bridge_fiat_payment_rail_spec.rb
303
+ - spec/models/customer_type_spec.rb
370
304
  - spec/models/aggregated_balance_response_spec.rb
371
- - spec/models/all_of_create_stable_payment_intent_dto_source_currency_spec.rb
305
+ - spec/models/update_tax_dto_spec.rb
306
+ - spec/models/create_external_bank_transfer_dto_spec.rb
372
307
  - spec/models/stable_coin_currency_spec.rb
373
- - spec/models/all_of_update_customer_dto_status_spec.rb
374
- - spec/models/create_tax_input_spec.rb
375
308
  - spec/models/invoice_product_dto_spec.rb
376
309
  - spec/spec_helper.rb
@@ -1,9 +0,0 @@
1
- # DevDraftAI::AllOfAllBalancesResponseEurc
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **currency** | **String** | The stablecoin currency |
7
- **total_balance** | **String** | The total aggregated balance across all wallets and chains |
8
- **balances** | **Array<Array>** | Detailed breakdown of balances by wallet and chain |
9
-
@@ -1,9 +0,0 @@
1
- # DevDraftAI::AllOfAllBalancesResponseUsdc
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **currency** | **String** | The stablecoin currency |
7
- **total_balance** | **String** | The total aggregated balance across all wallets and chains |
8
- **balances** | **Array<Array>** | Detailed breakdown of balances by wallet and chain |
9
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::AllOfCreateBankPaymentIntentDtoDestinationCurrency
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::AllOfCreateBankPaymentIntentDtoDestinationNetwork
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::AllOfCreateBankPaymentIntentDtoSourceCurrency
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::AllOfCreateBankPaymentIntentDtoSourcePaymentRail
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::AllOfCreateCustomerDtoStatus
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::AllOfCreateLiquidationAddressDtoDestinationCurrency
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::AllOfCreateLiquidationAddressDtoDestinationPaymentRail
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::AllOfCreateStablePaymentIntentDtoDestinationCurrency
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::AllOfCreateStablePaymentIntentDtoDestinationNetwork
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::AllOfCreateStablePaymentIntentDtoSourceCurrency
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::AllOfCreateStablePaymentIntentDtoSourceNetwork
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::AllOfUpdateCustomerDtoStatus
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,18 +0,0 @@
1
- # DevDraftAI::CreateProductDto
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. |
7
- **description** | **String** | Detailed description of the product. Supports markdown formatting for rich text display. |
8
- **price** | [**BigDecimal**](BigDecimal.md) | Product price in the specified currency. Must be greater than 0. |
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
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::CreateTaxInput
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::UpdatePaymentLinkDto
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::UpdatePreferenceInput
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
@@ -1,18 +0,0 @@
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
-
@@ -1,6 +0,0 @@
1
- # DevDraftAI::UpdateTaxInput
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
data/example.rb DELETED
@@ -1,129 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # Example usage of the Devdraft Ruby SDK
3
- #
4
- # Installation:
5
- # gem install devdraft
6
- #
7
- # Usage:
8
- # ruby example.rb
9
-
10
- require 'devdraft'
11
-
12
- # Configure the SDK
13
- Devdraft.configure do |config|
14
- # Set your authentication headers (required for authenticated endpoints)
15
- config.default_headers = {
16
- 'x-client-key' => 'YOUR_CLIENT_KEY',
17
- 'x-secret-key' => 'YOUR_SECRET_KEY'
18
- }
19
-
20
- # Optional: Set a custom base URL if needed
21
- # config.base_url = 'https://api.devdraft.com'
22
-
23
- # Optional: Enable debug logging
24
- config.debugging = true
25
- end
26
-
27
- # Example 1: Health Check
28
- def check_health
29
- puts "\n=== Health Check Example ==="
30
- api_instance = Devdraft::APIHealthApi.new
31
-
32
- begin
33
- # Public health check (no auth required)
34
- result = api_instance.health_controller_public_health_check_v0
35
- puts "Public Health Check Response:"
36
- puts result.inspect
37
-
38
- # Authenticated health check
39
- result = api_instance.health_controller_check_v0
40
- puts "\nAuthenticated Health Check Response:"
41
- puts result.inspect
42
- rescue => e
43
- puts "Error during health check: #{e}"
44
- end
45
- end
46
-
47
- # Example 2: Create Customer
48
- def create_customer
49
- puts "\n=== Create Customer Example ==="
50
- api_instance = Devdraft::CustomersApi.new
51
-
52
- begin
53
- # Create a new customer
54
- customer_data = Devdraft::CreateCustomerDto.new(
55
- email: 'customer@example.com',
56
- name: 'John Doe',
57
- status: 'active'
58
- )
59
-
60
- result = api_instance.customer_controller_create(customer_data)
61
- puts "Customer Created:"
62
- puts result.inspect
63
- rescue => e
64
- puts "Error creating customer: #{e}"
65
- end
66
- end
67
-
68
- # Example 3: Create Payment Link
69
- def create_payment_link
70
- puts "\n=== Create Payment Link Example ==="
71
- api_instance = Devdraft::PaymentLinksApi.new
72
-
73
- begin
74
- # Create a payment link
75
- payment_link = Devdraft::CreatePaymentLinkDto.new(
76
- amount: 99.99,
77
- currency: 'USD',
78
- description: 'Premium Subscription',
79
- expires_at: (Time.now + 7.days).iso8601, # Expires in 7 days
80
- products: [
81
- Devdraft::PaymentLinkProductDto.new(
82
- name: 'Premium Plan',
83
- quantity: 1,
84
- price: 99.99
85
- )
86
- ]
87
- )
88
-
89
- result = api_instance.payment_links_controller_create(payment_link)
90
- puts "Payment Link Created:"
91
- puts result.inspect
92
- rescue => e
93
- puts "Error creating payment link: #{e}"
94
- end
95
- end
96
-
97
- # Example 4: Check Balance
98
- def check_balance
99
- puts "\n=== Check Balance Example ==="
100
- api_instance = Devdraft::AppBalancesApi.new
101
-
102
- begin
103
- # Get all balances
104
- balances = api_instance.balance_controller_get_all_balances
105
- puts "All Balances:"
106
- puts balances.inspect
107
-
108
- # Get specific currency balance
109
- usdc_balance = api_instance.balance_controller_get_usdc_balance
110
- puts "\nUSDC Balance:"
111
- puts usdc_balance.inspect
112
- rescue => e
113
- puts "Error checking balance: #{e}"
114
- end
115
- end
116
-
117
- # Run examples
118
- puts "Devdraft Ruby SDK Examples"
119
- puts "=========================="
120
- puts "Make sure to set your client key and secret key in the configuration block above."
121
- puts "You can generate these keys from https://console.devdraft.ai under App Settings."
122
- puts "Running examples..."
123
-
124
- check_health
125
- create_customer
126
- create_payment_link
127
- check_balance
128
-
129
- puts "\nExamples completed!"