devdraft 1.0.1 → 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 +160 -191
  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 -94
  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
@@ -3,22 +3,23 @@
3
3
 
4
4
  # A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.17.0
7
10
 
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.65
10
11
  =end
11
12
 
12
13
  require 'spec_helper'
13
14
  require 'json'
14
15
 
15
- # Unit tests for DevDraftAI::ProductsApi
16
- # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
16
+ # Unit tests for Devdraft::ProductsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
17
18
  # Please update as you see appropriate
18
19
  describe 'ProductsApi' do
19
20
  before do
20
21
  # run before each test
21
- @instance = DevDraftAI::ProductsApi.new
22
+ @api_instance = Devdraft::ProductsApi.new
22
23
  end
23
24
 
24
25
  after do
@@ -27,30 +28,30 @@ describe 'ProductsApi' do
27
28
 
28
29
  describe 'test an instance of ProductsApi' do
29
30
  it 'should create an instance of ProductsApi' do
30
- expect(@instance).to be_instance_of(DevDraftAI::ProductsApi)
31
+ expect(@api_instance).to be_instance_of(Devdraft::ProductsApi)
31
32
  end
32
33
  end
33
34
 
34
35
  # unit tests for product_controller_create
35
36
  # Create a new product
36
37
  # Creates a new product with optional image uploads. This endpoint allows you to create products with detailed information and multiple images. ## Use Cases - Add new products to your catalog - Create products with multiple images - Set up product pricing and descriptions ## Supported Image Formats - JPEG/JPG - PNG - WebP - Maximum 10 images per product - Maximum file size: 5MB per image ## Example Request (multipart/form-data) ``` name: \"Premium Widget\" description: \"High-quality widget for all your needs\" price: \"99.99\" images: [file1.jpg, file2.jpg] // Optional, up to 10 images ``` ## Required Fields - `name`: Product name - `price`: Product price (decimal number) ## Optional Fields - `description`: Detailed product description - `images`: Product images (up to 10 files)
37
- # @param name
38
- # @param description
39
- # @param price
40
- # @param currency
41
- # @param type
42
- # @param weight
43
- # @param unit
44
- # @param quantity
45
- # @param stock_count
46
- # @param status
47
- # @param product_type
48
- # @param images
38
+ # @param name Product name as it will appear to customers. Should be clear and descriptive.
39
+ # @param description Detailed description of the product. Supports markdown formatting for rich text display.
40
+ # @param price Product price in the specified currency. Must be greater than 0.
49
41
  # @param [Hash] opts the optional parameters
42
+ # @option opts [String] :currency Currency code for the price. Defaults to USD if not specified.
43
+ # @option opts [String] :type Product type
44
+ # @option opts [Float] :weight Weight of the product
45
+ # @option opts [String] :unit Unit of measurement
46
+ # @option opts [Float] :quantity Quantity available
47
+ # @option opts [Float] :stock_count Stock count
48
+ # @option opts [String] :status Product status
49
+ # @option opts [String] :product_type Product type
50
+ # @option opts [Array<String>] :images Array of image URLs
50
51
  # @return [nil]
51
52
  describe 'product_controller_create test' do
52
53
  it 'should work' do
53
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
54
55
  end
55
56
  end
56
57
 
@@ -58,12 +59,12 @@ describe 'ProductsApi' do
58
59
  # Get all products
59
60
  # Retrieves a list of products with pagination. This endpoint allows you to fetch products with optional pagination. ## Use Cases - List all products - Browse product catalog - Implement product search ## Query Parameters - &#x60;skip&#x60;: Number of records to skip (default: 0) - &#x60;take&#x60;: Number of records to take (default: 10) ## Example Response &#x60;&#x60;&#x60;json { \&quot;data\&quot;: [ { \&quot;id\&quot;: \&quot;prod_123456\&quot;, \&quot;name\&quot;: \&quot;Premium Widget\&quot;, \&quot;description\&quot;: \&quot;High-quality widget for all your needs\&quot;, \&quot;price\&quot;: \&quot;99.99\&quot;, \&quot;images\&quot;: [ \&quot;https://storage.example.com/images/file1.jpg\&quot;, \&quot;https://storage.example.com/images/file2.jpg\&quot; ], \&quot;createdAt\&quot;: \&quot;2024-03-20T10:00:00Z\&quot; } ], \&quot;total\&quot;: 100, \&quot;skip\&quot;: 0, \&quot;take\&quot;: 10 } &#x60;&#x60;&#x60;
60
61
  # @param [Hash] opts the optional parameters
61
- # @option opts [BigDecimal] :skip Number of records to skip
62
- # @option opts [BigDecimal] :take Number of records to take
62
+ # @option opts [Float] :skip Number of records to skip
63
+ # @option opts [Float] :take Number of records to take
63
64
  # @return [nil]
64
65
  describe 'product_controller_find_all test' do
65
66
  it 'should work' do
66
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
68
  end
68
69
  end
69
70
 
@@ -75,7 +76,7 @@ describe 'ProductsApi' do
75
76
  # @return [nil]
76
77
  describe 'product_controller_find_one test' do
77
78
  it 'should work' do
78
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
79
80
  end
80
81
  end
81
82
 
@@ -87,31 +88,31 @@ describe 'ProductsApi' do
87
88
  # @return [nil]
88
89
  describe 'product_controller_remove test' do
89
90
  it 'should work' do
90
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
91
92
  end
92
93
  end
93
94
 
94
95
  # unit tests for product_controller_update
95
96
  # Update a product
96
- # Updates an existing product&#x27;s information and optionally adds new images. This endpoint allows you to modify product details and manage product images. ## Use Cases - Update product information - Change product pricing - Modify product images - Update product description ## Example Request (multipart/form-data) &#x60;&#x60;&#x60; name: \&quot;Updated Premium Widget\&quot; description: \&quot;Updated description\&quot; price: \&quot;129.99\&quot; images: [file1.jpg, file2.jpg] // Optional, up to 10 images &#x60;&#x60;&#x60; ## Notes - Only include fields that need to be updated - New images will replace existing images - Maximum 10 images per product - Images are automatically optimized
97
- # @param name
98
- # @param description
99
- # @param price
100
- # @param currency
101
- # @param type
102
- # @param weight
103
- # @param unit
104
- # @param quantity
105
- # @param stock_count
106
- # @param status
107
- # @param product_type
108
- # @param images
97
+ # Updates an existing product&#39;s information and optionally adds new images. This endpoint allows you to modify product details and manage product images. ## Use Cases - Update product information - Change product pricing - Modify product images - Update product description ## Example Request (multipart/form-data) &#x60;&#x60;&#x60; name: \&quot;Updated Premium Widget\&quot; description: \&quot;Updated description\&quot; price: \&quot;129.99\&quot; images: [file1.jpg, file2.jpg] // Optional, up to 10 images &#x60;&#x60;&#x60; ## Notes - Only include fields that need to be updated - New images will replace existing images - Maximum 10 images per product - Images are automatically optimized
109
98
  # @param id Product ID
110
99
  # @param [Hash] opts the optional parameters
100
+ # @option opts [String] :name Product name as it will appear to customers. Should be clear and descriptive.
101
+ # @option opts [String] :description Detailed description of the product. Supports markdown formatting for rich text display.
102
+ # @option opts [Float] :price Product price in the specified currency. Must be greater than 0.
103
+ # @option opts [String] :currency Currency code for the price. Defaults to USD if not specified.
104
+ # @option opts [String] :type Product type
105
+ # @option opts [Float] :weight Weight of the product
106
+ # @option opts [String] :unit Unit of measurement
107
+ # @option opts [Float] :quantity Quantity available
108
+ # @option opts [Float] :stock_count Stock count
109
+ # @option opts [String] :status Product status
110
+ # @option opts [String] :product_type Product type
111
+ # @option opts [Array<String>] :images Array of image URLs
111
112
  # @return [nil]
112
113
  describe 'product_controller_update test' do
113
114
  it 'should work' do
114
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
115
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
115
116
  end
116
117
  end
117
118
 
@@ -123,7 +124,7 @@ describe 'ProductsApi' do
123
124
  # @return [nil]
124
125
  describe 'product_controller_upload_image test' do
125
126
  it 'should work' do
126
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
127
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
127
128
  end
128
129
  end
129
130
 
@@ -3,22 +3,23 @@
3
3
 
4
4
  # A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.17.0
7
10
 
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.65
10
11
  =end
11
12
 
12
13
  require 'spec_helper'
13
14
  require 'json'
14
15
 
15
- # Unit tests for DevDraftAI::TaxesApi
16
- # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
16
+ # Unit tests for Devdraft::TaxesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
17
18
  # Please update as you see appropriate
18
19
  describe 'TaxesApi' do
19
20
  before do
20
21
  # run before each test
21
- @instance = DevDraftAI::TaxesApi.new
22
+ @api_instance = Devdraft::TaxesApi.new
22
23
  end
23
24
 
24
25
  after do
@@ -27,64 +28,93 @@ describe 'TaxesApi' do
27
28
 
28
29
  describe 'test an instance of TaxesApi' do
29
30
  it 'should create an instance of TaxesApi' do
30
- expect(@instance).to be_instance_of(DevDraftAI::TaxesApi)
31
+ expect(@api_instance).to be_instance_of(Devdraft::TaxesApi)
31
32
  end
32
33
  end
33
34
 
34
35
  # unit tests for tax_controller_create
35
36
  # Create a new tax
36
- # @param body
37
+ # Creates a new tax rate that can be applied to products, invoices, and payment links. ## Use Cases - Set up sales tax for different regions - Create VAT rates for international customers - Configure state and local tax rates - Manage tax compliance requirements ## Example: Create Basic Sales Tax &#x60;&#x60;&#x60;json { \&quot;name\&quot;: \&quot;Sales Tax\&quot;, \&quot;description\&quot;: \&quot;Standard sales tax for retail transactions\&quot;, \&quot;percentage\&quot;: 8.5, \&quot;active\&quot;: true } &#x60;&#x60;&#x60; ## Required Fields - &#x60;name&#x60;: Tax name for identification (1-100 characters) - &#x60;percentage&#x60;: Tax rate percentage (0-100) ## Optional Fields - &#x60;description&#x60;: Explanation of what this tax covers (max 255 characters) - &#x60;active&#x60;: Whether this tax is currently active (default: true) - &#x60;appIds&#x60;: Array of app IDs where this tax should be available
38
+ # @param create_tax_dto Tax creation data
37
39
  # @param [Hash] opts the optional parameters
38
- # @return [nil]
40
+ # @return [TaxControllerCreate201Response]
39
41
  describe 'tax_controller_create test' do
40
42
  it 'should work' do
41
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
+ end
45
+ end
46
+
47
+ # unit tests for tax_controller_delete_without_id
48
+ # Tax ID required for deletion
49
+ # This endpoint requires a tax ID in the URL path. Use DELETE /api/v0/taxes/{id} instead.
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [nil]
52
+ describe 'tax_controller_delete_without_id test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
42
55
  end
43
56
  end
44
57
 
45
58
  # unit tests for tax_controller_find_all
46
- # Get all taxes
59
+ # Get all taxes with filters
60
+ # Retrieves a list of taxes with optional filtering and pagination. ## Use Cases - List all available tax rates - Search taxes by name - Filter active/inactive taxes - Export tax configuration ## Query Parameters - &#x60;skip&#x60;: Number of records to skip (default: 0, min: 0) - &#x60;take&#x60;: Number of records to return (default: 10, min: 1, max: 100) - &#x60;name&#x60;: Filter taxes by name (partial match, case-insensitive) - &#x60;active&#x60;: Filter by active status (true/false) ## Example Request &#x60;GET /api/v0/taxes?skip&#x3D;0&amp;take&#x3D;20&amp;active&#x3D;true&amp;name&#x3D;Sales&#x60; ## Example Response &#x60;&#x60;&#x60;json [ { \&quot;id\&quot;: \&quot;tax_123456\&quot;, \&quot;name\&quot;: \&quot;Sales Tax\&quot;, \&quot;description\&quot;: \&quot;Standard sales tax for retail transactions\&quot;, \&quot;percentage\&quot;: 8.5, \&quot;active\&quot;: true, \&quot;created_at\&quot;: \&quot;2024-03-20T10:00:00Z\&quot;, \&quot;updated_at\&quot;: \&quot;2024-03-20T10:00:00Z\&quot; } ] &#x60;&#x60;&#x60;
47
61
  # @param [Hash] opts the optional parameters
48
- # @option opts [String] :skip Number of records to skip
49
- # @option opts [String] :take Number of records to take
62
+ # @option opts [Float] :skip Number of records to skip for pagination
63
+ # @option opts [Float] :take Number of records to return (max 100)
64
+ # @option opts [String] :name Filter taxes by name (partial match, case-insensitive)
65
+ # @option opts [Boolean] :active Filter by active status
50
66
  # @return [nil]
51
67
  describe 'tax_controller_find_all test' do
52
68
  it 'should work' do
53
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
69
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
54
70
  end
55
71
  end
56
72
 
57
73
  # unit tests for tax_controller_find_one
58
74
  # Get a tax by ID
59
- # @param id Tax ID
75
+ # Retrieves detailed information about a specific tax. ## Use Cases - View tax details - Verify tax configuration - Check tax status before applying to products ## Path Parameters - &#x60;id&#x60;: Tax UUID (required) - Must be a valid UUID format ## Example Request &#x60;GET /api/v0/taxes/123e4567-e89b-12d3-a456-426614174000&#x60; ## Example Response &#x60;&#x60;&#x60;json { \&quot;id\&quot;: \&quot;tax_123456\&quot;, \&quot;name\&quot;: \&quot;Sales Tax\&quot;, \&quot;description\&quot;: \&quot;Standard sales tax for retail transactions\&quot;, \&quot;percentage\&quot;: 8.5, \&quot;active\&quot;: true, \&quot;created_at\&quot;: \&quot;2024-03-20T10:00:00Z\&quot;, \&quot;updated_at\&quot;: \&quot;2024-03-20T10:00:00Z\&quot; } &#x60;&#x60;&#x60;
76
+ # @param id Tax unique identifier (UUID)
60
77
  # @param [Hash] opts the optional parameters
61
78
  # @return [nil]
62
79
  describe 'tax_controller_find_one test' do
63
80
  it 'should work' do
64
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
65
82
  end
66
83
  end
67
84
 
68
85
  # unit tests for tax_controller_remove
69
86
  # Delete a tax
70
- # @param id Tax ID
87
+ # Deletes an existing tax. ## Use Cases - Remove obsolete tax rates - Clean up unused taxes - Comply with regulatory changes ## Path Parameters - &#x60;id&#x60;: Tax UUID (required) - Must be a valid UUID format ## Example Request &#x60;DELETE /api/v0/taxes/123e4567-e89b-12d3-a456-426614174000&#x60; ## Warning This action cannot be undone. Consider deactivating the tax instead of deleting it if it has been used in transactions.
88
+ # @param id Tax unique identifier (UUID)
71
89
  # @param [Hash] opts the optional parameters
72
90
  # @return [nil]
73
91
  describe 'tax_controller_remove test' do
74
92
  it 'should work' do
75
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
93
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
76
94
  end
77
95
  end
78
96
 
79
97
  # unit tests for tax_controller_update
80
98
  # Update a tax
81
- # @param body
82
- # @param id Tax ID
99
+ # Updates an existing tax&#39;s information. ## Use Cases - Modify tax percentage rates - Update tax descriptions - Activate/deactivate taxes - Change tax names ## Path Parameters - &#x60;id&#x60;: Tax UUID (required) - Must be a valid UUID format ## Example Request &#x60;PUT /api/v0/taxes/123e4567-e89b-12d3-a456-426614174000&#x60; ## Example Request Body &#x60;&#x60;&#x60;json { \&quot;name\&quot;: \&quot;Updated Sales Tax\&quot;, \&quot;description\&quot;: \&quot;Updated sales tax rate\&quot;, \&quot;percentage\&quot;: 9.0, \&quot;active\&quot;: true } &#x60;&#x60;&#x60; ## Notes - Only include fields that need to be updated - All fields are optional in updates - Percentage changes affect future calculations only
100
+ # @param id Tax unique identifier (UUID)
101
+ # @param update_tax_dto Tax update data - only include fields you want to update
83
102
  # @param [Hash] opts the optional parameters
84
103
  # @return [nil]
85
104
  describe 'tax_controller_update test' do
86
105
  it 'should work' do
87
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
106
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
107
+ end
108
+ end
109
+
110
+ # unit tests for tax_controller_update_without_id
111
+ # Tax ID required for updates
112
+ # This endpoint requires a tax ID in the URL path. Use PUT /api/v0/taxes/{id} instead.
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [nil]
115
+ describe 'tax_controller_update_without_id test' do
116
+ it 'should work' do
117
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
88
118
  end
89
119
  end
90
120
 
@@ -3,22 +3,23 @@
3
3
 
4
4
  # A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.17.0
7
10
 
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.65
10
11
  =end
11
12
 
12
13
  require 'spec_helper'
13
14
  require 'json'
14
15
 
15
- # Unit tests for DevDraftAI::TestPaymentsApi
16
- # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
16
+ # Unit tests for Devdraft::TestPaymentsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
17
18
  # Please update as you see appropriate
18
19
  describe 'TestPaymentsApi' do
19
20
  before do
20
21
  # run before each test
21
- @instance = DevDraftAI::TestPaymentsApi.new
22
+ @api_instance = Devdraft::TestPaymentsApi.new
22
23
  end
23
24
 
24
25
  after do
@@ -27,20 +28,20 @@ describe 'TestPaymentsApi' do
27
28
 
28
29
  describe 'test an instance of TestPaymentsApi' do
29
30
  it 'should create an instance of TestPaymentsApi' do
30
- expect(@instance).to be_instance_of(DevDraftAI::TestPaymentsApi)
31
+ expect(@api_instance).to be_instance_of(Devdraft::TestPaymentsApi)
31
32
  end
32
33
  end
33
34
 
34
35
  # unit tests for test_payment_controller_create_payment_v0
35
36
  # Process a test payment
36
- # Creates a new payment. Requires an idempotency key to prevent duplicate payments on retry. ## Idempotency Key Best Practices 1. **Generate unique keys**: Use UUIDs or similar unique identifiers, prefixed with a descriptive operation name 2. **Store keys client-side**: Save the key with the original request so you can retry with the same key 3. **Key format**: Between 6-64 alphanumeric characters 4. **Expiration**: Keys expire after 24 hours by default 5. **Use case**: Perfect for ensuring payment operations are never processed twice, even during network failures ## Example Request (curl) &#x60;&#x60;&#x60;bash curl -X POST \\ https://api.example.com/rest-api/v0/test-payment \\ -H &#x27;Content-Type: application/json&#x27; \\ -H &#x27;Client-Key: your-api-key&#x27; \\ -H &#x27;Client-Secret: your-api-secret&#x27; \\ -H &#x27;Idempotency-Key: payment_123456_unique_key&#x27; \\ -d &#x27;{ \&quot;amount\&quot;: 100.00, \&quot;currency\&quot;: \&quot;USD\&quot;, \&quot;description\&quot;: \&quot;Test payment for order #12345\&quot;, \&quot;customerId\&quot;: \&quot;cus_12345\&quot; }&#x27; &#x60;&#x60;&#x60; ## Example Response (First Request) &#x60;&#x60;&#x60;json { \&quot;id\&quot;: \&quot;pay_abc123xyz456\&quot;, \&quot;amount\&quot;: 100.00, \&quot;currency\&quot;: \&quot;USD\&quot;, \&quot;status\&quot;: \&quot;succeeded\&quot;, \&quot;timestamp\&quot;: \&quot;2023-07-01T12:00:00.000Z\&quot; } &#x60;&#x60;&#x60; ## Example Response (Duplicate Request) The exact same response will be returned for any duplicate request with the same idempotency key, without creating a new payment. ## Retry Scenario Example Network failure during payment submission: 1. Client creates payment request with idempotency key: \&quot;payment_123456_unique_key\&quot; 2. Request begins processing, but network connection fails before response received 3. Client retries the exact same request with the same idempotency key 4. Server detects duplicate idempotency key and returns the result of the first request 5. No duplicate payment is created If you retry with same key but different parameters (e.g., different amount), you&#x27;ll receive a 409 Conflict error.
37
- # @param body
37
+ # Creates a new payment. Requires an idempotency key to prevent duplicate payments on retry. ## Idempotency Key Best Practices 1. **Generate unique keys**: Use UUIDs or similar unique identifiers, prefixed with a descriptive operation name 2. **Store keys client-side**: Save the key with the original request so you can retry with the same key 3. **Key format**: Between 6-64 alphanumeric characters 4. **Expiration**: Keys expire after 24 hours by default 5. **Use case**: Perfect for ensuring payment operations are never processed twice, even during network failures ## Example Request (curl) &#x60;&#x60;&#x60;bash curl -X POST \\ https://api.example.com/rest-api/v0/test-payment \\ -H &#39;Content-Type: application/json&#39; \\ -H &#39;Client-Key: your-api-key&#39; \\ -H &#39;Client-Secret: your-api-secret&#39; \\ -H &#39;Idempotency-Key: payment_123456_unique_key&#39; \\ -d &#39;{ \&quot;amount\&quot;: 100.00, \&quot;currency\&quot;: \&quot;USD\&quot;, \&quot;description\&quot;: \&quot;Test payment for order #12345\&quot;, \&quot;customerId\&quot;: \&quot;cus_12345\&quot; }&#39; &#x60;&#x60;&#x60; ## Example Response (First Request) &#x60;&#x60;&#x60;json { \&quot;id\&quot;: \&quot;pay_abc123xyz456\&quot;, \&quot;amount\&quot;: 100.00, \&quot;currency\&quot;: \&quot;USD\&quot;, \&quot;status\&quot;: \&quot;succeeded\&quot;, \&quot;timestamp\&quot;: \&quot;2023-07-01T12:00:00.000Z\&quot; } &#x60;&#x60;&#x60; ## Example Response (Duplicate Request) The exact same response will be returned for any duplicate request with the same idempotency key, without creating a new payment. ## Retry Scenario Example Network failure during payment submission: 1. Client creates payment request with idempotency key: \&quot;payment_123456_unique_key\&quot; 2. Request begins processing, but network connection fails before response received 3. Client retries the exact same request with the same idempotency key 4. Server detects duplicate idempotency key and returns the result of the first request 5. No duplicate payment is created If you retry with same key but different parameters (e.g., different amount), you&#39;ll receive a 409 Conflict error.
38
38
  # @param idempotency_key Unique key to ensure the request is idempotent. If a request with the same key is sent multiple times, only the first will be processed, and subsequent requests will return the same response.
39
+ # @param payment_request_dto
39
40
  # @param [Hash] opts the optional parameters
40
41
  # @return [PaymentResponseDto]
41
42
  describe 'test_payment_controller_create_payment_v0 test' do
42
43
  it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
45
  end
45
46
  end
46
47
 
@@ -51,20 +52,20 @@ describe 'TestPaymentsApi' do
51
52
  # @return [PaymentResponseDto]
52
53
  describe 'test_payment_controller_get_payment_v0 test' do
53
54
  it 'should work' do
54
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
56
  end
56
57
  end
57
58
 
58
59
  # unit tests for test_payment_controller_refund_payment_v0
59
60
  # Refund a payment
60
- # Refunds an existing payment. Requires an idempotency key to prevent duplicate refunds on retry. ## Idempotency Key Benefits for Refunds Refunds are critical financial operations where duplicates can cause serious issues. Using idempotency keys ensures: 1. **Prevent duplicate refunds**: Even if a request times out or fails, retrying with the same key won&#x27;t issue multiple refunds 2. **Safe retries**: Network failures or timeouts won&#x27;t risk creating multiple refunds 3. **Consistent response**: Always get the same response for the same operation ## Example Request (curl) &#x60;&#x60;&#x60;bash curl -X POST \\ https://api.example.com/rest-api/v0/test-payment/pay_abc123xyz456/refund \\ -H &#x27;Content-Type: application/json&#x27; \\ -H &#x27;Client-Key: your-api-key&#x27; \\ -H &#x27;Client-Secret: your-api-secret&#x27; \\ -H &#x27;Idempotency-Key: refund_123456_unique_key&#x27; &#x60;&#x60;&#x60; ## Example Response (First Request) &#x60;&#x60;&#x60;json { \&quot;id\&quot;: \&quot;ref_xyz789\&quot;, \&quot;paymentId\&quot;: \&quot;pay_abc123xyz456\&quot;, \&quot;amount\&quot;: 100.00, \&quot;status\&quot;: \&quot;succeeded\&quot;, \&quot;timestamp\&quot;: \&quot;2023-07-01T14:30:00.000Z\&quot; } &#x60;&#x60;&#x60; ## Example Response (Duplicate Request) The exact same response will be returned for any duplicate request with the same idempotency key, without creating a new refund. ## Idempotency Key Guidelines - Use a unique key for each distinct refund operation - Store keys client-side to ensure you can retry with the same key if needed - Keys expire after 24 hours by default
61
+ # Refunds an existing payment. Requires an idempotency key to prevent duplicate refunds on retry. ## Idempotency Key Benefits for Refunds Refunds are critical financial operations where duplicates can cause serious issues. Using idempotency keys ensures: 1. **Prevent duplicate refunds**: Even if a request times out or fails, retrying with the same key won&#39;t issue multiple refunds 2. **Safe retries**: Network failures or timeouts won&#39;t risk creating multiple refunds 3. **Consistent response**: Always get the same response for the same operation ## Example Request (curl) &#x60;&#x60;&#x60;bash curl -X POST \\ https://api.example.com/rest-api/v0/test-payment/pay_abc123xyz456/refund \\ -H &#39;Content-Type: application/json&#39; \\ -H &#39;Client-Key: your-api-key&#39; \\ -H &#39;Client-Secret: your-api-secret&#39; \\ -H &#39;Idempotency-Key: refund_123456_unique_key&#39; &#x60;&#x60;&#x60; ## Example Response (First Request) &#x60;&#x60;&#x60;json { \&quot;id\&quot;: \&quot;ref_xyz789\&quot;, \&quot;paymentId\&quot;: \&quot;pay_abc123xyz456\&quot;, \&quot;amount\&quot;: 100.00, \&quot;status\&quot;: \&quot;succeeded\&quot;, \&quot;timestamp\&quot;: \&quot;2023-07-01T14:30:00.000Z\&quot; } &#x60;&#x60;&#x60; ## Example Response (Duplicate Request) The exact same response will be returned for any duplicate request with the same idempotency key, without creating a new refund. ## Idempotency Key Guidelines - Use a unique key for each distinct refund operation - Store keys client-side to ensure you can retry with the same key if needed - Keys expire after 24 hours by default
61
62
  # @param id Payment ID to refund
62
63
  # @param idempotency_key Unique key to ensure the refund request is idempotent. If a request with the same key is sent multiple times, only the first will be processed, and subsequent requests will return the same response.
63
64
  # @param [Hash] opts the optional parameters
64
65
  # @return [RefundResponseDto]
65
66
  describe 'test_payment_controller_refund_payment_v0 test' do
66
67
  it 'should work' do
67
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
69
  end
69
70
  end
70
71
 
@@ -3,22 +3,23 @@
3
3
 
4
4
  # A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.17.0
7
10
 
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.65
10
11
  =end
11
12
 
12
13
  require 'spec_helper'
13
14
  require 'json'
14
15
 
15
- # Unit tests for DevDraftAI::TransfersApi
16
- # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
16
+ # Unit tests for Devdraft::TransfersApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
17
18
  # Please update as you see appropriate
18
19
  describe 'TransfersApi' do
19
20
  before do
20
21
  # run before each test
21
- @instance = DevDraftAI::TransfersApi.new
22
+ @api_instance = Devdraft::TransfersApi.new
22
23
  end
23
24
 
24
25
  after do
@@ -27,40 +28,62 @@ describe 'TransfersApi' do
27
28
 
28
29
  describe 'test an instance of TransfersApi' do
29
30
  it 'should create an instance of TransfersApi' do
30
- expect(@instance).to be_instance_of(DevDraftAI::TransfersApi)
31
+ expect(@api_instance).to be_instance_of(Devdraft::TransfersApi)
31
32
  end
32
33
  end
33
34
 
34
35
  # unit tests for transfer_controller_create_direct_bank_transfer
35
36
  # Create a direct bank transfer
36
- # @param body
37
+ # @param create_direct_bank_transfer_dto
37
38
  # @param [Hash] opts the optional parameters
38
39
  # @return [nil]
39
40
  describe 'transfer_controller_create_direct_bank_transfer test' do
40
41
  it 'should work' do
41
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
42
43
  end
43
44
  end
44
45
 
45
46
  # unit tests for transfer_controller_create_direct_wallet_transfer
46
47
  # Create a direct wallet transfer
47
- # @param body
48
+ # @param create_direct_wallet_transfer_dto
48
49
  # @param [Hash] opts the optional parameters
49
50
  # @return [nil]
50
51
  describe 'transfer_controller_create_direct_wallet_transfer test' do
51
52
  it 'should work' do
52
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
54
+ end
55
+ end
56
+
57
+ # unit tests for transfer_controller_create_external_bank_transfer
58
+ # Create an external bank transfer
59
+ # @param create_external_bank_transfer_dto
60
+ # @param [Hash] opts the optional parameters
61
+ # @return [nil]
62
+ describe 'transfer_controller_create_external_bank_transfer test' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
65
+ end
66
+ end
67
+
68
+ # unit tests for transfer_controller_create_external_stablecoin_transfer
69
+ # Create an external stablecoin transfer
70
+ # @param create_external_stablecoin_transfer_dto
71
+ # @param [Hash] opts the optional parameters
72
+ # @return [nil]
73
+ describe 'transfer_controller_create_external_stablecoin_transfer test' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
53
76
  end
54
77
  end
55
78
 
56
79
  # unit tests for transfer_controller_create_stablecoin_conversion
57
80
  # Create a stablecoin conversion
58
- # @param body
81
+ # @param create_stablecoin_conversion_dto
59
82
  # @param [Hash] opts the optional parameters
60
83
  # @return [nil]
61
84
  describe 'transfer_controller_create_stablecoin_conversion test' do
62
85
  it 'should work' do
63
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
64
87
  end
65
88
  end
66
89
 
@@ -3,22 +3,23 @@
3
3
 
4
4
  # A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.17.0
7
10
 
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.65
10
11
  =end
11
12
 
12
13
  require 'spec_helper'
13
14
  require 'json'
14
15
 
15
- # Unit tests for DevDraftAI::WalletsApi
16
- # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
16
+ # Unit tests for Devdraft::WalletsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
17
18
  # Please update as you see appropriate
18
19
  describe 'WalletsApi' do
19
20
  before do
20
21
  # run before each test
21
- @instance = DevDraftAI::WalletsApi.new
22
+ @api_instance = Devdraft::WalletsApi.new
22
23
  end
23
24
 
24
25
  after do
@@ -27,7 +28,7 @@ describe 'WalletsApi' do
27
28
 
28
29
  describe 'test an instance of WalletsApi' do
29
30
  it 'should create an instance of WalletsApi' do
30
- expect(@instance).to be_instance_of(DevDraftAI::WalletsApi)
31
+ expect(@api_instance).to be_instance_of(Devdraft::WalletsApi)
31
32
  end
32
33
  end
33
34
 
@@ -37,7 +38,7 @@ describe 'WalletsApi' do
37
38
  # @return [nil]
38
39
  describe 'wallet_controller_get_wallets test' do
39
40
  it 'should work' do
40
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
41
42
  end
42
43
  end
43
44