@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
package/dist/api/PaymentApi.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _AcquiringType = _interopRequireDefault(require("../model/AcquiringType"));
|
|
8
9
|
var _BankAccount = _interopRequireDefault(require("../model/BankAccount"));
|
|
9
10
|
var _CreateMerchantRequest = _interopRequireDefault(require("../model/CreateMerchantRequest"));
|
|
10
11
|
var _CreatePaymentOrderRequest = _interopRequireDefault(require("../model/CreatePaymentOrderRequest"));
|
|
@@ -18,13 +19,16 @@ var _GetSettlementInfoByIds200Response = _interopRequireDefault(require("../mode
|
|
|
18
19
|
var _ListMerchants200Response = _interopRequireDefault(require("../model/ListMerchants200Response"));
|
|
19
20
|
var _ListPaymentOrders200Response = _interopRequireDefault(require("../model/ListPaymentOrders200Response"));
|
|
20
21
|
var _ListSettlementRequests200Response = _interopRequireDefault(require("../model/ListSettlementRequests200Response"));
|
|
22
|
+
var _ListTopUpPayers200Response = _interopRequireDefault(require("../model/ListTopUpPayers200Response"));
|
|
21
23
|
var _Merchant = _interopRequireDefault(require("../model/Merchant"));
|
|
22
24
|
var _Order = _interopRequireDefault(require("../model/Order"));
|
|
23
25
|
var _Refund = _interopRequireDefault(require("../model/Refund"));
|
|
24
26
|
var _Settlement = _interopRequireDefault(require("../model/Settlement"));
|
|
25
27
|
var _SupportedToken = _interopRequireDefault(require("../model/SupportedToken"));
|
|
28
|
+
var _TopUpAddress = _interopRequireDefault(require("../model/TopUpAddress"));
|
|
26
29
|
var _UpdateMerchantByIdRequest = _interopRequireDefault(require("../model/UpdateMerchantByIdRequest"));
|
|
27
30
|
var _UpdatePaymentOrderRequest = _interopRequireDefault(require("../model/UpdatePaymentOrderRequest"));
|
|
31
|
+
var _UpdateRefundByIdRequest = _interopRequireDefault(require("../model/UpdateRefundByIdRequest"));
|
|
28
32
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
29
33
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
30
34
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -59,13 +63,57 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
/**
|
|
62
|
-
*
|
|
63
|
-
* This operation
|
|
64
|
-
* @param {
|
|
65
|
-
* @
|
|
66
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Merchant} and HTTP response
|
|
66
|
+
* Cancel refund order
|
|
67
|
+
* This operation cancels a specified refund order.
|
|
68
|
+
* @param {String} refund_id The refund order ID.
|
|
69
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Refund} and HTTP response
|
|
67
70
|
*/
|
|
68
71
|
return _createClass(PaymentApi, [{
|
|
72
|
+
key: "cancelRefundByIdWithHttpInfo",
|
|
73
|
+
value: function cancelRefundByIdWithHttpInfo(refund_id) {
|
|
74
|
+
var postBody = null;
|
|
75
|
+
if (postBody && postBody.toJSON) {
|
|
76
|
+
postBody = postBody.toJSON();
|
|
77
|
+
}
|
|
78
|
+
// verify the required parameter 'refund_id' is set
|
|
79
|
+
if (refund_id === undefined || refund_id === null) {
|
|
80
|
+
throw new Error("Missing the required parameter 'refund_id' when calling cancelRefundById");
|
|
81
|
+
}
|
|
82
|
+
var pathParams = {
|
|
83
|
+
'refund_id': refund_id
|
|
84
|
+
};
|
|
85
|
+
var queryParams = {};
|
|
86
|
+
var headerParams = {};
|
|
87
|
+
var formParams = {};
|
|
88
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
89
|
+
var contentTypes = [];
|
|
90
|
+
var accepts = ['application/json'];
|
|
91
|
+
var returnType = _Refund["default"];
|
|
92
|
+
return this.apiClient.callApi('/payments/refunds/{refund_id}/cancel', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Cancel refund order
|
|
97
|
+
* This operation cancels a specified refund order.
|
|
98
|
+
* @param {String} refund_id The refund order ID.
|
|
99
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Refund}
|
|
100
|
+
*/
|
|
101
|
+
}, {
|
|
102
|
+
key: "cancelRefundById",
|
|
103
|
+
value: function cancelRefundById(refund_id) {
|
|
104
|
+
return this.cancelRefundByIdWithHttpInfo(refund_id).then(function (response_and_data) {
|
|
105
|
+
return response_and_data.data;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Create merchant
|
|
111
|
+
* This operation creates a merchant and links it to a specified wallet. Payments to the merchant will be deposited into the linked wallet. Upon successful creation, a merchant ID is generated and returned along with the merchant's information.
|
|
112
|
+
* @param {Object} opts Optional parameters
|
|
113
|
+
* @param {module:model/CreateMerchantRequest} [CreateMerchantRequest] The request body to create a merchant.
|
|
114
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Merchant} and HTTP response
|
|
115
|
+
*/
|
|
116
|
+
}, {
|
|
69
117
|
key: "createMerchantWithHttpInfo",
|
|
70
118
|
value: function createMerchantWithHttpInfo(opts) {
|
|
71
119
|
opts = opts || {};
|
|
@@ -183,7 +231,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
183
231
|
|
|
184
232
|
/**
|
|
185
233
|
* Create settlement request
|
|
186
|
-
* This operation creates a settlement request to withdraw available balances.
|
|
234
|
+
* This operation creates a settlement request to withdraw available balances.
|
|
187
235
|
* @param {Object} opts Optional parameters
|
|
188
236
|
* @param {module:model/CreateSettlementRequestRequest} [CreateSettlementRequestRequest] The request body to create a settlement request.
|
|
189
237
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Settlement} and HTTP response
|
|
@@ -209,7 +257,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
209
257
|
|
|
210
258
|
/**
|
|
211
259
|
* Create settlement request
|
|
212
|
-
* This operation creates a settlement request to withdraw available balances.
|
|
260
|
+
* This operation creates a settlement request to withdraw available balances.
|
|
213
261
|
* @param {Object} opts Optional parameters
|
|
214
262
|
* @param {module:model/CreateSettlementRequestRequest} opts.CreateSettlementRequestRequest The request body to create a settlement request.
|
|
215
263
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Settlement}
|
|
@@ -225,7 +273,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
225
273
|
/**
|
|
226
274
|
* Get exchange rate
|
|
227
275
|
* This operation retrieves the current exchange rate between a specified currency pair.
|
|
228
|
-
* @param {String} token_id The token ID, which
|
|
276
|
+
* @param {String} token_id 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`
|
|
229
277
|
* @param {String} currency The fiat currency. Currently, only `USD` is supported.
|
|
230
278
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetExchangeRate200Response} and HTTP response
|
|
231
279
|
*/
|
|
@@ -261,7 +309,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
261
309
|
/**
|
|
262
310
|
* Get exchange rate
|
|
263
311
|
* This operation retrieves the current exchange rate between a specified currency pair.
|
|
264
|
-
* @param {String} token_id The token ID, which
|
|
312
|
+
* @param {String} token_id 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`
|
|
265
313
|
* @param {String} currency The fiat currency. Currently, only `USD` is supported.
|
|
266
314
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetExchangeRate200Response}
|
|
267
315
|
*/
|
|
@@ -466,6 +514,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
466
514
|
* @param {Object} opts Optional parameters
|
|
467
515
|
* @param {String} [merchant_ids] A list of merchant IDs to query.
|
|
468
516
|
* @param {String} [currency = 'USD')] The currency for the operation. Currently, only `USD` is supported.
|
|
517
|
+
* @param {module:model/AcquiringType} [acquiring_type]
|
|
469
518
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSettlementInfoByIds200Response} and HTTP response
|
|
470
519
|
*/
|
|
471
520
|
}, {
|
|
@@ -479,7 +528,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
479
528
|
var pathParams = {};
|
|
480
529
|
var queryParams = {
|
|
481
530
|
'merchant_ids': opts['merchant_ids'],
|
|
482
|
-
'currency': opts['currency']
|
|
531
|
+
'currency': opts['currency'],
|
|
532
|
+
'acquiring_type': opts['acquiring_type']
|
|
483
533
|
};
|
|
484
534
|
var headerParams = {};
|
|
485
535
|
var formParams = {};
|
|
@@ -496,6 +546,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
496
546
|
* @param {Object} opts Optional parameters
|
|
497
547
|
* @param {String} opts.merchant_ids A list of merchant IDs to query.
|
|
498
548
|
* @param {String} opts.currency The currency for the operation. Currently, only `USD` is supported. (default to 'USD')
|
|
549
|
+
* @param {module:model/AcquiringType} opts.acquiring_type
|
|
499
550
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSettlementInfoByIds200Response}
|
|
500
551
|
*/
|
|
501
552
|
}, {
|
|
@@ -506,6 +557,64 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
506
557
|
});
|
|
507
558
|
}
|
|
508
559
|
|
|
560
|
+
/**
|
|
561
|
+
* Get top-up address
|
|
562
|
+
* This operation retrieves the information of the dedicated top-up address assigned to a specific payer under a merchant on a specified chain.
|
|
563
|
+
* @param {String} merchant_id The merchant ID.
|
|
564
|
+
* @param {String} token_id 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`
|
|
565
|
+
* @param {String} custom_payer_id A unique identifier assigned by the developer to track and identify individual payers in their system.
|
|
566
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TopUpAddress} and HTTP response
|
|
567
|
+
*/
|
|
568
|
+
}, {
|
|
569
|
+
key: "getTopUpAddressWithHttpInfo",
|
|
570
|
+
value: function getTopUpAddressWithHttpInfo(merchant_id, token_id, custom_payer_id) {
|
|
571
|
+
var postBody = null;
|
|
572
|
+
if (postBody && postBody.toJSON) {
|
|
573
|
+
postBody = postBody.toJSON();
|
|
574
|
+
}
|
|
575
|
+
// verify the required parameter 'merchant_id' is set
|
|
576
|
+
if (merchant_id === undefined || merchant_id === null) {
|
|
577
|
+
throw new Error("Missing the required parameter 'merchant_id' when calling getTopUpAddress");
|
|
578
|
+
}
|
|
579
|
+
// verify the required parameter 'token_id' is set
|
|
580
|
+
if (token_id === undefined || token_id === null) {
|
|
581
|
+
throw new Error("Missing the required parameter 'token_id' when calling getTopUpAddress");
|
|
582
|
+
}
|
|
583
|
+
// verify the required parameter 'custom_payer_id' is set
|
|
584
|
+
if (custom_payer_id === undefined || custom_payer_id === null) {
|
|
585
|
+
throw new Error("Missing the required parameter 'custom_payer_id' when calling getTopUpAddress");
|
|
586
|
+
}
|
|
587
|
+
var pathParams = {};
|
|
588
|
+
var queryParams = {
|
|
589
|
+
'merchant_id': merchant_id,
|
|
590
|
+
'token_id': token_id,
|
|
591
|
+
'custom_payer_id': custom_payer_id
|
|
592
|
+
};
|
|
593
|
+
var headerParams = {};
|
|
594
|
+
var formParams = {};
|
|
595
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
596
|
+
var contentTypes = [];
|
|
597
|
+
var accepts = ['application/json'];
|
|
598
|
+
var returnType = _TopUpAddress["default"];
|
|
599
|
+
return this.apiClient.callApi('/payments/topup/address', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Get top-up address
|
|
604
|
+
* This operation retrieves the information of the dedicated top-up address assigned to a specific payer under a merchant on a specified chain.
|
|
605
|
+
* @param {String} merchant_id The merchant ID.
|
|
606
|
+
* @param {String} token_id 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`
|
|
607
|
+
* @param {String} custom_payer_id A unique identifier assigned by the developer to track and identify individual payers in their system.
|
|
608
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TopUpAddress}
|
|
609
|
+
*/
|
|
610
|
+
}, {
|
|
611
|
+
key: "getTopUpAddress",
|
|
612
|
+
value: function getTopUpAddress(merchant_id, token_id, custom_payer_id) {
|
|
613
|
+
return this.getTopUpAddressWithHttpInfo(merchant_id, token_id, custom_payer_id).then(function (response_and_data) {
|
|
614
|
+
return response_and_data.data;
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
|
|
509
618
|
/**
|
|
510
619
|
* List all bank accounts
|
|
511
620
|
* This operation retrieves the information of all bank accounts you have registered for payment settlement. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new bank account.
|
|
@@ -544,9 +653,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
544
653
|
|
|
545
654
|
/**
|
|
546
655
|
* List crypto addresses
|
|
547
|
-
*
|
|
656
|
+
* 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.
|
|
548
657
|
* @param {Object} opts Optional parameters
|
|
549
|
-
* @param {String} [token_id] The token ID, which
|
|
658
|
+
* @param {String} [token_id] 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`
|
|
550
659
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/CryptoAddress>} and HTTP response
|
|
551
660
|
*/
|
|
552
661
|
}, {
|
|
@@ -572,9 +681,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
572
681
|
|
|
573
682
|
/**
|
|
574
683
|
* List crypto addresses
|
|
575
|
-
*
|
|
684
|
+
* 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.
|
|
576
685
|
* @param {Object} opts Optional parameters
|
|
577
|
-
* @param {String} opts.token_id The token ID, which
|
|
686
|
+
* @param {String} opts.token_id 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`
|
|
578
687
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/CryptoAddress>}
|
|
579
688
|
*/
|
|
580
689
|
}, {
|
|
@@ -648,7 +757,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
648
757
|
* @param {String} [before] 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.
|
|
649
758
|
* @param {String} [after] 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.
|
|
650
759
|
* @param {String} [merchant_id] The merchant ID.
|
|
651
|
-
* @param {String} [psp_order_id]
|
|
760
|
+
* @param {String} [psp_order_id] A unique reference code assigned by the developer to identify this order in their system.
|
|
652
761
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPaymentOrders200Response} and HTTP response
|
|
653
762
|
*/
|
|
654
763
|
}, {
|
|
@@ -684,7 +793,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
684
793
|
* @param {String} opts.before 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.
|
|
685
794
|
* @param {String} opts.after 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.
|
|
686
795
|
* @param {String} opts.merchant_id The merchant ID.
|
|
687
|
-
* @param {String} opts.psp_order_id
|
|
796
|
+
* @param {String} opts.psp_order_id A unique reference code assigned by the developer to identify this order in their system.
|
|
688
797
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPaymentOrders200Response}
|
|
689
798
|
*/
|
|
690
799
|
}, {
|
|
@@ -783,6 +892,65 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
783
892
|
});
|
|
784
893
|
}
|
|
785
894
|
|
|
895
|
+
/**
|
|
896
|
+
* List payers
|
|
897
|
+
* This operation retrieves the information of all payers under a merchant. You can filter the result by the payer ID.
|
|
898
|
+
* @param {String} merchant_id The merchant ID.
|
|
899
|
+
* @param {Object} opts Optional parameters
|
|
900
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
901
|
+
* @param {String} [before] 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.
|
|
902
|
+
* @param {String} [after] 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.
|
|
903
|
+
* @param {String} [payer_id] A unique identifier assigned by Cobo to track and identify individual payers.
|
|
904
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTopUpPayers200Response} and HTTP response
|
|
905
|
+
*/
|
|
906
|
+
}, {
|
|
907
|
+
key: "listTopUpPayersWithHttpInfo",
|
|
908
|
+
value: function listTopUpPayersWithHttpInfo(merchant_id, opts) {
|
|
909
|
+
opts = opts || {};
|
|
910
|
+
var postBody = null;
|
|
911
|
+
if (postBody && postBody.toJSON) {
|
|
912
|
+
postBody = postBody.toJSON();
|
|
913
|
+
}
|
|
914
|
+
// verify the required parameter 'merchant_id' is set
|
|
915
|
+
if (merchant_id === undefined || merchant_id === null) {
|
|
916
|
+
throw new Error("Missing the required parameter 'merchant_id' when calling listTopUpPayers");
|
|
917
|
+
}
|
|
918
|
+
var pathParams = {};
|
|
919
|
+
var queryParams = {
|
|
920
|
+
'limit': opts['limit'],
|
|
921
|
+
'before': opts['before'],
|
|
922
|
+
'after': opts['after'],
|
|
923
|
+
'merchant_id': merchant_id,
|
|
924
|
+
'payer_id': opts['payer_id']
|
|
925
|
+
};
|
|
926
|
+
var headerParams = {};
|
|
927
|
+
var formParams = {};
|
|
928
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
929
|
+
var contentTypes = [];
|
|
930
|
+
var accepts = ['application/json'];
|
|
931
|
+
var returnType = _ListTopUpPayers200Response["default"];
|
|
932
|
+
return this.apiClient.callApi('/payments/topup/payers', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* List payers
|
|
937
|
+
* This operation retrieves the information of all payers under a merchant. You can filter the result by the payer ID.
|
|
938
|
+
* @param {String} merchant_id The merchant ID.
|
|
939
|
+
* @param {Object} opts Optional parameters
|
|
940
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
941
|
+
* @param {String} opts.before 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.
|
|
942
|
+
* @param {String} opts.after 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.
|
|
943
|
+
* @param {String} opts.payer_id A unique identifier assigned by Cobo to track and identify individual payers.
|
|
944
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTopUpPayers200Response}
|
|
945
|
+
*/
|
|
946
|
+
}, {
|
|
947
|
+
key: "listTopUpPayers",
|
|
948
|
+
value: function listTopUpPayers(merchant_id, opts) {
|
|
949
|
+
return this.listTopUpPayersWithHttpInfo(merchant_id, opts).then(function (response_and_data) {
|
|
950
|
+
return response_and_data.data;
|
|
951
|
+
});
|
|
952
|
+
}
|
|
953
|
+
|
|
786
954
|
/**
|
|
787
955
|
* Update merchant
|
|
788
956
|
* This operation updates the information of an existing merchant.
|
|
@@ -880,5 +1048,54 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
880
1048
|
return response_and_data.data;
|
|
881
1049
|
});
|
|
882
1050
|
}
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* Update refund order information
|
|
1054
|
+
* This operation updates a specified refund order.
|
|
1055
|
+
* @param {String} refund_id The refund order ID.
|
|
1056
|
+
* @param {Object} opts Optional parameters
|
|
1057
|
+
* @param {module:model/UpdateRefundByIdRequest} [UpdateRefundByIdRequest] The request body to update a refund order.
|
|
1058
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Refund} and HTTP response
|
|
1059
|
+
*/
|
|
1060
|
+
}, {
|
|
1061
|
+
key: "updateRefundByIdWithHttpInfo",
|
|
1062
|
+
value: function updateRefundByIdWithHttpInfo(refund_id, opts) {
|
|
1063
|
+
opts = opts || {};
|
|
1064
|
+
var postBody = opts['UpdateRefundByIdRequest'];
|
|
1065
|
+
if (postBody && postBody.toJSON) {
|
|
1066
|
+
postBody = postBody.toJSON();
|
|
1067
|
+
}
|
|
1068
|
+
// verify the required parameter 'refund_id' is set
|
|
1069
|
+
if (refund_id === undefined || refund_id === null) {
|
|
1070
|
+
throw new Error("Missing the required parameter 'refund_id' when calling updateRefundById");
|
|
1071
|
+
}
|
|
1072
|
+
var pathParams = {
|
|
1073
|
+
'refund_id': refund_id
|
|
1074
|
+
};
|
|
1075
|
+
var queryParams = {};
|
|
1076
|
+
var headerParams = {};
|
|
1077
|
+
var formParams = {};
|
|
1078
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1079
|
+
var contentTypes = ['application/json'];
|
|
1080
|
+
var accepts = ['application/json'];
|
|
1081
|
+
var returnType = _Refund["default"];
|
|
1082
|
+
return this.apiClient.callApi('/payments/refunds/{refund_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Update refund order information
|
|
1087
|
+
* This operation updates a specified refund order.
|
|
1088
|
+
* @param {String} refund_id The refund order ID.
|
|
1089
|
+
* @param {Object} opts Optional parameters
|
|
1090
|
+
* @param {module:model/UpdateRefundByIdRequest} opts.UpdateRefundByIdRequest The request body to update a refund order.
|
|
1091
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Refund}
|
|
1092
|
+
*/
|
|
1093
|
+
}, {
|
|
1094
|
+
key: "updateRefundById",
|
|
1095
|
+
value: function updateRefundById(refund_id, opts) {
|
|
1096
|
+
return this.updateRefundByIdWithHttpInfo(refund_id, opts).then(function (response_and_data) {
|
|
1097
|
+
return response_and_data.data;
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
883
1100
|
}]);
|
|
884
1101
|
}();
|
|
@@ -13,10 +13,8 @@ var _CreateTransferTransaction201Response = _interopRequireDefault(require("../m
|
|
|
13
13
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
14
14
|
var _EstimateFeeParams = _interopRequireDefault(require("../model/EstimateFeeParams"));
|
|
15
15
|
var _EstimatedFee = _interopRequireDefault(require("../model/EstimatedFee"));
|
|
16
|
-
var _ListTransactionApprovalDetails200Response = _interopRequireDefault(require("../model/ListTransactionApprovalDetails200Response"));
|
|
17
16
|
var _ListTransactions200Response = _interopRequireDefault(require("../model/ListTransactions200Response"));
|
|
18
17
|
var _MessageSignParams = _interopRequireDefault(require("../model/MessageSignParams"));
|
|
19
|
-
var _TransactionApprovalDetail = _interopRequireDefault(require("../model/TransactionApprovalDetail"));
|
|
20
18
|
var _TransactionDetail = _interopRequireDefault(require("../model/TransactionDetail"));
|
|
21
19
|
var _TransactionRbf = _interopRequireDefault(require("../model/TransactionRbf"));
|
|
22
20
|
var _TransactionResend = _interopRequireDefault(require("../model/TransactionResend"));
|
|
@@ -412,50 +410,6 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
412
410
|
});
|
|
413
411
|
}
|
|
414
412
|
|
|
415
|
-
/**
|
|
416
|
-
* Get transaction approval details
|
|
417
|
-
* This operation retrieves detailed approval information about a specified transaction.
|
|
418
|
-
* @param {String} transaction_id The transaction ID.
|
|
419
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransactionApprovalDetail} and HTTP response
|
|
420
|
-
*/
|
|
421
|
-
}, {
|
|
422
|
-
key: "getTransactionApprovalDetailWithHttpInfo",
|
|
423
|
-
value: function getTransactionApprovalDetailWithHttpInfo(transaction_id) {
|
|
424
|
-
var postBody = null;
|
|
425
|
-
if (postBody && postBody.toJSON) {
|
|
426
|
-
postBody = postBody.toJSON();
|
|
427
|
-
}
|
|
428
|
-
// verify the required parameter 'transaction_id' is set
|
|
429
|
-
if (transaction_id === undefined || transaction_id === null) {
|
|
430
|
-
throw new Error("Missing the required parameter 'transaction_id' when calling getTransactionApprovalDetail");
|
|
431
|
-
}
|
|
432
|
-
var pathParams = {
|
|
433
|
-
'transaction_id': transaction_id
|
|
434
|
-
};
|
|
435
|
-
var queryParams = {};
|
|
436
|
-
var headerParams = {};
|
|
437
|
-
var formParams = {};
|
|
438
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
439
|
-
var contentTypes = [];
|
|
440
|
-
var accepts = ['application/json'];
|
|
441
|
-
var returnType = _TransactionApprovalDetail["default"];
|
|
442
|
-
return this.apiClient.callApi('/transactions/{transaction_id}/approval_detail', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Get transaction approval details
|
|
447
|
-
* This operation retrieves detailed approval information about a specified transaction.
|
|
448
|
-
* @param {String} transaction_id The transaction ID.
|
|
449
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransactionApprovalDetail}
|
|
450
|
-
*/
|
|
451
|
-
}, {
|
|
452
|
-
key: "getTransactionApprovalDetail",
|
|
453
|
-
value: function getTransactionApprovalDetail(transaction_id) {
|
|
454
|
-
return this.getTransactionApprovalDetailWithHttpInfo(transaction_id).then(function (response_and_data) {
|
|
455
|
-
return response_and_data.data;
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
|
|
459
413
|
/**
|
|
460
414
|
* Get transaction information
|
|
461
415
|
* This operation retrieves detailed information about a specified transaction, such as the transaction status, source address, destination address, and timestamp.
|
|
@@ -500,52 +454,6 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
500
454
|
});
|
|
501
455
|
}
|
|
502
456
|
|
|
503
|
-
/**
|
|
504
|
-
* List transaction approval details
|
|
505
|
-
* This operation retrieves detailed approval information for all transactions.
|
|
506
|
-
* @param {Object} opts Optional parameters
|
|
507
|
-
* @param {String} [transaction_ids] A list of transaction IDs, separated by comma.
|
|
508
|
-
* @param {String} [cobo_ids] A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
|
|
509
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTransactionApprovalDetails200Response} and HTTP response
|
|
510
|
-
*/
|
|
511
|
-
}, {
|
|
512
|
-
key: "listTransactionApprovalDetailsWithHttpInfo",
|
|
513
|
-
value: function listTransactionApprovalDetailsWithHttpInfo(opts) {
|
|
514
|
-
opts = opts || {};
|
|
515
|
-
var postBody = null;
|
|
516
|
-
if (postBody && postBody.toJSON) {
|
|
517
|
-
postBody = postBody.toJSON();
|
|
518
|
-
}
|
|
519
|
-
var pathParams = {};
|
|
520
|
-
var queryParams = {
|
|
521
|
-
'transaction_ids': opts['transaction_ids'],
|
|
522
|
-
'cobo_ids': opts['cobo_ids']
|
|
523
|
-
};
|
|
524
|
-
var headerParams = {};
|
|
525
|
-
var formParams = {};
|
|
526
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
527
|
-
var contentTypes = [];
|
|
528
|
-
var accepts = ['application/json'];
|
|
529
|
-
var returnType = _ListTransactionApprovalDetails200Response["default"];
|
|
530
|
-
return this.apiClient.callApi('/transactions/approval_details', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
/**
|
|
534
|
-
* List transaction approval details
|
|
535
|
-
* This operation retrieves detailed approval information for all transactions.
|
|
536
|
-
* @param {Object} opts Optional parameters
|
|
537
|
-
* @param {String} opts.transaction_ids A list of transaction IDs, separated by comma.
|
|
538
|
-
* @param {String} opts.cobo_ids A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
|
|
539
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTransactionApprovalDetails200Response}
|
|
540
|
-
*/
|
|
541
|
-
}, {
|
|
542
|
-
key: "listTransactionApprovalDetails",
|
|
543
|
-
value: function listTransactionApprovalDetails(opts) {
|
|
544
|
-
return this.listTransactionApprovalDetailsWithHttpInfo(opts).then(function (response_and_data) {
|
|
545
|
-
return response_and_data.data;
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
|
|
549
457
|
/**
|
|
550
458
|
* List all transactions
|
|
551
459
|
* This operation retrieves all the transactions under your organization. You can filter the results by request ID, Cobo ID, transaction ID, transaction hash, type, status, and timestamps. You can also paginate and sort your query results.
|
|
@@ -569,7 +477,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
569
477
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
570
478
|
* @param {String} [before] 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.
|
|
571
479
|
* @param {String} [after] 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.
|
|
572
|
-
* @param {module:model/String} [direction = '')] The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order.
|
|
480
|
+
* @param {module:model/String} [direction = 'ASC')] The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order.
|
|
573
481
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTransactions200Response} and HTTP response
|
|
574
482
|
*/
|
|
575
483
|
}, {
|
|
@@ -635,7 +543,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
635
543
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
636
544
|
* @param {String} opts.before 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.
|
|
637
545
|
* @param {String} opts.after 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.
|
|
638
|
-
* @param {module:model/String} opts.direction The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order. (default to '')
|
|
546
|
+
* @param {module:model/String} opts.direction The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order. (default to 'ASC')
|
|
639
547
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTransactions200Response}
|
|
640
548
|
*/
|
|
641
549
|
}, {
|
package/dist/api/WalletsApi.js
CHANGED
|
@@ -20,6 +20,7 @@ var _CreatedWalletInfo = _interopRequireDefault(require("../model/CreatedWalletI
|
|
|
20
20
|
var _DeleteWalletById201Response = _interopRequireDefault(require("../model/DeleteWalletById201Response"));
|
|
21
21
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
22
22
|
var _ExtendedTokenInfo = _interopRequireDefault(require("../model/ExtendedTokenInfo"));
|
|
23
|
+
var _GetMaxTransferableValueWithFeeModelRequest = _interopRequireDefault(require("../model/GetMaxTransferableValueWithFeeModelRequest"));
|
|
23
24
|
var _ListAddressBalancesByToken200Response = _interopRequireDefault(require("../model/ListAddressBalancesByToken200Response"));
|
|
24
25
|
var _ListAddresses200Response = _interopRequireDefault(require("../model/ListAddresses200Response"));
|
|
25
26
|
var _ListSupportedChains200Response = _interopRequireDefault(require("../model/ListSupportedChains200Response"));
|
|
@@ -566,6 +567,55 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
566
567
|
});
|
|
567
568
|
}
|
|
568
569
|
|
|
570
|
+
/**
|
|
571
|
+
* Estimate maximum transferable value
|
|
572
|
+
* This operation estimates the maximum transferable value from a wallet or a specific wallet address, based on the specified fee settings. The `to_address` property is required because it affects the fee calculation. <Note>This operation is applicable to Custodial Wallets (Web3 Wallets) and MPC Wallets only.</Note>
|
|
573
|
+
* @param {String} wallet_id The wallet ID.
|
|
574
|
+
* @param {Object} opts Optional parameters
|
|
575
|
+
* @param {module:model/GetMaxTransferableValueWithFeeModelRequest} [GetMaxTransferableValueWithFeeModelRequest] The request body for retrieving the maximum transferable value from a specified wallet.
|
|
576
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MaxTransferableValue} and HTTP response
|
|
577
|
+
*/
|
|
578
|
+
}, {
|
|
579
|
+
key: "getMaxTransferableValueWithFeeModelWithHttpInfo",
|
|
580
|
+
value: function getMaxTransferableValueWithFeeModelWithHttpInfo(wallet_id, opts) {
|
|
581
|
+
opts = opts || {};
|
|
582
|
+
var postBody = opts['GetMaxTransferableValueWithFeeModelRequest'];
|
|
583
|
+
if (postBody && postBody.toJSON) {
|
|
584
|
+
postBody = postBody.toJSON();
|
|
585
|
+
}
|
|
586
|
+
// verify the required parameter 'wallet_id' is set
|
|
587
|
+
if (wallet_id === undefined || wallet_id === null) {
|
|
588
|
+
throw new Error("Missing the required parameter 'wallet_id' when calling getMaxTransferableValueWithFeeModel");
|
|
589
|
+
}
|
|
590
|
+
var pathParams = {
|
|
591
|
+
'wallet_id': wallet_id
|
|
592
|
+
};
|
|
593
|
+
var queryParams = {};
|
|
594
|
+
var headerParams = {};
|
|
595
|
+
var formParams = {};
|
|
596
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
597
|
+
var contentTypes = ['application/json'];
|
|
598
|
+
var accepts = ['application/json'];
|
|
599
|
+
var returnType = _MaxTransferableValue["default"];
|
|
600
|
+
return this.apiClient.callApi('/wallets/{wallet_id}/max_transferable_value_with_fee_model', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Estimate maximum transferable value
|
|
605
|
+
* This operation estimates the maximum transferable value from a wallet or a specific wallet address, based on the specified fee settings. The `to_address` property is required because it affects the fee calculation. <Note>This operation is applicable to Custodial Wallets (Web3 Wallets) and MPC Wallets only.</Note>
|
|
606
|
+
* @param {String} wallet_id The wallet ID.
|
|
607
|
+
* @param {Object} opts Optional parameters
|
|
608
|
+
* @param {module:model/GetMaxTransferableValueWithFeeModelRequest} opts.GetMaxTransferableValueWithFeeModelRequest The request body for retrieving the maximum transferable value from a specified wallet.
|
|
609
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MaxTransferableValue}
|
|
610
|
+
*/
|
|
611
|
+
}, {
|
|
612
|
+
key: "getMaxTransferableValueWithFeeModel",
|
|
613
|
+
value: function getMaxTransferableValueWithFeeModel(wallet_id, opts) {
|
|
614
|
+
return this.getMaxTransferableValueWithFeeModelWithHttpInfo(wallet_id, opts).then(function (response_and_data) {
|
|
615
|
+
return response_and_data.data;
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
|
|
569
619
|
/**
|
|
570
620
|
* Get token information
|
|
571
621
|
* This operation retrieves the detailed information about a specified token.
|
|
@@ -885,11 +935,12 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
885
935
|
|
|
886
936
|
/**
|
|
887
937
|
* List enabled tokens
|
|
888
|
-
* This operation retrieves all the tokens that can be used by your organization. You can filter the result by wallet type, subtype, and
|
|
938
|
+
* This operation retrieves all the tokens that can be used by your organization. You can filter the result by wallet type, subtype, chain IDs, and token IDs. If you do not specify a wallet type, this operation returns a combination of tokens that can be used by your organization for each wallet type.
|
|
889
939
|
* @param {Object} opts Optional parameters
|
|
890
940
|
* @param {module:model/WalletType} [wallet_type] The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction)
|
|
891
941
|
* @param {module:model/WalletSubtype} [wallet_subtype] The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet})
|
|
892
942
|
* @param {String} [chain_ids] A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
|
|
943
|
+
* @param {String} [token_ids] A list of token IDs, separated by comma. The token ID 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).
|
|
893
944
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
894
945
|
* @param {String} [before] 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.
|
|
895
946
|
* @param {String} [after] 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.
|
|
@@ -908,6 +959,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
908
959
|
'wallet_type': opts['wallet_type'],
|
|
909
960
|
'wallet_subtype': opts['wallet_subtype'],
|
|
910
961
|
'chain_ids': opts['chain_ids'],
|
|
962
|
+
'token_ids': opts['token_ids'],
|
|
911
963
|
'limit': opts['limit'],
|
|
912
964
|
'before': opts['before'],
|
|
913
965
|
'after': opts['after']
|
|
@@ -923,11 +975,12 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
923
975
|
|
|
924
976
|
/**
|
|
925
977
|
* List enabled tokens
|
|
926
|
-
* This operation retrieves all the tokens that can be used by your organization. You can filter the result by wallet type, subtype, and
|
|
978
|
+
* This operation retrieves all the tokens that can be used by your organization. You can filter the result by wallet type, subtype, chain IDs, and token IDs. If you do not specify a wallet type, this operation returns a combination of tokens that can be used by your organization for each wallet type.
|
|
927
979
|
* @param {Object} opts Optional parameters
|
|
928
980
|
* @param {module:model/WalletType} opts.wallet_type The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction)
|
|
929
981
|
* @param {module:model/WalletSubtype} opts.wallet_subtype The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet})
|
|
930
982
|
* @param {String} opts.chain_ids A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
|
|
983
|
+
* @param {String} opts.token_ids A list of token IDs, separated by comma. The token ID 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).
|
|
931
984
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
932
985
|
* @param {String} opts.before 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.
|
|
933
986
|
* @param {String} opts.after 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.
|