@cobo/cobo-waas2 1.17.0 → 1.19.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 +113 -7
- package/dist/ApiClient.js +1 -1
- package/dist/api/FeeStationApi.js +2 -2
- package/dist/api/OAuthApi.js +12 -12
- package/dist/api/OrganizationsApi.js +79 -0
- package/dist/api/PaymentApi.js +233 -16
- package/dist/api/TransactionsApi.js +2 -94
- package/dist/api/WalletsApi.js +55 -2
- package/dist/index.js +717 -10
- package/dist/model/Account.js +174 -0
- package/dist/model/AcquiringType.js +61 -0
- package/dist/model/AddressTransferDestination.js +2 -2
- package/dist/model/AddressesEventData.js +13 -3
- package/dist/model/ApprovalDetail.js +160 -0
- package/dist/model/ApprovalResult.js +66 -0
- package/dist/model/ApprovalShowInfo.js +140 -0
- package/dist/model/ApprovalTemplate.js +114 -0
- package/dist/model/ApprovalTransactionResult.js +66 -0
- package/dist/model/ApprovalUserDetail.js +196 -0
- package/dist/model/AutoFuelType.js +5 -0
- package/dist/model/BalanceUpdateInfo.js +170 -0
- package/dist/model/BalanceUpdateInfoEventData.js +302 -0
- package/dist/model/BankAccount.js +2 -2
- package/dist/model/ChainsEventData.js +13 -3
- package/dist/model/CreateMerchantRequest.js +13 -0
- package/dist/model/CreatePaymentOrderRequest.js +16 -6
- package/dist/model/CreateRefundRequest.js +9 -11
- package/dist/model/CreateSettlement.js +7 -27
- package/dist/model/CreateSettlementRequestRequest.js +27 -0
- package/dist/model/CryptoAddress.js +7 -7
- package/dist/model/CustodialTransferDestination.js +1 -1
- package/dist/model/CustodialWeb3TransferSource.js +2 -2
- package/dist/model/EstimateContractCallFeeParams.js +2 -2
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/EstimatedEvmEip1559Fee.js +2 -2
- package/dist/model/EstimatedEvmLegacyFee.js +2 -2
- package/dist/model/EstimatedFILFee.js +170 -0
- package/dist/model/EstimatedFILFeeSlow.js +186 -0
- package/dist/model/EstimatedFee.js +69 -13
- package/dist/model/EstimatedFixedFee.js +2 -2
- package/dist/model/EstimatedSOLFee.js +170 -0
- package/dist/model/EstimatedSOLFeeSlow.js +184 -0
- package/dist/model/EstimatedUtxoFee.js +2 -2
- package/dist/model/EvmEip1559FeeBasePrice.js +0 -1
- package/dist/model/EvmEip1559FeeRate.js +2 -2
- package/dist/model/EvmLegacyFeeBasePrice.js +0 -1
- package/dist/model/EvmLegacyFeeRate.js +2 -2
- package/dist/model/ExchangePermissionToken201Response.js +4 -4
- package/dist/model/ExchangePermissionTokenRequest.js +2 -2
- package/dist/model/FILBase.js +88 -0
- package/dist/model/FILPrice.js +113 -0
- package/dist/model/FeeRate.js +1 -1
- package/dist/model/FeeType.js +10 -0
- package/dist/model/FixedFeeRate.js +2 -2
- package/dist/model/GetExchangeRate200Response.js +2 -2
- package/dist/model/GetMaxTransferableValueWithFeeModelRequest.js +156 -0
- package/dist/model/GraphQLError.js +135 -0
- package/dist/model/GraphQLErrorLocationsInner.js +92 -0
- package/dist/model/GraphQLRequest.js +135 -0
- package/dist/model/GraphQLResponse.js +119 -0
- package/dist/model/{ListTransactionApprovalDetails200Response.js → ListTopUpPayers200Response.js} +37 -21
- package/dist/model/ListTopUpPayers200ResponseDataInner.js +189 -0
- package/dist/model/MPCVaultEventData.js +13 -3
- package/dist/model/MaxFeeAmount.js +0 -1
- package/dist/model/MaxTransferableValue.js +2 -2
- package/dist/model/Merchant.js +15 -2
- package/dist/model/MpcTransferSource.js +2 -2
- package/dist/model/Order.js +12 -3
- package/dist/model/PayerAccount.js +189 -0
- package/dist/model/PaymentOrderEventData.js +32 -9
- package/dist/model/PaymentRefundEventData.js +71 -11
- package/dist/model/PaymentSettlementEvent.js +19 -9
- package/dist/model/RefreshPermissionTokenRequest.js +2 -2
- package/dist/model/Refund.js +39 -4
- package/dist/model/RefundStatus.js +5 -0
- package/dist/model/RoleDetail.js +126 -0
- package/dist/model/SOLBase.js +101 -0
- package/dist/model/SOLComputeUnit.js +100 -0
- package/dist/model/Settlement.js +3 -3
- package/dist/model/SettlementDetail.js +15 -6
- package/dist/model/SettlementInfo.js +11 -2
- package/dist/model/SuspendedTokenEventData.js +225 -0
- package/dist/model/SuspendedTokenOperationType.js +61 -0
- package/dist/model/SwapActivity.js +29 -0
- package/dist/model/SwapActivityDetail.js +68 -0
- package/dist/model/SwapActivitySigners.js +110 -0
- package/dist/model/SwapQuote.js +17 -4
- package/dist/model/SwapSingingStatus.js +71 -0
- package/dist/model/TSSRequestWebhookEventData.js +13 -3
- package/dist/model/TokenListingEventData.js +13 -3
- package/dist/model/TokenizationActivityInfo.js +224 -0
- package/dist/model/TokenizationActivityStatus.js +66 -0
- package/dist/model/TokenizationAddressPermission.js +135 -0
- package/dist/model/TokenizationAllowlistActivationParams.js +124 -0
- package/dist/model/TokenizationAllowlistActivationRequest.js +180 -0
- package/dist/model/{TransactionMessageSignBTCEIP191Destination.js → TokenizationAllowlistAddressNote.js} +46 -36
- package/dist/model/TokenizationAppInitiator.js +87 -0
- package/dist/model/TokenizationBlocklistAddressNote.js +132 -0
- package/dist/model/TokenizationBurnEstimateFeeParams.js +187 -0
- package/dist/model/TokenizationBurnTokenParams.js +146 -0
- package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +125 -0
- package/dist/model/TokenizationBurnTokenRequest.js +202 -0
- package/dist/model/TokenizationContractCallEstimateFeeParams.js +167 -0
- package/dist/model/TokenizationContractCallParams.js +107 -0
- package/dist/model/TokenizationContractCallParamsData.js +164 -0
- package/dist/model/TokenizationContractCallRequest.js +182 -0
- package/dist/model/TokenizationContractCallType.js +56 -0
- package/dist/model/TokenizationERC20TokenParams.js +173 -0
- package/dist/model/TokenizationEstimateFeeRequest.js +113 -0
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +439 -0
- package/dist/model/TokenizationEvmContractCallParams.js +133 -0
- package/dist/model/TokenizationHoldingInfo.js +166 -0
- package/dist/model/TokenizationIssueEstimateFeeParams.js +176 -0
- package/dist/model/TokenizationIssueTokenParams.js +146 -0
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +183 -0
- package/dist/model/TokenizationIssuedTokenRequest.js +206 -0
- package/dist/model/TokenizationListActivitiesResponse.js +146 -0
- package/dist/model/TokenizationListEnabledChainsResponse.js +128 -0
- package/dist/model/TokenizationListHoldingsResponse.js +146 -0
- package/dist/model/TokenizationListTokenInfoResponse.js +146 -0
- package/dist/model/TokenizationMintEstimateFeeParams.js +187 -0
- package/dist/model/TokenizationMintTokenParams.js +146 -0
- package/dist/model/TokenizationMintTokenParamsMintsInner.js +125 -0
- package/dist/model/TokenizationMintTokenRequest.js +202 -0
- package/dist/model/TokenizationMpcOperationSource.js +136 -0
- package/dist/model/TokenizationOperationResponse.js +110 -0
- package/dist/model/TokenizationOperationSourceType.js +61 -0
- package/dist/model/TokenizationOperationType.js +96 -0
- package/dist/model/TokenizationPauseEstimateFeeParams.js +149 -0
- package/dist/model/TokenizationPauseTokenParams.js +113 -0
- package/dist/model/TokenizationPauseTokenRequest.js +164 -0
- package/dist/model/TokenizationStatus.js +71 -0
- package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +165 -0
- package/dist/model/TokenizationTokenDetailInfo.js +309 -0
- package/dist/model/TokenizationTokenInfo.js +223 -0
- package/dist/model/TokenizationTokenOperationSource.js +192 -0
- package/dist/model/TokenizationTokenPermission.js +147 -0
- package/dist/model/TokenizationTokenPermissionParams.js +166 -0
- package/dist/model/TokenizationTokenPermissionType.js +86 -0
- package/dist/model/TokenizationTokenPermissionsResponse.js +139 -0
- package/dist/model/TokenizationTokenStandard.js +56 -0
- package/dist/model/TokenizationUnpauseEstimateFeeParams.js +149 -0
- package/dist/model/TokenizationUnpauseTokenParams.js +113 -0
- package/dist/model/TokenizationUnpauseTokenRequest.js +164 -0
- package/dist/model/TokenizationUpdateAddressAction.js +61 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +202 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesParams.js +157 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +123 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +217 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +202 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesParams.js +157 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +123 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +217 -0
- package/dist/model/TokenizationWeb3OperationSource.js +136 -0
- package/dist/model/TokensEventData.js +13 -3
- package/dist/model/TopUpAddress.js +230 -0
- package/dist/model/TransactionCoboCategory.js +20 -0
- package/dist/model/TransactionDestination.js +10 -38
- package/dist/model/TransactionEvmCalldataInfo.js +1 -1
- package/dist/model/TransactionEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionEvmLegacyFee.js +2 -2
- package/dist/model/TransactionFILFee.js +229 -0
- package/dist/model/TransactionFee.js +109 -11
- package/dist/model/TransactionFixedFee.js +2 -2
- package/dist/model/TransactionRbfSource.js +1 -1
- package/dist/model/TransactionRequestEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionRequestEvmLegacyFee.js +2 -2
- package/dist/model/TransactionRequestFILFee.js +186 -0
- package/dist/model/TransactionRequestFee.js +90 -10
- package/dist/model/TransactionRequestFixedFee.js +2 -2
- package/dist/model/TransactionRequestSOLFee.js +168 -0
- package/dist/model/TransactionRequestUtxoFee.js +2 -2
- package/dist/model/TransactionSOLFee.js +229 -0
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionTransferToAddressDestination.js +2 -2
- package/dist/model/TransactionTransferToWalletDestination.js +1 -1
- package/dist/model/TransactionUtxoFee.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +13 -3
- package/dist/model/TransferDestination.js +2 -2
- package/dist/model/UpdateMerchantByIdRequest.js +13 -0
- package/dist/model/UpdateRefundByIdRequest.js +110 -0
- package/dist/model/UpdateTopUpAddress.js +141 -0
- package/dist/model/UtxoFeeBasePrice.js +0 -1
- package/dist/model/UtxoFeeRate.js +2 -2
- package/dist/model/WalletInfoEventData.js +13 -3
- package/dist/model/WebhookEvent.js +2 -2
- package/dist/model/WebhookEventData.js +123 -13
- package/dist/model/WebhookEventDataType.js +12 -2
- package/dist/model/WebhookEventLog.js +2 -2
- package/dist/model/WebhookEventType.js +35 -0
- package/docs/Account.md +14 -0
- package/docs/AcquiringType.md +12 -0
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/AddressesEventData.md +5 -1
- package/docs/ApprovalDetail.md +14 -0
- package/docs/ApprovalResult.md +14 -0
- package/docs/ApprovalShowInfo.md +13 -0
- package/docs/ApprovalTemplate.md +11 -0
- package/docs/ApprovalTransactionResult.md +14 -0
- package/docs/ApprovalUserDetail.md +18 -0
- package/docs/AutoFuelType.md +2 -0
- package/docs/BalanceUpdateInfo.md +13 -0
- package/docs/BalanceUpdateInfoEventData.md +49 -0
- package/docs/BankAccount.md +2 -2
- package/docs/ChainsEventData.md +5 -1
- package/docs/CreateMerchantRequest.md +1 -0
- package/docs/CreatePaymentOrderRequest.md +5 -4
- package/docs/CreateRefundRequest.md +5 -5
- package/docs/CreateSettlement.md +7 -9
- package/docs/CreateSettlementRequestRequest.md +3 -0
- package/docs/CryptoAddress.md +5 -5
- package/docs/CustodialWeb3TransferSource.md +1 -1
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimatedEvmEip1559Fee.md +1 -1
- package/docs/EstimatedEvmLegacyFee.md +1 -1
- package/docs/EstimatedFILFee.md +13 -0
- package/docs/EstimatedFILFeeSlow.md +12 -0
- package/docs/EstimatedFee.md +4 -4
- package/docs/EstimatedFixedFee.md +1 -1
- package/docs/EstimatedSOLFee.md +13 -0
- package/docs/EstimatedSOLFeeSlow.md +12 -0
- package/docs/EstimatedUtxoFee.md +1 -1
- package/docs/EvmEip1559FeeRate.md +1 -1
- package/docs/EvmLegacyFeeRate.md +1 -1
- package/docs/ExchangePermissionToken201Response.md +4 -4
- package/docs/ExchangePermissionTokenRequest.md +1 -1
- package/docs/FILBase.md +9 -0
- package/docs/FILPrice.md +11 -0
- package/docs/FeeRate.md +1 -1
- package/docs/FeeStationApi.md +1 -1
- package/docs/FeeType.md +4 -0
- package/docs/FixedFeeRate.md +1 -1
- package/docs/GetExchangeRate200Response.md +1 -1
- package/docs/GetMaxTransferableValueWithFeeModelRequest.md +12 -0
- package/docs/GraphQLError.md +11 -0
- package/docs/GraphQLErrorLocationsInner.md +10 -0
- package/docs/GraphQLRequest.md +11 -0
- package/docs/GraphQLResponse.md +10 -0
- package/docs/ListTopUpPayers200Response.md +10 -0
- package/docs/ListTopUpPayers200ResponseDataInner.md +14 -0
- package/docs/MPCVaultEventData.md +5 -1
- package/docs/MaxTransferableValue.md +1 -1
- package/docs/Merchant.md +3 -2
- package/docs/MpcTransferSource.md +1 -1
- package/docs/OAuthApi.md +8 -8
- package/docs/Order.md +4 -3
- package/docs/OrganizationsApi.md +55 -0
- package/docs/PayerAccount.md +14 -0
- package/docs/PaymentApi.md +230 -6
- package/docs/PaymentOrderEventData.md +9 -4
- package/docs/PaymentRefundEventData.md +12 -5
- package/docs/PaymentSettlementEvent.md +8 -4
- package/docs/RefreshPermissionTokenRequest.md +1 -1
- package/docs/Refund.md +7 -4
- package/docs/RefundStatus.md +2 -0
- package/docs/RoleDetail.md +11 -0
- package/docs/SOLBase.md +10 -0
- package/docs/SOLComputeUnit.md +10 -0
- package/docs/Settlement.md +3 -3
- package/docs/SettlementDetail.md +7 -6
- package/docs/SettlementInfo.md +3 -2
- package/docs/SuspendedTokenEventData.md +46 -0
- package/docs/SuspendedTokenOperationType.md +12 -0
- package/docs/SwapActivity.md +2 -0
- package/docs/SwapActivityDetail.md +3 -0
- package/docs/SwapActivitySigners.md +11 -0
- package/docs/SwapQuote.md +3 -2
- package/docs/SwapSingingStatus.md +16 -0
- package/docs/TSSRequestWebhookEventData.md +5 -1
- package/docs/TokenListingEventData.md +5 -1
- package/docs/TokenizationActivityInfo.md +18 -0
- package/docs/TokenizationActivityStatus.md +14 -0
- package/docs/TokenizationAddressPermission.md +11 -0
- package/docs/TokenizationAllowlistActivationParams.md +10 -0
- package/docs/TokenizationAllowlistActivationRequest.md +12 -0
- package/docs/TokenizationAllowlistAddressNote.md +11 -0
- package/docs/TokenizationAppInitiator.md +9 -0
- package/docs/TokenizationBlocklistAddressNote.md +11 -0
- package/docs/TokenizationBurnEstimateFeeParams.md +12 -0
- package/docs/TokenizationBurnTokenParams.md +10 -0
- package/docs/TokenizationBurnTokenParamsBurnsInner.md +10 -0
- package/docs/TokenizationBurnTokenRequest.md +12 -0
- package/docs/TokenizationContractCallEstimateFeeParams.md +12 -0
- package/docs/TokenizationContractCallParams.md +10 -0
- package/docs/TokenizationContractCallParamsData.md +11 -0
- package/docs/TokenizationContractCallRequest.md +12 -0
- package/docs/TokenizationContractCallType.md +10 -0
- package/docs/TokenizationERC20TokenParams.md +14 -0
- package/docs/TokenizationEstimateFeeRequest.md +9 -0
- package/docs/TokenizationEstimateFeeRequestOperationParams.md +19 -0
- package/docs/TokenizationEvmContractCallParams.md +11 -0
- package/docs/TokenizationHoldingInfo.md +13 -0
- package/docs/TokenizationIssueEstimateFeeParams.md +12 -0
- package/docs/TokenizationIssueTokenParams.md +11 -0
- package/docs/TokenizationIssueTokenParamsTokenParams.md +14 -0
- package/docs/TokenizationIssuedTokenRequest.md +13 -0
- package/docs/TokenizationListActivitiesResponse.md +10 -0
- package/docs/TokenizationListEnabledChainsResponse.md +10 -0
- package/docs/TokenizationListHoldingsResponse.md +10 -0
- package/docs/TokenizationListTokenInfoResponse.md +10 -0
- package/docs/TokenizationMintEstimateFeeParams.md +12 -0
- package/docs/TokenizationMintTokenParams.md +10 -0
- package/docs/TokenizationMintTokenParamsMintsInner.md +10 -0
- package/docs/TokenizationMintTokenRequest.md +12 -0
- package/docs/TokenizationMpcOperationSource.md +11 -0
- package/docs/TokenizationOperationResponse.md +9 -0
- package/docs/TokenizationOperationSourceType.md +12 -0
- package/docs/TokenizationOperationType.md +26 -0
- package/docs/TokenizationPauseEstimateFeeParams.md +11 -0
- package/docs/TokenizationPauseTokenParams.md +9 -0
- package/docs/TokenizationPauseTokenRequest.md +11 -0
- package/docs/TokenizationStatus.md +16 -0
- package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +12 -0
- package/docs/TokenizationTokenDetailInfo.md +19 -0
- package/docs/TokenizationTokenInfo.md +18 -0
- package/docs/TokenizationTokenOperationSource.md +11 -0
- package/docs/TokenizationTokenPermission.md +12 -0
- package/docs/TokenizationTokenPermissionParams.md +15 -0
- package/docs/TokenizationTokenPermissionType.md +22 -0
- package/docs/TokenizationTokenPermissionsResponse.md +10 -0
- package/docs/TokenizationTokenStandard.md +10 -0
- package/docs/TokenizationUnpauseEstimateFeeParams.md +11 -0
- package/docs/TokenizationUnpauseTokenParams.md +9 -0
- package/docs/TokenizationUnpauseTokenRequest.md +11 -0
- package/docs/TokenizationUpdateAddressAction.md +12 -0
- package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +13 -0
- package/docs/TokenizationUpdateAllowlistAddressesParams.md +11 -0
- package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +10 -0
- package/docs/TokenizationUpdateAllowlistAddressesRequest.md +13 -0
- package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +13 -0
- package/docs/TokenizationUpdateBlocklistAddressesParams.md +11 -0
- package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +10 -0
- package/docs/TokenizationUpdateBlocklistAddressesRequest.md +13 -0
- package/docs/TokenizationWeb3OperationSource.md +11 -0
- package/docs/TokensEventData.md +5 -1
- package/docs/TopUpAddress.md +18 -0
- package/docs/TransactionCoboCategory.md +8 -0
- package/docs/TransactionDestination.md +2 -2
- package/docs/TransactionEvmCalldataInfo.md +1 -1
- package/docs/TransactionEvmEip1559Fee.md +2 -2
- package/docs/TransactionEvmLegacyFee.md +2 -2
- package/docs/TransactionFILFee.md +16 -0
- package/docs/TransactionFee.md +10 -3
- package/docs/TransactionFixedFee.md +2 -2
- package/docs/TransactionRbfSource.md +1 -1
- package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
- package/docs/TransactionRequestEvmLegacyFee.md +1 -1
- package/docs/TransactionRequestFILFee.md +13 -0
- package/docs/TransactionRequestFee.md +6 -2
- package/docs/TransactionRequestFixedFee.md +1 -1
- package/docs/TransactionRequestSOLFee.md +12 -0
- package/docs/TransactionRequestUtxoFee.md +1 -1
- package/docs/TransactionSOLFee.md +16 -0
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionTransferToAddressDestination.md +2 -2
- package/docs/TransactionTransferToWalletDestination.md +1 -1
- package/docs/TransactionUtxoFee.md +2 -2
- package/docs/TransactionWebhookEventData.md +5 -1
- package/docs/TransactionsApi.md +1 -107
- package/docs/TransferDestination.md +2 -2
- package/docs/UpdateMerchantByIdRequest.md +1 -0
- package/docs/UpdateRefundByIdRequest.md +9 -0
- package/docs/UpdateTopUpAddress.md +11 -0
- package/docs/UtxoFeeRate.md +1 -1
- package/docs/WalletInfoEventData.md +5 -1
- package/docs/WalletsApi.md +58 -1
- package/docs/WebhookEvent.md +1 -1
- package/docs/WebhookEventData.md +18 -5
- package/docs/WebhookEventDataType.md +5 -1
- package/docs/WebhookEventLog.md +1 -1
- package/docs/WebhookEventType.md +14 -0
- package/package.json +1 -1
- package/docs/ListTransactionApprovalDetails200Response.md +0 -9
- package/docs/TransactionMessageSignBTCEIP191Destination.md +0 -10
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**token_id** | **String** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). | [optional]
|
|
8
|
-
**max_transferable_value** | **String** | The maximum
|
|
8
|
+
**max_transferable_value** | **String** | The maximum transferable value from the wallet or the specified address. | [optional]
|
|
9
9
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
10
10
|
|
|
11
11
|
|
package/docs/Merchant.md
CHANGED
|
@@ -7,7 +7,8 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**merchant_id** | **String** | The merchant ID. |
|
|
8
8
|
**name** | **String** | The merchant name. |
|
|
9
9
|
**wallet_id** | **String** | The ID of the linked wallet. |
|
|
10
|
-
**
|
|
11
|
-
**
|
|
10
|
+
**developer_fee_rate** | **String** | The developer fee rate applied to this merchant. Expressed as a string in decimal format where \"0.1\" represents 10%. This fee is deducted from the payment amount and only applies to top-up transactions. | [optional]
|
|
11
|
+
**created_timestamp** | **Number** | The creation time of the merchant, represented as a UNIX timestamp in seconds. | [optional]
|
|
12
|
+
**updated_timestamp** | **Number** | The last update time of the merchant, represented as a UNIX timestamp in seconds. | [optional]
|
|
12
13
|
|
|
13
14
|
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**source_type** | [**WalletSubtype**](WalletSubtype.md) | |
|
|
8
8
|
**wallet_id** | **String** | The wallet ID. |
|
|
9
|
-
**address** | **String** |
|
|
9
|
+
**address** | **String** | Indicates the wallet address to be used as the source of funds. - For UTXO-based chains: both `address` and `included_utxos` are optional. If both `address` and `included_utxos` are provided, the UTXOs must belong to the specified address. If neither `address` nor `included_utxos` is provided, the system will select UTXOs from the wallet associated with `wallet_id`. For RBF transactions, please note the following: - If the original transaction did not specify `included_utxos`, the RBF transaction may omit `address`, `included_utxos`, or both. - If the original transaction specified `included_utxos`, the RBF transaction must specify either `address` or `included_utxos`, or both. - The `address` or `included_utxos` in the RBF transaction may differ from those in the original transaction. - For account-based chains: You need to provide `address` otherwise the token transfer will fail. However, when estimating fees for a transfer, `address` is not required. | [optional]
|
|
10
10
|
**included_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
|
|
11
11
|
**excluded_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
|
|
12
12
|
**mpc_used_key_share_holder_group** | [**MpcSigningGroup**](MpcSigningGroup.md) | | [optional]
|
package/docs/OAuthApi.md
CHANGED
|
@@ -4,9 +4,9 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
-
[**exchangePermissionToken**](OAuthApi.md#exchangePermissionToken) | **POST** /oauth/permission_token/exchange |
|
|
7
|
+
[**exchangePermissionToken**](OAuthApi.md#exchangePermissionToken) | **POST** /oauth/permission_token/exchange | Get Access Token
|
|
8
8
|
[**getToken**](OAuthApi.md#getToken) | **GET** /oauth/token | Get Org Access Token
|
|
9
|
-
[**refreshPermissionToken**](OAuthApi.md#refreshPermissionToken) | **POST** /oauth/permission_token/refresh | Refresh
|
|
9
|
+
[**refreshPermissionToken**](OAuthApi.md#refreshPermissionToken) | **POST** /oauth/permission_token/refresh | Refresh Access Token
|
|
10
10
|
[**refreshToken**](OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh Org Access Token
|
|
11
11
|
|
|
12
12
|
|
|
@@ -15,9 +15,9 @@ Method | HTTP request | Description
|
|
|
15
15
|
|
|
16
16
|
> ExchangePermissionToken201Response exchangePermissionToken(ExchangePermissionTokenRequest)
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Get Access Token
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
This operation acquires an Access Token and a Refresh Token for the Checkout SDK. For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
|
|
21
21
|
|
|
22
22
|
### Example
|
|
23
23
|
|
|
@@ -45,7 +45,7 @@ apiInstance.exchangePermissionToken(ExchangePermissionTokenRequest).then((data)
|
|
|
45
45
|
|
|
46
46
|
Name | Type | Description | Notes
|
|
47
47
|
------------- | ------------- | ------------- | -------------
|
|
48
|
-
**ExchangePermissionTokenRequest** | [**ExchangePermissionTokenRequest**](ExchangePermissionTokenRequest.md)| The request body
|
|
48
|
+
**ExchangePermissionTokenRequest** | [**ExchangePermissionTokenRequest**](ExchangePermissionTokenRequest.md)| The request body to acquire an Access Token. |
|
|
49
49
|
|
|
50
50
|
### Return type
|
|
51
51
|
|
|
@@ -119,9 +119,9 @@ Name | Type | Description | Notes
|
|
|
119
119
|
|
|
120
120
|
> ExchangePermissionToken201Response refreshPermissionToken(RefreshPermissionTokenRequest)
|
|
121
121
|
|
|
122
|
-
Refresh
|
|
122
|
+
Refresh Access Token
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
This operation refreshes the Access Token and Refresh Token for the Checkout SDK. For security purposes, an Access Token expires after a certain period. Once it expires, you need to call this operation to get a new Access Token and Refresh Token.
|
|
125
125
|
|
|
126
126
|
### Example
|
|
127
127
|
|
|
@@ -149,7 +149,7 @@ apiInstance.refreshPermissionToken(RefreshPermissionTokenRequest).then((data) =>
|
|
|
149
149
|
|
|
150
150
|
Name | Type | Description | Notes
|
|
151
151
|
------------- | ------------- | ------------- | -------------
|
|
152
|
-
**RefreshPermissionTokenRequest** | [**RefreshPermissionTokenRequest**](RefreshPermissionTokenRequest.md)| The request body
|
|
152
|
+
**RefreshPermissionTokenRequest** | [**RefreshPermissionTokenRequest**](RefreshPermissionTokenRequest.md)| The request body to refresh the Access Token and the Refresh Token. |
|
|
153
153
|
|
|
154
154
|
### Return type
|
|
155
155
|
|
package/docs/Order.md
CHANGED
|
@@ -19,8 +19,9 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**psp_order_code** | **String** | A unique reference code assigned by the developer to identify this order in their system. |
|
|
20
20
|
**status** | [**OrderStatus**](OrderStatus.md) | |
|
|
21
21
|
**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). |
|
|
22
|
-
**created_timestamp** | **Number** | The
|
|
23
|
-
**updated_timestamp** | **Number** | The
|
|
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
|
|
22
|
+
**created_timestamp** | **Number** | The creation time of the order, represented as a UNIX timestamp in seconds. | [optional]
|
|
23
|
+
**updated_timestamp** | **Number** | The last update time of the order, represented as a UNIX timestamp in seconds. | [optional]
|
|
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
|
+
**settlement_status** | [**SettleStatus**](SettleStatus.md) | | [optional]
|
|
25
26
|
|
|
26
27
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# CoboWaas2.OrganizationsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.dev.cobo.com/v2*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**getOrgInfo**](OrganizationsApi.md#getOrgInfo) | **GET** /organizations/info | Get organization information
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## getOrgInfo
|
|
12
|
+
|
|
13
|
+
> OrgInfo getOrgInfo()
|
|
14
|
+
|
|
15
|
+
Get organization information
|
|
16
|
+
|
|
17
|
+
This operation retrieves the detailed information about the organization associated with the current API key.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```javascript
|
|
22
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
23
|
+
// Initialize the API client
|
|
24
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
25
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
26
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
27
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
28
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
29
|
+
// Call the API
|
|
30
|
+
const apiInstance = new CoboWaas2.OrganizationsApi();
|
|
31
|
+
apiInstance.getOrgInfo().then((data) => {
|
|
32
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
33
|
+
}, (error) => {
|
|
34
|
+
console.error(error);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
|
|
41
|
+
This endpoint does not need any parameter.
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
[**OrgInfo**](OrgInfo.md)
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[CoboAuth](../README.md#CoboAuth)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: Not defined
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.PayerAccount
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**merchant_id** | **String** | The merchant ID. |
|
|
8
|
+
**payer_id** | **String** | A unique identifier assigned by Cobo to track and identify individual payers. |
|
|
9
|
+
**developer_fee_rate** | **String** | The developer fee rate applied to the top-up transactions made by the payer. Expressed as a decimal string where \"0.1\" represents 10%. |
|
|
10
|
+
**created_timestamp** | **Number** | The creation time of the payer, represented as a UNIX timestamp in seconds. | [optional]
|
|
11
|
+
**updated_timestamp** | **Number** | The last update time of the payer, represented as a UNIX timestamp in seconds. | [optional]
|
|
12
|
+
**accounts** | [**[Account]**](Account.md) | An array of accounts associated with this payer. | [optional]
|
|
13
|
+
|
|
14
|
+
|
package/docs/PaymentApi.md
CHANGED
|
@@ -4,6 +4,7 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
+
[**cancelRefundById**](PaymentApi.md#cancelRefundById) | **PUT** /payments/refunds/{refund_id}/cancel | Cancel refund order
|
|
7
8
|
[**createMerchant**](PaymentApi.md#createMerchant) | **POST** /payments/merchants | Create merchant
|
|
8
9
|
[**createPaymentOrder**](PaymentApi.md#createPaymentOrder) | **POST** /payments/orders | Create pay-in order
|
|
9
10
|
[**createRefund**](PaymentApi.md#createRefund) | **POST** /payments/refunds | Create refund order
|
|
@@ -14,17 +15,70 @@ Method | HTTP request | Description
|
|
|
14
15
|
[**getRefunds**](PaymentApi.md#getRefunds) | **GET** /payments/refunds | List all refund orders
|
|
15
16
|
[**getSettlementById**](PaymentApi.md#getSettlementById) | **GET** /payments/settlement_requests/{settlement_request_id} | Get settlement request information
|
|
16
17
|
[**getSettlementInfoByIds**](PaymentApi.md#getSettlementInfoByIds) | **GET** /payments/settlement_info | Get withdrawable balances
|
|
18
|
+
[**getTopUpAddress**](PaymentApi.md#getTopUpAddress) | **GET** /payments/topup/address | Get top-up address
|
|
17
19
|
[**listBankAccounts**](PaymentApi.md#listBankAccounts) | **GET** /payments/bank_accounts | List all bank accounts
|
|
18
20
|
[**listCryptoAddresses**](PaymentApi.md#listCryptoAddresses) | **GET** /payments/crypto_addresses | List crypto addresses
|
|
19
21
|
[**listMerchants**](PaymentApi.md#listMerchants) | **GET** /payments/merchants | List all merchants
|
|
20
22
|
[**listPaymentOrders**](PaymentApi.md#listPaymentOrders) | **GET** /payments/orders | List all pay-in orders
|
|
21
23
|
[**listPaymentSupportedTokens**](PaymentApi.md#listPaymentSupportedTokens) | **GET** /payments/supported_tokens | List all supported tokens
|
|
22
24
|
[**listSettlementRequests**](PaymentApi.md#listSettlementRequests) | **GET** /payments/settlement_requests | List all settlement requests
|
|
25
|
+
[**listTopUpPayers**](PaymentApi.md#listTopUpPayers) | **GET** /payments/topup/payers | List payers
|
|
23
26
|
[**updateMerchantById**](PaymentApi.md#updateMerchantById) | **PUT** /payments/merchants/{merchant_id} | Update merchant
|
|
24
27
|
[**updatePaymentOrder**](PaymentApi.md#updatePaymentOrder) | **PUT** /payments/orders/{order_id} | Update pay-in order
|
|
28
|
+
[**updateRefundById**](PaymentApi.md#updateRefundById) | **PUT** /payments/refunds/{refund_id} | Update refund order information
|
|
25
29
|
|
|
26
30
|
|
|
27
31
|
|
|
32
|
+
## cancelRefundById
|
|
33
|
+
|
|
34
|
+
> Refund cancelRefundById(refund_id)
|
|
35
|
+
|
|
36
|
+
Cancel refund order
|
|
37
|
+
|
|
38
|
+
This operation cancels a specified refund order.
|
|
39
|
+
|
|
40
|
+
### Example
|
|
41
|
+
|
|
42
|
+
```javascript
|
|
43
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
44
|
+
// Initialize the API client
|
|
45
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
46
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
47
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
48
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
49
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
50
|
+
// Call the API
|
|
51
|
+
const apiInstance = new CoboWaas2.PaymentApi();
|
|
52
|
+
const refund_id = "R20250304-M1001-1001";
|
|
53
|
+
apiInstance.cancelRefundById(refund_id).then((data) => {
|
|
54
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
55
|
+
}, (error) => {
|
|
56
|
+
console.error(error);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Parameters
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
Name | Type | Description | Notes
|
|
65
|
+
------------- | ------------- | ------------- | -------------
|
|
66
|
+
**refund_id** | **String**| The refund order ID. |
|
|
67
|
+
|
|
68
|
+
### Return type
|
|
69
|
+
|
|
70
|
+
[**Refund**](Refund.md)
|
|
71
|
+
|
|
72
|
+
### Authorization
|
|
73
|
+
|
|
74
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
75
|
+
|
|
76
|
+
### HTTP request headers
|
|
77
|
+
|
|
78
|
+
- **Content-Type**: Not defined
|
|
79
|
+
- **Accept**: application/json
|
|
80
|
+
|
|
81
|
+
|
|
28
82
|
## createMerchant
|
|
29
83
|
|
|
30
84
|
> Merchant createMerchant(opts)
|
|
@@ -187,7 +241,7 @@ Name | Type | Description | Notes
|
|
|
187
241
|
|
|
188
242
|
Create settlement request
|
|
189
243
|
|
|
190
|
-
This operation creates a settlement request to withdraw available balances.
|
|
244
|
+
This operation creates a settlement request to withdraw available balances.
|
|
191
245
|
|
|
192
246
|
### Example
|
|
193
247
|
|
|
@@ -268,7 +322,7 @@ apiInstance.getExchangeRate(token_id, currency).then((data) => {
|
|
|
268
322
|
|
|
269
323
|
Name | Type | Description | Notes
|
|
270
324
|
------------- | ------------- | ------------- | -------------
|
|
271
|
-
**token_id** | **String**| The token ID, which
|
|
325
|
+
**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}`. Supported values include: - 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` |
|
|
272
326
|
**currency** | **String**| The fiat currency. Currently, only `USD` is supported. | [default to 'USD']
|
|
273
327
|
|
|
274
328
|
### Return type
|
|
@@ -517,7 +571,8 @@ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
|
517
571
|
const apiInstance = new CoboWaas2.PaymentApi();
|
|
518
572
|
const opts = {
|
|
519
573
|
'merchant_ids': "M1001,M1002,M1003",
|
|
520
|
-
'currency': "USD"
|
|
574
|
+
'currency': "USD",
|
|
575
|
+
'acquiring_type': new CoboWaas2.AcquiringType()
|
|
521
576
|
};
|
|
522
577
|
apiInstance.getSettlementInfoByIds(opts).then((data) => {
|
|
523
578
|
console.log('API called successfully. Returned data: ' + data);
|
|
@@ -534,6 +589,7 @@ Name | Type | Description | Notes
|
|
|
534
589
|
------------- | ------------- | ------------- | -------------
|
|
535
590
|
**merchant_ids** | **String**| A list of merchant IDs to query. | [optional]
|
|
536
591
|
**currency** | **String**| The currency for the operation. Currently, only `USD` is supported. | [optional] [default to 'USD']
|
|
592
|
+
**acquiring_type** | [**AcquiringType**](.md)| | [optional]
|
|
537
593
|
|
|
538
594
|
### Return type
|
|
539
595
|
|
|
@@ -549,6 +605,60 @@ Name | Type | Description | Notes
|
|
|
549
605
|
- **Accept**: application/json
|
|
550
606
|
|
|
551
607
|
|
|
608
|
+
## getTopUpAddress
|
|
609
|
+
|
|
610
|
+
> TopUpAddress getTopUpAddress(merchant_id, token_id, custom_payer_id)
|
|
611
|
+
|
|
612
|
+
Get top-up address
|
|
613
|
+
|
|
614
|
+
This operation retrieves the information of the dedicated top-up address assigned to a specific payer under a merchant on a specified chain.
|
|
615
|
+
|
|
616
|
+
### Example
|
|
617
|
+
|
|
618
|
+
```javascript
|
|
619
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
620
|
+
// Initialize the API client
|
|
621
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
622
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
623
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
624
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
625
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
626
|
+
// Call the API
|
|
627
|
+
const apiInstance = new CoboWaas2.PaymentApi();
|
|
628
|
+
const merchant_id = "M1001";
|
|
629
|
+
const token_id = "ETH_USDT";
|
|
630
|
+
const custom_payer_id = "payer_0001";
|
|
631
|
+
apiInstance.getTopUpAddress(merchant_id, token_id, custom_payer_id).then((data) => {
|
|
632
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
633
|
+
}, (error) => {
|
|
634
|
+
console.error(error);
|
|
635
|
+
});
|
|
636
|
+
|
|
637
|
+
```
|
|
638
|
+
|
|
639
|
+
### Parameters
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
Name | Type | Description | Notes
|
|
643
|
+
------------- | ------------- | ------------- | -------------
|
|
644
|
+
**merchant_id** | **String**| The merchant ID. |
|
|
645
|
+
**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}`. Supported values include: - 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` |
|
|
646
|
+
**custom_payer_id** | **String**| A unique identifier assigned by the developer to track and identify individual payers in their system. |
|
|
647
|
+
|
|
648
|
+
### Return type
|
|
649
|
+
|
|
650
|
+
[**TopUpAddress**](TopUpAddress.md)
|
|
651
|
+
|
|
652
|
+
### Authorization
|
|
653
|
+
|
|
654
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
655
|
+
|
|
656
|
+
### HTTP request headers
|
|
657
|
+
|
|
658
|
+
- **Content-Type**: Not defined
|
|
659
|
+
- **Accept**: application/json
|
|
660
|
+
|
|
661
|
+
|
|
552
662
|
## listBankAccounts
|
|
553
663
|
|
|
554
664
|
> [BankAccount] listBankAccounts()
|
|
@@ -601,7 +711,7 @@ This endpoint does not need any parameter.
|
|
|
601
711
|
|
|
602
712
|
List crypto addresses
|
|
603
713
|
|
|
604
|
-
|
|
714
|
+
This operation retrieves a list of crypto addresses registered for crypto withdrawal. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new crypto address.
|
|
605
715
|
|
|
606
716
|
### Example
|
|
607
717
|
|
|
@@ -631,7 +741,7 @@ apiInstance.listCryptoAddresses(opts).then((data) => {
|
|
|
631
741
|
|
|
632
742
|
Name | Type | Description | Notes
|
|
633
743
|
------------- | ------------- | ------------- | -------------
|
|
634
|
-
**token_id** | **String**| The token ID, which
|
|
744
|
+
**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}`. Supported values include: - 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` | [optional]
|
|
635
745
|
|
|
636
746
|
### Return type
|
|
637
747
|
|
|
@@ -751,7 +861,7 @@ Name | Type | Description | Notes
|
|
|
751
861
|
**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]
|
|
752
862
|
**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]
|
|
753
863
|
**merchant_id** | **String**| The merchant ID. | [optional]
|
|
754
|
-
**psp_order_id** | **String**|
|
|
864
|
+
**psp_order_id** | **String**| A unique reference code assigned by the developer to identify this order in their system. | [optional]
|
|
755
865
|
|
|
756
866
|
### Return type
|
|
757
867
|
|
|
@@ -871,6 +981,66 @@ Name | Type | Description | Notes
|
|
|
871
981
|
- **Accept**: application/json
|
|
872
982
|
|
|
873
983
|
|
|
984
|
+
## listTopUpPayers
|
|
985
|
+
|
|
986
|
+
> ListTopUpPayers200Response listTopUpPayers(merchant_id, opts)
|
|
987
|
+
|
|
988
|
+
List payers
|
|
989
|
+
|
|
990
|
+
This operation retrieves the information of all payers under a merchant. You can filter the result by the payer ID.
|
|
991
|
+
|
|
992
|
+
### Example
|
|
993
|
+
|
|
994
|
+
```javascript
|
|
995
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
996
|
+
// Initialize the API client
|
|
997
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
998
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
999
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
1000
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
1001
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
1002
|
+
// Call the API
|
|
1003
|
+
const apiInstance = new CoboWaas2.PaymentApi();
|
|
1004
|
+
const merchant_id = "M1001";
|
|
1005
|
+
const opts = {
|
|
1006
|
+
'limit': 10,
|
|
1007
|
+
'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
|
|
1008
|
+
'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk",
|
|
1009
|
+
'payer_id': "P20250619T0310056d7aa"
|
|
1010
|
+
};
|
|
1011
|
+
apiInstance.listTopUpPayers(merchant_id, opts).then((data) => {
|
|
1012
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
1013
|
+
}, (error) => {
|
|
1014
|
+
console.error(error);
|
|
1015
|
+
});
|
|
1016
|
+
|
|
1017
|
+
```
|
|
1018
|
+
|
|
1019
|
+
### Parameters
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
Name | Type | Description | Notes
|
|
1023
|
+
------------- | ------------- | ------------- | -------------
|
|
1024
|
+
**merchant_id** | **String**| The merchant ID. |
|
|
1025
|
+
**limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
|
|
1026
|
+
**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]
|
|
1027
|
+
**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]
|
|
1028
|
+
**payer_id** | **String**| A unique identifier assigned by Cobo to track and identify individual payers. | [optional]
|
|
1029
|
+
|
|
1030
|
+
### Return type
|
|
1031
|
+
|
|
1032
|
+
[**ListTopUpPayers200Response**](ListTopUpPayers200Response.md)
|
|
1033
|
+
|
|
1034
|
+
### Authorization
|
|
1035
|
+
|
|
1036
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
1037
|
+
|
|
1038
|
+
### HTTP request headers
|
|
1039
|
+
|
|
1040
|
+
- **Content-Type**: Not defined
|
|
1041
|
+
- **Accept**: application/json
|
|
1042
|
+
|
|
1043
|
+
|
|
874
1044
|
## updateMerchantById
|
|
875
1045
|
|
|
876
1046
|
> Merchant updateMerchantById(merchant_id, opts)
|
|
@@ -978,3 +1148,57 @@ Name | Type | Description | Notes
|
|
|
978
1148
|
- **Content-Type**: application/json
|
|
979
1149
|
- **Accept**: application/json
|
|
980
1150
|
|
|
1151
|
+
|
|
1152
|
+
## updateRefundById
|
|
1153
|
+
|
|
1154
|
+
> Refund updateRefundById(refund_id, opts)
|
|
1155
|
+
|
|
1156
|
+
Update refund order information
|
|
1157
|
+
|
|
1158
|
+
This operation updates a specified refund order.
|
|
1159
|
+
|
|
1160
|
+
### Example
|
|
1161
|
+
|
|
1162
|
+
```javascript
|
|
1163
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
1164
|
+
// Initialize the API client
|
|
1165
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
1166
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
1167
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
1168
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
1169
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
1170
|
+
// Call the API
|
|
1171
|
+
const apiInstance = new CoboWaas2.PaymentApi();
|
|
1172
|
+
const refund_id = "R20250304-M1001-1001";
|
|
1173
|
+
const opts = {
|
|
1174
|
+
'UpdateRefundByIdRequest': new CoboWaas2.UpdateRefundByIdRequest()
|
|
1175
|
+
};
|
|
1176
|
+
apiInstance.updateRefundById(refund_id, opts).then((data) => {
|
|
1177
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
1178
|
+
}, (error) => {
|
|
1179
|
+
console.error(error);
|
|
1180
|
+
});
|
|
1181
|
+
|
|
1182
|
+
```
|
|
1183
|
+
|
|
1184
|
+
### Parameters
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
Name | Type | Description | Notes
|
|
1188
|
+
------------- | ------------- | ------------- | -------------
|
|
1189
|
+
**refund_id** | **String**| The refund order ID. |
|
|
1190
|
+
**UpdateRefundByIdRequest** | [**UpdateRefundByIdRequest**](UpdateRefundByIdRequest.md)| The request body to update a refund order. | [optional]
|
|
1191
|
+
|
|
1192
|
+
### Return type
|
|
1193
|
+
|
|
1194
|
+
[**Refund**](Refund.md)
|
|
1195
|
+
|
|
1196
|
+
### Authorization
|
|
1197
|
+
|
|
1198
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
1199
|
+
|
|
1200
|
+
### HTTP request headers
|
|
1201
|
+
|
|
1202
|
+
- **Content-Type**: application/json
|
|
1203
|
+
- **Accept**: application/json
|
|
1204
|
+
|
|
@@ -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. |
|
|
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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension 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_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT` |
|
|
@@ -20,9 +20,10 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**psp_order_code** | **String** | A unique reference code assigned by the developer to identify this order in their system. |
|
|
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
|
-
**created_timestamp** | **Number** | The
|
|
24
|
-
**updated_timestamp** | **Number** | The
|
|
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
|
|
23
|
+
**created_timestamp** | **Number** | The creation time of the order, represented as a UNIX timestamp in seconds. | [optional]
|
|
24
|
+
**updated_timestamp** | **Number** | The last update time of the order, represented as a UNIX timestamp in seconds. | [optional]
|
|
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
|
+
**settlement_status** | [**SettleStatus**](SettleStatus.md) | | [optional]
|
|
26
27
|
|
|
27
28
|
|
|
28
29
|
|
|
@@ -51,6 +52,10 @@ Name | Type | Description | Notes
|
|
|
51
52
|
|
|
52
53
|
* `PaymentSettlement` (value: `"PaymentSettlement"`)
|
|
53
54
|
|
|
55
|
+
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
56
|
+
|
|
57
|
+
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
58
|
+
|
|
54
59
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
55
60
|
|
|
56
61
|
|
|
@@ -4,10 +4,10 @@
|
|
|
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. |
|
|
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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension 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
|
-
**order_id** | **String** | The order
|
|
10
|
+
**order_id** | **String** | The ID of the pay-in order corresponding to this refund. | [optional]
|
|
11
11
|
**merchant_id** | **String** | The merchant ID. | [optional]
|
|
12
12
|
**token_id** | **String** | The ID of the cryptocurrency used for refund. |
|
|
13
13
|
**chain_id** | **String** | The ID of the blockchain network on which the refund transaction occurs. |
|
|
@@ -15,10 +15,13 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**to_address** | **String** | The recipient's wallet address where the refund will be sent. |
|
|
16
16
|
**status** | [**RefundStatus**](RefundStatus.md) | |
|
|
17
17
|
**refund_type** | [**RefundType**](RefundType.md) | | [optional]
|
|
18
|
-
**created_timestamp** | **Number** | The
|
|
19
|
-
**updated_timestamp** | **Number** | The
|
|
20
|
-
**initiator** | **String** |
|
|
18
|
+
**created_timestamp** | **Number** | The creation time of the refund order, represented as a UNIX timestamp in seconds. | [optional]
|
|
19
|
+
**updated_timestamp** | **Number** | The last update time of the refund order, represented as a UNIX timestamp in seconds. | [optional]
|
|
20
|
+
**initiator** | **String** | The initiator of this settlement request. Can return either an API key or the Payment Management App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payment API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payment Management App using the App ID. | [optional]
|
|
21
21
|
**transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | An array of transactions associated with this refund order. Each transaction represents a separate blockchain operation related to the refund process. | [optional]
|
|
22
|
+
**charge_merchant_fee** | **Boolean** | Whether to charge developer fee to the merchant for the refund. - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee. | [optional]
|
|
23
|
+
**merchant_fee_amount** | **String** | The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. This is only applicable if `charge_merchant_fee` is set to `true`. | [optional]
|
|
24
|
+
**merchant_fee_token_id** | **String** | The ID of the cryptocurrency used for the developer fee. This is only applicable if `charge_merchant_fee` is set to true. | [optional]
|
|
22
25
|
|
|
23
26
|
|
|
24
27
|
|
|
@@ -47,6 +50,10 @@ Name | Type | Description | Notes
|
|
|
47
50
|
|
|
48
51
|
* `PaymentSettlement` (value: `"PaymentSettlement"`)
|
|
49
52
|
|
|
53
|
+
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
54
|
+
|
|
55
|
+
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
56
|
+
|
|
50
57
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
51
58
|
|
|
52
59
|
|
|
@@ -4,14 +4,14 @@
|
|
|
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. |
|
|
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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension 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) | |
|
|
11
11
|
**settlements** | [**[SettlementDetail]**](SettlementDetail.md) | |
|
|
12
|
-
**created_timestamp** | **Number** | The
|
|
13
|
-
**updated_timestamp** | **Number** | The
|
|
14
|
-
**initiator** | **String** |
|
|
12
|
+
**created_timestamp** | **Number** | The creation time of the settlement request, represented as a UNIX timestamp in seconds. | [optional]
|
|
13
|
+
**updated_timestamp** | **Number** | The last update time of the settlement request, represented as a UNIX timestamp in seconds. | [optional]
|
|
14
|
+
**initiator** | **String** | The initiator of this settlement request. Can return either an API key or the Payment Management App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payment API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payment Management App using the App ID. | [optional]
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -40,6 +40,10 @@ Name | Type | Description | Notes
|
|
|
40
40
|
|
|
41
41
|
* `PaymentSettlement` (value: `"PaymentSettlement"`)
|
|
42
42
|
|
|
43
|
+
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
44
|
+
|
|
45
|
+
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
46
|
+
|
|
43
47
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
44
48
|
|
|
45
49
|
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**refresh_token** | **String** | The Refresh Token of the current
|
|
7
|
+
**refresh_token** | **String** | The Refresh Token of the current Access Token. |
|
|
8
8
|
|
|
9
9
|
|