@cobo/cobo-waas2 1.24.0 → 1.26.0
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.
- package/README.md +45 -6
- package/dist/ApiClient.js +1 -1
- package/dist/api/AutoSweepApi.js +2 -2
- package/dist/api/ComplianceApi.js +132 -2
- package/dist/api/DevelopersWebhooksApi.js +2 -2
- package/dist/api/FeeStationApi.js +6 -6
- package/dist/api/PaymentApi.js +109 -24
- package/dist/api/TokenizationApi.js +122 -4
- package/dist/api/TransactionsApi.js +4 -4
- package/dist/index.js +217 -14
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/AutoFuelType.js +5 -0
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BridgingFee.js +4 -4
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/CommissionFee.js +2 -2
- package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +305 -0
- package/dist/model/CreateCryptoAddressRequest.js +1 -1
- package/dist/model/CreateMerchantRequest.js +2 -2
- package/dist/model/CreateOrderLinkRequest.js +129 -0
- package/dist/model/CreatePaymentOrderRequest.js +21 -8
- package/dist/model/CreateRefundLinkRequest.js +129 -0
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateSettlement.js +2 -28
- package/dist/model/CreateSettlementRequestRequest.js +3 -3
- package/dist/model/CustodialTransferDestination.js +1 -1
- package/dist/model/FeeStationCheckFeeStationUsage.js +28 -10
- package/dist/model/FeeStationCheckFeeStationUsageResponse.js +33 -20
- package/dist/model/FeeStationSponsorTransactionDescription.js +125 -0
- package/dist/model/FundsStatusType.js +111 -0
- package/dist/model/KytScreeningsDecisionsType.js +71 -0
- package/dist/model/KytScreeningsEventData.js +155 -0
- package/dist/model/KytScreeningsReviewType.js +61 -0
- package/dist/model/KytScreeningsTransaction.js +144 -0
- package/dist/model/KytScreeningsTransactionType.js +61 -0
- package/dist/model/Link.js +125 -0
- package/dist/model/LinkDisplayInfo.js +100 -0
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/Merchant.js +3 -3
- package/dist/model/MerchantBalance.js +1 -1
- package/dist/model/Order.js +13 -0
- package/dist/model/OrderLinkBusinessInfo.js +261 -0
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +125 -0
- package/dist/model/OtcFee.js +3 -3
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentEstimateFee.js +4 -4
- package/dist/model/PaymentEstimateFee201Response.js +1 -0
- package/dist/model/PaymentEstimateFeeRequest.js +2 -1
- package/dist/model/PaymentEstimatedFee.js +4 -4
- package/dist/model/PaymentOrderEventData.js +26 -3
- package/dist/model/PaymentRefundEventData.js +8 -3
- package/dist/model/PaymentSettlementEvent.js +12 -7
- package/dist/model/PaymentTransactionEventData.js +8 -3
- package/dist/model/PspBalance.js +1 -1
- package/dist/model/RefundLinkBusinessInfo.js +162 -0
- package/dist/model/RefundStatus.js +10 -0
- package/dist/model/ReviewStatusType.js +91 -0
- package/dist/model/Settlement.js +2 -2
- package/dist/model/SubmitKytResponse.js +122 -0
- package/dist/model/SubmitKytScreeningsDecisionsBody.js +122 -0
- package/dist/model/SubmitKytScreeningsReviewBody.js +122 -0
- package/dist/model/SupportedToken.js +1 -1
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/SwapQuote.js +18 -18
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokenizationERC20TokenParams.js +5 -5
- package/dist/model/{TokenizationTokenPermissionParams.js → TokenizationERC20TokenPermissionParams.js} +23 -23
- package/dist/model/TokenizationERC20WrappedTokenParams.js +177 -0
- package/dist/model/TokenizationERC20WrappedTokenPermissionParams.js +166 -0
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +38 -11
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +72 -10
- package/dist/model/TokenizationListPermissionsResponse.js +146 -0
- package/dist/model/TokenizationListPermissionsResponseDataInner.js +126 -0
- package/dist/model/TokenizationOperationType.js +5 -0
- package/dist/model/TokenizationPermissionAction.js +66 -0
- package/dist/model/TokenizationSOLWrappedTokenParams.js +177 -0
- package/dist/model/TokenizationSolWrappedTokenPermissionParams.js +127 -0
- package/dist/model/TokenizationTokenDetailInfo.js +51 -5
- package/dist/model/TokenizationTokenInfo.js +26 -4
- package/dist/model/TokenizationTokenPermissionType.js +5 -0
- package/dist/model/TokenizationTokenStandard.js +10 -0
- package/dist/model/{TokenizationTokenPermissionsResponse.js → TokenizationUpdateAddressPermissions.js} +51 -53
- package/dist/model/TokenizationUpdatePermissionsEstimateFeeParams.js +198 -0
- package/dist/model/TokenizationUpdatePermissionsParams.js +145 -0
- package/dist/model/TokenizationUpdatePermissionsRequest.js +213 -0
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/TransactionCoboCategory.js +35 -0
- package/dist/model/TransactionWebhookEventData.js +8 -3
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEventData.js +64 -12
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +10 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/AutoFuelType.md +2 -0
- package/docs/AutoSweepApi.md +2 -2
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BridgingFee.md +3 -3
- package/docs/ChainsEventData.md +3 -1
- package/docs/CommissionFee.md +1 -1
- package/docs/ComplianceApi.md +158 -1
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKytScreeningsUpdateEventData.md +57 -0
- package/docs/CreateCryptoAddressRequest.md +1 -1
- package/docs/CreateMerchantRequest.md +2 -2
- package/docs/CreateOrderLinkRequest.md +10 -0
- package/docs/CreatePaymentOrderRequest.md +6 -5
- package/docs/CreateRefundLinkRequest.md +10 -0
- package/docs/CreateRefundRequest.md +2 -2
- package/docs/CreateSettlement.md +1 -3
- package/docs/CreateSettlementRequestRequest.md +3 -3
- package/docs/DevelopersWebhooksApi.md +1 -1
- package/docs/FeeStationApi.md +4 -4
- package/docs/FeeStationCheckFeeStationUsage.md +4 -2
- package/docs/FeeStationCheckFeeStationUsageResponse.md +4 -3
- package/docs/FeeStationSponsorTransactionDescription.md +10 -0
- package/docs/FundsStatusType.md +32 -0
- package/docs/KytScreeningsDecisionsType.md +16 -0
- package/docs/KytScreeningsEventData.md +13 -0
- package/docs/KytScreeningsReviewType.md +12 -0
- package/docs/KytScreeningsTransaction.md +12 -0
- package/docs/KytScreeningsTransactionType.md +12 -0
- package/docs/Link.md +10 -0
- package/docs/LinkDisplayInfo.md +10 -0
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/Merchant.md +2 -2
- package/docs/MerchantBalance.md +1 -1
- package/docs/Order.md +1 -0
- package/docs/OrderLinkBusinessInfo.md +19 -0
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +10 -0
- package/docs/OtcFee.md +2 -2
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentApi.md +118 -12
- package/docs/PaymentEstimateFee.md +2 -2
- package/docs/PaymentEstimateFee201Response.md +1 -1
- package/docs/PaymentEstimateFeeRequest.md +1 -1
- package/docs/PaymentEstimatedFee.md +2 -2
- package/docs/PaymentOrderEventData.md +4 -1
- package/docs/PaymentRefundEventData.md +3 -1
- package/docs/PaymentSettlementEvent.md +5 -3
- package/docs/PaymentTransactionEventData.md +3 -1
- package/docs/PspBalance.md +1 -1
- package/docs/RefundLinkBusinessInfo.md +13 -0
- package/docs/RefundStatus.md +4 -0
- package/docs/ReviewStatusType.md +24 -0
- package/docs/Settlement.md +2 -2
- package/docs/SubmitKytResponse.md +10 -0
- package/docs/SubmitKytScreeningsDecisionsBody.md +10 -0
- package/docs/SubmitKytScreeningsReviewBody.md +10 -0
- package/docs/SupportedToken.md +1 -1
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/SwapQuote.md +10 -10
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokenizationApi.md +120 -2
- package/docs/TokenizationERC20TokenParams.md +1 -1
- package/docs/{TokenizationTokenPermissionParams.md → TokenizationERC20TokenPermissionParams.md} +1 -1
- package/docs/TokenizationERC20WrappedTokenParams.md +14 -0
- package/docs/TokenizationERC20WrappedTokenPermissionParams.md +15 -0
- package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -1
- package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -1
- package/docs/TokenizationListPermissionsResponse.md +10 -0
- package/docs/TokenizationListPermissionsResponseDataInner.md +10 -0
- package/docs/TokenizationOperationType.md +2 -0
- package/docs/TokenizationPermissionAction.md +14 -0
- package/docs/TokenizationSOLWrappedTokenParams.md +14 -0
- package/docs/TokenizationSolWrappedTokenPermissionParams.md +12 -0
- package/docs/TokenizationTokenDetailInfo.md +3 -0
- package/docs/TokenizationTokenInfo.md +2 -0
- package/docs/TokenizationTokenPermissionType.md +2 -0
- package/docs/TokenizationTokenStandard.md +4 -0
- package/docs/TokenizationUpdateAddressPermissions.md +11 -0
- package/docs/TokenizationUpdatePermissionsEstimateFeeParams.md +13 -0
- package/docs/TokenizationUpdatePermissionsParams.md +10 -0
- package/docs/TokenizationUpdatePermissionsRequest.md +13 -0
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionCoboCategory.md +14 -0
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/TransactionsApi.md +2 -2
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WebhookEventData.md +10 -4
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +4 -0
- package/package.json +1 -1
- package/docs/TokenizationTokenPermissionsResponse.md +0 -10
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.FeeStationSponsorTransactionDescription
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**total_fee_amount** | **String** | The total amount used to sponsor the gas fee required for executing the main transaction on behalf of the user. |
|
|
8
|
+
**commission_fee** | **String** | The commission fee charged for sponsoring the gas fee. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# CoboWaas2.FundsStatusType
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `Frozen` (value: `"Frozen"`)
|
|
7
|
+
|
|
8
|
+
* `Refunding` (value: `"Refunding"`)
|
|
9
|
+
|
|
10
|
+
* `Refunded` (value: `"Refunded"`)
|
|
11
|
+
|
|
12
|
+
* `RefundFailed` (value: `"RefundFailed"`)
|
|
13
|
+
|
|
14
|
+
* `Unfreezing` (value: `"Unfreezing"`)
|
|
15
|
+
|
|
16
|
+
* `Unfrozen` (value: `"Unfrozen"`)
|
|
17
|
+
|
|
18
|
+
* `UnfreezingFailed` (value: `"UnfreezingFailed"`)
|
|
19
|
+
|
|
20
|
+
* `Isolating` (value: `"Isolating"`)
|
|
21
|
+
|
|
22
|
+
* `Isolated` (value: `"Isolated"`)
|
|
23
|
+
|
|
24
|
+
* `IsolationFailed` (value: `"IsolationFailed"`)
|
|
25
|
+
|
|
26
|
+
* `CoboDisposition` (value: `"CoboDisposition"`)
|
|
27
|
+
|
|
28
|
+
* `Normal` (value: `"Normal"`)
|
|
29
|
+
|
|
30
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# CoboWaas2.KytScreeningsDecisionsType
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `Approval` (value: `"Approval"`)
|
|
7
|
+
|
|
8
|
+
* `ApprovalWithAlert` (value: `"ApprovalWithAlert"`)
|
|
9
|
+
|
|
10
|
+
* `Rejection` (value: `"Rejection"`)
|
|
11
|
+
|
|
12
|
+
* `ManualReview` (value: `"ManualReview"`)
|
|
13
|
+
|
|
14
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
15
|
+
|
|
16
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# CoboWaas2.KytScreeningsEventData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**transaction_id** | **String** | The transaction ID. |
|
|
8
|
+
**transaction_type** | [**KytScreeningsTransactionType**](KytScreeningsTransactionType.md) | |
|
|
9
|
+
**review_status** | [**ReviewStatusType**](ReviewStatusType.md) | |
|
|
10
|
+
**funds_status** | [**FundsStatusType**](FundsStatusType.md) | |
|
|
11
|
+
**updated_timestamp** | **Number** | The time when the KYT screening information was updated, in Unix timestamp format, measured in milliseconds. |
|
|
12
|
+
|
|
13
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# CoboWaas2.KytScreeningsTransaction
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**transaction_id** | **String** | The UUID of the transaction that was screened. |
|
|
8
|
+
**transaction_type** | [**KytScreeningsTransactionType**](KytScreeningsTransactionType.md) | |
|
|
9
|
+
**review_status** | [**ReviewStatusType**](ReviewStatusType.md) | |
|
|
10
|
+
**funds_status** | [**FundsStatusType**](FundsStatusType.md) | |
|
|
11
|
+
|
|
12
|
+
|
package/docs/Link.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.Link
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**url** | **String** | The base URL of the payment page. This URL should be combined with the `token` parameter to form the complete payment link. |
|
|
8
|
+
**token** | **String** | The unique payment token that should be appended to the URL as a query parameter. This token authenticates and identifies the specific payment session. The complete payment link should be constructed as: `[url]?token=[token]` |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.LinkDisplayInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**developer_name** | **String** | The brand name to display to end users during the payment process. | [optional]
|
|
8
|
+
**logo** | **String** | The URL of your logo image to display to end users during the payment process. | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. |
|
|
7
|
+
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. |
|
|
8
8
|
**vault_id** | **String** | The vault ID. | [optional]
|
|
9
9
|
**project_id** | **String** | The project ID. | [optional]
|
|
10
10
|
**name** | **String** | The vault name. | [optional]
|
|
@@ -49,6 +49,8 @@ Name | Type | Description | Notes
|
|
|
49
49
|
|
|
50
50
|
* `ComplianceDisposition` (value: `"ComplianceDisposition"`)
|
|
51
51
|
|
|
52
|
+
* `ComplianceKytScreenings` (value: `"ComplianceKytScreenings"`)
|
|
53
|
+
|
|
52
54
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
53
55
|
|
|
54
56
|
|
package/docs/Merchant.md
CHANGED
|
@@ -6,8 +6,8 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**merchant_id** | **String** | The merchant ID. |
|
|
8
8
|
**name** | **String** | The merchant name. |
|
|
9
|
-
**wallet_id** | **String** |
|
|
10
|
-
**developer_fee_rate** | **String** | The developer fee rate applied to this merchant.
|
|
9
|
+
**wallet_id** | **String** | This field has been deprecated. |
|
|
10
|
+
**developer_fee_rate** | **String** | The developer fee rate applied to this merchant. | [optional]
|
|
11
11
|
**wallet_setup** | [**WalletSetup**](WalletSetup.md) | | [optional]
|
|
12
12
|
**created_timestamp** | **Number** | The creation time of the merchant, represented as a UNIX timestamp in seconds. | [optional]
|
|
13
13
|
**updated_timestamp** | **Number** | The last update time of the merchant, represented as a UNIX timestamp in seconds. | [optional]
|
package/docs/MerchantBalance.md
CHANGED
|
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**total_received_amount** | **String** | The total amount of the token that has been received by the merchant. | [optional]
|
|
11
11
|
**settled_amount** | **String** | The total amount of the token that has been paid out from the merchant's balance. | [optional]
|
|
12
12
|
**refunded_amount** | **String** | The total amount of the token that has been refunded from the merchant's balance. | [optional]
|
|
13
|
-
**total_balance** | **String** | The total balance of the token available for payout or refund for the merchant. `total_balance` = `total_received_amount` - `settled_amount` - `refunded_amount` For more information, please refer to [
|
|
13
|
+
**total_balance** | **String** | The total balance of the token available for payout or refund for the merchant. `total_balance` = `total_received_amount` - `settled_amount` - `refunded_amount` For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances) | [optional]
|
|
14
14
|
**available_balance** | **String** | This field has been deprecated. | [optional]
|
|
15
15
|
|
|
16
16
|
|
package/docs/Order.md
CHANGED
|
@@ -23,5 +23,6 @@ Name | Type | Description | Notes
|
|
|
23
23
|
**updated_timestamp** | **Number** | The last update time of the order, represented as a UNIX timestamp in seconds. | [optional]
|
|
24
24
|
**transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the pay-in process. | [optional]
|
|
25
25
|
**settlement_status** | [**SettleStatus**](SettleStatus.md) | | [optional]
|
|
26
|
+
**amount_tolerance** | **String** | The maximum allowed deviation from the payable amount in the case of underpayment, specified as a positive value with up to one decimal place. If you provide more than one decimal place, an error will occur. When the actual received amount is within this deviation (inclusive) of the payable amount, the order status will be set to `Completed` rather than `Underpaid`. | [optional]
|
|
26
27
|
|
|
27
28
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CoboWaas2.OrderLinkBusinessInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**token_ids** | **[String]** | An array of token IDs representing the cryptocurrencies and chains available for payment. These options will be shown to users on the payment page for them to choose from. Supported token IDs include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT` |
|
|
8
|
+
**custom_exchange_rates** | [**[OrderLinkBusinessInfoCustomExchangeRatesInner]**](OrderLinkBusinessInfoCustomExchangeRatesInner.md) | A list of custom exchange rates defining how much one unit of a specific cryptocurrency (`token_id`) is valued in the selected fiat or crypto currency (`currency`). If this field is omitted, the system’s default exchange rates will apply. Each item specifies a `token_id` and its corresponding `exchange_rate`. For example, to treat 1 USDT (on Ethereum) as equivalent to 0.99 USD, provide: ```json { \"custom_exchange_rates\": [ { \"token_id\": \"ETH_USDT\", \"exchange_rate\": \"0.99\" } ], \"currency\": \"USD\" } ``` | [optional]
|
|
9
|
+
**currency** | **String** | The currency in which both the order amount (`order_amount`) and the developer fee (`fee_amount`) are denominated. Only the following values are supported: `USD`, `USDT`, or `USDC`. |
|
|
10
|
+
**fee_amount** | **String** | The developer fee for the order, denominated in the currency specified by `currency`. If you are a merchant directly serving payers, set this field to `0`. Developer fees are only relevant for platforms like payment service providers (PSPs) that charge fees to their downstream merchants. The developer fee is added to the base amount (`order_amount`) to determine the final charge. For example: - Base amount (`order_amount`): \"100.00\" - Developer fee (`fee_amount`): \"2.00\" - Total charged to customer: \"102.00\" Values can contain up to two decimal places. |
|
|
11
|
+
**merchant_id** | **String** | The merchant ID. |
|
|
12
|
+
**order_amount** | **String** | The base amount of the order, excluding the developer fee (specified in `fee_amount`), denominated in the currency specified by `currency`. Values must be greater than `0` and contain two decimal places. |
|
|
13
|
+
**merchant_order_code** | **String** | A unique reference code assigned by the merchant to identify this order in their system. The code should have a maximum length of 128 characters. | [optional]
|
|
14
|
+
**psp_order_code** | **String** | A unique reference code assigned by you as a developer to identify this order in your system. This code must be unique across all orders in your system. The code should have a maximum length of 128 characters. |
|
|
15
|
+
**expired_in** | **Number** | The number of seconds until the pay-in order expires, counted from when the request is sent. For example, if set to `1800`, the order will expire in 30 minutes. Must be greater than zero and cannot exceed 3 hours (10800 seconds). After expiration: - The order status becomes final and cannot be changed - The `received_token_amount` field will no longer be updated - Funds received after expiration will be categorized as late payments and can only be settled from the developer balance. - A late payment will trigger a `transactionLate` webhook event. | [optional] [default to 1800]
|
|
16
|
+
**use_dedicated_address** | **Boolean** | This field has been deprecated. | [optional]
|
|
17
|
+
**amount_tolerance** | **String** | The maximum allowed deviation from the payable amount in the case of underpayment, specified as a positive value with up to one decimal place. If you provide more than one decimal place, an error will occur. When the actual received amount is within this deviation (inclusive) of the payable amount, the order status will be set to `Completed` rather than `Underpaid`. | [optional]
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.OrderLinkBusinessInfoCustomExchangeRatesInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**token_id** | **String** | The token ID. |
|
|
8
|
+
**exchange_rate** | **String** | The exchange rate to use for this token. |
|
|
9
|
+
|
|
10
|
+
|
package/docs/OtcFee.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**fee_rate** | **String** | The
|
|
8
|
-
**token_id** | **String** | The token
|
|
7
|
+
**fee_rate** | **String** | The exchange rate used to convert cryptos to fiat currencies during off-ramp. The final fiat amount is calculated using the following formula: Final Fiat Amount = (Token Amount - Bridging Fee) × Exchange Rate Note: The actual fiat amount received may be lower due to additional bank transfer fees. |
|
|
8
|
+
**token_id** | **String** | The ID of the token you want to off-ramp. | [optional]
|
|
9
9
|
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. |
|
|
7
|
+
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. |
|
|
8
8
|
**custom_payer_id** | **String** | A unique identifier assigned by the developer to track and identify individual payers in their system. |
|
|
9
9
|
**payer_id** | **String** | A unique identifier assigned by Cobo to track and identify individual payers. |
|
|
10
10
|
**chain** | **String** | The chain ID. |
|
|
@@ -48,6 +48,8 @@ Name | Type | Description | Notes
|
|
|
48
48
|
|
|
49
49
|
* `ComplianceDisposition` (value: `"ComplianceDisposition"`)
|
|
50
50
|
|
|
51
|
+
* `ComplianceKytScreenings` (value: `"ComplianceKytScreenings"`)
|
|
52
|
+
|
|
51
53
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
52
54
|
|
|
53
55
|
|
package/docs/PaymentApi.md
CHANGED
|
@@ -8,8 +8,10 @@ Method | HTTP request | Description
|
|
|
8
8
|
[**createCryptoAddress**](PaymentApi.md#createCryptoAddress) | **POST** /payments/crypto_addresses | Create crypto address
|
|
9
9
|
[**createForcedSweepRequest**](PaymentApi.md#createForcedSweepRequest) | **POST** /payments/force_sweep_requests | Create forced sweep
|
|
10
10
|
[**createMerchant**](PaymentApi.md#createMerchant) | **POST** /payments/merchants | Create merchant
|
|
11
|
+
[**createOrderLink**](PaymentApi.md#createOrderLink) | **POST** /payments/links/orders | Create order link
|
|
11
12
|
[**createPaymentOrder**](PaymentApi.md#createPaymentOrder) | **POST** /payments/orders | Create pay-in order
|
|
12
13
|
[**createRefund**](PaymentApi.md#createRefund) | **POST** /payments/refunds | Create refund order
|
|
14
|
+
[**createRefundLink**](PaymentApi.md#createRefundLink) | **POST** /payments/links/refunds | Create refund link
|
|
13
15
|
[**createSettlementRequest**](PaymentApi.md#createSettlementRequest) | **POST** /payments/settlement_requests | Create settlement request
|
|
14
16
|
[**deleteCryptoAddress**](PaymentApi.md#deleteCryptoAddress) | **POST** /payments/crypto_addresses/{crypto_address_id}/delete | Delete crypto address
|
|
15
17
|
[**getExchangeRate**](PaymentApi.md#getExchangeRate) | **GET** /payments/exchange_rates/{token_id}/{currency} | Get exchange rate
|
|
@@ -33,7 +35,7 @@ Method | HTTP request | Description
|
|
|
33
35
|
[**listSettlementRequests**](PaymentApi.md#listSettlementRequests) | **GET** /payments/settlement_requests | List all settlement requests
|
|
34
36
|
[**listTopUpPayerAccounts**](PaymentApi.md#listTopUpPayerAccounts) | **GET** /payments/topup/payer_accounts | List top-up payer accounts
|
|
35
37
|
[**listTopUpPayers**](PaymentApi.md#listTopUpPayers) | **GET** /payments/topup/payers | List payers
|
|
36
|
-
[**paymentEstimateFee**](PaymentApi.md#paymentEstimateFee) | **POST** /payments/estimate_fee |
|
|
38
|
+
[**paymentEstimateFee**](PaymentApi.md#paymentEstimateFee) | **POST** /payments/estimate_fee | Estimate fees
|
|
37
39
|
[**updateBankAccountById**](PaymentApi.md#updateBankAccountById) | **PUT** /payments/bank_accounts/{bank_account_id} | Update bank account
|
|
38
40
|
[**updateMerchantById**](PaymentApi.md#updateMerchantById) | **PUT** /payments/merchants/{merchant_id} | Update merchant
|
|
39
41
|
[**updatePaymentOrder**](PaymentApi.md#updatePaymentOrder) | **PUT** /payments/orders/{order_id} | Update pay-in order
|
|
@@ -202,7 +204,7 @@ Name | Type | Description | Notes
|
|
|
202
204
|
|
|
203
205
|
Create merchant
|
|
204
206
|
|
|
205
|
-
This operation creates a merchant
|
|
207
|
+
This operation creates a merchant. Upon successful creation, a merchant ID is generated and returned along with the merchant's information. For more information on merchant creation, please refer to [Preparation](https://www.cobo.com/developers/v2/payments/preparation#create-merchant).
|
|
206
208
|
|
|
207
209
|
### Example
|
|
208
210
|
|
|
@@ -248,6 +250,58 @@ Name | Type | Description | Notes
|
|
|
248
250
|
- **Accept**: application/json
|
|
249
251
|
|
|
250
252
|
|
|
253
|
+
## createOrderLink
|
|
254
|
+
|
|
255
|
+
> Link createOrderLink(opts)
|
|
256
|
+
|
|
257
|
+
Create order link
|
|
258
|
+
|
|
259
|
+
This operation generates a payment link for a pay-in order. The link directs users to a hosted payment page where they can complete their payment for the order. You can share the link directly with users or embed the payment page in your website or application using an iframe. For more details, see [Payment Link](https://www.cobo.com/developers/v2/payments/payment-link).
|
|
260
|
+
|
|
261
|
+
### Example
|
|
262
|
+
|
|
263
|
+
```javascript
|
|
264
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
265
|
+
// Initialize the API client
|
|
266
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
267
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
268
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
269
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
270
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
271
|
+
// Call the API
|
|
272
|
+
const apiInstance = new CoboWaas2.PaymentApi();
|
|
273
|
+
const opts = {
|
|
274
|
+
'CreateOrderLinkRequest': new CoboWaas2.CreateOrderLinkRequest()
|
|
275
|
+
};
|
|
276
|
+
apiInstance.createOrderLink(opts).then((data) => {
|
|
277
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
278
|
+
}, (error) => {
|
|
279
|
+
console.error(error);
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### Parameters
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
Name | Type | Description | Notes
|
|
288
|
+
------------- | ------------- | ------------- | -------------
|
|
289
|
+
**CreateOrderLinkRequest** | [**CreateOrderLinkRequest**](CreateOrderLinkRequest.md)| The request body to create a payment link for a pay-in order. | [optional]
|
|
290
|
+
|
|
291
|
+
### Return type
|
|
292
|
+
|
|
293
|
+
[**Link**](Link.md)
|
|
294
|
+
|
|
295
|
+
### Authorization
|
|
296
|
+
|
|
297
|
+
[CoboAuth](../README.md#CoboAuth)
|
|
298
|
+
|
|
299
|
+
### HTTP request headers
|
|
300
|
+
|
|
301
|
+
- **Content-Type**: application/json
|
|
302
|
+
- **Accept**: application/json
|
|
303
|
+
|
|
304
|
+
|
|
251
305
|
## createPaymentOrder
|
|
252
306
|
|
|
253
307
|
> Order createPaymentOrder(opts)
|
|
@@ -352,6 +406,58 @@ Name | Type | Description | Notes
|
|
|
352
406
|
- **Accept**: application/json
|
|
353
407
|
|
|
354
408
|
|
|
409
|
+
## createRefundLink
|
|
410
|
+
|
|
411
|
+
> Link createRefundLink(opts)
|
|
412
|
+
|
|
413
|
+
Create refund link
|
|
414
|
+
|
|
415
|
+
This operation creates a payment link for a refund.
|
|
416
|
+
|
|
417
|
+
### Example
|
|
418
|
+
|
|
419
|
+
```javascript
|
|
420
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
421
|
+
// Initialize the API client
|
|
422
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
423
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
424
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
425
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
426
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
427
|
+
// Call the API
|
|
428
|
+
const apiInstance = new CoboWaas2.PaymentApi();
|
|
429
|
+
const opts = {
|
|
430
|
+
'CreateRefundLinkRequest': new CoboWaas2.CreateRefundLinkRequest()
|
|
431
|
+
};
|
|
432
|
+
apiInstance.createRefundLink(opts).then((data) => {
|
|
433
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
434
|
+
}, (error) => {
|
|
435
|
+
console.error(error);
|
|
436
|
+
});
|
|
437
|
+
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
### Parameters
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
Name | Type | Description | Notes
|
|
444
|
+
------------- | ------------- | ------------- | -------------
|
|
445
|
+
**CreateRefundLinkRequest** | [**CreateRefundLinkRequest**](CreateRefundLinkRequest.md)| The request body to create a payment link for a refund. | [optional]
|
|
446
|
+
|
|
447
|
+
### Return type
|
|
448
|
+
|
|
449
|
+
[**Link**](Link.md)
|
|
450
|
+
|
|
451
|
+
### Authorization
|
|
452
|
+
|
|
453
|
+
[CoboAuth](../README.md#CoboAuth)
|
|
454
|
+
|
|
455
|
+
### HTTP request headers
|
|
456
|
+
|
|
457
|
+
- **Content-Type**: application/json
|
|
458
|
+
- **Accept**: application/json
|
|
459
|
+
|
|
460
|
+
|
|
355
461
|
## createSettlementRequest
|
|
356
462
|
|
|
357
463
|
> Settlement createSettlementRequest(opts)
|
|
@@ -410,7 +516,7 @@ Name | Type | Description | Notes
|
|
|
410
516
|
|
|
411
517
|
Delete crypto address
|
|
412
518
|
|
|
413
|
-
This operation unregisters a crypto address from being used for crypto
|
|
519
|
+
This operation unregisters a crypto address from being used for crypto payouts.
|
|
414
520
|
|
|
415
521
|
### Example
|
|
416
522
|
|
|
@@ -460,7 +566,7 @@ Name | Type | Description | Notes
|
|
|
460
566
|
|
|
461
567
|
Get exchange rate
|
|
462
568
|
|
|
463
|
-
This operation retrieves the current exchange rate between a specified currency pair.
|
|
569
|
+
This operation retrieves the current exchange rate between a specified currency pair. The exchange rate is updated approximately every 10 minutes. <Note>This operation returns the exchange rate for reference only. The actual exchange rate may vary due to market fluctuations and other factors.</Note>
|
|
464
570
|
|
|
465
571
|
### Example
|
|
466
572
|
|
|
@@ -618,7 +724,7 @@ Name | Type | Description | Notes
|
|
|
618
724
|
|
|
619
725
|
Get developer balance
|
|
620
726
|
|
|
621
|
-
This operation retrieves the balance information for you as the developer. The balance information is grouped by token. For more information, please refer to [
|
|
727
|
+
This operation retrieves the balance information for you as the developer. The balance information is grouped by token. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances).
|
|
622
728
|
|
|
623
729
|
### Example
|
|
624
730
|
|
|
@@ -1098,7 +1204,7 @@ Name | Type | Description | Notes
|
|
|
1098
1204
|
|
|
1099
1205
|
List merchant balances
|
|
1100
1206
|
|
|
1101
|
-
This operation retrieves the balance information for specified merchants. The balance information is grouped by token and acquiring type. If you do not specify the `merchant_ids` parameter, the balance information for all merchants will be returned. For more information, please refer to [
|
|
1207
|
+
This operation retrieves the balance information for specified merchants. The balance information is grouped by token and acquiring type. If you do not specify the `merchant_ids` parameter, the balance information for all merchants will be returned. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances).
|
|
1102
1208
|
|
|
1103
1209
|
### Example
|
|
1104
1210
|
|
|
@@ -1193,8 +1299,8 @@ Name | Type | Description | Notes
|
|
|
1193
1299
|
**before** | **String**| A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response. | [optional]
|
|
1194
1300
|
**after** | **String**| A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response. | [optional]
|
|
1195
1301
|
**keyword** | **String**| A search term used for fuzzy matching of merchant names. | [optional]
|
|
1196
|
-
**wallet_id** | **String**|
|
|
1197
|
-
**wallet_setup** | [**WalletSetup**](.md)|
|
|
1302
|
+
**wallet_id** | **String**| This parameter has been deprecated. | [optional]
|
|
1303
|
+
**wallet_setup** | [**WalletSetup**](.md)| The type of wallet setup for the merchant. Each wallet contains multiple cryptocurrency addresses that serve as the merchant’s receiving addresses. - `Shared`: Multiple merchants share the same wallet. The wallet’s addresses may be used to receive payments for multiple merchants simultaneously. - `Separate`: Create a dedicated wallet for the merchant to achieve complete fund isolation. All addresses in this wallet are only used to receive payments for this merchant. - `Default`: The default wallet automatically created by the system for the default merchant (the merchant that shares the same name as your organization). | [optional]
|
|
1198
1304
|
|
|
1199
1305
|
### Return type
|
|
1200
1306
|
|
|
@@ -1614,9 +1720,9 @@ Name | Type | Description | Notes
|
|
|
1614
1720
|
|
|
1615
1721
|
> PaymentEstimateFee201Response paymentEstimateFee(opts)
|
|
1616
1722
|
|
|
1617
|
-
|
|
1723
|
+
Estimate fees
|
|
1618
1724
|
|
|
1619
|
-
This operation
|
|
1725
|
+
This operation calculates fees for payment-related operations, including: - **Pay-in**: Fees for accepting payments - **Refunds**: Fees for refunding the payment - **Crypto payouts**: Fees for payouts in crypto - **Fiat off-ramp**: Fees for fiat currency transfers via off-ramp. The returned fees represent the charges that would apply if the operation were executed immediately. Note that actual fees may vary over time based on your usage volume and applicable fee rates.
|
|
1620
1726
|
|
|
1621
1727
|
### Example
|
|
1622
1728
|
|
|
@@ -1646,7 +1752,7 @@ apiInstance.paymentEstimateFee(opts).then((data) => {
|
|
|
1646
1752
|
|
|
1647
1753
|
Name | Type | Description | Notes
|
|
1648
1754
|
------------- | ------------- | ------------- | -------------
|
|
1649
|
-
**PaymentEstimateFeeRequest** | [**PaymentEstimateFeeRequest**](PaymentEstimateFeeRequest.md)| The request body
|
|
1755
|
+
**PaymentEstimateFeeRequest** | [**PaymentEstimateFeeRequest**](PaymentEstimateFeeRequest.md)| The request body for fee estimation. | [optional]
|
|
1650
1756
|
|
|
1651
1757
|
### Return type
|
|
1652
1758
|
|
|
@@ -1884,7 +1990,7 @@ Name | Type | Description | Notes
|
|
|
1884
1990
|
|
|
1885
1991
|
Update top-up address
|
|
1886
1992
|
|
|
1887
|
-
This operation updates the dedicated top-up address assigned to a specific payer under a merchant on a specified chain.
|
|
1993
|
+
This operation updates the dedicated top-up address assigned to a specific payer under a merchant on a specified chain. <Note> You can update the top-up address for a given payer a maximum of 10 times. If you exceed this limit, the API request will return an error. </Note>
|
|
1888
1994
|
|
|
1889
1995
|
### Example
|
|
1890
1996
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**token_id** | **String** | The ID
|
|
8
|
-
**amount** | **String** | The
|
|
7
|
+
**token_id** | **String** | The token ID for which fees will be calculated. |
|
|
8
|
+
**amount** | **String** | The transaction amount for which fees will be calculated. |
|
|
9
9
|
|
|
10
10
|
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data** | [**[PaymentEstimatedFee]**](PaymentEstimatedFee.md) |
|
|
7
|
+
**data** | [**[PaymentEstimatedFee]**](PaymentEstimatedFee.md) | A list of estimated fees for the requested operations. | [optional]
|
|
8
8
|
|
|
9
9
|
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**fee_type** | [**PaymentFeeType**](PaymentFeeType.md) | | [optional]
|
|
8
|
-
**estimate_fees** | [**[PaymentEstimateFee]**](PaymentEstimateFee.md) |
|
|
8
|
+
**estimate_fees** | [**[PaymentEstimateFee]**](PaymentEstimateFee.md) | A list of token IDs and amounts for which fees will be calculated. |
|
|
9
9
|
|
|
10
10
|
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**token_id** | **String** | The ID
|
|
8
|
-
**amount** | **String** | The
|
|
7
|
+
**token_id** | **String** | The token ID for which fees will be calculated. |
|
|
8
|
+
**amount** | **String** | The transaction amount for which fees will be calculated. |
|
|
9
9
|
**commission_fee** | [**CommissionFee**](CommissionFee.md) | | [optional]
|
|
10
10
|
**bridging_fee** | [**BridgingFee**](BridgingFee.md) | | [optional]
|
|
11
11
|
**otc_fee** | [**OtcFee**](OtcFee.md) | | [optional]
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. |
|
|
7
|
+
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. |
|
|
8
8
|
**order_id** | **String** | The order ID. |
|
|
9
9
|
**merchant_id** | **String** | The merchant ID. | [optional]
|
|
10
10
|
**token_id** | **String** | The ID of the cryptocurrency used for payment. Supported tokens: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT` |
|
|
@@ -24,6 +24,7 @@ Name | Type | Description | Notes
|
|
|
24
24
|
**updated_timestamp** | **Number** | The last update time of the order, represented as a UNIX timestamp in seconds. | [optional]
|
|
25
25
|
**transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the pay-in process. | [optional]
|
|
26
26
|
**settlement_status** | [**SettleStatus**](SettleStatus.md) | | [optional]
|
|
27
|
+
**amount_tolerance** | **String** | The maximum allowed deviation from the payable amount in the case of underpayment, specified as a positive value with up to one decimal place. If you provide more than one decimal place, an error will occur. When the actual received amount is within this deviation (inclusive) of the payable amount, the order status will be set to `Completed` rather than `Underpaid`. | [optional]
|
|
27
28
|
|
|
28
29
|
|
|
29
30
|
|
|
@@ -62,6 +63,8 @@ Name | Type | Description | Notes
|
|
|
62
63
|
|
|
63
64
|
* `ComplianceDisposition` (value: `"ComplianceDisposition"`)
|
|
64
65
|
|
|
66
|
+
* `ComplianceKytScreenings` (value: `"ComplianceKytScreenings"`)
|
|
67
|
+
|
|
65
68
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
66
69
|
|
|
67
70
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. |
|
|
7
|
+
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. |
|
|
8
8
|
**request_id** | **String** | The request ID provided by you when creating the refund request. | [optional]
|
|
9
9
|
**refund_id** | **String** | The refund order ID. |
|
|
10
10
|
**order_id** | **String** | The ID of the pay-in order corresponding to this refund. | [optional]
|
|
@@ -61,6 +61,8 @@ Name | Type | Description | Notes
|
|
|
61
61
|
|
|
62
62
|
* `ComplianceDisposition` (value: `"ComplianceDisposition"`)
|
|
63
63
|
|
|
64
|
+
* `ComplianceKytScreenings` (value: `"ComplianceKytScreenings"`)
|
|
65
|
+
|
|
64
66
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
65
67
|
|
|
66
68
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. |
|
|
7
|
+
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. |
|
|
8
8
|
**settlement_request_id** | **String** | The settlement request ID generated by Cobo. |
|
|
9
9
|
**request_id** | **String** | The request ID provided by you when creating the settlement request. |
|
|
10
10
|
**status** | [**SettleRequestStatus**](SettleRequestStatus.md) | |
|
|
@@ -15,8 +15,8 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**acquiring_type** | [**AcquiringType**](AcquiringType.md) | | [optional]
|
|
16
16
|
**payout_channel** | [**PayoutChannel**](PayoutChannel.md) | | [optional]
|
|
17
17
|
**settlement_type** | [**SettlementType**](SettlementType.md) | | [optional]
|
|
18
|
-
**currency** | **String** | The fiat currency for the
|
|
19
|
-
**received_amount_fiat** | **String** | The
|
|
18
|
+
**currency** | **String** | The fiat currency for the off-ramp. | [optional]
|
|
19
|
+
**received_amount_fiat** | **String** | The estimated amount of the fiat currency to receive after off-ramping. This amount is subject to change due to bank transfer fees. | [optional]
|
|
20
20
|
**bank_account** | [**BankAccount**](BankAccount.md) | | [optional]
|
|
21
21
|
|
|
22
22
|
|
|
@@ -56,6 +56,8 @@ Name | Type | Description | Notes
|
|
|
56
56
|
|
|
57
57
|
* `ComplianceDisposition` (value: `"ComplianceDisposition"`)
|
|
58
58
|
|
|
59
|
+
* `ComplianceKytScreenings` (value: `"ComplianceKytScreenings"`)
|
|
60
|
+
|
|
59
61
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
60
62
|
|
|
61
63
|
|