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::CustomersApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
17
18
|
# Please update as you see appropriate
|
|
18
19
|
describe 'CustomersApi' do
|
|
19
20
|
before do
|
|
20
21
|
# run before each test
|
|
21
|
-
@
|
|
22
|
+
@api_instance = Devdraft::CustomersApi.new
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
after do
|
|
@@ -27,60 +28,60 @@ describe 'CustomersApi' do
|
|
|
27
28
|
|
|
28
29
|
describe 'test an instance of CustomersApi' do
|
|
29
30
|
it 'should create an instance of CustomersApi' do
|
|
30
|
-
expect(@
|
|
31
|
+
expect(@api_instance).to be_instance_of(Devdraft::CustomersApi)
|
|
31
32
|
end
|
|
32
33
|
end
|
|
33
34
|
|
|
34
35
|
# unit tests for customer_controller_create
|
|
35
36
|
# Create a new customer
|
|
36
|
-
# Creates a new customer in the system with their personal and contact information. This endpoint allows you to register new customers and store their details for future transactions. ## Use Cases - Register new customers for payment processing - Store customer information for recurring payments - Maintain customer profiles for transaction history ## Example: Create New Customer ```json { \"
|
|
37
|
-
# @param
|
|
37
|
+
# Creates a new customer in the system with their personal and contact information. This endpoint allows you to register new customers and store their details for future transactions. ## Use Cases - Register new customers for payment processing - Store customer information for recurring payments - Maintain customer profiles for transaction history ## Example: Create New Customer ```json { \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"john.doe@example.com\", \"phone_number\": \"+1-555-123-4567\", \"customer_type\": \"Startup\", \"status\": \"ACTIVE\" } ``` ## Required Fields - `first_name`: Customer's first name (1-100 characters) - `last_name`: Customer's last name (1-100 characters) - `phone_number`: Customer's phone number (max 20 characters) ## Optional Fields - `email`: Valid email address (max 255 characters) - `customer_type`: Type of customer account (Individual, Startup, Small Business, Medium Business, Enterprise, Non-Profit, Government) - `status`: Customer status (ACTIVE, BLACKLISTED, DEACTIVATED)
|
|
38
|
+
# @param create_customer_dto Customer creation data
|
|
38
39
|
# @param [Hash] opts the optional parameters
|
|
39
40
|
# @return [nil]
|
|
40
41
|
describe 'customer_controller_create test' do
|
|
41
42
|
it 'should work' do
|
|
42
|
-
# assertion here. ref: https://
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
44
|
end
|
|
44
45
|
end
|
|
45
46
|
|
|
46
47
|
# unit tests for customer_controller_find_all
|
|
47
48
|
# Get all customers with filters
|
|
48
|
-
# Retrieves a list of customers with optional filtering and pagination. This endpoint allows you to search and filter customers based on various criteria. ## Use Cases - List all customers with pagination - Search customers by name or email - Filter customers by status - Export customer data ## Query Parameters - `skip`: Number of records to skip (default: 0) - `take`: Number of records to take (default: 10) - `status`: Filter by customer status (ACTIVE,
|
|
49
|
+
# Retrieves a list of customers with optional filtering and pagination. This endpoint allows you to search and filter customers based on various criteria. ## Use Cases - List all customers with pagination - Search customers by name or email - Filter customers by status - Export customer data ## Query Parameters - `skip`: Number of records to skip (default: 0, min: 0) - `take`: Number of records to take (default: 10, min: 1, max: 100) - `status`: Filter by customer status (ACTIVE, BLACKLISTED, DEACTIVATED) - `name`: Filter by customer name (partial match, case-insensitive) - `email`: Filter by customer email (exact match, case-insensitive) ## Example Request `GET /api/v0/customers?skip=0&take=20&status=ACTIVE&name=John` ## Example Response ```json { \"data\": [ { \"id\": \"cust_123456\", \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"john.doe@example.com\", \"phone_number\": \"+1-555-123-4567\", \"customer_type\": \"Startup\", \"status\": \"ACTIVE\", \"created_at\": \"2024-03-20T10:00:00Z\", \"updated_at\": \"2024-03-20T10:00:00Z\" } ], \"total\": 100, \"skip\": 0, \"take\": 10 } ```
|
|
49
50
|
# @param [Hash] opts the optional parameters
|
|
50
|
-
# @option opts [
|
|
51
|
-
# @option opts [
|
|
52
|
-
# @option opts [
|
|
53
|
-
# @option opts [
|
|
54
|
-
# @option opts [
|
|
51
|
+
# @option opts [Float] :skip Number of records to skip for pagination
|
|
52
|
+
# @option opts [Float] :take Number of records to return (max 100)
|
|
53
|
+
# @option opts [CustomerStatus] :status Filter customers by status
|
|
54
|
+
# @option opts [String] :name Filter customers by name (partial match, case-insensitive)
|
|
55
|
+
# @option opts [String] :email Filter customers by email (exact match, case-insensitive)
|
|
55
56
|
# @return [nil]
|
|
56
57
|
describe 'customer_controller_find_all test' do
|
|
57
58
|
it 'should work' do
|
|
58
|
-
# assertion here. ref: https://
|
|
59
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
60
|
end
|
|
60
61
|
end
|
|
61
62
|
|
|
62
63
|
# unit tests for customer_controller_find_one
|
|
63
64
|
# Get a customer by ID
|
|
64
|
-
# Retrieves detailed information about a specific customer. This endpoint allows you to fetch complete customer details including their
|
|
65
|
-
# @param id
|
|
65
|
+
# Retrieves detailed information about a specific customer. This endpoint allows you to fetch complete customer details including their contact information and status. ## Use Cases - View customer details - Verify customer information - Check customer status before processing payments ## Path Parameters - `id`: Customer UUID (required) - Must be a valid UUID format ## Example Request `GET /api/v0/customers/123e4567-e89b-12d3-a456-426614174000` ## Example Response ```json { \"id\": \"cust_123456\", \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"john.doe@example.com\", \"phone_number\": \"+1-555-123-4567\", \"customer_type\": \"Enterprise\", \"status\": \"ACTIVE\", \"last_spent\": 1250.50, \"last_purchase_date\": \"2024-03-15T14:30:00Z\", \"created_at\": \"2024-03-20T10:00:00Z\", \"updated_at\": \"2024-03-20T10:00:00Z\" } ```
|
|
66
|
+
# @param id Customer unique identifier (UUID)
|
|
66
67
|
# @param [Hash] opts the optional parameters
|
|
67
68
|
# @return [nil]
|
|
68
69
|
describe 'customer_controller_find_one test' do
|
|
69
70
|
it 'should work' do
|
|
70
|
-
# assertion here. ref: https://
|
|
71
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
71
72
|
end
|
|
72
73
|
end
|
|
73
74
|
|
|
74
75
|
# unit tests for customer_controller_update
|
|
75
76
|
# Update a customer
|
|
76
|
-
# Updates an existing customer&#
|
|
77
|
-
# @param
|
|
78
|
-
# @param
|
|
77
|
+
# Updates an existing customer's information. This endpoint allows you to modify customer details while preserving their core information. ## Use Cases - Update customer contact information - Change customer type - Modify customer status ## Path Parameters - `id`: Customer UUID (required) - Must be a valid UUID format ## Example Request `PATCH /api/v0/customers/123e4567-e89b-12d3-a456-426614174000` ## Example Request Body ```json { \"first_name\": \"John\", \"last_name\": \"Smith\", \"phone_number\": \"+1-987-654-3210\", \"customer_type\": \"Small Business\" } ``` ## Notes - Only include fields that need to be updated - All fields are optional in updates - Status changes may require additional verification
|
|
78
|
+
# @param id Customer unique identifier (UUID)
|
|
79
|
+
# @param update_customer_dto Customer update data
|
|
79
80
|
# @param [Hash] opts the optional parameters
|
|
80
81
|
# @return [nil]
|
|
81
82
|
describe 'customer_controller_update test' do
|
|
82
83
|
it 'should work' do
|
|
83
|
-
# assertion here. ref: https://
|
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
84
85
|
end
|
|
85
86
|
end
|
|
86
87
|
|
|
@@ -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::ExchangeRatesApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
17
18
|
# Please update as you see appropriate
|
|
18
19
|
describe 'ExchangeRatesApi' do
|
|
19
20
|
before do
|
|
20
21
|
# run before each test
|
|
21
|
-
@
|
|
22
|
+
@api_instance = Devdraft::ExchangeRatesApi.new
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
after do
|
|
@@ -27,7 +28,7 @@ describe 'ExchangeRatesApi' do
|
|
|
27
28
|
|
|
28
29
|
describe 'test an instance of ExchangeRatesApi' do
|
|
29
30
|
it 'should create an instance of ExchangeRatesApi' do
|
|
30
|
-
expect(@
|
|
31
|
+
expect(@api_instance).to be_instance_of(Devdraft::ExchangeRatesApi)
|
|
31
32
|
end
|
|
32
33
|
end
|
|
33
34
|
|
|
@@ -38,7 +39,7 @@ describe 'ExchangeRatesApi' do
|
|
|
38
39
|
# @return [ExchangeRateResponseDto]
|
|
39
40
|
describe 'exchange_rate_controller_get_eurto_usd_rate 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
|
|
|
@@ -51,7 +52,7 @@ describe 'ExchangeRatesApi' do
|
|
|
51
52
|
# @return [ExchangeRateResponseDto]
|
|
52
53
|
describe 'exchange_rate_controller_get_exchange_rate 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
|
|
|
@@ -62,7 +63,7 @@ describe 'ExchangeRatesApi' do
|
|
|
62
63
|
# @return [ExchangeRateResponseDto]
|
|
63
64
|
describe 'exchange_rate_controller_get_usdto_eur_rate test' do
|
|
64
65
|
it 'should work' do
|
|
65
|
-
# assertion here. ref: https://
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
66
67
|
end
|
|
67
68
|
end
|
|
68
69
|
|
|
@@ -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::InvoicesApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
17
18
|
# Please update as you see appropriate
|
|
18
19
|
describe 'InvoicesApi' do
|
|
19
20
|
before do
|
|
20
21
|
# run before each test
|
|
21
|
-
@
|
|
22
|
+
@api_instance = Devdraft::InvoicesApi.new
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
after do
|
|
@@ -27,30 +28,30 @@ describe 'InvoicesApi' do
|
|
|
27
28
|
|
|
28
29
|
describe 'test an instance of InvoicesApi' do
|
|
29
30
|
it 'should create an instance of InvoicesApi' do
|
|
30
|
-
expect(@
|
|
31
|
+
expect(@api_instance).to be_instance_of(Devdraft::InvoicesApi)
|
|
31
32
|
end
|
|
32
33
|
end
|
|
33
34
|
|
|
34
35
|
# unit tests for invoice_controller_create
|
|
35
36
|
# Create a new invoice
|
|
36
|
-
# @param
|
|
37
|
+
# @param create_invoice_dto
|
|
37
38
|
# @param [Hash] opts the optional parameters
|
|
38
39
|
# @return [nil]
|
|
39
40
|
describe 'invoice_controller_create 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 invoice_controller_find_all
|
|
46
47
|
# Get all invoices
|
|
47
48
|
# @param [Hash] opts the optional parameters
|
|
48
|
-
# @option opts [
|
|
49
|
-
# @option opts [
|
|
49
|
+
# @option opts [Float] :skip Number of records to skip
|
|
50
|
+
# @option opts [Float] :take Number of records to take
|
|
50
51
|
# @return [nil]
|
|
51
52
|
describe 'invoice_controller_find_all 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
|
|
|
@@ -61,19 +62,19 @@ describe 'InvoicesApi' do
|
|
|
61
62
|
# @return [nil]
|
|
62
63
|
describe 'invoice_controller_find_one test' do
|
|
63
64
|
it 'should work' do
|
|
64
|
-
# assertion here. ref: https://
|
|
65
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
65
66
|
end
|
|
66
67
|
end
|
|
67
68
|
|
|
68
69
|
# unit tests for invoice_controller_update
|
|
69
70
|
# Update an invoice
|
|
70
|
-
# @param body
|
|
71
71
|
# @param id Invoice ID
|
|
72
|
+
# @param create_invoice_dto
|
|
72
73
|
# @param [Hash] opts the optional parameters
|
|
73
74
|
# @return [nil]
|
|
74
75
|
describe 'invoice_controller_update test' do
|
|
75
76
|
it 'should work' do
|
|
76
|
-
# assertion here. ref: https://
|
|
77
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
77
78
|
end
|
|
78
79
|
end
|
|
79
80
|
|
|
@@ -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::LiquidationAddressesApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
17
18
|
# Please update as you see appropriate
|
|
18
19
|
describe 'LiquidationAddressesApi' do
|
|
19
20
|
before do
|
|
20
21
|
# run before each test
|
|
21
|
-
@
|
|
22
|
+
@api_instance = Devdraft::LiquidationAddressesApi.new
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
after do
|
|
@@ -27,20 +28,20 @@ describe 'LiquidationAddressesApi' do
|
|
|
27
28
|
|
|
28
29
|
describe 'test an instance of LiquidationAddressesApi' do
|
|
29
30
|
it 'should create an instance of LiquidationAddressesApi' do
|
|
30
|
-
expect(@
|
|
31
|
+
expect(@api_instance).to be_instance_of(Devdraft::LiquidationAddressesApi)
|
|
31
32
|
end
|
|
32
33
|
end
|
|
33
34
|
|
|
34
35
|
# unit tests for liquidation_address_controller_create_liquidation_address
|
|
35
36
|
# Create a new liquidation address for a customer
|
|
36
|
-
# Create a new liquidation address for a customer. Liquidation addresses allow customers to automatically liquidate cryptocurrency holdings to fiat or other stablecoins based on configured parameters. **Required fields:** - chain: Blockchain network (ethereum, polygon, arbitrum, base) - currency: Stablecoin currency (usdc, eurc, dai, pyusd, usdt) - address: Valid blockchain address **At least one destination must be specified:** - external_account_id: External bank account - prefunded_account_id: Developer&#
|
|
37
|
-
# @param body
|
|
37
|
+
# Create a new liquidation address for a customer. Liquidation addresses allow customers to automatically liquidate cryptocurrency holdings to fiat or other stablecoins based on configured parameters. **Required fields:** - chain: Blockchain network (ethereum, polygon, arbitrum, base) - currency: Stablecoin currency (usdc, eurc, dai, pyusd, usdt) - address: Valid blockchain address **At least one destination must be specified:** - external_account_id: External bank account - prefunded_account_id: Developer's prefunded account - bridge_wallet_id: Bridge wallet - destination_address: Crypto wallet address **Payment Rails:** Different payment rails have different requirements: - ACH: Requires external_account_id, supports destination_ach_reference - SEPA: Requires external_account_id, supports destination_sepa_reference - Wire: Requires external_account_id, supports destination_wire_message - Crypto: Requires destination_address, supports destination_blockchain_memo
|
|
38
38
|
# @param customer_id Unique identifier for the customer
|
|
39
|
+
# @param create_liquidation_address_dto
|
|
39
40
|
# @param [Hash] opts the optional parameters
|
|
40
41
|
# @return [LiquidationAddressResponseDto]
|
|
41
42
|
describe 'liquidation_address_controller_create_liquidation_address 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
|
|
|
@@ -53,7 +54,7 @@ describe 'LiquidationAddressesApi' do
|
|
|
53
54
|
# @return [LiquidationAddressResponseDto]
|
|
54
55
|
describe 'liquidation_address_controller_get_liquidation_address test' do
|
|
55
56
|
it 'should work' do
|
|
56
|
-
# assertion here. ref: https://
|
|
57
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
58
|
end
|
|
58
59
|
end
|
|
59
60
|
|
|
@@ -65,7 +66,7 @@ describe 'LiquidationAddressesApi' do
|
|
|
65
66
|
# @return [Array<LiquidationAddressResponseDto>]
|
|
66
67
|
describe 'liquidation_address_controller_get_liquidation_addresses test' do
|
|
67
68
|
it 'should work' do
|
|
68
|
-
# assertion here. ref: https://
|
|
69
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
70
|
end
|
|
70
71
|
end
|
|
71
72
|
|
|
@@ -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::PaymentIntentsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
17
18
|
# Please update as you see appropriate
|
|
18
19
|
describe 'PaymentIntentsApi' do
|
|
19
20
|
before do
|
|
20
21
|
# run before each test
|
|
21
|
-
@
|
|
22
|
+
@api_instance = Devdraft::PaymentIntentsApi.new
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
after do
|
|
@@ -27,33 +28,33 @@ describe 'PaymentIntentsApi' do
|
|
|
27
28
|
|
|
28
29
|
describe 'test an instance of PaymentIntentsApi' do
|
|
29
30
|
it 'should create an instance of PaymentIntentsApi' do
|
|
30
|
-
expect(@
|
|
31
|
+
expect(@api_instance).to be_instance_of(Devdraft::PaymentIntentsApi)
|
|
31
32
|
end
|
|
32
33
|
end
|
|
33
34
|
|
|
34
35
|
# unit tests for payment_intent_controller_create_bank_payment_intent
|
|
35
36
|
# Create a bank payment intent
|
|
36
37
|
# Creates a new bank payment intent for fiat-to-stablecoin transfers. This endpoint allows you to create payment intents for bank transfers (ACH, Wire, SEPA) that convert to stablecoins. Perfect for onboarding users from traditional banking to crypto. ## Supported Payment Rails - **ACH_PUSH**: US bank transfers (same-day or standard) - **WIRE**: International wire transfers - **SEPA**: European bank transfers ## Use Cases - USD bank account to USDC conversion - EUR bank account to EURC conversion - MXN bank account to stablecoin conversion - Flexible amount payment intents for variable pricing ## Supported Source Currencies - **USD**: US Dollar - **EUR**: Euro - **MXN**: Mexican Peso ## Example: USD Bank to USDC ```json { \"sourcePaymentRail\": \"ach_push\", \"sourceCurrency\": \"usd\", \"destinationCurrency\": \"usdc\", \"destinationNetwork\": \"ethereum\", \"destinationAddress\": \"0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8e1\", \"amount\": \"1000.00\", \"customer_first_name\": \"John\", \"customer_last_name\": \"Doe\", \"customer_email\": \"john.doe@example.com\", \"ach_reference\": \"INV12345\" } ``` ## Reference Fields Use appropriate reference fields based on the payment rail: - `ach_reference`: For ACH transfers (max 10 chars, alphanumeric + spaces) - `wire_message`: For wire transfers (max 256 chars) - `sepa_reference`: For SEPA transfers (6-140 chars, specific character set) ## Idempotency Include an `idempotency-key` header with a unique UUID v4 to prevent duplicate payments. Subsequent requests with the same key will return the original response.
|
|
37
|
-
# @param body Bank payment intent creation data
|
|
38
38
|
# @param idempotency_key Unique UUID v4 for idempotent requests. Prevents duplicate payments.
|
|
39
|
+
# @param create_bank_payment_intent_dto Bank payment intent creation data
|
|
39
40
|
# @param [Hash] opts the optional parameters
|
|
40
41
|
# @return [nil]
|
|
41
42
|
describe 'payment_intent_controller_create_bank_payment_intent 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
|
|
|
47
48
|
# unit tests for payment_intent_controller_create_stable_payment_intent
|
|
48
49
|
# Create a stable payment intent
|
|
49
50
|
# Creates a new stable payment intent for stablecoin-to-stablecoin transfers. This endpoint allows you to create payment intents for transfers between different stablecoins and networks. Perfect for cross-chain stablecoin swaps and conversions. ## Use Cases - USDC to EURC conversions - Cross-chain stablecoin transfers (e.g., Ethereum USDC to Polygon USDC) - Flexible amount payment intents for dynamic pricing ## Example: USDC to EURC Conversion ```json { \"sourceCurrency\": \"usdc\", \"sourceNetwork\": \"ethereum\", \"destinationCurrency\": \"eurc\", \"destinationNetwork\": \"polygon\", \"destinationAddress\": \"0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8e1\", \"amount\": \"100.00\", \"customer_first_name\": \"John\", \"customer_last_name\": \"Doe\", \"customer_email\": \"john.doe@example.com\" } ``` ## Flexible Amount Payments Omit the `amount` field to create a flexible payment intent where users can specify the amount during payment. ## Idempotency Include an `idempotency-key` header with a unique UUID v4 to prevent duplicate payments. Subsequent requests with the same key will return the original response.
|
|
50
|
-
# @param body Stable payment intent creation data
|
|
51
51
|
# @param idempotency_key Unique UUID v4 for idempotent requests. Prevents duplicate payments.
|
|
52
|
+
# @param create_stable_payment_intent_dto Stable payment intent creation data
|
|
52
53
|
# @param [Hash] opts the optional parameters
|
|
53
54
|
# @return [nil]
|
|
54
55
|
describe 'payment_intent_controller_create_stable_payment_intent test' do
|
|
55
56
|
it 'should work' do
|
|
56
|
-
# assertion here. ref: https://
|
|
57
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
58
|
end
|
|
58
59
|
end
|
|
59
60
|
|
|
@@ -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::PaymentLinksApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
17
18
|
# Please update as you see appropriate
|
|
18
19
|
describe 'PaymentLinksApi' do
|
|
19
20
|
before do
|
|
20
21
|
# run before each test
|
|
21
|
-
@
|
|
22
|
+
@api_instance = Devdraft::PaymentLinksApi.new
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
after do
|
|
@@ -27,19 +28,19 @@ describe 'PaymentLinksApi' do
|
|
|
27
28
|
|
|
28
29
|
describe 'test an instance of PaymentLinksApi' do
|
|
29
30
|
it 'should create an instance of PaymentLinksApi' do
|
|
30
|
-
expect(@
|
|
31
|
+
expect(@api_instance).to be_instance_of(Devdraft::PaymentLinksApi)
|
|
31
32
|
end
|
|
32
33
|
end
|
|
33
34
|
|
|
34
35
|
# unit tests for payment_links_controller_create
|
|
35
36
|
# Create a new payment link
|
|
36
37
|
# Creates a new payment link with the provided details. Supports both simple one-time payments and complex product bundles.
|
|
37
|
-
# @param
|
|
38
|
+
# @param create_payment_link_dto Payment link creation data
|
|
38
39
|
# @param [Hash] opts the optional parameters
|
|
39
40
|
# @return [nil]
|
|
40
41
|
describe 'payment_links_controller_create test' do
|
|
41
42
|
it 'should work' do
|
|
42
|
-
# assertion here. ref: https://
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
44
|
end
|
|
44
45
|
end
|
|
45
46
|
|
|
@@ -51,7 +52,7 @@ describe 'PaymentLinksApi' do
|
|
|
51
52
|
# @return [nil]
|
|
52
53
|
describe 'payment_links_controller_find_all 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
|
|
|
@@ -62,19 +63,19 @@ describe 'PaymentLinksApi' do
|
|
|
62
63
|
# @return [nil]
|
|
63
64
|
describe 'payment_links_controller_find_one test' do
|
|
64
65
|
it 'should work' do
|
|
65
|
-
# assertion here. ref: https://
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
66
67
|
end
|
|
67
68
|
end
|
|
68
69
|
|
|
69
70
|
# unit tests for payment_links_controller_update
|
|
70
71
|
# Update a payment link
|
|
71
|
-
# @param body
|
|
72
72
|
# @param id Payment Link ID
|
|
73
|
+
# @param body
|
|
73
74
|
# @param [Hash] opts the optional parameters
|
|
74
75
|
# @return [nil]
|
|
75
76
|
describe 'payment_links_controller_update test' do
|
|
76
77
|
it 'should work' do
|
|
77
|
-
# assertion here. ref: https://
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
78
79
|
end
|
|
79
80
|
end
|
|
80
81
|
|