@cobo/cobo-waas2 1.26.0 → 1.28.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 +96 -4
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +2 -2
- package/dist/api/AutoSweepApi.js +4 -4
- package/dist/api/DevelopersWebhooksApi.js +2 -2
- package/dist/api/OAuthApi.js +4 -4
- package/dist/api/PaymentApi.js +1847 -294
- package/dist/api/StakingsApi.js +44 -2
- package/dist/api/SwapsApi.js +2 -2
- package/dist/api/TransactionsApi.js +6 -6
- package/dist/api/WalletsApi.js +14 -14
- package/dist/index.js +420 -7
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/AllocationRecord.js +193 -0
- package/dist/model/AllocationRequest.js +167 -0
- package/dist/model/BabylonCreateStakingExpansion.js +157 -0
- package/dist/model/BabylonStakeExtra.js +26 -0
- package/dist/model/BabylonStakingRegistration.js +1 -1
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BankAccountStatus.js +66 -0
- package/dist/model/BatchAllocation.js +190 -0
- package/dist/model/BatchAllocationDetail.js +188 -0
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
- package/dist/model/ContractCallDestination.js +72 -10
- package/dist/model/ContractCallDestinationType.js +10 -0
- package/dist/model/CosmosContractCallDestination.js +0 -13
- package/dist/model/Counterparty.js +195 -0
- package/dist/model/CounterpartyDetail.js +228 -0
- package/dist/model/CounterpartyType.js +61 -0
- package/dist/model/CounterpartyWalletAddressDetail.js +192 -0
- package/dist/model/CreateBatchAllocationRequest.js +142 -0
- package/dist/model/CreateCounterpartyRequest.js +193 -0
- package/dist/model/CreateCounterpartyWalletAddressRequest.js +140 -0
- package/dist/model/CreateCustodialWalletParams.js +1 -1
- package/dist/model/CreateDestinationBankAccount.js +257 -0
- package/dist/model/CreateDestinationBankAccountRequest.js +272 -0
- package/dist/model/CreateDestinationRequest.js +235 -0
- package/dist/model/CreateDestinationWalletAddressRequest.js +140 -0
- package/dist/model/CreateExchangeWalletParams.js +2 -2
- package/dist/model/CreateKeyShareHolder.js +1 -1
- package/dist/model/CreateMerchantRequest.js +1 -1
- package/dist/model/CreateMpcWalletParams.js +2 -2
- package/dist/model/CreatePaymentOrderRequest.js +115 -68
- package/dist/model/CreatePayoutRequest.js +192 -0
- package/dist/model/CreateRefundRequest.js +3 -3
- package/dist/model/CreateSafeWalletParams.js +1 -1
- package/dist/model/CreateSettlement.js +14 -1
- package/dist/model/CreateSettlementRequestRequest.js +1 -1
- package/dist/model/CreateSmartContractWalletParams.js +1 -1
- package/dist/model/CreateStakeActivityExtra.js +12 -0
- package/dist/model/{ReceivedAmountPerAddress.js → CreateWalletAddress.js} +31 -32
- package/dist/model/CreateWalletParams.js +1 -1
- package/dist/model/DeleteCounterparty200Response.js +110 -0
- package/dist/model/DeleteCounterpartyWalletAddress200Response.js +110 -0
- package/dist/model/DeleteDestination200Response.js +110 -0
- package/dist/model/DeleteDestinationBankAccount200Response.js +110 -0
- package/dist/model/DeleteDestinationWalletAddress200Response.js +110 -0
- package/dist/model/Destination.js +208 -0
- package/dist/model/DestinationBankAccount.js +301 -0
- package/dist/model/DestinationBankAccountDetail.js +394 -0
- package/dist/model/DestinationDetail.js +272 -0
- package/dist/model/DestinationType.js +61 -0
- package/dist/model/DestinationWalletAddressDetail.js +205 -0
- package/dist/model/EnableDestinationWhitelistRequest.js +106 -0
- package/dist/model/EvmContractCallDestination.js +2 -2
- package/dist/model/ExchangeRate.js +140 -0
- package/dist/model/GetExchangeRate200Response.js +2 -2
- package/dist/model/IntermediaryBankInfo.js +140 -0
- package/dist/model/Link.js +4 -4
- package/dist/model/LinkDisplayInfo.js +15 -2
- package/dist/model/ListAllocations200Response.js +123 -0
- package/dist/model/ListBatchAllocations200Response.js +123 -0
- package/dist/model/ListCounterparties200Response.js +123 -0
- package/dist/model/ListCounterpartyWalletAddress200Response.js +123 -0
- package/dist/model/ListDestinationBankAccounts200Response.js +123 -0
- package/dist/model/ListDestinationWalletAddresses200Response.js +123 -0
- package/dist/model/ListDestinations200Response.js +123 -0
- package/dist/model/ListPayoutItems200Response.js +123 -0
- package/dist/model/ListPayouts200Response.js +123 -0
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/MerchantBalance.js +28 -2
- package/dist/model/Order.js +135 -102
- package/dist/model/OrderLinkBusinessInfo.js +151 -87
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +4 -4
- package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +125 -0
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentAllocationAmount.js +125 -0
- package/dist/model/PaymentOrderEventData.js +198 -145
- package/dist/model/PaymentPayout.js +250 -0
- package/dist/model/PaymentPayoutDetail.js +248 -0
- package/dist/model/PaymentPayoutEvent.js +433 -0
- package/dist/model/PaymentPayoutItem.js +298 -0
- package/dist/model/PaymentPayoutItemDetail.js +298 -0
- package/dist/model/PaymentPayoutItemStatus.js +76 -0
- package/dist/model/PaymentPayoutParam.js +165 -0
- package/dist/model/PaymentPayoutStatus.js +81 -0
- package/dist/model/PaymentRefundEventData.js +8 -3
- package/dist/model/PaymentSettlementEvent.js +8 -3
- package/dist/model/PaymentSourceType.js +61 -0
- package/dist/model/PaymentTransaction.js +32 -0
- package/dist/model/PaymentTransactionEventData.js +10 -5
- package/dist/model/PspBalance.js +28 -2
- package/dist/model/QueryDestinationWhitelistEnabled200Response.js +106 -0
- package/dist/model/RefundLinkBusinessInfo.js +6 -6
- package/dist/model/SettlementDetail.js +13 -0
- package/dist/model/Stakings.js +33 -6
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/SwapActivity.js +1 -1
- package/dist/model/SwapActivityDetail.js +2 -2
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/Transaction.js +1 -1
- package/dist/model/TransactionCosmosContractDestination.js +0 -13
- package/dist/model/TransactionDestination.js +38 -10
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionDetail.js +2 -2
- package/dist/model/TransactionDetails.js +2 -2
- package/dist/model/TransactionTronContractDestination.js +150 -0
- package/dist/model/TransactionWebhookEventData.js +10 -5
- package/dist/model/TronContractCallDestination.js +150 -0
- package/dist/model/UpdateCounterpartyByIdRequest.js +160 -0
- package/dist/model/UpdateDestinationBankAccount.js +257 -0
- package/dist/model/UpdateDestinationByIdRequest.js +173 -0
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/WalletAddress.js +151 -0
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEventData.js +107 -43
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +10 -0
- package/docs/AddressBooksApi.md +1 -1
- package/docs/AddressesEventData.md +3 -1
- package/docs/AllocationRecord.md +15 -0
- package/docs/AllocationRequest.md +13 -0
- package/docs/AutoSweepApi.md +2 -2
- package/docs/BabylonCreateStakingExpansion.md +12 -0
- package/docs/BabylonStakeExtra.md +2 -0
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BankAccountStatus.md +14 -0
- package/docs/BatchAllocation.md +14 -0
- package/docs/BatchAllocationDetail.md +14 -0
- package/docs/ChainsEventData.md +3 -1
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
- package/docs/ContractCallDestination.md +3 -2
- package/docs/ContractCallDestinationType.md +4 -0
- package/docs/CosmosContractCallDestination.md +0 -1
- package/docs/Counterparty.md +16 -0
- package/docs/CounterpartyDetail.md +17 -0
- package/docs/CounterpartyType.md +12 -0
- package/docs/CounterpartyWalletAddressDetail.md +15 -0
- package/docs/CreateBatchAllocationRequest.md +10 -0
- package/docs/CreateCounterpartyRequest.md +14 -0
- package/docs/CreateCounterpartyWalletAddressRequest.md +11 -0
- package/docs/CreateCustodialWalletParams.md +1 -1
- package/docs/CreateDestinationBankAccount.md +19 -0
- package/docs/CreateDestinationBankAccountRequest.md +20 -0
- package/docs/CreateDestinationRequest.md +16 -0
- package/docs/CreateDestinationWalletAddressRequest.md +11 -0
- package/docs/CreateExchangeWalletParams.md +1 -1
- package/docs/CreateKeyShareHolder.md +1 -1
- package/docs/CreateMerchantRequest.md +1 -1
- package/docs/CreateMpcWalletParams.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +15 -11
- package/docs/CreatePayoutRequest.md +14 -0
- package/docs/CreateRefundRequest.md +3 -3
- package/docs/CreateSafeWalletParams.md +1 -1
- package/docs/CreateSettlement.md +2 -1
- package/docs/CreateSettlementRequestRequest.md +1 -1
- package/docs/CreateSmartContractWalletParams.md +1 -1
- package/docs/CreateStakeActivityExtra.md +2 -0
- package/docs/CreateWalletAddress.md +10 -0
- package/docs/CreateWalletParams.md +1 -1
- package/docs/DeleteCounterparty200Response.md +9 -0
- package/docs/DeleteCounterpartyWalletAddress200Response.md +9 -0
- package/docs/DeleteDestination200Response.md +9 -0
- package/docs/DeleteDestinationBankAccount200Response.md +9 -0
- package/docs/DeleteDestinationWalletAddress200Response.md +9 -0
- package/docs/Destination.md +17 -0
- package/docs/DestinationBankAccount.md +23 -0
- package/docs/DestinationBankAccountDetail.md +30 -0
- package/docs/DestinationDetail.md +19 -0
- package/docs/DestinationType.md +12 -0
- package/docs/DestinationWalletAddressDetail.md +16 -0
- package/docs/DevelopersWebhooksApi.md +1 -1
- package/docs/EnableDestinationWhitelistRequest.md +9 -0
- package/docs/EvmContractCallDestination.md +1 -1
- package/docs/ExchangeRate.md +11 -0
- package/docs/GetExchangeRate200Response.md +1 -1
- package/docs/IntermediaryBankInfo.md +11 -0
- package/docs/Link.md +2 -2
- package/docs/LinkDisplayInfo.md +3 -2
- package/docs/ListAllocations200Response.md +10 -0
- package/docs/ListBatchAllocations200Response.md +10 -0
- package/docs/ListCounterparties200Response.md +10 -0
- package/docs/ListCounterpartyWalletAddress200Response.md +10 -0
- package/docs/ListDestinationBankAccounts200Response.md +10 -0
- package/docs/ListDestinationWalletAddresses200Response.md +10 -0
- package/docs/ListDestinations200Response.md +10 -0
- package/docs/ListPayoutItems200Response.md +10 -0
- package/docs/ListPayouts200Response.md +10 -0
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/MerchantBalance.md +4 -2
- package/docs/OAuthApi.md +2 -2
- package/docs/Order.md +16 -13
- package/docs/OrderLinkBusinessInfo.md +11 -7
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
- package/docs/OrderLinkBusinessInfoPayableAmountsInner.md +10 -0
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentAllocationAmount.md +10 -0
- package/docs/PaymentApi.md +2153 -395
- package/docs/PaymentOrderEventData.md +19 -14
- package/docs/PaymentPayout.md +19 -0
- package/docs/PaymentPayoutDetail.md +19 -0
- package/docs/PaymentPayoutEvent.md +65 -0
- package/docs/PaymentPayoutItem.md +22 -0
- package/docs/PaymentPayoutItemDetail.md +22 -0
- package/docs/PaymentPayoutItemStatus.md +18 -0
- package/docs/PaymentPayoutParam.md +13 -0
- package/docs/PaymentPayoutStatus.md +20 -0
- package/docs/PaymentRefundEventData.md +3 -1
- package/docs/PaymentSettlementEvent.md +3 -1
- package/docs/PaymentSourceType.md +12 -0
- package/docs/PaymentTransaction.md +2 -0
- package/docs/PaymentTransactionEventData.md +4 -2
- package/docs/PspBalance.md +4 -2
- package/docs/QueryDestinationWhitelistEnabled200Response.md +9 -0
- package/docs/RefundLinkBusinessInfo.md +4 -4
- package/docs/SettlementDetail.md +1 -0
- package/docs/Stakings.md +2 -1
- package/docs/StakingsApi.md +54 -1
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/SwapActivity.md +1 -1
- package/docs/SwapActivityDetail.md +1 -1
- package/docs/SwapsApi.md +1 -1
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokensEventData.md +3 -1
- package/docs/Transaction.md +1 -1
- package/docs/TransactionCosmosContractDestination.md +0 -1
- package/docs/TransactionDestination.md +2 -2
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionDetail.md +1 -1
- package/docs/TransactionDetails.md +1 -1
- package/docs/TransactionTronContractDestination.md +12 -0
- package/docs/TransactionWebhookEventData.md +4 -2
- package/docs/TransactionsApi.md +3 -3
- package/docs/TronContractCallDestination.md +12 -0
- package/docs/UpdateCounterpartyByIdRequest.md +13 -0
- package/docs/UpdateDestinationBankAccount.md +19 -0
- package/docs/UpdateDestinationByIdRequest.md +14 -0
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/WalletAddress.md +12 -0
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WalletsApi.md +7 -7
- package/docs/WebhookEventData.md +22 -14
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +4 -0
- package/package.json +1 -1
- package/docs/ReceivedAmountPerAddress.md +0 -10
|
@@ -4,27 +4,30 @@
|
|
|
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. - `ComplianceKytScreenings`: The compliance KYT screenings 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. - `PaymentPayout`: The payment payout 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
|
-
**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` |
|
|
11
|
-
**chain_id** | **String** | The ID of the blockchain network where the payment transaction should be made. Supported chains: - USDC: `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` - USDT: `TRON`, `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` |
|
|
12
|
-
**payable_amount** | **String** | The cryptocurrency amount to be paid for this order. |
|
|
13
|
-
**receive_address** | **String** | The recipient wallet address to be used for the payment transaction. |
|
|
14
|
-
**currency** | **String** | The fiat currency of the order. |
|
|
15
|
-
**order_amount** | **String** | The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). |
|
|
16
|
-
**fee_amount** | **String** | The developer fee for the order in fiat currency. It is added to the base amount (`order_amount`) to determine the final charge. |
|
|
17
|
-
**exchange_rate** | **String** | The exchange rate between a currency pair. Expressed as the amount of fiat currency per one unit of cryptocurrency. For example, if the cryptocurrency is USDT and the fiat currency is USD, a rate of \"0.99\" means 1 USDT = 0.99 USD. |
|
|
18
|
-
**expired_at** | **Number** | The expiration time of the pay-in order, represented as a UNIX timestamp in seconds. | [optional]
|
|
19
10
|
**merchant_order_code** | **String** | A unique reference code assigned by the merchant to identify this order in their system. | [optional]
|
|
20
11
|
**psp_order_code** | **String** | A unique reference code assigned by the developer to identify this order in their system. |
|
|
12
|
+
**pricing_currency** | **String** | The fiat currency of the order. | [optional]
|
|
13
|
+
**pricing_amount** | **String** | The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). | [optional]
|
|
14
|
+
**fee_amount** | **String** | The developer fee for the order in fiat currency. It is added to the base amount (`order_amount`) to determine the final charge. |
|
|
15
|
+
**payable_currency** | **String** | The ID of the cryptocurrency used for payment. | [optional]
|
|
16
|
+
**chain_id** | **String** | The ID of the blockchain network where the payment transaction should be made. |
|
|
17
|
+
**payable_amount** | **String** | The cryptocurrency amount to be paid for this order. |
|
|
18
|
+
**exchange_rate** | **String** | The exchange rate between a currency pair. Expressed as the amount of fiat currency per one unit of cryptocurrency. For example, if the cryptocurrency is USDT and the fiat currency is USD, a rate of \"0.99\" means 1 USDT = 0.99 USD. |
|
|
19
|
+
**amount_tolerance** | **String** | Allowed amount deviation. | [optional]
|
|
20
|
+
**receive_address** | **String** | The recipient wallet address to be used for the payment transaction. |
|
|
21
21
|
**status** | [**OrderStatus**](OrderStatus.md) | |
|
|
22
22
|
**received_token_amount** | **String** | The total cryptocurrency amount received for this order. Updates until the expiration time. Precision matches the token standard (e.g., 6 decimals for USDT). |
|
|
23
|
-
**
|
|
24
|
-
**
|
|
25
|
-
**
|
|
23
|
+
**expired_at** | **Number** | The expiration time of the pay-in order, represented as a UNIX timestamp in seconds. | [optional]
|
|
24
|
+
**created_timestamp** | **Number** | The created time of the order, represented as a UNIX timestamp in seconds. | [optional]
|
|
25
|
+
**updated_timestamp** | **Number** | The updated time of the order, represented as a UNIX timestamp in seconds. | [optional]
|
|
26
|
+
**transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process. | [optional]
|
|
27
|
+
**currency** | **String** | The fiat currency of the order. | [optional]
|
|
28
|
+
**order_amount** | **String** | The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). | [optional]
|
|
29
|
+
**token_id** | **String** | The ID of the cryptocurrency used for payment. | [optional]
|
|
26
30
|
**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]
|
|
28
31
|
|
|
29
32
|
|
|
30
33
|
|
|
@@ -57,6 +60,8 @@ Name | Type | Description | Notes
|
|
|
57
60
|
|
|
58
61
|
* `PaymentAddressUpdate` (value: `"PaymentAddressUpdate"`)
|
|
59
62
|
|
|
63
|
+
* `PaymentPayout` (value: `"PaymentPayout"`)
|
|
64
|
+
|
|
60
65
|
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
61
66
|
|
|
62
67
|
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CoboWaas2.PaymentPayout
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**payout_id** | **String** | The payout ID generated by Cobo. |
|
|
8
|
+
**request_id** | **String** | The request ID provided by you when creating the payout. |
|
|
9
|
+
**payout_channel** | [**PayoutChannel**](PayoutChannel.md) | |
|
|
10
|
+
**payout_items** | [**[PaymentPayoutItem]**](PaymentPayoutItem.md) | | [optional]
|
|
11
|
+
**status** | [**PaymentPayoutStatus**](PaymentPayoutStatus.md) | |
|
|
12
|
+
**created_timestamp** | **Number** | The created time of the payout, represented as a UNIX timestamp in seconds. | [optional]
|
|
13
|
+
**updated_timestamp** | **Number** | The updated time of the payout, represented as a UNIX timestamp in seconds. | [optional]
|
|
14
|
+
**initiator** | **String** | The initiator of this payout, usually the user's API key. | [optional]
|
|
15
|
+
**currency** | **String** | The fiat currency for the payout. | [optional]
|
|
16
|
+
**actual_payout_amount** | **String** | The actual amount of this payout. | [optional]
|
|
17
|
+
**bank_account** | [**BankAccount**](BankAccount.md) | | [optional]
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CoboWaas2.PaymentPayoutDetail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**payout_id** | **String** | The payout ID generated by Cobo. |
|
|
8
|
+
**request_id** | **String** | The request ID provided by you when creating the payout. |
|
|
9
|
+
**status** | [**PaymentPayoutStatus**](PaymentPayoutStatus.md) | |
|
|
10
|
+
**payout_item_details** | [**[PaymentPayoutItemDetail]**](PaymentPayoutItemDetail.md) | | [optional]
|
|
11
|
+
**created_timestamp** | **Number** | The created time of the payout, represented as a UNIX timestamp in seconds. | [optional]
|
|
12
|
+
**updated_timestamp** | **Number** | The updated time of the payout, represented as a UNIX timestamp in seconds. | [optional]
|
|
13
|
+
**initiator** | **String** | The initiator of this payout, usually the user's API key. | [optional]
|
|
14
|
+
**payout_channel** | [**PayoutChannel**](PayoutChannel.md) | | [optional]
|
|
15
|
+
**currency** | **String** | The fiat currency for the payout. | [optional]
|
|
16
|
+
**actual_payout_amount** | **String** | The actual amount of this payout. | [optional]
|
|
17
|
+
**bank_account** | [**BankAccount**](BankAccount.md) | | [optional]
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# CoboWaas2.PaymentPayoutEvent
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
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. - `PaymentPayout`: The payment payout 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
|
+
**payout_id** | **String** | The payout ID generated by Cobo. |
|
|
9
|
+
**request_id** | **String** | The request ID provided by you when creating the payout. |
|
|
10
|
+
**status** | [**PaymentPayoutStatus**](PaymentPayoutStatus.md) | |
|
|
11
|
+
**payout_item_details** | [**[PaymentPayoutItemDetail]**](PaymentPayoutItemDetail.md) | | [optional]
|
|
12
|
+
**created_timestamp** | **Number** | The created time of the payout, represented as a UNIX timestamp in seconds. | [optional]
|
|
13
|
+
**updated_timestamp** | **Number** | The updated time of the payout, represented as a UNIX timestamp in seconds. | [optional]
|
|
14
|
+
**initiator** | **String** | The initiator of this payout, usually the user's API key. | [optional]
|
|
15
|
+
**payout_channel** | [**PayoutChannel**](PayoutChannel.md) | | [optional]
|
|
16
|
+
**currency** | **String** | The fiat currency for the payout. | [optional]
|
|
17
|
+
**actual_payout_amount** | **String** | The actual amount of this payout. | [optional]
|
|
18
|
+
**bank_account** | [**BankAccount**](BankAccount.md) | | [optional]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## Enum: DataTypeEnum
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
* `Transaction` (value: `"Transaction"`)
|
|
26
|
+
|
|
27
|
+
* `TSSRequest` (value: `"TSSRequest"`)
|
|
28
|
+
|
|
29
|
+
* `Addresses` (value: `"Addresses"`)
|
|
30
|
+
|
|
31
|
+
* `WalletInfo` (value: `"WalletInfo"`)
|
|
32
|
+
|
|
33
|
+
* `MPCVault` (value: `"MPCVault"`)
|
|
34
|
+
|
|
35
|
+
* `Chains` (value: `"Chains"`)
|
|
36
|
+
|
|
37
|
+
* `Tokens` (value: `"Tokens"`)
|
|
38
|
+
|
|
39
|
+
* `TokenListing` (value: `"TokenListing"`)
|
|
40
|
+
|
|
41
|
+
* `PaymentOrder` (value: `"PaymentOrder"`)
|
|
42
|
+
|
|
43
|
+
* `PaymentRefund` (value: `"PaymentRefund"`)
|
|
44
|
+
|
|
45
|
+
* `PaymentSettlement` (value: `"PaymentSettlement"`)
|
|
46
|
+
|
|
47
|
+
* `PaymentTransaction` (value: `"PaymentTransaction"`)
|
|
48
|
+
|
|
49
|
+
* `PaymentAddressUpdate` (value: `"PaymentAddressUpdate"`)
|
|
50
|
+
|
|
51
|
+
* `PaymentPayout` (value: `"PaymentPayout"`)
|
|
52
|
+
|
|
53
|
+
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
54
|
+
|
|
55
|
+
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
56
|
+
|
|
57
|
+
* `ComplianceDisposition` (value: `"ComplianceDisposition"`)
|
|
58
|
+
|
|
59
|
+
* `ComplianceKytScreenings` (value: `"ComplianceKytScreenings"`)
|
|
60
|
+
|
|
61
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CoboWaas2.PaymentPayoutItem
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**payout_item_id** | **String** | The payout item ID generated by Cobo. |
|
|
8
|
+
**payout_id** | **String** | The payout ID generated by Cobo. |
|
|
9
|
+
**token_id** | **String** | The token id of the payout item. | [optional]
|
|
10
|
+
**chain_id** | **String** | The ID of the blockchain network on which the payout item occurred. | [optional]
|
|
11
|
+
**amount** | **String** | The payout item token_id amount. |
|
|
12
|
+
**status** | [**PaymentPayoutItemStatus**](PaymentPayoutItemStatus.md) | |
|
|
13
|
+
**source_account** | **String** | |
|
|
14
|
+
**transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | An array of transactions associated with this payout item request. Each transaction represents a separate blockchain operation related to the payout item process. | [optional]
|
|
15
|
+
**created_timestamp** | **Number** | The created time of the payout item, represented as a UNIX timestamp in seconds. | [optional]
|
|
16
|
+
**updated_timestamp** | **Number** | The updated time of the payout item, represented as a UNIX timestamp in seconds. | [optional]
|
|
17
|
+
**crypto_address_id** | **String** | Unique identifier for the pre-approved crypto address, used to reference the address securely in requests. | [optional]
|
|
18
|
+
**crypto_address** | **String** | The actual blockchain address to which funds were transferred. | [optional]
|
|
19
|
+
**commission_fee** | [**CommissionFee**](CommissionFee.md) | | [optional]
|
|
20
|
+
**bridging_fee** | [**BridgingFee**](BridgingFee.md) | | [optional]
|
|
21
|
+
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CoboWaas2.PaymentPayoutItemDetail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**payout_item_id** | **String** | The payout item ID generated by Cobo. |
|
|
8
|
+
**payout_id** | **String** | The payout ID generated by Cobo. |
|
|
9
|
+
**token_id** | **String** | The token id of the payout. | [optional]
|
|
10
|
+
**chain_id** | **String** | The ID of the blockchain network on which the payout occurred. | [optional]
|
|
11
|
+
**source_account** | **String** | |
|
|
12
|
+
**amount** | **String** | The payout token_id amount. |
|
|
13
|
+
**status** | [**PaymentPayoutStatus**](PaymentPayoutStatus.md) | |
|
|
14
|
+
**transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | An array of transactions associated with this payout request. Each transaction represents a separate blockchain operation related to the payout process. | [optional]
|
|
15
|
+
**created_timestamp** | **Number** | The created time of the payout, represented as a UNIX timestamp in seconds. | [optional]
|
|
16
|
+
**updated_timestamp** | **Number** | The updated time of the payout, represented as a UNIX timestamp in seconds. | [optional]
|
|
17
|
+
**crypto_address_id** | **String** | Unique identifier for the pre-approved crypto address, used to reference the address securely in requests. | [optional]
|
|
18
|
+
**crypto_address** | **String** | The actual blockchain address to which funds were transferred. | [optional]
|
|
19
|
+
**commission_fee** | [**CommissionFee**](CommissionFee.md) | | [optional]
|
|
20
|
+
**bridging_fee** | [**BridgingFee**](BridgingFee.md) | | [optional]
|
|
21
|
+
|
|
22
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# CoboWaas2.PaymentPayoutItemStatus
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `Pending` (value: `"Pending"`)
|
|
7
|
+
|
|
8
|
+
* `Processing` (value: `"Processing"`)
|
|
9
|
+
|
|
10
|
+
* `Completed` (value: `"Completed"`)
|
|
11
|
+
|
|
12
|
+
* `PartiallyCompleted` (value: `"PartiallyCompleted"`)
|
|
13
|
+
|
|
14
|
+
* `Failed` (value: `"Failed"`)
|
|
15
|
+
|
|
16
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
17
|
+
|
|
18
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# CoboWaas2.PaymentPayoutParam
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**source_account** | **String** | |
|
|
8
|
+
**token_id** | **String** | Only used in Crypto payout channel. The ID of the cryptocurrency you want to settle. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT` |
|
|
9
|
+
**amount** | **String** | The payout cryptocurrency amount. |
|
|
10
|
+
**crypto_address_id** | **String** | Only used in Crypto payout channel. The ID of the pre-approved crypto address used for Crypto settlements. - The value must refer to a valid address that has been pre-configured and approved for the given token. | [optional]
|
|
11
|
+
**crypto_address** | **String** | Only used in Crypto payout channel. The actual blockchain address to which funds will be transferred. If enable destination whitelist, this address must be associated with a destination. | [optional]
|
|
12
|
+
|
|
13
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# CoboWaas2.PaymentPayoutStatus
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `Pending` (value: `"Pending"`)
|
|
7
|
+
|
|
8
|
+
* `Processing` (value: `"Processing"`)
|
|
9
|
+
|
|
10
|
+
* `Completed` (value: `"Completed"`)
|
|
11
|
+
|
|
12
|
+
* `PartiallyCompleted` (value: `"PartiallyCompleted"`)
|
|
13
|
+
|
|
14
|
+
* `Failed` (value: `"Failed"`)
|
|
15
|
+
|
|
16
|
+
* `Canceled` (value: `"Canceled"`)
|
|
17
|
+
|
|
18
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
19
|
+
|
|
20
|
+
|
|
@@ -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. - `ComplianceKytScreenings`: The compliance KYT screenings 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. - `PaymentPayout`: The payment payout 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]
|
|
@@ -55,6 +55,8 @@ Name | Type | Description | Notes
|
|
|
55
55
|
|
|
56
56
|
* `PaymentAddressUpdate` (value: `"PaymentAddressUpdate"`)
|
|
57
57
|
|
|
58
|
+
* `PaymentPayout` (value: `"PaymentPayout"`)
|
|
59
|
+
|
|
58
60
|
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
59
61
|
|
|
60
62
|
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
@@ -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. - `ComplianceKytScreenings`: The compliance KYT screenings 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. - `PaymentPayout`: The payment payout 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) | |
|
|
@@ -50,6 +50,8 @@ Name | Type | Description | Notes
|
|
|
50
50
|
|
|
51
51
|
* `PaymentAddressUpdate` (value: `"PaymentAddressUpdate"`)
|
|
52
52
|
|
|
53
|
+
* `PaymentPayout` (value: `"PaymentPayout"`)
|
|
54
|
+
|
|
53
55
|
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
54
56
|
|
|
55
57
|
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
@@ -11,6 +11,8 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**to_address** | **String** | The destination address of the transaction. |
|
|
12
12
|
**amount** | **String** | The amount of cryptocurrency transferred, as a decimal string. |
|
|
13
13
|
**status** | [**TransactionStatus**](TransactionStatus.md) | |
|
|
14
|
+
**counterparty** | [**Counterparty**](Counterparty.md) | | [optional]
|
|
15
|
+
**destination** | [**Destination**](Destination.md) | | [optional]
|
|
14
16
|
**created_timestamp** | **Number** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. |
|
|
15
17
|
**updated_timestamp** | **Number** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. |
|
|
16
18
|
|
|
@@ -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. - `ComplianceKytScreenings`: The compliance KYT screenings 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. - `PaymentPayout`: The payment payout 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
|
**transaction_id** | **String** | The transaction ID. |
|
|
9
9
|
**cobo_id** | **String** | The Cobo ID, which can be used to track a transaction. | [optional]
|
|
10
10
|
**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. | [optional]
|
|
@@ -31,7 +31,7 @@ Name | Type | Description | Notes
|
|
|
31
31
|
**category** | **[String]** | A custom transaction category for you to identify your transfers more easily. | [optional]
|
|
32
32
|
**description** | **String** | The description for your transaction. | [optional]
|
|
33
33
|
**is_loop** | **Boolean** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer. | [optional]
|
|
34
|
-
**cobo_category** | **[String]** | The transaction category defined by Cobo.
|
|
34
|
+
**cobo_category** | **[String]** | The transaction category defined by Cobo. For more details, refer to [Cobo-defined categories](/v2/guides/transactions/manage-transactions#cobo-defined-categories). | [optional]
|
|
35
35
|
**extra** | **[String]** | A list of JSON-encoded strings containing structured, business-specific extra information for the transaction. Each item corresponds to a specific data type, indicated by the `extra_type` field in the JSON object (for example, \"BabylonBusinessInfo\", \"BtcAddressInfo\"). | [optional]
|
|
36
36
|
**fueling_info** | [**TransactionFuelingInfo**](TransactionFuelingInfo.md) | | [optional]
|
|
37
37
|
**created_timestamp** | **Number** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. |
|
|
@@ -73,6 +73,8 @@ Name | Type | Description | Notes
|
|
|
73
73
|
|
|
74
74
|
* `PaymentAddressUpdate` (value: `"PaymentAddressUpdate"`)
|
|
75
75
|
|
|
76
|
+
* `PaymentPayout` (value: `"PaymentPayout"`)
|
|
77
|
+
|
|
76
78
|
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
77
79
|
|
|
78
80
|
* `SuspendedToken` (value: `"SuspendedToken"`)
|
package/docs/PspBalance.md
CHANGED
|
@@ -7,8 +7,10 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**token_id** | **String** | The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. |
|
|
8
8
|
**developer_fee_amount** | **String** | The total amount of the token that has been received as developer fee. | [optional]
|
|
9
9
|
**settled_amount** | **String** | The total amount of the token that has been paid out from the developer's balance. | [optional]
|
|
10
|
+
**payout_amount** | **String** | The psp payout amount. | [optional]
|
|
10
11
|
**refunded_amount** | **String** | The total amount of the token that has been refunded from the developer's balance. | [optional]
|
|
11
|
-
**total_balance** | **String** | The total balance of the token available for payout or refund for the developer. `total_balance` = `developer_fee_amount` - `settled_amount` - `refunded_amount` For more information, please refer to [Funds allocation and balances](https://www.cobo.com/
|
|
12
|
-
**available_balance** | **String** |
|
|
12
|
+
**total_balance** | **String** | The total balance of the token available for payout or refund for the developer. `total_balance` = `developer_fee_amount` - `settled_amount` - `refunded_amount` For more information, please refer to [Funds allocation and balances](https://www.cobo.com/payments/en/guides/amounts-and-balances) | [optional]
|
|
13
|
+
**available_balance** | **String** | The psp available balance. | [optional]
|
|
14
|
+
**locked_balance** | **String** | The psp locked balance. | [optional]
|
|
13
15
|
|
|
14
16
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CoboWaas2.QueryDestinationWhitelistEnabled200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**enable_destination_whitelist** | **Boolean** | Indicates whether the destination whitelist is enabled. |
|
|
8
|
+
|
|
9
|
+
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**transaction_id** | **String** | The transaction ID. |
|
|
8
|
-
**amount** | **String** | The amount to refund in cryptocurrency. |
|
|
7
|
+
**transaction_id** | **String** | The transaction ID of the original order payment or top-up. On the refund page, the from address of this transaction will be pre-filled as the default refund address. The refund will be processed in the same token and on the same blockchain as this transaction. |
|
|
8
|
+
**amount** | **String** | The amount to refund, denominated in the cryptocurrency of the original payment transaction. The amount must be a positive number and can have up to two decimal places. |
|
|
9
9
|
**refund_source** | [**RefundType**](RefundType.md) | |
|
|
10
|
-
**merchant_id** | **String** | The merchant ID, required if
|
|
11
|
-
**fee_amount** | **String** | The amount of the transaction
|
|
10
|
+
**merchant_id** | **String** | The merchant ID, required if `refund_source` is `Merchant`. The fund will be deducted from the specified merchant's balance. | [optional]
|
|
11
|
+
**fee_amount** | **String** | The developer fee amount to charge the merchant, denominated in the cryptocurrency of the original payment transaction. This field is only valid when `refund_source` is `Merchant`. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/payments/en/guides/amounts-and-balances). Must be: - A positive integer with up to two decimal places. - Less than the refund amount | [optional]
|
|
12
12
|
|
|
13
13
|
|
package/docs/SettlementDetail.md
CHANGED
|
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**created_timestamp** | **Number** | The creation time of the settlement, represented as a UNIX timestamp in seconds. | [optional]
|
|
17
17
|
**updated_timestamp** | **Number** | The last update time of the settlement, represented as a UNIX timestamp in seconds. | [optional]
|
|
18
18
|
**crypto_address_id** | **String** | The ID of the crypto address used for crypto payouts. | [optional]
|
|
19
|
+
**crypto_address** | **String** | The actual blockchain address to which funds were transferred. | [optional]
|
|
19
20
|
**payout_channel** | [**PayoutChannel**](PayoutChannel.md) | | [optional]
|
|
20
21
|
**acquiring_type** | [**AcquiringType**](AcquiringType.md) | | [optional]
|
|
21
22
|
**settlement_request_id** | **String** | The settlement request ID generated by Cobo. | [optional]
|
package/docs/Stakings.md
CHANGED
|
@@ -13,7 +13,8 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**rewards_info** | **Object** | The information about the staking rewards. | [optional]
|
|
14
14
|
**created_timestamp** | **Number** | The time when the staking position was created. |
|
|
15
15
|
**updated_timestamp** | **Number** | The time when the staking position was last updated. |
|
|
16
|
-
**validator_info** | [**BabylonValidator**](BabylonValidator.md) | |
|
|
16
|
+
**validator_info** | [**BabylonValidator**](BabylonValidator.md) | | [optional]
|
|
17
|
+
**validators** | [**[BabylonValidator]**](BabylonValidator.md) | | [optional]
|
|
17
18
|
**extra** | [**StakingsExtra**](StakingsExtra.md) | | [optional]
|
|
18
19
|
|
|
19
20
|
|
package/docs/StakingsApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
7
|
[**createBabylonAirdropRegistration**](StakingsApi.md#createBabylonAirdropRegistration) | **POST** /stakings/protocols/babylon/airdrops/registrations | Register for Babylon airdrop
|
|
8
|
+
[**createBabylonStakingExpansion**](StakingsApi.md#createBabylonStakingExpansion) | **POST** /stakings/protocols/babylon/stakings/expansions | Expand Babylon BTC staking
|
|
8
9
|
[**createBabylonStakingRegistration**](StakingsApi.md#createBabylonStakingRegistration) | **POST** /stakings/protocols/babylon/stakings/registrations | Register for Babylon Phase-2
|
|
9
10
|
[**createClaimActivity**](StakingsApi.md#createClaimActivity) | **POST** /stakings/activities/claim | Create claim activity
|
|
10
11
|
[**createStakeActivity**](StakingsApi.md#createStakeActivity) | **POST** /stakings/activities/stake | Create stake activity
|
|
@@ -79,6 +80,58 @@ Name | Type | Description | Notes
|
|
|
79
80
|
- **Accept**: application/json
|
|
80
81
|
|
|
81
82
|
|
|
83
|
+
## createBabylonStakingExpansion
|
|
84
|
+
|
|
85
|
+
> Stakings createBabylonStakingExpansion(opts)
|
|
86
|
+
|
|
87
|
+
Expand Babylon BTC staking
|
|
88
|
+
|
|
89
|
+
This operation initiates a Babylon BTC staking expansion request. Before calling this operation, please ensure the following: - The BTC staking position is active. - The finality provider public keys are valid. Each BSN chain has a unique finality provider public key at most. The system first checks whether the provided BTC staking position is active. If active, it creates a new BTC staking position for the Phase-3 expansion. The expansion is processed asynchronously and may take some time to complete. For more information, refer to [Babylon's official doc](https://github.com/babylonlabs-io/babylon/tree/main/docs).
|
|
90
|
+
|
|
91
|
+
### Example
|
|
92
|
+
|
|
93
|
+
```javascript
|
|
94
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
95
|
+
// Initialize the API client
|
|
96
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
97
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
98
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
99
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
100
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
101
|
+
// Call the API
|
|
102
|
+
const apiInstance = new CoboWaas2.StakingsApi();
|
|
103
|
+
const opts = {
|
|
104
|
+
'BabylonCreateStakingExpansion': new CoboWaas2.BabylonCreateStakingExpansion()
|
|
105
|
+
};
|
|
106
|
+
apiInstance.createBabylonStakingExpansion(opts).then((data) => {
|
|
107
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
108
|
+
}, (error) => {
|
|
109
|
+
console.error(error);
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Parameters
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
Name | Type | Description | Notes
|
|
118
|
+
------------- | ------------- | ------------- | -------------
|
|
119
|
+
**BabylonCreateStakingExpansion** | [**BabylonCreateStakingExpansion**](BabylonCreateStakingExpansion.md)| The request body to expand Babylon BTC staking to Phase-3 | [optional]
|
|
120
|
+
|
|
121
|
+
### Return type
|
|
122
|
+
|
|
123
|
+
[**Stakings**](Stakings.md)
|
|
124
|
+
|
|
125
|
+
### Authorization
|
|
126
|
+
|
|
127
|
+
[CoboAuth](../README.md#CoboAuth)
|
|
128
|
+
|
|
129
|
+
### HTTP request headers
|
|
130
|
+
|
|
131
|
+
- **Content-Type**: application/json
|
|
132
|
+
- **Accept**: application/json
|
|
133
|
+
|
|
134
|
+
|
|
82
135
|
## createBabylonStakingRegistration
|
|
83
136
|
|
|
84
137
|
> CreateBabylonStakingRegistration201Response createBabylonStakingRegistration(opts)
|
|
@@ -115,7 +168,7 @@ apiInstance.createBabylonStakingRegistration(opts).then((data) => {
|
|
|
115
168
|
|
|
116
169
|
Name | Type | Description | Notes
|
|
117
170
|
------------- | ------------- | ------------- | -------------
|
|
118
|
-
**CreateBabylonStakingRegistrationRequest** | [**CreateBabylonStakingRegistrationRequest**](CreateBabylonStakingRegistrationRequest.md)| The request body to transit Babylon BTC staking to
|
|
171
|
+
**CreateBabylonStakingRegistrationRequest** | [**CreateBabylonStakingRegistrationRequest**](CreateBabylonStakingRegistrationRequest.md)| The request body to transit Babylon BTC staking to Phase-2 | [optional]
|
|
119
172
|
|
|
120
173
|
### Return type
|
|
121
174
|
|
|
@@ -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. - `ComplianceKytScreenings`: The compliance KYT screenings 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. - `PaymentPayout`: The payment payout 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
|
**token_ids** | **String** | A list of token IDs, separated by comma. |
|
|
9
9
|
**operation_type** | [**SuspendedTokenOperationType**](SuspendedTokenOperationType.md) | |
|
|
10
10
|
|
|
@@ -39,6 +39,8 @@ Name | Type | Description | Notes
|
|
|
39
39
|
|
|
40
40
|
* `PaymentAddressUpdate` (value: `"PaymentAddressUpdate"`)
|
|
41
41
|
|
|
42
|
+
* `PaymentPayout` (value: `"PaymentPayout"`)
|
|
43
|
+
|
|
42
44
|
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
43
45
|
|
|
44
46
|
* `SuspendedToken` (value: `"SuspendedToken"`)
|
package/docs/SwapActivity.md
CHANGED
|
@@ -21,6 +21,6 @@ Name | Type | Description | Notes
|
|
|
21
21
|
**created_timestamp** | **Number** | The time when the swap activity was created, in Unix timestamp format, measured in milliseconds. | [optional]
|
|
22
22
|
**updated_timestamp** | **Number** | The time when the swap activity was last updated, in Unix timestamp format, measured in milliseconds. | [optional]
|
|
23
23
|
**network_fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
24
|
-
**destination_address** | **String** | The address of an MPC Wallet or Web3 Wallet that receives the swapped or bridged assets. | [optional]
|
|
24
|
+
**destination_address** | **String** | The address of an MPC Wallet or Custodial Wallet (Web3 Wallet) that receives the swapped or bridged assets. | [optional]
|
|
25
25
|
|
|
26
26
|
|
|
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
|
|
|
21
21
|
**created_timestamp** | **Number** | The time when the swap activity was created, in Unix timestamp format, measured in milliseconds. | [optional]
|
|
22
22
|
**updated_timestamp** | **Number** | The time when the swap activity was last updated, in Unix timestamp format, measured in milliseconds. | [optional]
|
|
23
23
|
**network_fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
24
|
-
**destination_address** | **String** | The address of an MPC Wallet or Web3 Wallet that receives the swapped or bridged assets. | [optional]
|
|
24
|
+
**destination_address** | **String** | The address of an MPC Wallet or Custodial Wallet (Web3 Wallet) that receives the swapped or bridged assets. | [optional]
|
|
25
25
|
**timeline** | [**[SwapActivityTimeline]**](SwapActivityTimeline.md) | | [optional]
|
|
26
26
|
**approvers** | [**[SwapActivityApprovers]**](SwapActivityApprovers.md) | | [optional]
|
|
27
27
|
**signers** | [**[SwapActivitySigners]**](SwapActivitySigners.md) | | [optional]
|
package/docs/SwapsApi.md
CHANGED
|
@@ -69,7 +69,7 @@ Name | Type | Description | Notes
|
|
|
69
69
|
|
|
70
70
|
Estimate swap fee
|
|
71
71
|
|
|
72
|
-
This operation estimates the network fee of a swap activity. You can use this operation to estimate the network fee before initiating swap activities from MPC Wallets or Web3 Wallets. It requires a valid `wallet_id` and `quote_id`, so you need to [get a swap quote](https://www.cobo.com/developers/v2/api-references/swaps/get-swap-quote) first.
|
|
72
|
+
This operation estimates the network fee of a swap activity. You can use this operation to estimate the network fee before initiating swap activities from MPC Wallets or Custodial Wallets (Web3 Wallets). It requires a valid `wallet_id` and `quote_id`, so you need to [get a swap quote](https://www.cobo.com/developers/v2/api-references/swaps/get-swap-quote) first.
|
|
73
73
|
|
|
74
74
|
### Example
|
|
75
75
|
|
|
@@ -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. - `ComplianceKytScreenings`: The compliance KYT screenings 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. - `PaymentPayout`: The payment payout 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
|
**tss_request_id** | **String** | The TSS request ID. | [optional]
|
|
9
9
|
**source_key_share_holder_group** | [**SourceGroup**](SourceGroup.md) | | [optional]
|
|
10
10
|
**target_key_share_holder_group_id** | **String** | The target key share holder group ID. | [optional]
|
|
@@ -44,6 +44,8 @@ Name | Type | Description | Notes
|
|
|
44
44
|
|
|
45
45
|
* `PaymentAddressUpdate` (value: `"PaymentAddressUpdate"`)
|
|
46
46
|
|
|
47
|
+
* `PaymentPayout` (value: `"PaymentPayout"`)
|
|
48
|
+
|
|
47
49
|
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
48
50
|
|
|
49
51
|
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
@@ -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. - `ComplianceKytScreenings`: The compliance KYT screenings 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. - `PaymentPayout`: The payment payout 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 unique identifier of the token listing request. |
|
|
9
9
|
**chain_id** | **String** | The ID of the blockchain where the token is deployed. |
|
|
10
10
|
**contract_address** | **String** | The token's contract address on the specified blockchain. |
|
|
@@ -48,6 +48,8 @@ Name | Type | Description | Notes
|
|
|
48
48
|
|
|
49
49
|
* `PaymentAddressUpdate` (value: `"PaymentAddressUpdate"`)
|
|
50
50
|
|
|
51
|
+
* `PaymentPayout` (value: `"PaymentPayout"`)
|
|
52
|
+
|
|
51
53
|
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
52
54
|
|
|
53
55
|
* `SuspendedToken` (value: `"SuspendedToken"`)
|