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.
- checksums.yaml +4 -4
- data/README.md +155 -253
- data/Rakefile +2 -0
- data/devdraft-1.0.0.gem +0 -0
- data/{devdraft_ai_sdk.gemspec → devdraft.gemspec} +15 -11
- data/docs/APIHealthApi.md +82 -30
- data/docs/AggregatedBalanceResponse.md +19 -6
- data/docs/AllBalancesResponse.md +19 -6
- data/docs/AppBalancesApi.md +125 -65
- data/docs/BridgeFiatPaymentRail.md +15 -0
- data/docs/BridgePaymentRail.md +12 -3
- data/docs/CreateBankPaymentIntentDto.md +49 -21
- data/docs/CreateCustomerDto.md +25 -9
- data/docs/CreateDirectBankTransferDto.md +29 -11
- data/docs/CreateDirectWalletTransferDto.md +21 -7
- data/docs/CreateExternalBankTransferDto.md +40 -0
- data/docs/CreateExternalStablecoinTransferDto.md +28 -0
- data/docs/CreateInvoiceDto.md +45 -19
- data/docs/CreateLiquidationAddressDto.md +43 -18
- data/docs/CreatePaymentLinkDto.md +53 -28
- data/docs/CreateStablePaymentIntentDto.md +43 -18
- data/docs/CreateStablecoinConversionDto.md +23 -8
- data/docs/CreateTaxDto.md +26 -0
- data/docs/CreateWebhookDto.md +23 -8
- data/docs/CustomerStatus.md +12 -3
- data/docs/CustomerType.md +15 -0
- data/docs/CustomersApi.md +187 -114
- data/docs/DestinationCurrency.md +12 -3
- data/docs/ExchangeRateResponseDto.md +25 -9
- data/docs/ExchangeRatesApi.md +130 -72
- data/docs/FiatCurrency.md +12 -3
- data/docs/HealthResponseDto.md +25 -9
- data/docs/InvoiceProductDto.md +17 -5
- data/docs/InvoicesApi.md +177 -104
- data/docs/LiquidationAddressResponseDto.md +41 -17
- data/docs/LiquidationAddressesApi.md +115 -61
- data/docs/PaymentIntentsApi.md +93 -57
- data/docs/PaymentLinkProductDto.md +17 -5
- data/docs/PaymentLinksApi.md +175 -102
- data/docs/PaymentRequestDto.md +21 -7
- data/docs/PaymentResponseDto.md +23 -8
- data/docs/ProductsApi.md +307 -194
- data/docs/PublicHealthResponseDto.md +19 -6
- data/docs/RefundResponseDto.md +23 -8
- data/docs/StableCoinCurrency.md +12 -3
- data/docs/TaxControllerCreate201Response.md +30 -0
- data/docs/TaxControllerDeleteWithoutId400Response.md +22 -0
- data/docs/TaxControllerUpdateWithoutId400Response.md +22 -0
- data/docs/TaxesApi.md +374 -122
- data/docs/TestPaymentsApi.md +150 -60
- data/docs/TransfersApi.md +274 -72
- data/docs/UpdateCustomerDto.md +25 -9
- data/docs/UpdateTaxDto.md +26 -0
- data/docs/UpdateWebhookDto.md +23 -8
- data/docs/WalletsApi.md +44 -24
- data/docs/WebhookResponseDto.md +29 -11
- data/docs/WebhooksApi.md +225 -134
- data/git_push.sh +41 -28
- data/lib/devdraft/api/api_health_api.rb +32 -16
- data/lib/devdraft/api/app_balances_api.rb +45 -22
- data/lib/devdraft/api/customers_api.rb +124 -71
- data/lib/devdraft/api/exchange_rates_api.rb +49 -26
- data/lib/devdraft/api/invoices_api.rb +89 -53
- data/lib/devdraft/api/liquidation_addresses_api.rb +70 -44
- data/lib/devdraft/api/payment_intents_api.rb +62 -40
- data/lib/devdraft/api/payment_links_api.rb +85 -49
- data/lib/devdraft/api/products_api.rb +214 -216
- data/lib/devdraft/api/taxes_api.rb +257 -66
- data/lib/devdraft/api/test_payments_api.rb +70 -44
- data/lib/devdraft/api/transfers_api.rb +206 -46
- data/lib/devdraft/api/wallets_api.rb +18 -9
- data/lib/devdraft/api/webhooks_api.rb +109 -66
- data/lib/devdraft/api_client.rb +76 -71
- data/lib/devdraft/api_error.rb +5 -4
- data/lib/devdraft/api_model_base.rb +88 -0
- data/lib/devdraft/configuration.rb +121 -18
- data/lib/devdraft/models/aggregated_balance_response.rb +68 -101
- data/lib/devdraft/models/all_balances_response.rb +76 -99
- data/lib/devdraft/models/bridge_fiat_payment_rail.rb +45 -0
- data/lib/devdraft/models/bridge_payment_rail.rb +36 -24
- data/lib/devdraft/models/create_bank_payment_intent_dto.rb +191 -114
- data/lib/devdraft/models/create_customer_dto.rb +123 -113
- data/lib/devdraft/models/create_direct_bank_transfer_dto.rb +105 -104
- data/lib/devdraft/models/create_direct_wallet_transfer_dto.rb +89 -100
- data/lib/devdraft/models/create_external_bank_transfer_dto.rb +505 -0
- data/lib/devdraft/models/create_external_stablecoin_transfer_dto.rb +266 -0
- data/lib/devdraft/models/create_invoice_dto.rb +151 -121
- data/lib/devdraft/models/create_liquidation_address_dto.rb +195 -115
- data/lib/devdraft/models/create_payment_link_dto.rb +192 -214
- data/lib/devdraft/models/create_stable_payment_intent_dto.rb +324 -111
- data/lib/devdraft/models/create_stablecoin_conversion_dto.rb +102 -101
- data/lib/devdraft/models/create_tax_dto.rb +281 -0
- data/lib/devdraft/models/create_webhook_dto.rb +104 -101
- data/lib/devdraft/models/customer_status.rb +23 -10
- data/lib/devdraft/models/customer_type.rb +45 -0
- data/lib/devdraft/models/destination_currency.rb +27 -15
- data/lib/devdraft/models/exchange_rate_response_dto.rb +103 -102
- data/lib/devdraft/models/fiat_currency.rb +22 -10
- data/lib/devdraft/models/health_response_dto.rb +99 -106
- data/lib/devdraft/models/invoice_product_dto.rb +63 -98
- data/lib/devdraft/models/liquidation_address_response_dto.rb +147 -110
- data/lib/devdraft/models/payment_link_product_dto.rb +70 -98
- data/lib/devdraft/models/payment_request_dto.rb +77 -100
- data/lib/devdraft/models/payment_response_dto.rb +102 -101
- data/lib/devdraft/models/public_health_response_dto.rb +68 -101
- data/lib/devdraft/models/refund_response_dto.rb +102 -101
- data/lib/devdraft/models/stable_coin_currency.rb +21 -9
- data/lib/devdraft/models/tax_controller_create201_response.rb +201 -0
- data/lib/devdraft/models/tax_controller_delete_without_id400_response.rb +165 -0
- data/lib/devdraft/models/tax_controller_update_without_id400_response.rb +165 -0
- data/lib/devdraft/models/update_customer_dto.rb +117 -113
- data/lib/devdraft/models/update_tax_dto.rb +256 -0
- data/lib/devdraft/models/update_webhook_dto.rb +70 -101
- data/lib/devdraft/models/webhook_response_dto.rb +140 -103
- data/lib/devdraft/version.rb +6 -5
- data/lib/devdraft.rb +18 -27
- data/spec/api/api_health_api_spec.rb +10 -9
- data/spec/api/app_balances_api_spec.rb +11 -10
- data/spec/api/customers_api_spec.rb +25 -24
- data/spec/api/exchange_rates_api_spec.rb +11 -10
- data/spec/api/invoices_api_spec.rb +16 -15
- data/spec/api/liquidation_addresses_api_spec.rb +13 -12
- data/spec/api/payment_intents_api_spec.rb +12 -11
- data/spec/api/payment_links_api_spec.rb +14 -13
- data/spec/api/products_api_spec.rb +41 -40
- data/spec/api/taxes_api_spec.rb +51 -21
- data/spec/api/test_payments_api_spec.rb +14 -13
- data/spec/api/transfers_api_spec.rb +36 -13
- data/spec/api/wallets_api_spec.rb +9 -8
- data/spec/api/webhooks_api_spec.rb +20 -19
- data/spec/models/aggregated_balance_response_spec.rb +15 -19
- data/spec/models/all_balances_response_spec.rb +14 -18
- data/spec/models/bridge_fiat_payment_rail_spec.rb +30 -0
- data/spec/models/bridge_payment_rail_spec.rb +11 -15
- data/spec/models/create_bank_payment_intent_dto_spec.rb +29 -33
- data/spec/models/create_customer_dto_spec.rb +17 -25
- data/spec/models/create_direct_bank_transfer_dto_spec.rb +19 -23
- data/spec/models/create_direct_wallet_transfer_dto_spec.rb +15 -19
- data/spec/models/create_external_bank_transfer_dto_spec.rb +102 -0
- data/spec/models/create_external_stablecoin_transfer_dto_spec.rb +66 -0
- data/spec/models/create_invoice_dto_spec.rb +31 -35
- data/spec/models/create_liquidation_address_dto_spec.rb +28 -32
- data/spec/models/create_payment_link_dto_spec.rb +34 -76
- data/spec/models/create_stable_payment_intent_dto_spec.rb +26 -30
- data/spec/models/create_stablecoin_conversion_dto_spec.rb +16 -20
- data/spec/models/create_tax_dto_spec.rb +60 -0
- data/spec/models/create_webhook_dto_spec.rb +16 -20
- data/spec/models/customer_status_spec.rb +11 -15
- data/spec/models/customer_type_spec.rb +30 -0
- data/spec/models/destination_currency_spec.rb +11 -15
- data/spec/models/exchange_rate_response_dto_spec.rb +17 -21
- data/spec/models/fiat_currency_spec.rb +11 -15
- data/spec/models/health_response_dto_spec.rb +19 -23
- data/spec/models/invoice_product_dto_spec.rb +13 -17
- data/spec/models/liquidation_address_response_dto_spec.rb +25 -29
- data/spec/models/payment_link_product_dto_spec.rb +13 -17
- data/spec/models/payment_request_dto_spec.rb +15 -19
- data/spec/models/payment_response_dto_spec.rb +16 -20
- data/spec/models/public_health_response_dto_spec.rb +15 -19
- data/spec/models/refund_response_dto_spec.rb +16 -20
- data/spec/models/stable_coin_currency_spec.rb +11 -15
- data/spec/models/tax_controller_create201_response_spec.rb +72 -0
- data/spec/models/tax_controller_delete_without_id400_response_spec.rb +48 -0
- data/spec/models/tax_controller_update_without_id400_response_spec.rb +48 -0
- data/spec/models/update_customer_dto_spec.rb +17 -25
- data/spec/models/update_tax_dto_spec.rb +60 -0
- data/spec/models/update_webhook_dto_spec.rb +16 -20
- data/spec/models/webhook_response_dto_spec.rb +19 -23
- data/spec/spec_helper.rb +5 -4
- metadata +49 -116
- data/docs/AllOfAllBalancesResponseEurc.md +0 -9
- data/docs/AllOfAllBalancesResponseUsdc.md +0 -9
- data/docs/AllOfCreateBankPaymentIntentDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoDestinationNetwork.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoSourceCurrency.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoSourcePaymentRail.md +0 -6
- data/docs/AllOfCreateCustomerDtoStatus.md +0 -6
- data/docs/AllOfCreateLiquidationAddressDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateLiquidationAddressDtoDestinationPaymentRail.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoDestinationNetwork.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoSourceCurrency.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoSourceNetwork.md +0 -6
- data/docs/AllOfUpdateCustomerDtoStatus.md +0 -6
- data/docs/CreateProductDto.md +0 -18
- data/docs/CreateTaxInput.md +0 -6
- data/docs/UpdatePaymentLinkDto.md +0 -6
- data/docs/UpdatePreferenceInput.md +0 -6
- data/docs/UpdateProductDto.md +0 -18
- data/docs/UpdateTaxInput.md +0 -6
- data/example.rb +0 -129
- data/lib/devdraft/models/all_of_all_balances_response_eurc.rb +0 -283
- data/lib/devdraft/models/all_of_all_balances_response_usdc.rb +0 -283
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_network.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_payment_rail.rb +0 -202
- data/lib/devdraft/models/all_of_create_customer_dto_status.rb +0 -202
- data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_payment_rail.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_network.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_network.rb +0 -202
- data/lib/devdraft/models/all_of_update_customer_dto_status.rb +0 -202
- data/lib/devdraft/models/create_product_dto.rb +0 -370
- data/lib/devdraft/models/create_tax_input.rb +0 -197
- data/lib/devdraft/models/update_payment_link_dto.rb +0 -197
- data/lib/devdraft/models/update_preference_input.rb +0 -197
- data/lib/devdraft/models/update_product_dto.rb +0 -355
- data/lib/devdraft/models/update_tax_input.rb +0 -197
- data/spec/api_client_spec.rb +0 -225
- data/spec/base_object_spec.rb +0 -109
- data/spec/configuration_spec.rb +0 -41
- data/spec/models/all_of_all_balances_response_eurc_spec.rb +0 -56
- data/spec/models/all_of_all_balances_response_usdc_spec.rb +0 -56
- data/spec/models/all_of_create_bank_payment_intent_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_destination_network_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_source_currency_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_source_payment_rail_spec.rb +0 -34
- data/spec/models/all_of_create_customer_dto_status_spec.rb +0 -34
- data/spec/models/all_of_create_liquidation_address_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_liquidation_address_dto_destination_payment_rail_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_destination_network_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_source_currency_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_source_network_spec.rb +0 -34
- data/spec/models/all_of_update_customer_dto_status_spec.rb +0 -34
- data/spec/models/create_product_dto_spec.rb +0 -110
- data/spec/models/create_tax_input_spec.rb +0 -34
- data/spec/models/update_payment_link_dto_spec.rb +0 -34
- data/spec/models/update_preference_input_spec.rb +0 -34
- data/spec/models/update_product_dto_spec.rb +0 -110
- 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
|
|
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
|
|
16
|
-
# Automatically generated by
|
|
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
|
-
@
|
|
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(@
|
|
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://
|
|
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 - `skip`: Number of records to skip (default: 0) - `take`: Number of records to take (default: 10) ## Example Response ```json { \"data\": [ { \"id\": \"prod_123456\", \"name\": \"Premium Widget\", \"description\": \"High-quality widget for all your needs\", \"price\": \"99.99\", \"images\": [ \"https://storage.example.com/images/file1.jpg\", \"https://storage.example.com/images/file2.jpg\" ], \"createdAt\": \"2024-03-20T10:00:00Z\" } ], \"total\": 100, \"skip\": 0, \"take\": 10 } ```
|
|
60
61
|
# @param [Hash] opts the optional parameters
|
|
61
|
-
# @option opts [
|
|
62
|
-
# @option opts [
|
|
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://
|
|
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://
|
|
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://
|
|
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&#
|
|
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'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) ``` name: \"Updated Premium Widget\" description: \"Updated description\" price: \"129.99\" images: [file1.jpg, file2.jpg] // Optional, up to 10 images ``` ## 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://
|
|
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://
|
|
127
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
127
128
|
end
|
|
128
129
|
end
|
|
129
130
|
|
data/spec/api/taxes_api_spec.rb
CHANGED
|
@@ -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
|
|
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
|
|
16
|
-
# Automatically generated by
|
|
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
|
-
@
|
|
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(@
|
|
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
|
-
#
|
|
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 ```json { \"name\": \"Sales Tax\", \"description\": \"Standard sales tax for retail transactions\", \"percentage\": 8.5, \"active\": true } ``` ## Required Fields - `name`: Tax name for identification (1-100 characters) - `percentage`: Tax rate percentage (0-100) ## Optional Fields - `description`: Explanation of what this tax covers (max 255 characters) - `active`: Whether this tax is currently active (default: true) - `appIds`: 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 [
|
|
40
|
+
# @return [TaxControllerCreate201Response]
|
|
39
41
|
describe 'tax_controller_create test' do
|
|
40
42
|
it 'should work' do
|
|
41
|
-
# assertion here. ref: https://
|
|
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 - `skip`: Number of records to skip (default: 0, min: 0) - `take`: Number of records to return (default: 10, min: 1, max: 100) - `name`: Filter taxes by name (partial match, case-insensitive) - `active`: Filter by active status (true/false) ## Example Request `GET /api/v0/taxes?skip=0&take=20&active=true&name=Sales` ## Example Response ```json [ { \"id\": \"tax_123456\", \"name\": \"Sales Tax\", \"description\": \"Standard sales tax for retail transactions\", \"percentage\": 8.5, \"active\": true, \"created_at\": \"2024-03-20T10:00:00Z\", \"updated_at\": \"2024-03-20T10:00:00Z\" } ] ```
|
|
47
61
|
# @param [Hash] opts the optional parameters
|
|
48
|
-
# @option opts [
|
|
49
|
-
# @option opts [
|
|
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://
|
|
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
|
-
#
|
|
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 - `id`: Tax UUID (required) - Must be a valid UUID format ## Example Request `GET /api/v0/taxes/123e4567-e89b-12d3-a456-426614174000` ## Example Response ```json { \"id\": \"tax_123456\", \"name\": \"Sales Tax\", \"description\": \"Standard sales tax for retail transactions\", \"percentage\": 8.5, \"active\": true, \"created_at\": \"2024-03-20T10:00:00Z\", \"updated_at\": \"2024-03-20T10:00:00Z\" } ```
|
|
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://
|
|
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
|
-
#
|
|
87
|
+
# Deletes an existing tax. ## Use Cases - Remove obsolete tax rates - Clean up unused taxes - Comply with regulatory changes ## Path Parameters - `id`: Tax UUID (required) - Must be a valid UUID format ## Example Request `DELETE /api/v0/taxes/123e4567-e89b-12d3-a456-426614174000` ## 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://
|
|
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
|
-
#
|
|
82
|
-
# @param id Tax
|
|
99
|
+
# Updates an existing tax's information. ## Use Cases - Modify tax percentage rates - Update tax descriptions - Activate/deactivate taxes - Change tax names ## Path Parameters - `id`: Tax UUID (required) - Must be a valid UUID format ## Example Request `PUT /api/v0/taxes/123e4567-e89b-12d3-a456-426614174000` ## Example Request Body ```json { \"name\": \"Updated Sales Tax\", \"description\": \"Updated sales tax rate\", \"percentage\": 9.0, \"active\": true } ``` ## 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://
|
|
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
|
|
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
|
|
16
|
-
# Automatically generated by
|
|
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
|
-
@
|
|
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(@
|
|
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) ```bash curl -X POST \\ https://api.example.com/rest-api/v0/test-payment \\ -H &#
|
|
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) ```bash curl -X POST \\ https://api.example.com/rest-api/v0/test-payment \\ -H 'Content-Type: application/json' \\ -H 'Client-Key: your-api-key' \\ -H 'Client-Secret: your-api-secret' \\ -H 'Idempotency-Key: payment_123456_unique_key' \\ -d '{ \"amount\": 100.00, \"currency\": \"USD\", \"description\": \"Test payment for order #12345\", \"customerId\": \"cus_12345\" }' ``` ## Example Response (First Request) ```json { \"id\": \"pay_abc123xyz456\", \"amount\": 100.00, \"currency\": \"USD\", \"status\": \"succeeded\", \"timestamp\": \"2023-07-01T12:00:00.000Z\" } ``` ## Example Response (Duplicate Request) The exact same response will be returned for any duplicate request with the same idempotency key, without creating a new payment. ## Retry Scenario Example Network failure during payment submission: 1. Client creates payment request with idempotency key: \"payment_123456_unique_key\" 2. Request begins processing, but network connection fails before response received 3. Client retries the exact same request with the same idempotency key 4. Server detects duplicate idempotency key and returns the result of the first request 5. No duplicate payment is created If you retry with same key but different parameters (e.g., different amount), you'll receive a 409 Conflict error.
|
|
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://
|
|
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://
|
|
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&#
|
|
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't issue multiple refunds 2. **Safe retries**: Network failures or timeouts won't risk creating multiple refunds 3. **Consistent response**: Always get the same response for the same operation ## Example Request (curl) ```bash curl -X POST \\ https://api.example.com/rest-api/v0/test-payment/pay_abc123xyz456/refund \\ -H 'Content-Type: application/json' \\ -H 'Client-Key: your-api-key' \\ -H 'Client-Secret: your-api-secret' \\ -H 'Idempotency-Key: refund_123456_unique_key' ``` ## Example Response (First Request) ```json { \"id\": \"ref_xyz789\", \"paymentId\": \"pay_abc123xyz456\", \"amount\": 100.00, \"status\": \"succeeded\", \"timestamp\": \"2023-07-01T14:30:00.000Z\" } ``` ## Example Response (Duplicate Request) The exact same response will be returned for any duplicate request with the same idempotency key, without creating a new refund. ## Idempotency Key Guidelines - Use a unique key for each distinct refund operation - Store keys client-side to ensure you can retry with the same key if needed - Keys expire after 24 hours by default
|
|
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://
|
|
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
|
|
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
|
|
16
|
-
# Automatically generated by
|
|
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
|
-
@
|
|
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(@
|
|
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
|
|
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://
|
|
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
|
|
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://
|
|
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
|
|
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://
|
|
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
|
|
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
|
|
16
|
-
# Automatically generated by
|
|
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
|
-
@
|
|
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(@
|
|
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://
|
|
41
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
41
42
|
end
|
|
42
43
|
end
|
|
43
44
|
|