devdraft 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +160 -191
- 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 -94
- 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/CreateCustomerDto.md
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::CreateCustomerDto
|
|
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. | |
|
|
8
|
+
| **last_name** | **String** | Customer's last name. Used for personalization and legal documentation. | |
|
|
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. | |
|
|
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::CreateCustomerDto.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
|
|
|
@@ -1,14 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::CreateDirectBankTransferDto
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
**
|
|
8
|
-
**
|
|
9
|
-
**
|
|
10
|
-
**
|
|
11
|
-
**
|
|
12
|
-
**
|
|
13
|
-
**
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **wallet_id** | **String** | The ID of the bridge wallet to transfer from | |
|
|
8
|
+
| **payment_rail** | **String** | The payment rail to use | |
|
|
9
|
+
| **destination_currency** | **String** | The destination currency | |
|
|
10
|
+
| **source_currency** | **String** | The source currency | |
|
|
11
|
+
| **amount** | **Float** | The amount to transfer | |
|
|
12
|
+
| **wire_message** | **String** | Wire transfer message | [optional] |
|
|
13
|
+
| **sepa_reference** | **String** | SEPA transfer reference | [optional] |
|
|
14
|
+
| **ach_reference** | **String** | ACH transfer reference | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'devdraft'
|
|
20
|
+
|
|
21
|
+
instance = Devdraft::CreateDirectBankTransferDto.new(
|
|
22
|
+
wallet_id: null,
|
|
23
|
+
payment_rail: null,
|
|
24
|
+
destination_currency: null,
|
|
25
|
+
source_currency: null,
|
|
26
|
+
amount: null,
|
|
27
|
+
wire_message: null,
|
|
28
|
+
sepa_reference: null,
|
|
29
|
+
ach_reference: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
14
32
|
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::CreateDirectWalletTransferDto
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
**
|
|
8
|
-
**
|
|
9
|
-
**
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **wallet_id** | **String** | The ID of the bridge wallet to transfer from | |
|
|
8
|
+
| **network** | **String** | The network to use for the transfer | |
|
|
9
|
+
| **stable_coin_currency** | **String** | The stablecoin currency to use | |
|
|
10
|
+
| **amount** | **Float** | The amount to transfer | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'devdraft'
|
|
16
|
+
|
|
17
|
+
instance = Devdraft::CreateDirectWalletTransferDto.new(
|
|
18
|
+
wallet_id: null,
|
|
19
|
+
network: null,
|
|
20
|
+
stable_coin_currency: null,
|
|
21
|
+
amount: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
10
24
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Devdraft::CreateExternalBankTransferDto
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **source_wallet_id** | **String** | The ID of the source bridge wallet | |
|
|
8
|
+
| **source_currency** | **String** | The source currency | |
|
|
9
|
+
| **destination_currency** | **String** | The destination currency | |
|
|
10
|
+
| **destination_payment_rail** | [**BridgeFiatPaymentRail**](BridgeFiatPaymentRail.md) | The destination payment rail (fiat payment method) | |
|
|
11
|
+
| **external_account_id** | **String** | The external account ID for the bank transfer | |
|
|
12
|
+
| **amount** | **Float** | The amount to transfer | [optional] |
|
|
13
|
+
| **wire_message** | **String** | Wire transfer message (1-256 characters, only for wire transfers) | [optional] |
|
|
14
|
+
| **sepa_reference** | **String** | SEPA reference message (6-140 characters, only for SEPA transfers) | [optional] |
|
|
15
|
+
| **swift_reference** | **String** | SWIFT reference message (1-190 characters, only for SWIFT transfers) | [optional] |
|
|
16
|
+
| **spei_reference** | **String** | SPEI reference message (1-40 characters, only for SPEI transfers) | [optional] |
|
|
17
|
+
| **swift_charges** | **String** | SWIFT charges bearer (only for SWIFT transfers) | [optional] |
|
|
18
|
+
| **ach_reference** | **String** | ACH reference message (1-10 characters, only for ACH transfers) | [optional] |
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require 'devdraft'
|
|
24
|
+
|
|
25
|
+
instance = Devdraft::CreateExternalBankTransferDto.new(
|
|
26
|
+
source_wallet_id: null,
|
|
27
|
+
source_currency: null,
|
|
28
|
+
destination_currency: null,
|
|
29
|
+
destination_payment_rail: null,
|
|
30
|
+
external_account_id: null,
|
|
31
|
+
amount: null,
|
|
32
|
+
wire_message: null,
|
|
33
|
+
sepa_reference: null,
|
|
34
|
+
swift_reference: null,
|
|
35
|
+
spei_reference: null,
|
|
36
|
+
swift_charges: null,
|
|
37
|
+
ach_reference: null
|
|
38
|
+
)
|
|
39
|
+
```
|
|
40
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Devdraft::CreateExternalStablecoinTransferDto
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **source_wallet_id** | **String** | The ID of the source bridge wallet | |
|
|
8
|
+
| **source_currency** | **String** | The source currency | |
|
|
9
|
+
| **destination_currency** | **String** | The destination currency | |
|
|
10
|
+
| **blockchain_memo** | **String** | Blockchain memo for the transfer | [optional] |
|
|
11
|
+
| **beneficiary_id** | **String** | Beneficiary ID for the stablecoin transfer | |
|
|
12
|
+
| **amount** | **Float** | The amount to transfer | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'devdraft'
|
|
18
|
+
|
|
19
|
+
instance = Devdraft::CreateExternalStablecoinTransferDto.new(
|
|
20
|
+
source_wallet_id: null,
|
|
21
|
+
source_currency: null,
|
|
22
|
+
destination_currency: null,
|
|
23
|
+
blockchain_memo: null,
|
|
24
|
+
beneficiary_id: beneficiary_12345,
|
|
25
|
+
amount: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
data/docs/CreateInvoiceDto.md
CHANGED
|
@@ -1,22 +1,48 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::CreateInvoiceDto
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
**
|
|
8
|
-
**
|
|
9
|
-
**
|
|
10
|
-
**
|
|
11
|
-
**
|
|
12
|
-
**
|
|
13
|
-
**
|
|
14
|
-
**
|
|
15
|
-
**
|
|
16
|
-
**
|
|
17
|
-
**
|
|
18
|
-
**
|
|
19
|
-
**
|
|
20
|
-
**
|
|
21
|
-
**
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | Name of the invoice | |
|
|
8
|
+
| **email** | **String** | Email address | |
|
|
9
|
+
| **customer_id** | **String** | Customer ID | |
|
|
10
|
+
| **currency** | **String** | Currency for the invoice | |
|
|
11
|
+
| **items** | **Object** | | |
|
|
12
|
+
| **due_date** | **Time** | Due date of the invoice | |
|
|
13
|
+
| **delivery** | **String** | Delivery method | |
|
|
14
|
+
| **payment_link** | **Boolean** | Whether to generate a payment link | |
|
|
15
|
+
| **payment_methods** | **Array<String>** | Array of accepted payment methods | |
|
|
16
|
+
| **status** | **String** | Invoice status | |
|
|
17
|
+
| **address** | **String** | Address | [optional] |
|
|
18
|
+
| **phone_number** | **String** | Phone number | [optional] |
|
|
19
|
+
| **send_date** | **Time** | Send date | [optional] |
|
|
20
|
+
| **logo** | **String** | Logo URL | [optional] |
|
|
21
|
+
| **partial_payment** | **Boolean** | Allow partial payments | |
|
|
22
|
+
| **tax_id** | **String** | Tax ID | [optional] |
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```ruby
|
|
27
|
+
require 'devdraft'
|
|
28
|
+
|
|
29
|
+
instance = Devdraft::CreateInvoiceDto.new(
|
|
30
|
+
name: null,
|
|
31
|
+
email: null,
|
|
32
|
+
customer_id: null,
|
|
33
|
+
currency: null,
|
|
34
|
+
items: null,
|
|
35
|
+
due_date: null,
|
|
36
|
+
delivery: null,
|
|
37
|
+
payment_link: null,
|
|
38
|
+
payment_methods: null,
|
|
39
|
+
status: null,
|
|
40
|
+
address: null,
|
|
41
|
+
phone_number: null,
|
|
42
|
+
send_date: null,
|
|
43
|
+
logo: null,
|
|
44
|
+
partial_payment: null,
|
|
45
|
+
tax_id: null
|
|
46
|
+
)
|
|
47
|
+
```
|
|
22
48
|
|
|
@@ -1,21 +1,46 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::CreateLiquidationAddressDto
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
**
|
|
8
|
-
**
|
|
9
|
-
**
|
|
10
|
-
**
|
|
11
|
-
**
|
|
12
|
-
**
|
|
13
|
-
**
|
|
14
|
-
**
|
|
15
|
-
**
|
|
16
|
-
**
|
|
17
|
-
**
|
|
18
|
-
**
|
|
19
|
-
**
|
|
20
|
-
**
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **chain** | **String** | The blockchain chain for the liquidation address | |
|
|
8
|
+
| **currency** | **String** | The currency for the liquidation address | |
|
|
9
|
+
| **address** | **String** | The liquidation address on the blockchain | |
|
|
10
|
+
| **external_account_id** | **String** | External bank account to send funds to | [optional] |
|
|
11
|
+
| **prefunded_account_id** | **String** | Developer's prefunded account id | [optional] |
|
|
12
|
+
| **bridge_wallet_id** | **String** | Bridge Wallet to send funds to | [optional] |
|
|
13
|
+
| **destination_payment_rail** | [**BridgePaymentRail**](BridgePaymentRail.md) | Payment rail for sending funds | [optional] |
|
|
14
|
+
| **destination_currency** | [**DestinationCurrency**](DestinationCurrency.md) | Currency for sending funds | [optional] |
|
|
15
|
+
| **destination_wire_message** | **String** | Message for wire transfers | [optional] |
|
|
16
|
+
| **destination_sepa_reference** | **String** | Reference for SEPA transactions | [optional] |
|
|
17
|
+
| **destination_ach_reference** | **String** | Reference for ACH transactions | [optional] |
|
|
18
|
+
| **destination_address** | **String** | Crypto wallet address for crypto transfers | [optional] |
|
|
19
|
+
| **destination_blockchain_memo** | **String** | Memo for blockchain transactions | [optional] |
|
|
20
|
+
| **return_address** | **String** | Address to return funds on failed transactions (Not supported on Stellar) | [optional] |
|
|
21
|
+
| **custom_developer_fee_percent** | **String** | Custom developer fee percentage (Base 100 percentage: 10.2% = \"10.2\") | [optional] |
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'devdraft'
|
|
27
|
+
|
|
28
|
+
instance = Devdraft::CreateLiquidationAddressDto.new(
|
|
29
|
+
chain: ethereum,
|
|
30
|
+
currency: usdc,
|
|
31
|
+
address: 0x4d0280da2f2fDA5103914bCc5aad114743152A9c,
|
|
32
|
+
external_account_id: ext_123,
|
|
33
|
+
prefunded_account_id: pf_acc_123,
|
|
34
|
+
bridge_wallet_id: bw_123,
|
|
35
|
+
destination_payment_rail: null,
|
|
36
|
+
destination_currency: null,
|
|
37
|
+
destination_wire_message: Liquidation payment for customer,
|
|
38
|
+
destination_sepa_reference: SEPA-REF-123456,
|
|
39
|
+
destination_ach_reference: ACH123,
|
|
40
|
+
destination_address: 0x1234567890abcdef1234567890abcdef12345678,
|
|
41
|
+
destination_blockchain_memo: liquidation-memo-123,
|
|
42
|
+
return_address: 0xabcdefabcdefabcdefabcdefabcdefabcdef,
|
|
43
|
+
custom_developer_fee_percent: 2.5
|
|
44
|
+
)
|
|
45
|
+
```
|
|
21
46
|
|
|
@@ -1,31 +1,56 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::CreatePaymentLinkDto
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
**
|
|
8
|
-
**
|
|
9
|
-
**
|
|
10
|
-
**
|
|
11
|
-
**
|
|
12
|
-
**
|
|
13
|
-
**
|
|
14
|
-
**customer_id** | **String** | Customer ID | [optional]
|
|
15
|
-
**payment_link_products** | [**Array<PaymentLinkProductDto>**](PaymentLinkProductDto.md) | Array of products in the payment link | [optional]
|
|
16
|
-
**is_for_all_product** | **
|
|
17
|
-
**allow_quantity_adjustment** | **
|
|
18
|
-
**collect_tax** | **
|
|
19
|
-
**tax_id** | **String** | Tax ID | [optional]
|
|
20
|
-
**collect_address** | **
|
|
21
|
-
**
|
|
22
|
-
**
|
|
23
|
-
**
|
|
24
|
-
**
|
|
25
|
-
**
|
|
26
|
-
**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **title** | **String** | Display title for the payment link. This appears on the checkout page and in customer communications. | |
|
|
8
|
+
| **url** | **String** | Unique URL slug for the payment link. Can be a full URL or just the path segment. Must be unique within your account. | |
|
|
9
|
+
| **description** | **String** | Detailed description of what the customer is purchasing. Supports markdown formatting. | [optional] |
|
|
10
|
+
| **cover_image** | **String** | Cover image URL | [optional] |
|
|
11
|
+
| **link_type** | **String** | Type of the payment link | |
|
|
12
|
+
| **amount** | **Float** | Amount for the payment link | [optional] |
|
|
13
|
+
| **payment_for_id** | **String** | Payment for ID | [optional] |
|
|
14
|
+
| **customer_id** | **String** | Customer ID | [optional] |
|
|
15
|
+
| **payment_link_products** | [**Array<PaymentLinkProductDto>**](PaymentLinkProductDto.md) | Array of products in the payment link | [optional] |
|
|
16
|
+
| **is_for_all_product** | **Boolean** | Whether the payment link is for all products | [optional][default to false] |
|
|
17
|
+
| **allow_quantity_adjustment** | **Boolean** | Whether to allow quantity adjustment | [default to true] |
|
|
18
|
+
| **collect_tax** | **Boolean** | Whether to collect tax | [default to false] |
|
|
19
|
+
| **tax_id** | **String** | Tax ID | [optional] |
|
|
20
|
+
| **collect_address** | **Boolean** | Whether to collect address | [default to false] |
|
|
21
|
+
| **limit_payments** | **Boolean** | Whether to limit payments | [optional][default to false] |
|
|
22
|
+
| **max_payments** | **Float** | Maximum number of payments | [optional] |
|
|
23
|
+
| **custom_fields** | **Object** | Custom fields | [optional] |
|
|
24
|
+
| **allow_mobile_payment** | **Boolean** | Whether to allow mobile payment | [default to false] |
|
|
25
|
+
| **currency** | **String** | Currency | [default to 'usdc'] |
|
|
26
|
+
| **expiration_date** | **Time** | Expiration date | [optional] |
|
|
27
|
+
|
|
28
|
+
## Example
|
|
29
|
+
|
|
30
|
+
```ruby
|
|
31
|
+
require 'devdraft'
|
|
32
|
+
|
|
33
|
+
instance = Devdraft::CreatePaymentLinkDto.new(
|
|
34
|
+
title: Premium Subscription,
|
|
35
|
+
url: premium-subscription,
|
|
36
|
+
description: Get access to all premium features with our monthly subscription plan. Includes priority support and advanced analytics.,
|
|
37
|
+
cover_image: https://example.com/images/premium-subscription.jpg,
|
|
38
|
+
link_type: PRODUCT,
|
|
39
|
+
amount: 29.99,
|
|
40
|
+
payment_for_id: sub_123456789,
|
|
41
|
+
customer_id: 123e4567-e89b-12d3-a456-426614174002,
|
|
42
|
+
payment_link_products: [{"productId":"123e4567-e89b-12d3-a456-426614174003","quantity":1},{"productId":"123e4567-e89b-12d3-a456-426614174004","quantity":2}],
|
|
43
|
+
is_for_all_product: false,
|
|
44
|
+
allow_quantity_adjustment: true,
|
|
45
|
+
collect_tax: true,
|
|
46
|
+
tax_id: 123e4567-e89b-12d3-a456-426614174005,
|
|
47
|
+
collect_address: true,
|
|
48
|
+
limit_payments: true,
|
|
49
|
+
max_payments: 100,
|
|
50
|
+
custom_fields: {"customField1":"value1","customField2":"value2"},
|
|
51
|
+
allow_mobile_payment: true,
|
|
52
|
+
currency: usdc,
|
|
53
|
+
expiration_date: 2024-12-31T23:59:59Z
|
|
54
|
+
)
|
|
55
|
+
```
|
|
31
56
|
|
|
@@ -1,21 +1,46 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::CreateStablePaymentIntentDto
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
**
|
|
8
|
-
**
|
|
9
|
-
**
|
|
10
|
-
**
|
|
11
|
-
**
|
|
12
|
-
**
|
|
13
|
-
**
|
|
14
|
-
**
|
|
15
|
-
**
|
|
16
|
-
**
|
|
17
|
-
**
|
|
18
|
-
**
|
|
19
|
-
**
|
|
20
|
-
**
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **source_currency** | [**StableCoinCurrency**](StableCoinCurrency.md) | The stablecoin currency to convert FROM. This is the currency the customer will pay with. | |
|
|
8
|
+
| **source_network** | [**BridgePaymentRail**](BridgePaymentRail.md) | The blockchain network where the source currency resides. Determines gas fees and transaction speed. | |
|
|
9
|
+
| **destination_currency** | [**StableCoinCurrency**](StableCoinCurrency.md) | The stablecoin currency to convert TO. If omitted, defaults to the same as source currency (cross-chain transfer). | [optional] |
|
|
10
|
+
| **destination_network** | [**BridgePaymentRail**](BridgePaymentRail.md) | The blockchain network where the converted currency will be delivered. Must support the destination currency. | |
|
|
11
|
+
| **destination_address** | **String** | The wallet address where converted funds will be sent. Supports Ethereum (0x...) and Solana address formats. | [optional] |
|
|
12
|
+
| **amount** | **String** | Payment amount in the source currency. Omit for flexible amount payments where users specify the amount during checkout. | [optional] |
|
|
13
|
+
| **customer_first_name** | **String** | Customer's first name. Used for transaction records and compliance. Required for amounts over $1000. | [optional] |
|
|
14
|
+
| **customer_last_name** | **String** | Customer's last name. Used for transaction records and compliance. Required for amounts over $1000. | [optional] |
|
|
15
|
+
| **customer_email** | **String** | Customer's email address. Used for transaction notifications and receipts. Highly recommended for all transactions. | [optional] |
|
|
16
|
+
| **customer_address** | **String** | Customer's full address. Required for compliance in certain jurisdictions and high-value transactions. | [optional] |
|
|
17
|
+
| **customer_country** | **String** | Customer's country of residence. Used for compliance and tax reporting. | [optional] |
|
|
18
|
+
| **customer_country_iso** | **String** | Customer's country ISO 3166-1 alpha-2 code. Used for automated compliance checks. | [optional] |
|
|
19
|
+
| **customer_province** | **String** | Customer's state or province. Required for US and Canadian customers. | [optional] |
|
|
20
|
+
| **customer_province_iso** | **String** | Customer's state or province ISO code. Used for automated tax calculations. | [optional] |
|
|
21
|
+
| **phone_number** | **String** | Customer's phone number with country code. Used for SMS notifications and verification. | [optional] |
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'devdraft'
|
|
27
|
+
|
|
28
|
+
instance = Devdraft::CreateStablePaymentIntentDto.new(
|
|
29
|
+
source_currency: null,
|
|
30
|
+
source_network: null,
|
|
31
|
+
destination_currency: null,
|
|
32
|
+
destination_network: null,
|
|
33
|
+
destination_address: 0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8e1,
|
|
34
|
+
amount: 100.50,
|
|
35
|
+
customer_first_name: John,
|
|
36
|
+
customer_last_name: Doe,
|
|
37
|
+
customer_email: john.doe@example.com,
|
|
38
|
+
customer_address: 123 Main St, New York, NY 10001,
|
|
39
|
+
customer_country: United States,
|
|
40
|
+
customer_country_iso: US,
|
|
41
|
+
customer_province: New York,
|
|
42
|
+
customer_province_iso: NY,
|
|
43
|
+
phone_number: +1-555-123-4567
|
|
44
|
+
)
|
|
45
|
+
```
|
|
21
46
|
|
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::CreateStablecoinConversionDto
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
**
|
|
8
|
-
**
|
|
9
|
-
**
|
|
10
|
-
**
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **wallet_id** | **String** | The ID of the bridge wallet to use | |
|
|
8
|
+
| **source_network** | **String** | The source network | |
|
|
9
|
+
| **source_currency** | **String** | The source currency | |
|
|
10
|
+
| **destination_currency** | **String** | The destination currency | |
|
|
11
|
+
| **amount** | **Float** | The amount to convert | |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'devdraft'
|
|
17
|
+
|
|
18
|
+
instance = Devdraft::CreateStablecoinConversionDto.new(
|
|
19
|
+
wallet_id: null,
|
|
20
|
+
source_network: null,
|
|
21
|
+
source_currency: null,
|
|
22
|
+
destination_currency: null,
|
|
23
|
+
amount: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
11
26
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Devdraft::CreateTaxDto
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | Tax name. Used to identify and reference this tax rate. | |
|
|
8
|
+
| **description** | **String** | Optional description explaining what this tax covers. | [optional] |
|
|
9
|
+
| **percentage** | **Float** | Tax percentage rate. Must be between 0 and 100. | |
|
|
10
|
+
| **active** | **Boolean** | Whether this tax is currently active and can be applied. | [optional][default to true] |
|
|
11
|
+
| **app_ids** | **Array<String>** | Array of app IDs where this tax should be available. If not provided, tax will be available for the current app. | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'devdraft'
|
|
17
|
+
|
|
18
|
+
instance = Devdraft::CreateTaxDto.new(
|
|
19
|
+
name: Sales Tax,
|
|
20
|
+
description: Standard sales tax for retail transactions,
|
|
21
|
+
percentage: 8.5,
|
|
22
|
+
active: true,
|
|
23
|
+
app_ids: ["app_123e4567-e89b-12d3-a456-426614174000"]
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
data/docs/CreateWebhookDto.md
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::CreateWebhookDto
|
|
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 | |
|
|
8
|
+
| **url** | **String** | URL where webhook events will be sent | |
|
|
9
|
+
| **is_active** | **Boolean** | Whether the webhook is active and will receive events | [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 | [default to false] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'devdraft'
|
|
17
|
+
|
|
18
|
+
instance = Devdraft::CreateWebhookDto.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/CustomerStatus.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::CustomerStatus
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
|
|
8
|
+
## Example
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
require 'devdraft'
|
|
12
|
+
|
|
13
|
+
instance = Devdraft::CustomerStatus.new()
|
|
14
|
+
```
|
|
6
15
|
|