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
data/docs/TransfersApi.md
CHANGED
|
@@ -1,52 +1,74 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::TransfersApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.devdraft.ai*
|
|
4
4
|
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
|
|
7
|
-
[**transfer_controller_create_direct_bank_transfer**](TransfersApi.md#transfer_controller_create_direct_bank_transfer) | **POST** /api/v0/transfers/direct-bank | Create a direct bank transfer
|
|
8
|
-
[**transfer_controller_create_direct_wallet_transfer**](TransfersApi.md#transfer_controller_create_direct_wallet_transfer) | **POST** /api/v0/transfers/direct-wallet | Create a direct wallet transfer
|
|
9
|
-
[**
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**transfer_controller_create_direct_bank_transfer**](TransfersApi.md#transfer_controller_create_direct_bank_transfer) | **POST** /api/v0/transfers/direct-bank | Create a direct bank transfer |
|
|
8
|
+
| [**transfer_controller_create_direct_wallet_transfer**](TransfersApi.md#transfer_controller_create_direct_wallet_transfer) | **POST** /api/v0/transfers/direct-wallet | Create a direct wallet transfer |
|
|
9
|
+
| [**transfer_controller_create_external_bank_transfer**](TransfersApi.md#transfer_controller_create_external_bank_transfer) | **POST** /api/v0/transfers/external-bank-transfer | Create an external bank transfer |
|
|
10
|
+
| [**transfer_controller_create_external_stablecoin_transfer**](TransfersApi.md#transfer_controller_create_external_stablecoin_transfer) | **POST** /api/v0/transfers/external-stablecoin-transfer | Create an external stablecoin transfer |
|
|
11
|
+
| [**transfer_controller_create_stablecoin_conversion**](TransfersApi.md#transfer_controller_create_stablecoin_conversion) | **POST** /api/v0/transfers/stablecoin-conversion | Create a stablecoin conversion |
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
|
|
14
|
+
## transfer_controller_create_direct_bank_transfer
|
|
15
|
+
|
|
16
|
+
> transfer_controller_create_direct_bank_transfer(create_direct_bank_transfer_dto)
|
|
13
17
|
|
|
14
18
|
Create a direct bank transfer
|
|
15
19
|
|
|
16
|
-
###
|
|
20
|
+
### Examples
|
|
21
|
+
|
|
17
22
|
```ruby
|
|
18
|
-
|
|
19
|
-
require '
|
|
23
|
+
require 'time'
|
|
24
|
+
require 'devdraft'
|
|
20
25
|
# setup authorization
|
|
21
|
-
|
|
26
|
+
Devdraft.configure do |config|
|
|
27
|
+
# Configure API key authorization: x-client-secret
|
|
28
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
|
29
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
30
|
+
# config.api_key_prefix['x-client-secret'] = 'Bearer'
|
|
31
|
+
|
|
22
32
|
# Configure API key authorization: x-client-key
|
|
23
33
|
config.api_key['x-client-key'] = 'YOUR API KEY'
|
|
24
34
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
25
|
-
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
35
|
+
# config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
36
|
+
end
|
|
26
37
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
38
|
+
api_instance = Devdraft::TransfersApi.new
|
|
39
|
+
create_direct_bank_transfer_dto = Devdraft::CreateDirectBankTransferDto.new({wallet_id: 'wallet_id_example', payment_rail: 'payment_rail_example', destination_currency: 'destination_currency_example', source_currency: 'source_currency_example', amount: 3.56}) # CreateDirectBankTransferDto |
|
|
40
|
+
|
|
41
|
+
begin
|
|
42
|
+
# Create a direct bank transfer
|
|
43
|
+
api_instance.transfer_controller_create_direct_bank_transfer(create_direct_bank_transfer_dto)
|
|
44
|
+
rescue Devdraft::ApiError => e
|
|
45
|
+
puts "Error when calling TransfersApi->transfer_controller_create_direct_bank_transfer: #{e}"
|
|
31
46
|
end
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### Using the transfer_controller_create_direct_bank_transfer_with_http_info variant
|
|
32
50
|
|
|
33
|
-
|
|
34
|
-
body = DevDraftAI::CreateDirectBankTransferDto.new # CreateDirectBankTransferDto |
|
|
51
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
35
52
|
|
|
53
|
+
> <Array(nil, Integer, Hash)> transfer_controller_create_direct_bank_transfer_with_http_info(create_direct_bank_transfer_dto)
|
|
36
54
|
|
|
55
|
+
```ruby
|
|
37
56
|
begin
|
|
38
|
-
#Create a direct bank transfer
|
|
39
|
-
api_instance.
|
|
40
|
-
|
|
41
|
-
|
|
57
|
+
# Create a direct bank transfer
|
|
58
|
+
data, status_code, headers = api_instance.transfer_controller_create_direct_bank_transfer_with_http_info(create_direct_bank_transfer_dto)
|
|
59
|
+
p status_code # => 2xx
|
|
60
|
+
p headers # => { ... }
|
|
61
|
+
p data # => nil
|
|
62
|
+
rescue Devdraft::ApiError => e
|
|
63
|
+
puts "Error when calling TransfersApi->transfer_controller_create_direct_bank_transfer_with_http_info: #{e}"
|
|
42
64
|
end
|
|
43
65
|
```
|
|
44
66
|
|
|
45
67
|
### Parameters
|
|
46
68
|
|
|
47
|
-
Name | Type | Description
|
|
48
|
-
|
|
49
|
-
**
|
|
69
|
+
| Name | Type | Description | Notes |
|
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
|
71
|
+
| **create_direct_bank_transfer_dto** | [**CreateDirectBankTransferDto**](CreateDirectBankTransferDto.md) | | |
|
|
50
72
|
|
|
51
73
|
### Return type
|
|
52
74
|
|
|
@@ -54,54 +76,145 @@ nil (empty response body)
|
|
|
54
76
|
|
|
55
77
|
### Authorization
|
|
56
78
|
|
|
57
|
-
[x-client-
|
|
79
|
+
[x-client-secret](../README.md#x-client-secret), [x-client-key](../README.md#x-client-key)
|
|
58
80
|
|
|
59
81
|
### HTTP request headers
|
|
60
82
|
|
|
61
|
-
|
|
62
|
-
|
|
83
|
+
- **Content-Type**: application/json
|
|
84
|
+
- **Accept**: Not defined
|
|
63
85
|
|
|
64
86
|
|
|
87
|
+
## transfer_controller_create_direct_wallet_transfer
|
|
65
88
|
|
|
66
|
-
|
|
67
|
-
> transfer_controller_create_direct_wallet_transfer(body)
|
|
89
|
+
> transfer_controller_create_direct_wallet_transfer(create_direct_wallet_transfer_dto)
|
|
68
90
|
|
|
69
91
|
Create a direct wallet transfer
|
|
70
92
|
|
|
71
|
-
###
|
|
93
|
+
### Examples
|
|
94
|
+
|
|
72
95
|
```ruby
|
|
73
|
-
|
|
74
|
-
require '
|
|
96
|
+
require 'time'
|
|
97
|
+
require 'devdraft'
|
|
75
98
|
# setup authorization
|
|
76
|
-
|
|
99
|
+
Devdraft.configure do |config|
|
|
100
|
+
# Configure API key authorization: x-client-secret
|
|
101
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
|
102
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
103
|
+
# config.api_key_prefix['x-client-secret'] = 'Bearer'
|
|
104
|
+
|
|
77
105
|
# Configure API key authorization: x-client-key
|
|
78
106
|
config.api_key['x-client-key'] = 'YOUR API KEY'
|
|
79
107
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
80
|
-
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
108
|
+
# config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
api_instance = Devdraft::TransfersApi.new
|
|
112
|
+
create_direct_wallet_transfer_dto = Devdraft::CreateDirectWalletTransferDto.new({wallet_id: 'wallet_id_example', network: 'network_example', stable_coin_currency: 'stable_coin_currency_example', amount: 3.56}) # CreateDirectWalletTransferDto |
|
|
113
|
+
|
|
114
|
+
begin
|
|
115
|
+
# Create a direct wallet transfer
|
|
116
|
+
api_instance.transfer_controller_create_direct_wallet_transfer(create_direct_wallet_transfer_dto)
|
|
117
|
+
rescue Devdraft::ApiError => e
|
|
118
|
+
puts "Error when calling TransfersApi->transfer_controller_create_direct_wallet_transfer: #{e}"
|
|
119
|
+
end
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
#### Using the transfer_controller_create_direct_wallet_transfer_with_http_info variant
|
|
123
|
+
|
|
124
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
125
|
+
|
|
126
|
+
> <Array(nil, Integer, Hash)> transfer_controller_create_direct_wallet_transfer_with_http_info(create_direct_wallet_transfer_dto)
|
|
81
127
|
|
|
128
|
+
```ruby
|
|
129
|
+
begin
|
|
130
|
+
# Create a direct wallet transfer
|
|
131
|
+
data, status_code, headers = api_instance.transfer_controller_create_direct_wallet_transfer_with_http_info(create_direct_wallet_transfer_dto)
|
|
132
|
+
p status_code # => 2xx
|
|
133
|
+
p headers # => { ... }
|
|
134
|
+
p data # => nil
|
|
135
|
+
rescue Devdraft::ApiError => e
|
|
136
|
+
puts "Error when calling TransfersApi->transfer_controller_create_direct_wallet_transfer_with_http_info: #{e}"
|
|
137
|
+
end
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
| Name | Type | Description | Notes |
|
|
143
|
+
| ---- | ---- | ----------- | ----- |
|
|
144
|
+
| **create_direct_wallet_transfer_dto** | [**CreateDirectWalletTransferDto**](CreateDirectWalletTransferDto.md) | | |
|
|
145
|
+
|
|
146
|
+
### Return type
|
|
147
|
+
|
|
148
|
+
nil (empty response body)
|
|
149
|
+
|
|
150
|
+
### Authorization
|
|
151
|
+
|
|
152
|
+
[x-client-secret](../README.md#x-client-secret), [x-client-key](../README.md#x-client-key)
|
|
153
|
+
|
|
154
|
+
### HTTP request headers
|
|
155
|
+
|
|
156
|
+
- **Content-Type**: application/json
|
|
157
|
+
- **Accept**: Not defined
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
## transfer_controller_create_external_bank_transfer
|
|
161
|
+
|
|
162
|
+
> transfer_controller_create_external_bank_transfer(create_external_bank_transfer_dto)
|
|
163
|
+
|
|
164
|
+
Create an external bank transfer
|
|
165
|
+
|
|
166
|
+
### Examples
|
|
167
|
+
|
|
168
|
+
```ruby
|
|
169
|
+
require 'time'
|
|
170
|
+
require 'devdraft'
|
|
171
|
+
# setup authorization
|
|
172
|
+
Devdraft.configure do |config|
|
|
82
173
|
# Configure API key authorization: x-client-secret
|
|
83
174
|
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
|
84
175
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
85
|
-
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
|
176
|
+
# config.api_key_prefix['x-client-secret'] = 'Bearer'
|
|
177
|
+
|
|
178
|
+
# Configure API key authorization: x-client-key
|
|
179
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
|
180
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
181
|
+
# config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
api_instance = Devdraft::TransfersApi.new
|
|
185
|
+
create_external_bank_transfer_dto = Devdraft::CreateExternalBankTransferDto.new({source_wallet_id: 'source_wallet_id_example', source_currency: 'source_currency_example', destination_currency: 'destination_currency_example', destination_payment_rail: Devdraft::BridgeFiatPaymentRail::ACH, external_account_id: 'external_account_id_example'}) # CreateExternalBankTransferDto |
|
|
186
|
+
|
|
187
|
+
begin
|
|
188
|
+
# Create an external bank transfer
|
|
189
|
+
api_instance.transfer_controller_create_external_bank_transfer(create_external_bank_transfer_dto)
|
|
190
|
+
rescue Devdraft::ApiError => e
|
|
191
|
+
puts "Error when calling TransfersApi->transfer_controller_create_external_bank_transfer: #{e}"
|
|
86
192
|
end
|
|
193
|
+
```
|
|
87
194
|
|
|
88
|
-
|
|
89
|
-
body = DevDraftAI::CreateDirectWalletTransferDto.new # CreateDirectWalletTransferDto |
|
|
195
|
+
#### Using the transfer_controller_create_external_bank_transfer_with_http_info variant
|
|
90
196
|
|
|
197
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
91
198
|
|
|
199
|
+
> <Array(nil, Integer, Hash)> transfer_controller_create_external_bank_transfer_with_http_info(create_external_bank_transfer_dto)
|
|
200
|
+
|
|
201
|
+
```ruby
|
|
92
202
|
begin
|
|
93
|
-
#Create
|
|
94
|
-
api_instance.
|
|
95
|
-
|
|
96
|
-
|
|
203
|
+
# Create an external bank transfer
|
|
204
|
+
data, status_code, headers = api_instance.transfer_controller_create_external_bank_transfer_with_http_info(create_external_bank_transfer_dto)
|
|
205
|
+
p status_code # => 2xx
|
|
206
|
+
p headers # => { ... }
|
|
207
|
+
p data # => nil
|
|
208
|
+
rescue Devdraft::ApiError => e
|
|
209
|
+
puts "Error when calling TransfersApi->transfer_controller_create_external_bank_transfer_with_http_info: #{e}"
|
|
97
210
|
end
|
|
98
211
|
```
|
|
99
212
|
|
|
100
213
|
### Parameters
|
|
101
214
|
|
|
102
|
-
Name | Type | Description
|
|
103
|
-
|
|
104
|
-
**
|
|
215
|
+
| Name | Type | Description | Notes |
|
|
216
|
+
| ---- | ---- | ----------- | ----- |
|
|
217
|
+
| **create_external_bank_transfer_dto** | [**CreateExternalBankTransferDto**](CreateExternalBankTransferDto.md) | | |
|
|
105
218
|
|
|
106
219
|
### Return type
|
|
107
220
|
|
|
@@ -109,54 +222,145 @@ nil (empty response body)
|
|
|
109
222
|
|
|
110
223
|
### Authorization
|
|
111
224
|
|
|
112
|
-
[x-client-
|
|
225
|
+
[x-client-secret](../README.md#x-client-secret), [x-client-key](../README.md#x-client-key)
|
|
113
226
|
|
|
114
227
|
### HTTP request headers
|
|
115
228
|
|
|
116
|
-
|
|
117
|
-
|
|
229
|
+
- **Content-Type**: application/json
|
|
230
|
+
- **Accept**: Not defined
|
|
118
231
|
|
|
119
232
|
|
|
233
|
+
## transfer_controller_create_external_stablecoin_transfer
|
|
120
234
|
|
|
121
|
-
|
|
122
|
-
> transfer_controller_create_stablecoin_conversion(body)
|
|
235
|
+
> transfer_controller_create_external_stablecoin_transfer(create_external_stablecoin_transfer_dto)
|
|
123
236
|
|
|
124
|
-
Create
|
|
237
|
+
Create an external stablecoin transfer
|
|
238
|
+
|
|
239
|
+
### Examples
|
|
125
240
|
|
|
126
|
-
### Example
|
|
127
241
|
```ruby
|
|
128
|
-
|
|
129
|
-
require '
|
|
242
|
+
require 'time'
|
|
243
|
+
require 'devdraft'
|
|
130
244
|
# setup authorization
|
|
131
|
-
|
|
245
|
+
Devdraft.configure do |config|
|
|
246
|
+
# Configure API key authorization: x-client-secret
|
|
247
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
|
248
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
249
|
+
# config.api_key_prefix['x-client-secret'] = 'Bearer'
|
|
250
|
+
|
|
132
251
|
# Configure API key authorization: x-client-key
|
|
133
252
|
config.api_key['x-client-key'] = 'YOUR API KEY'
|
|
134
253
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
135
|
-
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
254
|
+
# config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
api_instance = Devdraft::TransfersApi.new
|
|
258
|
+
create_external_stablecoin_transfer_dto = Devdraft::CreateExternalStablecoinTransferDto.new({source_wallet_id: 'source_wallet_id_example', source_currency: 'source_currency_example', destination_currency: 'destination_currency_example', beneficiary_id: 'beneficiary_12345'}) # CreateExternalStablecoinTransferDto |
|
|
259
|
+
|
|
260
|
+
begin
|
|
261
|
+
# Create an external stablecoin transfer
|
|
262
|
+
api_instance.transfer_controller_create_external_stablecoin_transfer(create_external_stablecoin_transfer_dto)
|
|
263
|
+
rescue Devdraft::ApiError => e
|
|
264
|
+
puts "Error when calling TransfersApi->transfer_controller_create_external_stablecoin_transfer: #{e}"
|
|
265
|
+
end
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
#### Using the transfer_controller_create_external_stablecoin_transfer_with_http_info variant
|
|
269
|
+
|
|
270
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
271
|
+
|
|
272
|
+
> <Array(nil, Integer, Hash)> transfer_controller_create_external_stablecoin_transfer_with_http_info(create_external_stablecoin_transfer_dto)
|
|
273
|
+
|
|
274
|
+
```ruby
|
|
275
|
+
begin
|
|
276
|
+
# Create an external stablecoin transfer
|
|
277
|
+
data, status_code, headers = api_instance.transfer_controller_create_external_stablecoin_transfer_with_http_info(create_external_stablecoin_transfer_dto)
|
|
278
|
+
p status_code # => 2xx
|
|
279
|
+
p headers # => { ... }
|
|
280
|
+
p data # => nil
|
|
281
|
+
rescue Devdraft::ApiError => e
|
|
282
|
+
puts "Error when calling TransfersApi->transfer_controller_create_external_stablecoin_transfer_with_http_info: #{e}"
|
|
283
|
+
end
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### Parameters
|
|
287
|
+
|
|
288
|
+
| Name | Type | Description | Notes |
|
|
289
|
+
| ---- | ---- | ----------- | ----- |
|
|
290
|
+
| **create_external_stablecoin_transfer_dto** | [**CreateExternalStablecoinTransferDto**](CreateExternalStablecoinTransferDto.md) | | |
|
|
291
|
+
|
|
292
|
+
### Return type
|
|
293
|
+
|
|
294
|
+
nil (empty response body)
|
|
295
|
+
|
|
296
|
+
### Authorization
|
|
297
|
+
|
|
298
|
+
[x-client-secret](../README.md#x-client-secret), [x-client-key](../README.md#x-client-key)
|
|
299
|
+
|
|
300
|
+
### HTTP request headers
|
|
301
|
+
|
|
302
|
+
- **Content-Type**: application/json
|
|
303
|
+
- **Accept**: Not defined
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
## transfer_controller_create_stablecoin_conversion
|
|
307
|
+
|
|
308
|
+
> transfer_controller_create_stablecoin_conversion(create_stablecoin_conversion_dto)
|
|
309
|
+
|
|
310
|
+
Create a stablecoin conversion
|
|
311
|
+
|
|
312
|
+
### Examples
|
|
136
313
|
|
|
314
|
+
```ruby
|
|
315
|
+
require 'time'
|
|
316
|
+
require 'devdraft'
|
|
317
|
+
# setup authorization
|
|
318
|
+
Devdraft.configure do |config|
|
|
137
319
|
# Configure API key authorization: x-client-secret
|
|
138
320
|
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
|
139
321
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
140
|
-
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
|
322
|
+
# config.api_key_prefix['x-client-secret'] = 'Bearer'
|
|
323
|
+
|
|
324
|
+
# Configure API key authorization: x-client-key
|
|
325
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
|
326
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
327
|
+
# config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
141
328
|
end
|
|
142
329
|
|
|
143
|
-
api_instance =
|
|
144
|
-
|
|
330
|
+
api_instance = Devdraft::TransfersApi.new
|
|
331
|
+
create_stablecoin_conversion_dto = Devdraft::CreateStablecoinConversionDto.new({wallet_id: 'wallet_id_example', source_network: 'source_network_example', source_currency: 'source_currency_example', destination_currency: 'destination_currency_example', amount: 3.56}) # CreateStablecoinConversionDto |
|
|
145
332
|
|
|
333
|
+
begin
|
|
334
|
+
# Create a stablecoin conversion
|
|
335
|
+
api_instance.transfer_controller_create_stablecoin_conversion(create_stablecoin_conversion_dto)
|
|
336
|
+
rescue Devdraft::ApiError => e
|
|
337
|
+
puts "Error when calling TransfersApi->transfer_controller_create_stablecoin_conversion: #{e}"
|
|
338
|
+
end
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
#### Using the transfer_controller_create_stablecoin_conversion_with_http_info variant
|
|
342
|
+
|
|
343
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
344
|
+
|
|
345
|
+
> <Array(nil, Integer, Hash)> transfer_controller_create_stablecoin_conversion_with_http_info(create_stablecoin_conversion_dto)
|
|
146
346
|
|
|
347
|
+
```ruby
|
|
147
348
|
begin
|
|
148
|
-
#Create a stablecoin conversion
|
|
149
|
-
api_instance.
|
|
150
|
-
|
|
151
|
-
|
|
349
|
+
# Create a stablecoin conversion
|
|
350
|
+
data, status_code, headers = api_instance.transfer_controller_create_stablecoin_conversion_with_http_info(create_stablecoin_conversion_dto)
|
|
351
|
+
p status_code # => 2xx
|
|
352
|
+
p headers # => { ... }
|
|
353
|
+
p data # => nil
|
|
354
|
+
rescue Devdraft::ApiError => e
|
|
355
|
+
puts "Error when calling TransfersApi->transfer_controller_create_stablecoin_conversion_with_http_info: #{e}"
|
|
152
356
|
end
|
|
153
357
|
```
|
|
154
358
|
|
|
155
359
|
### Parameters
|
|
156
360
|
|
|
157
|
-
Name | Type | Description
|
|
158
|
-
|
|
159
|
-
**
|
|
361
|
+
| Name | Type | Description | Notes |
|
|
362
|
+
| ---- | ---- | ----------- | ----- |
|
|
363
|
+
| **create_stablecoin_conversion_dto** | [**CreateStablecoinConversionDto**](CreateStablecoinConversionDto.md) | | |
|
|
160
364
|
|
|
161
365
|
### Return type
|
|
162
366
|
|
|
@@ -164,12 +368,10 @@ nil (empty response body)
|
|
|
164
368
|
|
|
165
369
|
### Authorization
|
|
166
370
|
|
|
167
|
-
[x-client-
|
|
371
|
+
[x-client-secret](../README.md#x-client-secret), [x-client-key](../README.md#x-client-key)
|
|
168
372
|
|
|
169
373
|
### HTTP request headers
|
|
170
374
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
375
|
+
- **Content-Type**: application/json
|
|
376
|
+
- **Accept**: Not defined
|
|
175
377
|
|
data/docs/UpdateCustomerDto.md
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::UpdateCustomerDto
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
**
|
|
8
|
-
**
|
|
9
|
-
**
|
|
10
|
-
**
|
|
11
|
-
**
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **first_name** | **String** | Customer's first name. Used for personalization and legal documentation. | [optional] |
|
|
8
|
+
| **last_name** | **String** | Customer's last name. Used for personalization and legal documentation. | [optional] |
|
|
9
|
+
| **email** | **String** | Customer's email address. Used for notifications, receipts, and account management. Must be a valid email format. | [optional] |
|
|
10
|
+
| **phone_number** | **String** | Customer's phone number. Used for SMS notifications and verification. Include country code for international numbers. | [optional] |
|
|
11
|
+
| **customer_type** | [**CustomerType**](CustomerType.md) | Type of customer account. Determines available features and compliance requirements. | [optional] |
|
|
12
|
+
| **status** | [**CustomerStatus**](CustomerStatus.md) | Current status of the customer account. Controls access to services and features. | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'devdraft'
|
|
18
|
+
|
|
19
|
+
instance = Devdraft::UpdateCustomerDto.new(
|
|
20
|
+
first_name: John,
|
|
21
|
+
last_name: Doe,
|
|
22
|
+
email: john.doe@example.com,
|
|
23
|
+
phone_number: +1-555-123-4567,
|
|
24
|
+
customer_type: null,
|
|
25
|
+
status: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
12
28
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Devdraft::UpdateTaxDto
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | Tax name for identification and display purposes | [optional] |
|
|
8
|
+
| **description** | **String** | Detailed description of what this tax covers | [optional] |
|
|
9
|
+
| **percentage** | **Float** | Tax rate as a percentage (0-100) | [optional] |
|
|
10
|
+
| **active** | **Boolean** | Whether this tax is currently active and can be applied | [optional] |
|
|
11
|
+
| **app_ids** | **Array<String>** | Array of app IDs where this tax should be available | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'devdraft'
|
|
17
|
+
|
|
18
|
+
instance = Devdraft::UpdateTaxDto.new(
|
|
19
|
+
name: Updated Sales Tax,
|
|
20
|
+
description: Updated description for retail sales tax,
|
|
21
|
+
percentage: 9.5,
|
|
22
|
+
active: false,
|
|
23
|
+
app_ids: ["app_123e4567-e89b-12d3-a456-426614174000"]
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
data/docs/UpdateWebhookDto.md
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::UpdateWebhookDto
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
**
|
|
8
|
-
**
|
|
9
|
-
**
|
|
10
|
-
**
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | Name of the webhook for identification purposes | [optional] |
|
|
8
|
+
| **url** | **String** | URL where webhook events will be sent | [optional] |
|
|
9
|
+
| **is_active** | **Boolean** | Whether the webhook is active and will receive events | [optional][default to true] |
|
|
10
|
+
| **signing_secret** | **String** | Secret key used to sign webhook payloads for verification | [optional] |
|
|
11
|
+
| **encrypted** | **Boolean** | Whether webhook payloads should be encrypted | [optional][default to false] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'devdraft'
|
|
17
|
+
|
|
18
|
+
instance = Devdraft::UpdateWebhookDto.new(
|
|
19
|
+
name: Payment Notifications,
|
|
20
|
+
url: https://api.example.com/webhooks/payments,
|
|
21
|
+
is_active: true,
|
|
22
|
+
signing_secret: whsec_123456789,
|
|
23
|
+
encrypted: false
|
|
24
|
+
)
|
|
25
|
+
```
|
|
11
26
|
|
data/docs/WalletsApi.md
CHANGED
|
@@ -1,44 +1,66 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::WalletsApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.devdraft.ai*
|
|
4
4
|
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
|
|
7
|
-
[**wallet_controller_get_wallets**](WalletsApi.md#wallet_controller_get_wallets) | **GET** /api/v0/wallets | Get wallets for an app
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**wallet_controller_get_wallets**](WalletsApi.md#wallet_controller_get_wallets) | **GET** /api/v0/wallets | Get wallets for an app |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## wallet_controller_get_wallets
|
|
8
11
|
|
|
9
|
-
# **wallet_controller_get_wallets**
|
|
10
12
|
> wallet_controller_get_wallets
|
|
11
13
|
|
|
12
14
|
Get wallets for an app
|
|
13
15
|
|
|
14
|
-
###
|
|
16
|
+
### Examples
|
|
17
|
+
|
|
15
18
|
```ruby
|
|
16
|
-
|
|
17
|
-
require '
|
|
19
|
+
require 'time'
|
|
20
|
+
require 'devdraft'
|
|
18
21
|
# setup authorization
|
|
19
|
-
|
|
20
|
-
# Configure API key authorization: x-client-key
|
|
21
|
-
config.api_key['x-client-key'] = 'YOUR API KEY'
|
|
22
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
23
|
-
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
24
|
-
|
|
22
|
+
Devdraft.configure do |config|
|
|
25
23
|
# Configure API key authorization: x-client-secret
|
|
26
24
|
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
|
27
25
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
28
|
-
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
|
26
|
+
# config.api_key_prefix['x-client-secret'] = 'Bearer'
|
|
27
|
+
|
|
28
|
+
# Configure API key authorization: x-client-key
|
|
29
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
|
30
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
31
|
+
# config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
29
32
|
end
|
|
30
33
|
|
|
31
|
-
api_instance =
|
|
34
|
+
api_instance = Devdraft::WalletsApi.new
|
|
32
35
|
|
|
33
36
|
begin
|
|
34
|
-
#Get wallets for an app
|
|
37
|
+
# Get wallets for an app
|
|
35
38
|
api_instance.wallet_controller_get_wallets
|
|
36
|
-
rescue
|
|
37
|
-
puts "
|
|
39
|
+
rescue Devdraft::ApiError => e
|
|
40
|
+
puts "Error when calling WalletsApi->wallet_controller_get_wallets: #{e}"
|
|
41
|
+
end
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
#### Using the wallet_controller_get_wallets_with_http_info variant
|
|
45
|
+
|
|
46
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
47
|
+
|
|
48
|
+
> <Array(nil, Integer, Hash)> wallet_controller_get_wallets_with_http_info
|
|
49
|
+
|
|
50
|
+
```ruby
|
|
51
|
+
begin
|
|
52
|
+
# Get wallets for an app
|
|
53
|
+
data, status_code, headers = api_instance.wallet_controller_get_wallets_with_http_info
|
|
54
|
+
p status_code # => 2xx
|
|
55
|
+
p headers # => { ... }
|
|
56
|
+
p data # => nil
|
|
57
|
+
rescue Devdraft::ApiError => e
|
|
58
|
+
puts "Error when calling WalletsApi->wallet_controller_get_wallets_with_http_info: #{e}"
|
|
38
59
|
end
|
|
39
60
|
```
|
|
40
61
|
|
|
41
62
|
### Parameters
|
|
63
|
+
|
|
42
64
|
This endpoint does not need any parameter.
|
|
43
65
|
|
|
44
66
|
### Return type
|
|
@@ -47,12 +69,10 @@ nil (empty response body)
|
|
|
47
69
|
|
|
48
70
|
### Authorization
|
|
49
71
|
|
|
50
|
-
[x-client-
|
|
72
|
+
[x-client-secret](../README.md#x-client-secret), [x-client-key](../README.md#x-client-key)
|
|
51
73
|
|
|
52
74
|
### HTTP request headers
|
|
53
75
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
76
|
+
- **Content-Type**: Not defined
|
|
77
|
+
- **Accept**: Not defined
|
|
58
78
|
|