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
|
@@ -1,45 +1,65 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::LiquidationAddressesApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.devdraft.ai*
|
|
4
4
|
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
|
|
7
|
-
[**liquidation_address_controller_create_liquidation_address**](LiquidationAddressesApi.md#liquidation_address_controller_create_liquidation_address) | **POST** /api/v0/customers/{customerId}/liquidation_addresses | Create a new liquidation address for a customer
|
|
8
|
-
[**liquidation_address_controller_get_liquidation_address**](LiquidationAddressesApi.md#liquidation_address_controller_get_liquidation_address) | **GET** /api/v0/customers/{customerId}/liquidation_addresses/{liquidationAddressId} | Get a specific liquidation address
|
|
9
|
-
[**liquidation_address_controller_get_liquidation_addresses**](LiquidationAddressesApi.md#liquidation_address_controller_get_liquidation_addresses) | **GET** /api/v0/customers/{customerId}/liquidation_addresses | Get all liquidation addresses for a customer
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**liquidation_address_controller_create_liquidation_address**](LiquidationAddressesApi.md#liquidation_address_controller_create_liquidation_address) | **POST** /api/v0/customers/{customerId}/liquidation_addresses | Create a new liquidation address for a customer |
|
|
8
|
+
| [**liquidation_address_controller_get_liquidation_address**](LiquidationAddressesApi.md#liquidation_address_controller_get_liquidation_address) | **GET** /api/v0/customers/{customerId}/liquidation_addresses/{liquidationAddressId} | Get a specific liquidation address |
|
|
9
|
+
| [**liquidation_address_controller_get_liquidation_addresses**](LiquidationAddressesApi.md#liquidation_address_controller_get_liquidation_addresses) | **GET** /api/v0/customers/{customerId}/liquidation_addresses | Get all liquidation addresses for a customer |
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
|
|
12
|
+
## liquidation_address_controller_create_liquidation_address
|
|
13
|
+
|
|
14
|
+
> <LiquidationAddressResponseDto> liquidation_address_controller_create_liquidation_address(customer_id, create_liquidation_address_dto)
|
|
13
15
|
|
|
14
16
|
Create a new liquidation address for a customer
|
|
15
17
|
|
|
16
18
|
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
|
|
17
19
|
|
|
18
|
-
###
|
|
19
|
-
```ruby
|
|
20
|
-
# load the gem
|
|
21
|
-
require 'devdraft_ai_sdk'
|
|
20
|
+
### Examples
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
```ruby
|
|
23
|
+
require 'time'
|
|
24
|
+
require 'devdraft'
|
|
26
25
|
|
|
26
|
+
api_instance = Devdraft::LiquidationAddressesApi.new
|
|
27
|
+
customer_id = 'cust_123' # String | Unique identifier for the customer
|
|
28
|
+
create_liquidation_address_dto = Devdraft::CreateLiquidationAddressDto.new({chain: 'ethereum', currency: 'usdc', address: '0x4d0280da2f2fDA5103914bCc5aad114743152A9c'}) # CreateLiquidationAddressDto |
|
|
27
29
|
|
|
28
30
|
begin
|
|
29
|
-
#Create a new liquidation address for a customer
|
|
30
|
-
result = api_instance.liquidation_address_controller_create_liquidation_address(
|
|
31
|
+
# Create a new liquidation address for a customer
|
|
32
|
+
result = api_instance.liquidation_address_controller_create_liquidation_address(customer_id, create_liquidation_address_dto)
|
|
31
33
|
p result
|
|
32
|
-
rescue
|
|
33
|
-
puts "
|
|
34
|
+
rescue Devdraft::ApiError => e
|
|
35
|
+
puts "Error when calling LiquidationAddressesApi->liquidation_address_controller_create_liquidation_address: #{e}"
|
|
36
|
+
end
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
#### Using the liquidation_address_controller_create_liquidation_address_with_http_info variant
|
|
40
|
+
|
|
41
|
+
This returns an Array which contains the response data, status code and headers.
|
|
42
|
+
|
|
43
|
+
> <Array(<LiquidationAddressResponseDto>, Integer, Hash)> liquidation_address_controller_create_liquidation_address_with_http_info(customer_id, create_liquidation_address_dto)
|
|
44
|
+
|
|
45
|
+
```ruby
|
|
46
|
+
begin
|
|
47
|
+
# Create a new liquidation address for a customer
|
|
48
|
+
data, status_code, headers = api_instance.liquidation_address_controller_create_liquidation_address_with_http_info(customer_id, create_liquidation_address_dto)
|
|
49
|
+
p status_code # => 2xx
|
|
50
|
+
p headers # => { ... }
|
|
51
|
+
p data # => <LiquidationAddressResponseDto>
|
|
52
|
+
rescue Devdraft::ApiError => e
|
|
53
|
+
puts "Error when calling LiquidationAddressesApi->liquidation_address_controller_create_liquidation_address_with_http_info: #{e}"
|
|
34
54
|
end
|
|
35
55
|
```
|
|
36
56
|
|
|
37
57
|
### Parameters
|
|
38
58
|
|
|
39
|
-
Name | Type | Description
|
|
40
|
-
|
|
41
|
-
**
|
|
42
|
-
**
|
|
59
|
+
| Name | Type | Description | Notes |
|
|
60
|
+
| ---- | ---- | ----------- | ----- |
|
|
61
|
+
| **customer_id** | **String** | Unique identifier for the customer | |
|
|
62
|
+
| **create_liquidation_address_dto** | [**CreateLiquidationAddressDto**](CreateLiquidationAddressDto.md) | | |
|
|
43
63
|
|
|
44
64
|
### Return type
|
|
45
65
|
|
|
@@ -51,43 +71,61 @@ No authorization required
|
|
|
51
71
|
|
|
52
72
|
### HTTP request headers
|
|
53
73
|
|
|
54
|
-
|
|
55
|
-
|
|
74
|
+
- **Content-Type**: application/json
|
|
75
|
+
- **Accept**: application/json
|
|
56
76
|
|
|
57
77
|
|
|
78
|
+
## liquidation_address_controller_get_liquidation_address
|
|
58
79
|
|
|
59
|
-
|
|
60
|
-
> LiquidationAddressResponseDto liquidation_address_controller_get_liquidation_address(customer_id, liquidation_address_id)
|
|
80
|
+
> <LiquidationAddressResponseDto> liquidation_address_controller_get_liquidation_address(customer_id, liquidation_address_id)
|
|
61
81
|
|
|
62
82
|
Get a specific liquidation address
|
|
63
83
|
|
|
64
84
|
Retrieve a specific liquidation address by its ID for a given customer.
|
|
65
85
|
|
|
66
|
-
###
|
|
67
|
-
```ruby
|
|
68
|
-
# load the gem
|
|
69
|
-
require 'devdraft_ai_sdk'
|
|
86
|
+
### Examples
|
|
70
87
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
88
|
+
```ruby
|
|
89
|
+
require 'time'
|
|
90
|
+
require 'devdraft'
|
|
74
91
|
|
|
92
|
+
api_instance = Devdraft::LiquidationAddressesApi.new
|
|
93
|
+
customer_id = 'cust_123' # String | Unique identifier for the customer
|
|
94
|
+
liquidation_address_id = 'la_generated_id_123' # String | Unique identifier for the liquidation address
|
|
75
95
|
|
|
76
96
|
begin
|
|
77
|
-
#Get a specific liquidation address
|
|
97
|
+
# Get a specific liquidation address
|
|
78
98
|
result = api_instance.liquidation_address_controller_get_liquidation_address(customer_id, liquidation_address_id)
|
|
79
99
|
p result
|
|
80
|
-
rescue
|
|
81
|
-
puts "
|
|
100
|
+
rescue Devdraft::ApiError => e
|
|
101
|
+
puts "Error when calling LiquidationAddressesApi->liquidation_address_controller_get_liquidation_address: #{e}"
|
|
102
|
+
end
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
#### Using the liquidation_address_controller_get_liquidation_address_with_http_info variant
|
|
106
|
+
|
|
107
|
+
This returns an Array which contains the response data, status code and headers.
|
|
108
|
+
|
|
109
|
+
> <Array(<LiquidationAddressResponseDto>, Integer, Hash)> liquidation_address_controller_get_liquidation_address_with_http_info(customer_id, liquidation_address_id)
|
|
110
|
+
|
|
111
|
+
```ruby
|
|
112
|
+
begin
|
|
113
|
+
# Get a specific liquidation address
|
|
114
|
+
data, status_code, headers = api_instance.liquidation_address_controller_get_liquidation_address_with_http_info(customer_id, liquidation_address_id)
|
|
115
|
+
p status_code # => 2xx
|
|
116
|
+
p headers # => { ... }
|
|
117
|
+
p data # => <LiquidationAddressResponseDto>
|
|
118
|
+
rescue Devdraft::ApiError => e
|
|
119
|
+
puts "Error when calling LiquidationAddressesApi->liquidation_address_controller_get_liquidation_address_with_http_info: #{e}"
|
|
82
120
|
end
|
|
83
121
|
```
|
|
84
122
|
|
|
85
123
|
### Parameters
|
|
86
124
|
|
|
87
|
-
Name | Type | Description
|
|
88
|
-
|
|
89
|
-
**customer_id** | **String
|
|
90
|
-
**liquidation_address_id** | **String
|
|
125
|
+
| Name | Type | Description | Notes |
|
|
126
|
+
| ---- | ---- | ----------- | ----- |
|
|
127
|
+
| **customer_id** | **String** | Unique identifier for the customer | |
|
|
128
|
+
| **liquidation_address_id** | **String** | Unique identifier for the liquidation address | |
|
|
91
129
|
|
|
92
130
|
### Return type
|
|
93
131
|
|
|
@@ -99,41 +137,59 @@ No authorization required
|
|
|
99
137
|
|
|
100
138
|
### HTTP request headers
|
|
101
139
|
|
|
102
|
-
|
|
103
|
-
|
|
140
|
+
- **Content-Type**: Not defined
|
|
141
|
+
- **Accept**: application/json
|
|
104
142
|
|
|
105
143
|
|
|
144
|
+
## liquidation_address_controller_get_liquidation_addresses
|
|
106
145
|
|
|
107
|
-
|
|
108
|
-
> Array<LiquidationAddressResponseDto> liquidation_address_controller_get_liquidation_addresses(customer_id)
|
|
146
|
+
> <Array<LiquidationAddressResponseDto>> liquidation_address_controller_get_liquidation_addresses(customer_id)
|
|
109
147
|
|
|
110
148
|
Get all liquidation addresses for a customer
|
|
111
149
|
|
|
112
150
|
Retrieve all liquidation addresses associated with a specific customer.
|
|
113
151
|
|
|
114
|
-
###
|
|
115
|
-
```ruby
|
|
116
|
-
# load the gem
|
|
117
|
-
require 'devdraft_ai_sdk'
|
|
152
|
+
### Examples
|
|
118
153
|
|
|
119
|
-
|
|
120
|
-
|
|
154
|
+
```ruby
|
|
155
|
+
require 'time'
|
|
156
|
+
require 'devdraft'
|
|
121
157
|
|
|
158
|
+
api_instance = Devdraft::LiquidationAddressesApi.new
|
|
159
|
+
customer_id = 'cust_123' # String | Unique identifier for the customer
|
|
122
160
|
|
|
123
161
|
begin
|
|
124
|
-
#Get all liquidation addresses for a customer
|
|
162
|
+
# Get all liquidation addresses for a customer
|
|
125
163
|
result = api_instance.liquidation_address_controller_get_liquidation_addresses(customer_id)
|
|
126
164
|
p result
|
|
127
|
-
rescue
|
|
128
|
-
puts "
|
|
165
|
+
rescue Devdraft::ApiError => e
|
|
166
|
+
puts "Error when calling LiquidationAddressesApi->liquidation_address_controller_get_liquidation_addresses: #{e}"
|
|
167
|
+
end
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
#### Using the liquidation_address_controller_get_liquidation_addresses_with_http_info variant
|
|
171
|
+
|
|
172
|
+
This returns an Array which contains the response data, status code and headers.
|
|
173
|
+
|
|
174
|
+
> <Array(<Array<LiquidationAddressResponseDto>>, Integer, Hash)> liquidation_address_controller_get_liquidation_addresses_with_http_info(customer_id)
|
|
175
|
+
|
|
176
|
+
```ruby
|
|
177
|
+
begin
|
|
178
|
+
# Get all liquidation addresses for a customer
|
|
179
|
+
data, status_code, headers = api_instance.liquidation_address_controller_get_liquidation_addresses_with_http_info(customer_id)
|
|
180
|
+
p status_code # => 2xx
|
|
181
|
+
p headers # => { ... }
|
|
182
|
+
p data # => <Array<LiquidationAddressResponseDto>>
|
|
183
|
+
rescue Devdraft::ApiError => e
|
|
184
|
+
puts "Error when calling LiquidationAddressesApi->liquidation_address_controller_get_liquidation_addresses_with_http_info: #{e}"
|
|
129
185
|
end
|
|
130
186
|
```
|
|
131
187
|
|
|
132
188
|
### Parameters
|
|
133
189
|
|
|
134
|
-
Name | Type | Description
|
|
135
|
-
|
|
136
|
-
**customer_id** | **String
|
|
190
|
+
| Name | Type | Description | Notes |
|
|
191
|
+
| ---- | ---- | ----------- | ----- |
|
|
192
|
+
| **customer_id** | **String** | Unique identifier for the customer | |
|
|
137
193
|
|
|
138
194
|
### Return type
|
|
139
195
|
|
|
@@ -145,8 +201,6 @@ No authorization required
|
|
|
145
201
|
|
|
146
202
|
### HTTP request headers
|
|
147
203
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
204
|
+
- **Content-Type**: Not defined
|
|
205
|
+
- **Accept**: application/json
|
|
152
206
|
|
data/docs/PaymentIntentsApi.md
CHANGED
|
@@ -1,55 +1,75 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::PaymentIntentsApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.devdraft.ai*
|
|
4
4
|
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
|
|
7
|
-
[**payment_intent_controller_create_bank_payment_intent**](PaymentIntentsApi.md#payment_intent_controller_create_bank_payment_intent) | **POST** /api/v0/payment-intents/bank | Create a bank payment intent
|
|
8
|
-
[**payment_intent_controller_create_stable_payment_intent**](PaymentIntentsApi.md#payment_intent_controller_create_stable_payment_intent) | **POST** /api/v0/payment-intents/stablecoin | Create a stable payment intent
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**payment_intent_controller_create_bank_payment_intent**](PaymentIntentsApi.md#payment_intent_controller_create_bank_payment_intent) | **POST** /api/v0/payment-intents/bank | Create a bank payment intent |
|
|
8
|
+
| [**payment_intent_controller_create_stable_payment_intent**](PaymentIntentsApi.md#payment_intent_controller_create_stable_payment_intent) | **POST** /api/v0/payment-intents/stablecoin | Create a stable payment intent |
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
|
|
11
|
+
## payment_intent_controller_create_bank_payment_intent
|
|
12
|
+
|
|
13
|
+
> payment_intent_controller_create_bank_payment_intent(idempotency_key, create_bank_payment_intent_dto)
|
|
12
14
|
|
|
13
15
|
Create a bank payment intent
|
|
14
16
|
|
|
15
17
|
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.
|
|
16
18
|
|
|
17
|
-
###
|
|
19
|
+
### Examples
|
|
20
|
+
|
|
18
21
|
```ruby
|
|
19
|
-
|
|
20
|
-
require '
|
|
22
|
+
require 'time'
|
|
23
|
+
require 'devdraft'
|
|
21
24
|
# setup authorization
|
|
22
|
-
|
|
23
|
-
# Configure API key authorization: x-client-key
|
|
24
|
-
config.api_key['x-client-key'] = 'YOUR API KEY'
|
|
25
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
26
|
-
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
27
|
-
|
|
25
|
+
Devdraft.configure do |config|
|
|
28
26
|
# Configure API key authorization: x-client-secret
|
|
29
27
|
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
|
30
28
|
# 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-secret'] = 'Bearer'
|
|
29
|
+
# config.api_key_prefix['x-client-secret'] = 'Bearer'
|
|
30
|
+
|
|
31
|
+
# Configure API key authorization: x-client-key
|
|
32
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
|
33
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
34
|
+
# config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
32
35
|
end
|
|
33
36
|
|
|
34
|
-
api_instance =
|
|
35
|
-
body = DevDraftAI::CreateBankPaymentIntentDto.new # CreateBankPaymentIntentDto | Bank payment intent creation data
|
|
37
|
+
api_instance = Devdraft::PaymentIntentsApi.new
|
|
36
38
|
idempotency_key = 'idempotency_key_example' # String | Unique UUID v4 for idempotent requests. Prevents duplicate payments.
|
|
39
|
+
create_bank_payment_intent_dto = Devdraft::CreateBankPaymentIntentDto.new({source_payment_rail: Devdraft::BridgePaymentRail::ETHEREUM, source_currency: Devdraft::FiatCurrency::USD, destination_currency: Devdraft::StableCoinCurrency::USDC, destination_network: Devdraft::BridgePaymentRail::ETHEREUM}) # CreateBankPaymentIntentDto | Bank payment intent creation data
|
|
37
40
|
|
|
41
|
+
begin
|
|
42
|
+
# Create a bank payment intent
|
|
43
|
+
api_instance.payment_intent_controller_create_bank_payment_intent(idempotency_key, create_bank_payment_intent_dto)
|
|
44
|
+
rescue Devdraft::ApiError => e
|
|
45
|
+
puts "Error when calling PaymentIntentsApi->payment_intent_controller_create_bank_payment_intent: #{e}"
|
|
46
|
+
end
|
|
47
|
+
```
|
|
38
48
|
|
|
49
|
+
#### Using the payment_intent_controller_create_bank_payment_intent_with_http_info variant
|
|
50
|
+
|
|
51
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
52
|
+
|
|
53
|
+
> <Array(nil, Integer, Hash)> payment_intent_controller_create_bank_payment_intent_with_http_info(idempotency_key, create_bank_payment_intent_dto)
|
|
54
|
+
|
|
55
|
+
```ruby
|
|
39
56
|
begin
|
|
40
|
-
#Create a bank payment intent
|
|
41
|
-
api_instance.
|
|
42
|
-
|
|
43
|
-
|
|
57
|
+
# Create a bank payment intent
|
|
58
|
+
data, status_code, headers = api_instance.payment_intent_controller_create_bank_payment_intent_with_http_info(idempotency_key, create_bank_payment_intent_dto)
|
|
59
|
+
p status_code # => 2xx
|
|
60
|
+
p headers # => { ... }
|
|
61
|
+
p data # => nil
|
|
62
|
+
rescue Devdraft::ApiError => e
|
|
63
|
+
puts "Error when calling PaymentIntentsApi->payment_intent_controller_create_bank_payment_intent_with_http_info: #{e}"
|
|
44
64
|
end
|
|
45
65
|
```
|
|
46
66
|
|
|
47
67
|
### Parameters
|
|
48
68
|
|
|
49
|
-
Name | Type | Description
|
|
50
|
-
|
|
51
|
-
**
|
|
52
|
-
**
|
|
69
|
+
| Name | Type | Description | Notes |
|
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
|
71
|
+
| **idempotency_key** | **String** | Unique UUID v4 for idempotent requests. Prevents duplicate payments. | |
|
|
72
|
+
| **create_bank_payment_intent_dto** | [**CreateBankPaymentIntentDto**](CreateBankPaymentIntentDto.md) | Bank payment intent creation data | |
|
|
53
73
|
|
|
54
74
|
### Return type
|
|
55
75
|
|
|
@@ -57,58 +77,76 @@ nil (empty response body)
|
|
|
57
77
|
|
|
58
78
|
### Authorization
|
|
59
79
|
|
|
60
|
-
[x-client-
|
|
80
|
+
[x-client-secret](../README.md#x-client-secret), [x-client-key](../README.md#x-client-key)
|
|
61
81
|
|
|
62
82
|
### HTTP request headers
|
|
63
83
|
|
|
64
|
-
|
|
65
|
-
|
|
84
|
+
- **Content-Type**: application/json
|
|
85
|
+
- **Accept**: application/json
|
|
66
86
|
|
|
67
87
|
|
|
88
|
+
## payment_intent_controller_create_stable_payment_intent
|
|
68
89
|
|
|
69
|
-
|
|
70
|
-
> payment_intent_controller_create_stable_payment_intent(bodyidempotency_key)
|
|
90
|
+
> payment_intent_controller_create_stable_payment_intent(idempotency_key, create_stable_payment_intent_dto)
|
|
71
91
|
|
|
72
92
|
Create a stable payment intent
|
|
73
93
|
|
|
74
94
|
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.
|
|
75
95
|
|
|
76
|
-
###
|
|
96
|
+
### Examples
|
|
97
|
+
|
|
77
98
|
```ruby
|
|
78
|
-
|
|
79
|
-
require '
|
|
99
|
+
require 'time'
|
|
100
|
+
require 'devdraft'
|
|
80
101
|
# setup authorization
|
|
81
|
-
|
|
82
|
-
# Configure API key authorization: x-client-key
|
|
83
|
-
config.api_key['x-client-key'] = 'YOUR API KEY'
|
|
84
|
-
# 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-key'] = 'Bearer'
|
|
86
|
-
|
|
102
|
+
Devdraft.configure do |config|
|
|
87
103
|
# Configure API key authorization: x-client-secret
|
|
88
104
|
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
|
89
105
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
90
|
-
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
|
106
|
+
# config.api_key_prefix['x-client-secret'] = 'Bearer'
|
|
107
|
+
|
|
108
|
+
# Configure API key authorization: x-client-key
|
|
109
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
|
110
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
111
|
+
# config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
91
112
|
end
|
|
92
113
|
|
|
93
|
-
api_instance =
|
|
94
|
-
body = DevDraftAI::CreateStablePaymentIntentDto.new # CreateStablePaymentIntentDto | Stable payment intent creation data
|
|
114
|
+
api_instance = Devdraft::PaymentIntentsApi.new
|
|
95
115
|
idempotency_key = 'idempotency_key_example' # String | Unique UUID v4 for idempotent requests. Prevents duplicate payments.
|
|
116
|
+
create_stable_payment_intent_dto = Devdraft::CreateStablePaymentIntentDto.new({source_currency: Devdraft::StableCoinCurrency::USDC, source_network: Devdraft::BridgePaymentRail::ETHEREUM, destination_network: Devdraft::BridgePaymentRail::ETHEREUM}) # CreateStablePaymentIntentDto | Stable payment intent creation data
|
|
96
117
|
|
|
118
|
+
begin
|
|
119
|
+
# Create a stable payment intent
|
|
120
|
+
api_instance.payment_intent_controller_create_stable_payment_intent(idempotency_key, create_stable_payment_intent_dto)
|
|
121
|
+
rescue Devdraft::ApiError => e
|
|
122
|
+
puts "Error when calling PaymentIntentsApi->payment_intent_controller_create_stable_payment_intent: #{e}"
|
|
123
|
+
end
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
#### Using the payment_intent_controller_create_stable_payment_intent_with_http_info variant
|
|
127
|
+
|
|
128
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
97
129
|
|
|
130
|
+
> <Array(nil, Integer, Hash)> payment_intent_controller_create_stable_payment_intent_with_http_info(idempotency_key, create_stable_payment_intent_dto)
|
|
131
|
+
|
|
132
|
+
```ruby
|
|
98
133
|
begin
|
|
99
|
-
#Create a stable payment intent
|
|
100
|
-
api_instance.
|
|
101
|
-
|
|
102
|
-
|
|
134
|
+
# Create a stable payment intent
|
|
135
|
+
data, status_code, headers = api_instance.payment_intent_controller_create_stable_payment_intent_with_http_info(idempotency_key, create_stable_payment_intent_dto)
|
|
136
|
+
p status_code # => 2xx
|
|
137
|
+
p headers # => { ... }
|
|
138
|
+
p data # => nil
|
|
139
|
+
rescue Devdraft::ApiError => e
|
|
140
|
+
puts "Error when calling PaymentIntentsApi->payment_intent_controller_create_stable_payment_intent_with_http_info: #{e}"
|
|
103
141
|
end
|
|
104
142
|
```
|
|
105
143
|
|
|
106
144
|
### Parameters
|
|
107
145
|
|
|
108
|
-
Name | Type | Description
|
|
109
|
-
|
|
110
|
-
**
|
|
111
|
-
**
|
|
146
|
+
| Name | Type | Description | Notes |
|
|
147
|
+
| ---- | ---- | ----------- | ----- |
|
|
148
|
+
| **idempotency_key** | **String** | Unique UUID v4 for idempotent requests. Prevents duplicate payments. | |
|
|
149
|
+
| **create_stable_payment_intent_dto** | [**CreateStablePaymentIntentDto**](CreateStablePaymentIntentDto.md) | Stable payment intent creation data | |
|
|
112
150
|
|
|
113
151
|
### Return type
|
|
114
152
|
|
|
@@ -116,12 +154,10 @@ nil (empty response body)
|
|
|
116
154
|
|
|
117
155
|
### Authorization
|
|
118
156
|
|
|
119
|
-
[x-client-
|
|
157
|
+
[x-client-secret](../README.md#x-client-secret), [x-client-key](../README.md#x-client-key)
|
|
120
158
|
|
|
121
159
|
### HTTP request headers
|
|
122
160
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
161
|
+
- **Content-Type**: application/json
|
|
162
|
+
- **Accept**: application/json
|
|
127
163
|
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Devdraft::PaymentLinkProductDto
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
**
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **product_id** | **String** | UUID of the product to include in this payment link. Must be a valid product from your catalog. | |
|
|
8
|
+
| **quantity** | **Integer** | Quantity of this product to include. Must be at least 1. | [default to 1] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'devdraft'
|
|
14
|
+
|
|
15
|
+
instance = Devdraft::PaymentLinkProductDto.new(
|
|
16
|
+
product_id: 123e4567-e89b-12d3-a456-426614174000,
|
|
17
|
+
quantity: 2
|
|
18
|
+
)
|
|
19
|
+
```
|
|
8
20
|
|