@cobo/cobo-waas2 1.20.0 → 1.22.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 +60 -4
- package/dist/ApiClient.js +11 -2
- package/dist/PreRequestScript.js +2 -4
- package/dist/api/AutoSweepApi.js +289 -0
- package/dist/api/PaymentApi.js +386 -24
- package/dist/api/TokenizationApi.js +1024 -0
- package/dist/api/TransactionsApi.js +103 -2
- package/dist/api/WalletsApi.js +2 -2
- package/dist/crypto/ApiSigner.js +5 -1
- package/dist/index.js +175 -0
- package/dist/model/AddressesEventData.js +3 -3
- package/dist/model/ApprovalDetail.js +7 -7
- package/dist/model/AutoSweepTask.js +198 -0
- package/dist/model/AutoSweepTaskStatus.js +61 -0
- package/dist/model/BalanceUpdateInfoEventData.js +3 -3
- package/dist/model/ChainsEventData.js +3 -3
- package/dist/model/CreateAutoSweepTask.js +126 -0
- package/dist/model/CreateCryptoAddressRequest.js +138 -0
- package/dist/model/CreateCustodialWalletParams.js +9 -0
- package/dist/model/CreateExchangeWalletParams.js +14 -0
- package/dist/model/CreateMpcWalletParams.js +14 -0
- package/dist/model/CreatePaymentOrderRequest.js +5 -5
- package/dist/model/CreateSafeWalletParams.js +9 -0
- package/dist/model/CreateSettlement.js +27 -4
- package/dist/model/CreateSmartContractWalletParams.js +6 -0
- package/dist/model/CreateSweepToAddress.js +126 -0
- package/dist/model/CreateWalletParams.js +6 -0
- package/dist/model/CreatedWalletInfo.js +6 -0
- package/dist/model/CryptoAddress.js +12 -12
- package/dist/model/CustodialWalletInfo.js +9 -0
- package/dist/model/DeleteCryptoAddress201Response.js +110 -0
- package/dist/model/ExchangeWalletInfo.js +14 -0
- package/dist/model/ForcedSweep.js +9 -9
- package/dist/model/ForcedSweepRequest.js +8 -9
- package/dist/model/GetTokenizationAllowlistActivation200Response.js +107 -0
- package/dist/model/ListAutoSweepTask200Response.js +123 -0
- package/dist/model/ListMerchantBalances200Response.js +107 -0
- package/dist/model/ListPaymentWalletBalances200Response.js +107 -0
- package/dist/model/ListSettlementDetails200Response.js +123 -0
- package/dist/model/ListTokenizationBlocklistAddresses200Response.js +145 -0
- package/dist/model/ListWalletSweepToAddresses200Response.js +107 -0
- package/dist/model/MPCVaultEventData.js +3 -3
- package/dist/model/MPCWalletInfo.js +14 -0
- package/dist/model/MerchantBalance.js +201 -0
- package/dist/model/PaymentAddressUpdateEventData.js +13 -13
- package/dist/model/PaymentOrderEventData.js +3 -3
- package/dist/model/PaymentRefundEventData.js +3 -3
- package/dist/model/PaymentSettlementEvent.js +42 -3
- package/dist/model/PaymentTransactionEventData.js +6 -6
- package/dist/model/PaymentWalletBalance.js +177 -0
- package/dist/model/PspBalance.js +175 -0
- package/dist/model/ReceivedAmountPerAddress.js +126 -0
- package/dist/model/SafeWallet.js +9 -0
- package/dist/model/Settlement.js +27 -0
- package/dist/model/SettlementDetail.js +26 -0
- package/dist/model/SettlementInfo.js +7 -7
- package/dist/model/SmartContractWalletInfo.js +6 -0
- package/dist/model/SuspendedTokenEventData.js +3 -3
- package/dist/model/SweepToAddress.js +135 -0
- package/dist/model/SweepToAddressStatus.js +61 -0
- package/dist/model/TSSRequestWebhookEventData.js +3 -3
- package/dist/model/TokenListingEventData.js +3 -3
- package/dist/model/TokenizationActivityInfo.js +8 -4
- package/dist/model/TokenizationAllowlistActivationRequest.js +13 -0
- package/dist/model/TokenizationAllowlistAddressNote.js +4 -4
- package/dist/model/TokenizationAllowlistAddressesResponse.js +145 -0
- package/dist/model/TokenizationBlocklistAddressNote.js +4 -4
- package/dist/model/TokenizationBurnEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +4 -4
- package/dist/model/TokenizationBurnTokenRequest.js +13 -0
- package/dist/model/TokenizationContractCallEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationContractCallParamsData.js +43 -9
- package/dist/model/TokenizationContractCallRequest.js +13 -0
- package/dist/model/TokenizationContractCallType.js +5 -0
- package/dist/model/TokenizationERC20TokenParams.js +4 -4
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +6 -0
- package/dist/model/TokenizationEvmContractCallParams.js +2 -2
- package/dist/model/TokenizationIssueEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +40 -12
- package/dist/model/TokenizationIssuedTokenRequest.js +14 -1
- package/dist/model/TokenizationMintEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationMintTokenRequest.js +13 -0
- package/dist/model/TokenizationMpcOperationSource.js +2 -2
- package/dist/model/TokenizationPauseEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationPauseTokenRequest.js +13 -0
- package/dist/model/TokenizationSOLTokenParams.js +173 -0
- package/dist/model/TokenizationSolContractCallParams.js +137 -0
- package/dist/model/TokenizationSolTokenPermissionParams.js +140 -0
- package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationTokenDetailInfo.js +6 -6
- package/dist/model/TokenizationTokenInfo.js +4 -4
- package/dist/model/TokenizationTokenOperationSource.js +1 -1
- package/dist/model/TokenizationTokenPermissionParams.js +1 -1
- package/dist/model/TokenizationTokenPermissionType.js +15 -0
- package/dist/model/TokenizationTokenStandard.js +5 -0
- package/dist/model/TokenizationUnpauseEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationUnpauseTokenRequest.js +13 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +1 -1
- package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +13 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +1 -1
- package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +13 -0
- package/dist/model/TokenizationWeb3OperationSource.js +2 -2
- package/dist/model/TokensEventData.js +3 -3
- package/dist/model/TopUpAddress.js +0 -1
- package/dist/model/TransactionWebhookEventData.js +3 -3
- package/dist/model/UpdateCustodialWalletParams.js +13 -6
- package/dist/model/UpdateMpcWalletParams.js +13 -6
- package/dist/model/UpdateTopUpAddress.js +3 -3
- package/dist/model/UpdateWalletParams.js +6 -0
- package/dist/model/WalletInfo.js +6 -0
- package/dist/model/WalletInfoEventData.js +3 -3
- package/dist/model/WebhookEventData.js +19 -7
- package/dist/model/WebhookEventDataType.js +2 -2
- package/docs/AddressesEventData.md +1 -1
- package/docs/ApprovalDetail.md +1 -1
- package/docs/AutoSweepApi.md +285 -0
- package/docs/AutoSweepTask.md +16 -0
- package/docs/AutoSweepTaskStatus.md +12 -0
- package/docs/BalanceUpdateInfoEventData.md +1 -1
- package/docs/ChainsEventData.md +1 -1
- package/docs/CreateAutoSweepTask.md +10 -0
- package/docs/CreateCryptoAddressRequest.md +11 -0
- package/docs/CreateCustodialWalletParams.md +1 -0
- package/docs/CreateExchangeWalletParams.md +1 -0
- package/docs/CreateMpcWalletParams.md +1 -0
- package/docs/CreatePaymentOrderRequest.md +3 -3
- package/docs/CreateSafeWalletParams.md +1 -0
- package/docs/CreateSettlement.md +1 -1
- package/docs/CreateSmartContractWalletParams.md +1 -0
- package/docs/CreateSweepToAddress.md +10 -0
- package/docs/CreateWalletParams.md +1 -0
- package/docs/CreatedWalletInfo.md +1 -0
- package/docs/CryptoAddress.md +1 -1
- package/docs/CustodialWalletInfo.md +1 -0
- package/docs/DeleteCryptoAddress201Response.md +9 -0
- package/docs/ExchangeWalletInfo.md +1 -0
- package/docs/ForcedSweep.md +7 -7
- package/docs/ForcedSweepRequest.md +4 -4
- package/docs/GetTokenizationAllowlistActivation200Response.md +9 -0
- package/docs/ListAutoSweepTask200Response.md +10 -0
- package/docs/ListMerchantBalances200Response.md +9 -0
- package/docs/ListPaymentWalletBalances200Response.md +9 -0
- package/docs/ListSettlementDetails200Response.md +10 -0
- package/docs/ListTokenizationBlocklistAddresses200Response.md +10 -0
- package/docs/ListWalletSweepToAddresses200Response.md +9 -0
- package/docs/MPCVaultEventData.md +1 -1
- package/docs/MPCWalletInfo.md +1 -0
- package/docs/MerchantBalance.md +16 -0
- package/docs/PaymentAddressUpdateEventData.md +6 -6
- package/docs/PaymentApi.md +403 -16
- package/docs/PaymentOrderEventData.md +1 -1
- package/docs/PaymentRefundEventData.md +1 -1
- package/docs/PaymentSettlementEvent.md +4 -1
- package/docs/PaymentTransactionEventData.md +4 -4
- package/docs/PaymentWalletBalance.md +14 -0
- package/docs/PspBalance.md +14 -0
- package/docs/ReceivedAmountPerAddress.md +10 -0
- package/docs/SafeWallet.md +1 -0
- package/docs/Settlement.md +3 -0
- package/docs/SettlementDetail.md +2 -0
- package/docs/SettlementInfo.md +6 -6
- package/docs/SmartContractWalletInfo.md +1 -0
- package/docs/SuspendedTokenEventData.md +1 -1
- package/docs/SweepToAddress.md +11 -0
- package/docs/SweepToAddressStatus.md +12 -0
- package/docs/TSSRequestWebhookEventData.md +1 -1
- package/docs/TokenListingEventData.md +1 -1
- package/docs/TokenizationActivityInfo.md +2 -2
- package/docs/TokenizationAllowlistActivationRequest.md +1 -0
- package/docs/TokenizationAllowlistAddressNote.md +3 -3
- package/docs/TokenizationAllowlistAddressesResponse.md +10 -0
- package/docs/TokenizationApi.md +1069 -0
- package/docs/TokenizationBlocklistAddressNote.md +3 -3
- package/docs/TokenizationBurnEstimateFeeParams.md +1 -0
- package/docs/TokenizationBurnTokenParamsBurnsInner.md +2 -2
- package/docs/TokenizationBurnTokenRequest.md +1 -0
- package/docs/TokenizationContractCallEstimateFeeParams.md +1 -0
- package/docs/TokenizationContractCallParamsData.md +2 -1
- package/docs/TokenizationContractCallRequest.md +1 -0
- package/docs/TokenizationContractCallType.md +2 -0
- package/docs/TokenizationERC20TokenParams.md +1 -1
- package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -0
- package/docs/TokenizationEvmContractCallParams.md +1 -1
- package/docs/TokenizationIssueEstimateFeeParams.md +1 -0
- package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -2
- package/docs/TokenizationIssuedTokenRequest.md +2 -1
- package/docs/TokenizationMintEstimateFeeParams.md +1 -0
- package/docs/TokenizationMintTokenRequest.md +1 -0
- package/docs/TokenizationMpcOperationSource.md +1 -1
- package/docs/TokenizationPauseEstimateFeeParams.md +1 -0
- package/docs/TokenizationPauseTokenRequest.md +1 -0
- package/docs/TokenizationSOLTokenParams.md +14 -0
- package/docs/TokenizationSolContractCallParams.md +10 -0
- package/docs/TokenizationSolTokenPermissionParams.md +13 -0
- package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +1 -0
- package/docs/TokenizationTokenDetailInfo.md +1 -1
- package/docs/TokenizationTokenInfo.md +1 -1
- package/docs/TokenizationTokenOperationSource.md +1 -1
- package/docs/TokenizationTokenPermissionType.md +6 -0
- package/docs/TokenizationTokenStandard.md +2 -0
- package/docs/TokenizationUnpauseEstimateFeeParams.md +1 -0
- package/docs/TokenizationUnpauseTokenRequest.md +1 -0
- package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +1 -0
- package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +1 -1
- package/docs/TokenizationUpdateAllowlistAddressesRequest.md +1 -0
- package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +1 -0
- package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +1 -1
- package/docs/TokenizationUpdateBlocklistAddressesRequest.md +1 -0
- package/docs/TokenizationWeb3OperationSource.md +1 -1
- package/docs/TokensEventData.md +1 -1
- package/docs/TransactionWebhookEventData.md +1 -1
- package/docs/TransactionsApi.md +113 -1
- package/docs/UpdateCustodialWalletParams.md +2 -1
- package/docs/UpdateMpcWalletParams.md +2 -1
- package/docs/UpdateTopUpAddress.md +1 -1
- package/docs/UpdateWalletParams.md +1 -0
- package/docs/WalletInfo.md +1 -0
- package/docs/WalletInfoEventData.md +1 -1
- package/docs/WalletsApi.md +1 -1
- package/docs/WebhookEventData.md +9 -7
- package/docs/WebhookEventDataType.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](http
|
|
|
15
15
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
16
16
|
|
|
17
17
|
- API version: v2
|
|
18
|
-
- Package version: 1.
|
|
18
|
+
- Package version: 1.22.0
|
|
19
19
|
- Generator version: 7.6.0
|
|
20
20
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
21
21
|
For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
|
|
@@ -73,6 +73,11 @@ Class | Method | HTTP request | Description
|
|
|
73
73
|
*CoboWaas2.AppWorkflowsApi* | [**listAppWorkflows**](docs/AppWorkflowsApi.md#listAppWorkflows) | **GET** /app/workflows | List app workflows
|
|
74
74
|
*CoboWaas2.AppWorkflowsApi* | [**listApprovalRequests**](docs/AppWorkflowsApi.md#listApprovalRequests) | **GET** /app/workflows/approval_requests | List approval requests
|
|
75
75
|
*CoboWaas2.AppWorkflowsApi* | [**revokeApprovalRequest**](docs/AppWorkflowsApi.md#revokeApprovalRequest) | **POST** /app/workflows/approval_requests/{approval_id}/revoke | Revoke approval request
|
|
76
|
+
*CoboWaas2.AutoSweepApi* | [**createAutoSweepTask**](docs/AutoSweepApi.md#createAutoSweepTask) | **POST** /auto_sweep/tasks | create auto sweep task
|
|
77
|
+
*CoboWaas2.AutoSweepApi* | [**createWalletSweepToAddresses**](docs/AutoSweepApi.md#createWalletSweepToAddresses) | **POST** /auto_sweep/sweep_to_addresses | create wallet sweep to addresses
|
|
78
|
+
*CoboWaas2.AutoSweepApi* | [**getAutoSweepTaskById**](docs/AutoSweepApi.md#getAutoSweepTaskById) | **GET** /auto_sweep/tasks/{task_id} | Get auto sweep task information
|
|
79
|
+
*CoboWaas2.AutoSweepApi* | [**listAutoSweepTask**](docs/AutoSweepApi.md#listAutoSweepTask) | **GET** /auto_sweep/tasks | List wallet auto sweep task
|
|
80
|
+
*CoboWaas2.AutoSweepApi* | [**listWalletSweepToAddresses**](docs/AutoSweepApi.md#listWalletSweepToAddresses) | **GET** /auto_sweep/sweep_to_addresses | List wallet sweep to addresses
|
|
76
81
|
*CoboWaas2.DevelopersApi* | [**getApiKeyInfo**](docs/DevelopersApi.md#getApiKeyInfo) | **GET** /developers/api_key_info | Get API key information
|
|
77
82
|
*CoboWaas2.DevelopersApi* | [**listCallbackMessages**](docs/DevelopersApi.md#listCallbackMessages) | **GET** /developers/callback_messages | List all callback messages
|
|
78
83
|
*CoboWaas2.DevelopersApi* | [**retryCallbackMessage**](docs/DevelopersApi.md#retryCallbackMessage) | **POST** /developers/callback_messages/{message_id}/retry | Retry callback message
|
|
@@ -97,13 +102,17 @@ Class | Method | HTTP request | Description
|
|
|
97
102
|
*CoboWaas2.OAuthApi* | [**refreshToken**](docs/OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh Org Access Token
|
|
98
103
|
*CoboWaas2.OrganizationsApi* | [**getOrgInfo**](docs/OrganizationsApi.md#getOrgInfo) | **GET** /organizations/info | Get organization information
|
|
99
104
|
*CoboWaas2.PaymentApi* | [**cancelRefundById**](docs/PaymentApi.md#cancelRefundById) | **PUT** /payments/refunds/{refund_id}/cancel | Cancel refund order
|
|
100
|
-
*CoboWaas2.PaymentApi* | [**
|
|
105
|
+
*CoboWaas2.PaymentApi* | [**createCryptoAddress**](docs/PaymentApi.md#createCryptoAddress) | **POST** /payments/crypto_addresses | Create crypto address
|
|
106
|
+
*CoboWaas2.PaymentApi* | [**createForcedSweepRequest**](docs/PaymentApi.md#createForcedSweepRequest) | **POST** /payments/force_sweep_requests | Create forced sweep
|
|
101
107
|
*CoboWaas2.PaymentApi* | [**createMerchant**](docs/PaymentApi.md#createMerchant) | **POST** /payments/merchants | Create merchant
|
|
102
108
|
*CoboWaas2.PaymentApi* | [**createPaymentOrder**](docs/PaymentApi.md#createPaymentOrder) | **POST** /payments/orders | Create pay-in order
|
|
103
109
|
*CoboWaas2.PaymentApi* | [**createRefund**](docs/PaymentApi.md#createRefund) | **POST** /payments/refunds | Create refund order
|
|
104
110
|
*CoboWaas2.PaymentApi* | [**createSettlementRequest**](docs/PaymentApi.md#createSettlementRequest) | **POST** /payments/settlement_requests | Create settlement request
|
|
111
|
+
*CoboWaas2.PaymentApi* | [**deleteCryptoAddress**](docs/PaymentApi.md#deleteCryptoAddress) | **POST** /payments/crypto_addresses/{crypto_address_id}/delete | Delete crypto address
|
|
105
112
|
*CoboWaas2.PaymentApi* | [**getExchangeRate**](docs/PaymentApi.md#getExchangeRate) | **GET** /payments/exchange_rates/{token_id}/{currency} | Get exchange rate
|
|
113
|
+
*CoboWaas2.PaymentApi* | [**getPayerBalanceByAddress**](docs/PaymentApi.md#getPayerBalanceByAddress) | **GET** /payments/balance/payer/address | Get payer balance by address
|
|
106
114
|
*CoboWaas2.PaymentApi* | [**getPaymentOrderDetailById**](docs/PaymentApi.md#getPaymentOrderDetailById) | **GET** /payments/orders/{order_id} | Get pay-in order information
|
|
115
|
+
*CoboWaas2.PaymentApi* | [**getPspBalance**](docs/PaymentApi.md#getPspBalance) | **GET** /payments/balance/psp | Get psp balance
|
|
107
116
|
*CoboWaas2.PaymentApi* | [**getRefundDetailById**](docs/PaymentApi.md#getRefundDetailById) | **GET** /payments/refunds/{refund_id} | Get refund order information
|
|
108
117
|
*CoboWaas2.PaymentApi* | [**getRefunds**](docs/PaymentApi.md#getRefunds) | **GET** /payments/refunds | List all refund orders
|
|
109
118
|
*CoboWaas2.PaymentApi* | [**getSettlementById**](docs/PaymentApi.md#getSettlementById) | **GET** /payments/settlement_requests/{settlement_request_id} | Get settlement request information
|
|
@@ -111,15 +120,18 @@ Class | Method | HTTP request | Description
|
|
|
111
120
|
*CoboWaas2.PaymentApi* | [**getTopUpAddress**](docs/PaymentApi.md#getTopUpAddress) | **GET** /payments/topup/address | Get top-up address
|
|
112
121
|
*CoboWaas2.PaymentApi* | [**listBankAccounts**](docs/PaymentApi.md#listBankAccounts) | **GET** /payments/bank_accounts | List all bank accounts
|
|
113
122
|
*CoboWaas2.PaymentApi* | [**listCryptoAddresses**](docs/PaymentApi.md#listCryptoAddresses) | **GET** /payments/crypto_addresses | List crypto addresses
|
|
114
|
-
*CoboWaas2.PaymentApi* | [**listForcedSweepRequests**](docs/PaymentApi.md#listForcedSweepRequests) | **GET** /payments/force_sweep_requests | List
|
|
123
|
+
*CoboWaas2.PaymentApi* | [**listForcedSweepRequests**](docs/PaymentApi.md#listForcedSweepRequests) | **GET** /payments/force_sweep_requests | List forced sweeps
|
|
124
|
+
*CoboWaas2.PaymentApi* | [**listMerchantBalances**](docs/PaymentApi.md#listMerchantBalances) | **GET** /payments/balance/merchants | List merchant balances
|
|
115
125
|
*CoboWaas2.PaymentApi* | [**listMerchants**](docs/PaymentApi.md#listMerchants) | **GET** /payments/merchants | List all merchants
|
|
116
126
|
*CoboWaas2.PaymentApi* | [**listPaymentOrders**](docs/PaymentApi.md#listPaymentOrders) | **GET** /payments/orders | List all pay-in orders
|
|
117
127
|
*CoboWaas2.PaymentApi* | [**listPaymentSupportedTokens**](docs/PaymentApi.md#listPaymentSupportedTokens) | **GET** /payments/supported_tokens | List all supported tokens
|
|
128
|
+
*CoboWaas2.PaymentApi* | [**listPaymentWalletBalances**](docs/PaymentApi.md#listPaymentWalletBalances) | **GET** /payments/balance/payment_wallets | List payment wallet balances
|
|
129
|
+
*CoboWaas2.PaymentApi* | [**listSettlementDetails**](docs/PaymentApi.md#listSettlementDetails) | **GET** /payments/settlement_details | List all settlement details
|
|
118
130
|
*CoboWaas2.PaymentApi* | [**listSettlementRequests**](docs/PaymentApi.md#listSettlementRequests) | **GET** /payments/settlement_requests | List all settlement requests
|
|
119
131
|
*CoboWaas2.PaymentApi* | [**listTopUpPayers**](docs/PaymentApi.md#listTopUpPayers) | **GET** /payments/topup/payers | List payers
|
|
120
132
|
*CoboWaas2.PaymentApi* | [**updateMerchantById**](docs/PaymentApi.md#updateMerchantById) | **PUT** /payments/merchants/{merchant_id} | Update merchant
|
|
121
133
|
*CoboWaas2.PaymentApi* | [**updatePaymentOrder**](docs/PaymentApi.md#updatePaymentOrder) | **PUT** /payments/orders/{order_id} | Update pay-in order
|
|
122
|
-
*CoboWaas2.PaymentApi* | [**updateRefundById**](docs/PaymentApi.md#updateRefundById) | **PUT** /payments/refunds/{refund_id} | Update refund order
|
|
134
|
+
*CoboWaas2.PaymentApi* | [**updateRefundById**](docs/PaymentApi.md#updateRefundById) | **PUT** /payments/refunds/{refund_id} | Update refund order
|
|
123
135
|
*CoboWaas2.PaymentApi* | [**updateTopUpAddress**](docs/PaymentApi.md#updateTopUpAddress) | **PUT** /payments/topup/address | Update top-up address
|
|
124
136
|
*CoboWaas2.PrimeBrokerApi* | [**changeGuardPubkey**](docs/PrimeBrokerApi.md#changeGuardPubkey) | **PUT** /prime_broker/user/{user_id}/guard_pubkey | Change Guard pubkey binding
|
|
125
137
|
*CoboWaas2.PrimeBrokerApi* | [**createGuardPubkey**](docs/PrimeBrokerApi.md#createGuardPubkey) | **POST** /prime_broker/user/{user_id}/guard_pubkey | Create Guard pubkey binding
|
|
@@ -147,6 +159,25 @@ Class | Method | HTTP request | Description
|
|
|
147
159
|
*CoboWaas2.StakingsApi* | [**listStakingActivities**](docs/StakingsApi.md#listStakingActivities) | **GET** /stakings/activities | List staking activities
|
|
148
160
|
*CoboWaas2.StakingsApi* | [**listStakingPools**](docs/StakingsApi.md#listStakingPools) | **GET** /stakings/pools | List staking pools
|
|
149
161
|
*CoboWaas2.StakingsApi* | [**listStakings**](docs/StakingsApi.md#listStakings) | **GET** /stakings | List staking positions
|
|
162
|
+
*CoboWaas2.TokenizationApi* | [**burnTokenization**](docs/TokenizationApi.md#burnTokenization) | **POST** /tokenization/tokens/{token_id}/burn | Burn tokens
|
|
163
|
+
*CoboWaas2.TokenizationApi* | [**estimateTokenizationFee**](docs/TokenizationApi.md#estimateTokenizationFee) | **POST** /tokenization/estimate_fee | Estimate tokenization operation fee
|
|
164
|
+
*CoboWaas2.TokenizationApi* | [**getTokenizationActivity**](docs/TokenizationApi.md#getTokenizationActivity) | **GET** /tokenization/activities/{activity_id} | Get tokenization activity details
|
|
165
|
+
*CoboWaas2.TokenizationApi* | [**getTokenizationAllowlistActivation**](docs/TokenizationApi.md#getTokenizationAllowlistActivation) | **GET** /tokenization/tokens/{token_id}/allowlist/activation | Get allowlist activation status
|
|
166
|
+
*CoboWaas2.TokenizationApi* | [**getTokenizationInfo**](docs/TokenizationApi.md#getTokenizationInfo) | **GET** /tokenization/tokens/{token_id} | Get token details
|
|
167
|
+
*CoboWaas2.TokenizationApi* | [**issueToken**](docs/TokenizationApi.md#issueToken) | **POST** /tokenization/tokens | Issue token
|
|
168
|
+
*CoboWaas2.TokenizationApi* | [**listIssuedTokens**](docs/TokenizationApi.md#listIssuedTokens) | **GET** /tokenization/tokens | List issued tokens
|
|
169
|
+
*CoboWaas2.TokenizationApi* | [**listTokenizationActivities**](docs/TokenizationApi.md#listTokenizationActivities) | **GET** /tokenization/activities | List tokenization activities
|
|
170
|
+
*CoboWaas2.TokenizationApi* | [**listTokenizationAllowlistAddresses**](docs/TokenizationApi.md#listTokenizationAllowlistAddresses) | **GET** /tokenization/tokens/{token_id}/allowlist/addresses | List addresses on allowlist
|
|
171
|
+
*CoboWaas2.TokenizationApi* | [**listTokenizationBlocklistAddresses**](docs/TokenizationApi.md#listTokenizationBlocklistAddresses) | **GET** /tokenization/tokens/{token_id}/blocklist/addresses | Lists addresses on blocklist
|
|
172
|
+
*CoboWaas2.TokenizationApi* | [**listTokenizationHoldings**](docs/TokenizationApi.md#listTokenizationHoldings) | **GET** /tokenization/tokens/{token_id}/holdings | Get token holdings information
|
|
173
|
+
*CoboWaas2.TokenizationApi* | [**listTokenizationSupportedChains**](docs/TokenizationApi.md#listTokenizationSupportedChains) | **GET** /tokenization/enabled_chains | List supported chains for tokenization
|
|
174
|
+
*CoboWaas2.TokenizationApi* | [**mintTokenization**](docs/TokenizationApi.md#mintTokenization) | **POST** /tokenization/tokens/{token_id}/mint | Mint tokens
|
|
175
|
+
*CoboWaas2.TokenizationApi* | [**pauseTokenization**](docs/TokenizationApi.md#pauseTokenization) | **POST** /tokenization/tokens/{token_id}/pause | Pause token contract
|
|
176
|
+
*CoboWaas2.TokenizationApi* | [**tokenizationContractCall**](docs/TokenizationApi.md#tokenizationContractCall) | **POST** /tokenization/tokens/{token_id}/contract_call | Call token contract
|
|
177
|
+
*CoboWaas2.TokenizationApi* | [**unpauseTokenization**](docs/TokenizationApi.md#unpauseTokenization) | **POST** /tokenization/tokens/{token_id}/unpause | Unpause token contract
|
|
178
|
+
*CoboWaas2.TokenizationApi* | [**updateTokenizationAllowlistActivation**](docs/TokenizationApi.md#updateTokenizationAllowlistActivation) | **POST** /tokenization/tokens/{token_id}/allowlist/activation | Activate or deactivate allowlist
|
|
179
|
+
*CoboWaas2.TokenizationApi* | [**updateTokenizationAllowlistAddresses**](docs/TokenizationApi.md#updateTokenizationAllowlistAddresses) | **POST** /tokenization/tokens/{token_id}/allowlist/addresses | Update addresses on allowlist
|
|
180
|
+
*CoboWaas2.TokenizationApi* | [**updateTokenizationBlocklistAddresses**](docs/TokenizationApi.md#updateTokenizationBlocklistAddresses) | **POST** /tokenization/tokens/{token_id}/blocklist/addresses | Update addresses on blocklist
|
|
150
181
|
*CoboWaas2.TransactionsApi* | [**broadcastSignedTransactions**](docs/TransactionsApi.md#broadcastSignedTransactions) | **POST** /transactions/broadcast | Broadcast signed transactions
|
|
151
182
|
*CoboWaas2.TransactionsApi* | [**cancelTransactionById**](docs/TransactionsApi.md#cancelTransactionById) | **POST** /transactions/{transaction_id}/cancel | Cancel transaction
|
|
152
183
|
*CoboWaas2.TransactionsApi* | [**checkLoopTransfers**](docs/TransactionsApi.md#checkLoopTransfers) | **GET** /transactions/check_loop_transfers | Check Cobo Loop transfers
|
|
@@ -157,7 +188,9 @@ Class | Method | HTTP request | Description
|
|
|
157
188
|
*CoboWaas2.TransactionsApi* | [**estimateFee**](docs/TransactionsApi.md#estimateFee) | **POST** /transactions/estimate_fee | Estimate transaction fee
|
|
158
189
|
*CoboWaas2.TransactionsApi* | [**getTransactionApprovalDetail**](docs/TransactionsApi.md#getTransactionApprovalDetail) | **GET** /transactions/{transaction_id}/approval_detail | Get transaction approval details
|
|
159
190
|
*CoboWaas2.TransactionsApi* | [**getTransactionById**](docs/TransactionsApi.md#getTransactionById) | **GET** /transactions/{transaction_id} | Get transaction information
|
|
191
|
+
*CoboWaas2.TransactionsApi* | [**listApprovalDetails**](docs/TransactionsApi.md#listApprovalDetails) | **GET** /transactions/approval/details | List transaction approval details
|
|
160
192
|
*CoboWaas2.TransactionsApi* | [**listTransactionApprovalDetails**](docs/TransactionsApi.md#listTransactionApprovalDetails) | **GET** /transactions/approval_details | List transaction approval details
|
|
193
|
+
*CoboWaas2.TransactionsApi* | [**listTransactionTemplates**](docs/TransactionsApi.md#listTransactionTemplates) | **GET** /transactions/templates | list transaction templates
|
|
161
194
|
*CoboWaas2.TransactionsApi* | [**listTransactions**](docs/TransactionsApi.md#listTransactions) | **GET** /transactions | List all transactions
|
|
162
195
|
*CoboWaas2.TransactionsApi* | [**resendTransactionById**](docs/TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
|
|
163
196
|
*CoboWaas2.TransactionsApi* | [**signAndBroadcastTransactionById**](docs/TransactionsApi.md#signAndBroadcastTransactionById) | **POST** /transactions/{transaction_id}/sign_and_broadcast | Sign and broadcast transaction
|
|
@@ -264,6 +297,8 @@ Class | Method | HTTP request | Description
|
|
|
264
297
|
- [CoboWaas2.AssetBalance](docs/AssetBalance.md)
|
|
265
298
|
- [CoboWaas2.AssetInfo](docs/AssetInfo.md)
|
|
266
299
|
- [CoboWaas2.AutoFuelType](docs/AutoFuelType.md)
|
|
300
|
+
- [CoboWaas2.AutoSweepTask](docs/AutoSweepTask.md)
|
|
301
|
+
- [CoboWaas2.AutoSweepTaskStatus](docs/AutoSweepTaskStatus.md)
|
|
267
302
|
- [CoboWaas2.BTCBIP137MessageSignDestination](docs/BTCBIP137MessageSignDestination.md)
|
|
268
303
|
- [CoboWaas2.BTCBIP322MessageSignDestination](docs/BTCBIP322MessageSignDestination.md)
|
|
269
304
|
- [CoboWaas2.BTCEIP191MessageSignDestination](docs/BTCEIP191MessageSignDestination.md)
|
|
@@ -314,12 +349,14 @@ Class | Method | HTTP request | Description
|
|
|
314
349
|
- [CoboWaas2.CosmosContractCallMessage](docs/CosmosContractCallMessage.md)
|
|
315
350
|
- [CoboWaas2.CreateAddressRequest](docs/CreateAddressRequest.md)
|
|
316
351
|
- [CoboWaas2.CreateApprovalRequest201Response](docs/CreateApprovalRequest201Response.md)
|
|
352
|
+
- [CoboWaas2.CreateAutoSweepTask](docs/CreateAutoSweepTask.md)
|
|
317
353
|
- [CoboWaas2.CreateBabylonAirdropRegistration201Response](docs/CreateBabylonAirdropRegistration201Response.md)
|
|
318
354
|
- [CoboWaas2.CreateBabylonAirdropRegistrationRequest](docs/CreateBabylonAirdropRegistrationRequest.md)
|
|
319
355
|
- [CoboWaas2.CreateBabylonStakingRegistration201Response](docs/CreateBabylonStakingRegistration201Response.md)
|
|
320
356
|
- [CoboWaas2.CreateBabylonStakingRegistrationRequest](docs/CreateBabylonStakingRegistrationRequest.md)
|
|
321
357
|
- [CoboWaas2.CreateClaimActivity](docs/CreateClaimActivity.md)
|
|
322
358
|
- [CoboWaas2.CreateClaimActivityRequest](docs/CreateClaimActivityRequest.md)
|
|
359
|
+
- [CoboWaas2.CreateCryptoAddressRequest](docs/CreateCryptoAddressRequest.md)
|
|
323
360
|
- [CoboWaas2.CreateCustodialWalletParams](docs/CreateCustodialWalletParams.md)
|
|
324
361
|
- [CoboWaas2.CreateExchangeWalletParams](docs/CreateExchangeWalletParams.md)
|
|
325
362
|
- [CoboWaas2.CreateKeyShareHolder](docs/CreateKeyShareHolder.md)
|
|
@@ -340,6 +377,7 @@ Class | Method | HTTP request | Description
|
|
|
340
377
|
- [CoboWaas2.CreateStakeActivity201Response](docs/CreateStakeActivity201Response.md)
|
|
341
378
|
- [CoboWaas2.CreateStakeActivityExtra](docs/CreateStakeActivityExtra.md)
|
|
342
379
|
- [CoboWaas2.CreateStakeActivityRequest](docs/CreateStakeActivityRequest.md)
|
|
380
|
+
- [CoboWaas2.CreateSweepToAddress](docs/CreateSweepToAddress.md)
|
|
343
381
|
- [CoboWaas2.CreateTokenListingRequest201Response](docs/CreateTokenListingRequest201Response.md)
|
|
344
382
|
- [CoboWaas2.CreateTokenListingRequestRequest](docs/CreateTokenListingRequestRequest.md)
|
|
345
383
|
- [CoboWaas2.CreateTransferTransaction201Response](docs/CreateTransferTransaction201Response.md)
|
|
@@ -360,6 +398,7 @@ Class | Method | HTTP request | Description
|
|
|
360
398
|
- [CoboWaas2.CustodialWeb3ContractCallSource](docs/CustodialWeb3ContractCallSource.md)
|
|
361
399
|
- [CoboWaas2.CustodialWeb3MessageSignSource](docs/CustodialWeb3MessageSignSource.md)
|
|
362
400
|
- [CoboWaas2.CustodialWeb3TransferSource](docs/CustodialWeb3TransferSource.md)
|
|
401
|
+
- [CoboWaas2.DeleteCryptoAddress201Response](docs/DeleteCryptoAddress201Response.md)
|
|
363
402
|
- [CoboWaas2.DeleteGuardPubkey201Response](docs/DeleteGuardPubkey201Response.md)
|
|
364
403
|
- [CoboWaas2.DeleteKeyShareHolderGroupById201Response](docs/DeleteKeyShareHolderGroupById201Response.md)
|
|
365
404
|
- [CoboWaas2.DeleteWalletById201Response](docs/DeleteWalletById201Response.md)
|
|
@@ -431,6 +470,7 @@ Class | Method | HTTP request | Description
|
|
|
431
470
|
- [CoboWaas2.GetStakingEstimationFeeRequest](docs/GetStakingEstimationFeeRequest.md)
|
|
432
471
|
- [CoboWaas2.GetToken2XXResponse](docs/GetToken2XXResponse.md)
|
|
433
472
|
- [CoboWaas2.GetToken4XXResponse](docs/GetToken4XXResponse.md)
|
|
473
|
+
- [CoboWaas2.GetTokenizationAllowlistActivation200Response](docs/GetTokenizationAllowlistActivation200Response.md)
|
|
434
474
|
- [CoboWaas2.GetTransactionLimitation200Response](docs/GetTransactionLimitation200Response.md)
|
|
435
475
|
- [CoboWaas2.GraphQLError](docs/GraphQLError.md)
|
|
436
476
|
- [CoboWaas2.GraphQLErrorLocationsInner](docs/GraphQLErrorLocationsInner.md)
|
|
@@ -448,6 +488,7 @@ Class | Method | HTTP request | Description
|
|
|
448
488
|
- [CoboWaas2.ListAddresses200Response](docs/ListAddresses200Response.md)
|
|
449
489
|
- [CoboWaas2.ListApprovalRequests200Response](docs/ListApprovalRequests200Response.md)
|
|
450
490
|
- [CoboWaas2.ListAssetBalancesForExchangeWallet200Response](docs/ListAssetBalancesForExchangeWallet200Response.md)
|
|
491
|
+
- [CoboWaas2.ListAutoSweepTask200Response](docs/ListAutoSweepTask200Response.md)
|
|
451
492
|
- [CoboWaas2.ListBabylonAirdropRegistrations200Response](docs/ListBabylonAirdropRegistrations200Response.md)
|
|
452
493
|
- [CoboWaas2.ListBabylonEligibleAirdrops200Response](docs/ListBabylonEligibleAirdrops200Response.md)
|
|
453
494
|
- [CoboWaas2.ListBabylonEligibleStakings200Response](docs/ListBabylonEligibleStakings200Response.md)
|
|
@@ -458,10 +499,13 @@ Class | Method | HTTP request | Description
|
|
|
458
499
|
- [CoboWaas2.ListForcedSweepRequests200Response](docs/ListForcedSweepRequests200Response.md)
|
|
459
500
|
- [CoboWaas2.ListKeyShareHolderGroups200Response](docs/ListKeyShareHolderGroups200Response.md)
|
|
460
501
|
- [CoboWaas2.ListKeyShareHolders200Response](docs/ListKeyShareHolders200Response.md)
|
|
502
|
+
- [CoboWaas2.ListMerchantBalances200Response](docs/ListMerchantBalances200Response.md)
|
|
461
503
|
- [CoboWaas2.ListMerchants200Response](docs/ListMerchants200Response.md)
|
|
462
504
|
- [CoboWaas2.ListMpcProjects200Response](docs/ListMpcProjects200Response.md)
|
|
463
505
|
- [CoboWaas2.ListMpcVaults200Response](docs/ListMpcVaults200Response.md)
|
|
464
506
|
- [CoboWaas2.ListPaymentOrders200Response](docs/ListPaymentOrders200Response.md)
|
|
507
|
+
- [CoboWaas2.ListPaymentWalletBalances200Response](docs/ListPaymentWalletBalances200Response.md)
|
|
508
|
+
- [CoboWaas2.ListSettlementDetails200Response](docs/ListSettlementDetails200Response.md)
|
|
465
509
|
- [CoboWaas2.ListSettlementRequests200Response](docs/ListSettlementRequests200Response.md)
|
|
466
510
|
- [CoboWaas2.ListStakingActivities200Response](docs/ListStakingActivities200Response.md)
|
|
467
511
|
- [CoboWaas2.ListStakingPools200Response](docs/ListStakingPools200Response.md)
|
|
@@ -474,12 +518,14 @@ Class | Method | HTTP request | Description
|
|
|
474
518
|
- [CoboWaas2.ListTokenBalancesForFeeStation200Response](docs/ListTokenBalancesForFeeStation200Response.md)
|
|
475
519
|
- [CoboWaas2.ListTokenBalancesForFeeStation200ResponseDataInner](docs/ListTokenBalancesForFeeStation200ResponseDataInner.md)
|
|
476
520
|
- [CoboWaas2.ListTokenListingRequests200Response](docs/ListTokenListingRequests200Response.md)
|
|
521
|
+
- [CoboWaas2.ListTokenizationBlocklistAddresses200Response](docs/ListTokenizationBlocklistAddresses200Response.md)
|
|
477
522
|
- [CoboWaas2.ListTopUpPayers200Response](docs/ListTopUpPayers200Response.md)
|
|
478
523
|
- [CoboWaas2.ListTopUpPayers200ResponseDataInner](docs/ListTopUpPayers200ResponseDataInner.md)
|
|
479
524
|
- [CoboWaas2.ListTransactionApprovalDetails200Response](docs/ListTransactionApprovalDetails200Response.md)
|
|
480
525
|
- [CoboWaas2.ListTransactions200Response](docs/ListTransactions200Response.md)
|
|
481
526
|
- [CoboWaas2.ListTssRequests200Response](docs/ListTssRequests200Response.md)
|
|
482
527
|
- [CoboWaas2.ListUtxos200Response](docs/ListUtxos200Response.md)
|
|
528
|
+
- [CoboWaas2.ListWalletSweepToAddresses200Response](docs/ListWalletSweepToAddresses200Response.md)
|
|
483
529
|
- [CoboWaas2.ListWallets200Response](docs/ListWallets200Response.md)
|
|
484
530
|
- [CoboWaas2.ListWebhookEndpoints200Response](docs/ListWebhookEndpoints200Response.md)
|
|
485
531
|
- [CoboWaas2.ListWebhookEventDefinitions200ResponseInner](docs/ListWebhookEventDefinitions200ResponseInner.md)
|
|
@@ -497,6 +543,7 @@ Class | Method | HTTP request | Description
|
|
|
497
543
|
- [CoboWaas2.MaxFeeAmount](docs/MaxFeeAmount.md)
|
|
498
544
|
- [CoboWaas2.MaxTransferableValue](docs/MaxTransferableValue.md)
|
|
499
545
|
- [CoboWaas2.Merchant](docs/Merchant.md)
|
|
546
|
+
- [CoboWaas2.MerchantBalance](docs/MerchantBalance.md)
|
|
500
547
|
- [CoboWaas2.MessageSignDestination](docs/MessageSignDestination.md)
|
|
501
548
|
- [CoboWaas2.MessageSignDestinationType](docs/MessageSignDestinationType.md)
|
|
502
549
|
- [CoboWaas2.MessageSignParams](docs/MessageSignParams.md)
|
|
@@ -518,6 +565,7 @@ Class | Method | HTTP request | Description
|
|
|
518
565
|
- [CoboWaas2.PaymentSettlementEvent](docs/PaymentSettlementEvent.md)
|
|
519
566
|
- [CoboWaas2.PaymentTransaction](docs/PaymentTransaction.md)
|
|
520
567
|
- [CoboWaas2.PaymentTransactionEventData](docs/PaymentTransactionEventData.md)
|
|
568
|
+
- [CoboWaas2.PaymentWalletBalance](docs/PaymentWalletBalance.md)
|
|
521
569
|
- [CoboWaas2.PayoutChannel](docs/PayoutChannel.md)
|
|
522
570
|
- [CoboWaas2.PolicyAction](docs/PolicyAction.md)
|
|
523
571
|
- [CoboWaas2.PolicyActionContent](docs/PolicyActionContent.md)
|
|
@@ -528,10 +576,12 @@ Class | Method | HTTP request | Description
|
|
|
528
576
|
- [CoboWaas2.PoolDetails](docs/PoolDetails.md)
|
|
529
577
|
- [CoboWaas2.PoolDetailsAllOfValidatorsInfo](docs/PoolDetailsAllOfValidatorsInfo.md)
|
|
530
578
|
- [CoboWaas2.PoolSummary](docs/PoolSummary.md)
|
|
579
|
+
- [CoboWaas2.PspBalance](docs/PspBalance.md)
|
|
531
580
|
- [CoboWaas2.QueryApprovalStatement200Response](docs/QueryApprovalStatement200Response.md)
|
|
532
581
|
- [CoboWaas2.QueryGuardPubkey200Response](docs/QueryGuardPubkey200Response.md)
|
|
533
582
|
- [CoboWaas2.QueryGuardPubkey200ResponseAddressesInner](docs/QueryGuardPubkey200ResponseAddressesInner.md)
|
|
534
583
|
- [CoboWaas2.RawMessageSignDestination](docs/RawMessageSignDestination.md)
|
|
584
|
+
- [CoboWaas2.ReceivedAmountPerAddress](docs/ReceivedAmountPerAddress.md)
|
|
535
585
|
- [CoboWaas2.RefreshAddressBalancesByToken200Response](docs/RefreshAddressBalancesByToken200Response.md)
|
|
536
586
|
- [CoboWaas2.RefreshAddressBalancesByTokenRequest](docs/RefreshAddressBalancesByTokenRequest.md)
|
|
537
587
|
- [CoboWaas2.RefreshPermissionTokenRequest](docs/RefreshPermissionTokenRequest.md)
|
|
@@ -600,6 +650,8 @@ Class | Method | HTTP request | Description
|
|
|
600
650
|
- [CoboWaas2.SwapSingingStatus](docs/SwapSingingStatus.md)
|
|
601
651
|
- [CoboWaas2.SwapToken](docs/SwapToken.md)
|
|
602
652
|
- [CoboWaas2.SwapType](docs/SwapType.md)
|
|
653
|
+
- [CoboWaas2.SweepToAddress](docs/SweepToAddress.md)
|
|
654
|
+
- [CoboWaas2.SweepToAddressStatus](docs/SweepToAddressStatus.md)
|
|
603
655
|
- [CoboWaas2.TSSBaseRequestEventData](docs/TSSBaseRequestEventData.md)
|
|
604
656
|
- [CoboWaas2.TSSCallbackActionType](docs/TSSCallbackActionType.md)
|
|
605
657
|
- [CoboWaas2.TSSCallbackRequest](docs/TSSCallbackRequest.md)
|
|
@@ -653,6 +705,7 @@ Class | Method | HTTP request | Description
|
|
|
653
705
|
- [CoboWaas2.TokenizationAllowlistActivationParams](docs/TokenizationAllowlistActivationParams.md)
|
|
654
706
|
- [CoboWaas2.TokenizationAllowlistActivationRequest](docs/TokenizationAllowlistActivationRequest.md)
|
|
655
707
|
- [CoboWaas2.TokenizationAllowlistAddressNote](docs/TokenizationAllowlistAddressNote.md)
|
|
708
|
+
- [CoboWaas2.TokenizationAllowlistAddressesResponse](docs/TokenizationAllowlistAddressesResponse.md)
|
|
656
709
|
- [CoboWaas2.TokenizationAppInitiator](docs/TokenizationAppInitiator.md)
|
|
657
710
|
- [CoboWaas2.TokenizationBlocklistAddressNote](docs/TokenizationBlocklistAddressNote.md)
|
|
658
711
|
- [CoboWaas2.TokenizationBurnEstimateFeeParams](docs/TokenizationBurnEstimateFeeParams.md)
|
|
@@ -688,6 +741,9 @@ Class | Method | HTTP request | Description
|
|
|
688
741
|
- [CoboWaas2.TokenizationPauseEstimateFeeParams](docs/TokenizationPauseEstimateFeeParams.md)
|
|
689
742
|
- [CoboWaas2.TokenizationPauseTokenParams](docs/TokenizationPauseTokenParams.md)
|
|
690
743
|
- [CoboWaas2.TokenizationPauseTokenRequest](docs/TokenizationPauseTokenRequest.md)
|
|
744
|
+
- [CoboWaas2.TokenizationSOLTokenParams](docs/TokenizationSOLTokenParams.md)
|
|
745
|
+
- [CoboWaas2.TokenizationSolContractCallParams](docs/TokenizationSolContractCallParams.md)
|
|
746
|
+
- [CoboWaas2.TokenizationSolTokenPermissionParams](docs/TokenizationSolTokenPermissionParams.md)
|
|
691
747
|
- [CoboWaas2.TokenizationStatus](docs/TokenizationStatus.md)
|
|
692
748
|
- [CoboWaas2.TokenizationToggleAllowlistEstimateFeeParams](docs/TokenizationToggleAllowlistEstimateFeeParams.md)
|
|
693
749
|
- [CoboWaas2.TokenizationTokenDetailInfo](docs/TokenizationTokenDetailInfo.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -52,6 +52,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
52
52
|
var privateKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
53
53
|
var curve_type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
|
|
54
54
|
var signer = arguments.length > 3 ? arguments[3] : undefined;
|
|
55
|
+
var is_debug = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
55
56
|
_classCallCheck(this, ApiClient);
|
|
56
57
|
/**
|
|
57
58
|
* The base URL against which to resolve every API call's (relative) path.
|
|
@@ -101,7 +102,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
101
102
|
* @default {}
|
|
102
103
|
*/
|
|
103
104
|
this.defaultHeaders = {
|
|
104
|
-
'User-Agent': 'cobo-waas2-js-sdk/1.
|
|
105
|
+
'User-Agent': 'cobo-waas2-js-sdk/1.22.0'
|
|
105
106
|
};
|
|
106
107
|
|
|
107
108
|
/**
|
|
@@ -143,6 +144,12 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
143
144
|
* Allow user to add superagent plugins
|
|
144
145
|
*/
|
|
145
146
|
this.plugins = null;
|
|
147
|
+
|
|
148
|
+
/*
|
|
149
|
+
* If set to true, the client will log debug information
|
|
150
|
+
* @default false
|
|
151
|
+
*/
|
|
152
|
+
this.isDebug = is_debug;
|
|
146
153
|
}
|
|
147
154
|
|
|
148
155
|
/***
|
|
@@ -494,7 +501,9 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
494
501
|
}).join('&');
|
|
495
502
|
var nonce = String(new Date().getTime());
|
|
496
503
|
var strToSign = [httpMethod, new URL(url).pathname, nonce, queryStr, bodyParam ? JSON.stringify(bodyParam) : ''].join('|');
|
|
497
|
-
|
|
504
|
+
if (this.isDebug) {
|
|
505
|
+
console.log("strToSign:", strToSign);
|
|
506
|
+
}
|
|
498
507
|
var hash2String = CryptoJS.SHA256(CryptoJS.SHA256(strToSign)).toString(CryptoJS.enc.Hex);
|
|
499
508
|
var headers = {
|
|
500
509
|
'BIZ-API-KEY': this.signer.getPublicKey(),
|
package/dist/PreRequestScript.js
CHANGED
|
@@ -483,8 +483,7 @@ var _sign = function _sign(e, t, n) {
|
|
|
483
483
|
var t,
|
|
484
484
|
n,
|
|
485
485
|
_args3 = arguments,
|
|
486
|
-
_t3
|
|
487
|
-
_t4;
|
|
486
|
+
_t3;
|
|
488
487
|
return _regenerator().w(function (_context3) {
|
|
489
488
|
while (1) switch (_context3.n) {
|
|
490
489
|
case 0:
|
|
@@ -495,8 +494,7 @@ var _sign = function _sign(e, t, n) {
|
|
|
495
494
|
_context3.n = 1;
|
|
496
495
|
return t.subtle.digest("SHA-512", n.buffer);
|
|
497
496
|
case 1:
|
|
498
|
-
|
|
499
|
-
return _context3.a(2, _t3(_t4));
|
|
497
|
+
return _context3.a(2, _t3(_context3.v));
|
|
500
498
|
}
|
|
501
499
|
}, _callee3);
|
|
502
500
|
}));
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _AutoSweepTask = _interopRequireDefault(require("../model/AutoSweepTask"));
|
|
9
|
+
var _CreateAutoSweepTask = _interopRequireDefault(require("../model/CreateAutoSweepTask"));
|
|
10
|
+
var _CreateSweepToAddress = _interopRequireDefault(require("../model/CreateSweepToAddress"));
|
|
11
|
+
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
12
|
+
var _ListAutoSweepTask200Response = _interopRequireDefault(require("../model/ListAutoSweepTask200Response"));
|
|
13
|
+
var _ListWalletSweepToAddresses200Response = _interopRequireDefault(require("../model/ListWalletSweepToAddresses200Response"));
|
|
14
|
+
var _SweepToAddress = _interopRequireDefault(require("../model/SweepToAddress"));
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
|
+
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); }
|
|
17
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
18
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
19
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
20
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
21
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
22
|
+
* Cobo Wallet as a Service 2.0
|
|
23
|
+
*
|
|
24
|
+
* Contact: help@cobo.com
|
|
25
|
+
*
|
|
26
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27
|
+
* https://openapi-generator.tech
|
|
28
|
+
* Do not edit the class manually.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* AutoSweep service.
|
|
33
|
+
* @module api/AutoSweepApi
|
|
34
|
+
*/
|
|
35
|
+
var AutoSweepApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new AutoSweepApi.
|
|
38
|
+
* @alias module:api/AutoSweepApi
|
|
39
|
+
* @class
|
|
40
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
41
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
42
|
+
*/
|
|
43
|
+
function AutoSweepApi(apiClient) {
|
|
44
|
+
_classCallCheck(this, AutoSweepApi);
|
|
45
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* create auto sweep task
|
|
50
|
+
* This operation create a new auto sweep task.
|
|
51
|
+
* @param {Object} opts Optional parameters
|
|
52
|
+
* @param {module:model/CreateAutoSweepTask} [CreateAutoSweepTask] The request body to generates a new sweep to addresses within a specified wallet.
|
|
53
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AutoSweepTask} and HTTP response
|
|
54
|
+
*/
|
|
55
|
+
return _createClass(AutoSweepApi, [{
|
|
56
|
+
key: "createAutoSweepTaskWithHttpInfo",
|
|
57
|
+
value: function createAutoSweepTaskWithHttpInfo(opts) {
|
|
58
|
+
opts = opts || {};
|
|
59
|
+
var postBody = opts['CreateAutoSweepTask'];
|
|
60
|
+
if (postBody && postBody.toJSON) {
|
|
61
|
+
postBody = postBody.toJSON();
|
|
62
|
+
}
|
|
63
|
+
var pathParams = {};
|
|
64
|
+
var queryParams = {};
|
|
65
|
+
var headerParams = {};
|
|
66
|
+
var formParams = {};
|
|
67
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
68
|
+
var contentTypes = ['application/json'];
|
|
69
|
+
var accepts = ['application/json'];
|
|
70
|
+
var returnType = _AutoSweepTask["default"];
|
|
71
|
+
return this.apiClient.callApi('/auto_sweep/tasks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* create auto sweep task
|
|
76
|
+
* This operation create a new auto sweep task.
|
|
77
|
+
* @param {Object} opts Optional parameters
|
|
78
|
+
* @param {module:model/CreateAutoSweepTask} opts.CreateAutoSweepTask The request body to generates a new sweep to addresses within a specified wallet.
|
|
79
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AutoSweepTask}
|
|
80
|
+
*/
|
|
81
|
+
}, {
|
|
82
|
+
key: "createAutoSweepTask",
|
|
83
|
+
value: function createAutoSweepTask(opts) {
|
|
84
|
+
return this.createAutoSweepTaskWithHttpInfo(opts).then(function (response_and_data) {
|
|
85
|
+
return response_and_data.data;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* create wallet sweep to addresses
|
|
91
|
+
* This operation create a new sweep to address for the wallet. The old sweep to address will become invalid.
|
|
92
|
+
* @param {Object} opts Optional parameters
|
|
93
|
+
* @param {module:model/CreateSweepToAddress} [CreateSweepToAddress] The request body to generates a new sweep to addresses within a specified wallet.
|
|
94
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SweepToAddress} and HTTP response
|
|
95
|
+
*/
|
|
96
|
+
}, {
|
|
97
|
+
key: "createWalletSweepToAddressesWithHttpInfo",
|
|
98
|
+
value: function createWalletSweepToAddressesWithHttpInfo(opts) {
|
|
99
|
+
opts = opts || {};
|
|
100
|
+
var postBody = opts['CreateSweepToAddress'];
|
|
101
|
+
if (postBody && postBody.toJSON) {
|
|
102
|
+
postBody = postBody.toJSON();
|
|
103
|
+
}
|
|
104
|
+
var pathParams = {};
|
|
105
|
+
var queryParams = {};
|
|
106
|
+
var headerParams = {};
|
|
107
|
+
var formParams = {};
|
|
108
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
109
|
+
var contentTypes = ['application/json'];
|
|
110
|
+
var accepts = ['application/json'];
|
|
111
|
+
var returnType = _SweepToAddress["default"];
|
|
112
|
+
return this.apiClient.callApi('/auto_sweep/sweep_to_addresses', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* create wallet sweep to addresses
|
|
117
|
+
* This operation create a new sweep to address for the wallet. The old sweep to address will become invalid.
|
|
118
|
+
* @param {Object} opts Optional parameters
|
|
119
|
+
* @param {module:model/CreateSweepToAddress} opts.CreateSweepToAddress The request body to generates a new sweep to addresses within a specified wallet.
|
|
120
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SweepToAddress}
|
|
121
|
+
*/
|
|
122
|
+
}, {
|
|
123
|
+
key: "createWalletSweepToAddresses",
|
|
124
|
+
value: function createWalletSweepToAddresses(opts) {
|
|
125
|
+
return this.createWalletSweepToAddressesWithHttpInfo(opts).then(function (response_and_data) {
|
|
126
|
+
return response_and_data.data;
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Get auto sweep task information
|
|
132
|
+
* This operation retrieves detailed information about a specified auto sweep task.
|
|
133
|
+
* @param {String} task_id The auto sweep task ID.
|
|
134
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AutoSweepTask} and HTTP response
|
|
135
|
+
*/
|
|
136
|
+
}, {
|
|
137
|
+
key: "getAutoSweepTaskByIdWithHttpInfo",
|
|
138
|
+
value: function getAutoSweepTaskByIdWithHttpInfo(task_id) {
|
|
139
|
+
var postBody = null;
|
|
140
|
+
if (postBody && postBody.toJSON) {
|
|
141
|
+
postBody = postBody.toJSON();
|
|
142
|
+
}
|
|
143
|
+
// verify the required parameter 'task_id' is set
|
|
144
|
+
if (task_id === undefined || task_id === null) {
|
|
145
|
+
throw new Error("Missing the required parameter 'task_id' when calling getAutoSweepTaskById");
|
|
146
|
+
}
|
|
147
|
+
var pathParams = {
|
|
148
|
+
'task_id': task_id
|
|
149
|
+
};
|
|
150
|
+
var queryParams = {};
|
|
151
|
+
var headerParams = {};
|
|
152
|
+
var formParams = {};
|
|
153
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
154
|
+
var contentTypes = [];
|
|
155
|
+
var accepts = ['application/json'];
|
|
156
|
+
var returnType = _AutoSweepTask["default"];
|
|
157
|
+
return this.apiClient.callApi('/auto_sweep/tasks/{task_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Get auto sweep task information
|
|
162
|
+
* This operation retrieves detailed information about a specified auto sweep task.
|
|
163
|
+
* @param {String} task_id The auto sweep task ID.
|
|
164
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AutoSweepTask}
|
|
165
|
+
*/
|
|
166
|
+
}, {
|
|
167
|
+
key: "getAutoSweepTaskById",
|
|
168
|
+
value: function getAutoSweepTaskById(task_id) {
|
|
169
|
+
return this.getAutoSweepTaskByIdWithHttpInfo(task_id).then(function (response_and_data) {
|
|
170
|
+
return response_and_data.data;
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* List wallet auto sweep task
|
|
176
|
+
* This operation retrieves a list of auto sweep task.
|
|
177
|
+
* @param {String} wallet_id The wallet ID.
|
|
178
|
+
* @param {Object} opts Optional parameters
|
|
179
|
+
* @param {String} [token_id] 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).
|
|
180
|
+
* @param {String} [task_ids] A list of auto sweep task IDs, separated by comma.
|
|
181
|
+
* @param {Number} [min_created_timestamp] The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time. If not provided, the default value is 90 days before the current time. This default value is subject to change.
|
|
182
|
+
* @param {Number} [max_created_timestamp] The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time. If not provided, the default value is the current time. This default value is subject to change.
|
|
183
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
184
|
+
* @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.
|
|
185
|
+
* @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.
|
|
186
|
+
* @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.
|
|
187
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAutoSweepTask200Response} and HTTP response
|
|
188
|
+
*/
|
|
189
|
+
}, {
|
|
190
|
+
key: "listAutoSweepTaskWithHttpInfo",
|
|
191
|
+
value: function listAutoSweepTaskWithHttpInfo(wallet_id, opts) {
|
|
192
|
+
opts = opts || {};
|
|
193
|
+
var postBody = null;
|
|
194
|
+
if (postBody && postBody.toJSON) {
|
|
195
|
+
postBody = postBody.toJSON();
|
|
196
|
+
}
|
|
197
|
+
// verify the required parameter 'wallet_id' is set
|
|
198
|
+
if (wallet_id === undefined || wallet_id === null) {
|
|
199
|
+
throw new Error("Missing the required parameter 'wallet_id' when calling listAutoSweepTask");
|
|
200
|
+
}
|
|
201
|
+
var pathParams = {};
|
|
202
|
+
var queryParams = {
|
|
203
|
+
'wallet_id': wallet_id,
|
|
204
|
+
'token_id': opts['token_id'],
|
|
205
|
+
'task_ids': opts['task_ids'],
|
|
206
|
+
'min_created_timestamp': opts['min_created_timestamp'],
|
|
207
|
+
'max_created_timestamp': opts['max_created_timestamp'],
|
|
208
|
+
'limit': opts['limit'],
|
|
209
|
+
'before': opts['before'],
|
|
210
|
+
'after': opts['after'],
|
|
211
|
+
'direction': opts['direction']
|
|
212
|
+
};
|
|
213
|
+
var headerParams = {};
|
|
214
|
+
var formParams = {};
|
|
215
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
216
|
+
var contentTypes = [];
|
|
217
|
+
var accepts = ['application/json'];
|
|
218
|
+
var returnType = _ListAutoSweepTask200Response["default"];
|
|
219
|
+
return this.apiClient.callApi('/auto_sweep/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* List wallet auto sweep task
|
|
224
|
+
* This operation retrieves a list of auto sweep task.
|
|
225
|
+
* @param {String} wallet_id The wallet ID.
|
|
226
|
+
* @param {Object} opts Optional parameters
|
|
227
|
+
* @param {String} opts.token_id 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).
|
|
228
|
+
* @param {String} opts.task_ids A list of auto sweep task IDs, separated by comma.
|
|
229
|
+
* @param {Number} opts.min_created_timestamp The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time. If not provided, the default value is 90 days before the current time. This default value is subject to change.
|
|
230
|
+
* @param {Number} opts.max_created_timestamp The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time. If not provided, the default value is the current time. This default value is subject to change.
|
|
231
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
232
|
+
* @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.
|
|
233
|
+
* @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.
|
|
234
|
+
* @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')
|
|
235
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAutoSweepTask200Response}
|
|
236
|
+
*/
|
|
237
|
+
}, {
|
|
238
|
+
key: "listAutoSweepTask",
|
|
239
|
+
value: function listAutoSweepTask(wallet_id, opts) {
|
|
240
|
+
return this.listAutoSweepTaskWithHttpInfo(wallet_id, opts).then(function (response_and_data) {
|
|
241
|
+
return response_and_data.data;
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* List wallet sweep to addresses
|
|
247
|
+
* This operation retrieves a list of sweep to addresses within your wallet.
|
|
248
|
+
* @param {String} wallet_id The wallet ID.
|
|
249
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListWalletSweepToAddresses200Response} and HTTP response
|
|
250
|
+
*/
|
|
251
|
+
}, {
|
|
252
|
+
key: "listWalletSweepToAddressesWithHttpInfo",
|
|
253
|
+
value: function listWalletSweepToAddressesWithHttpInfo(wallet_id) {
|
|
254
|
+
var postBody = null;
|
|
255
|
+
if (postBody && postBody.toJSON) {
|
|
256
|
+
postBody = postBody.toJSON();
|
|
257
|
+
}
|
|
258
|
+
// verify the required parameter 'wallet_id' is set
|
|
259
|
+
if (wallet_id === undefined || wallet_id === null) {
|
|
260
|
+
throw new Error("Missing the required parameter 'wallet_id' when calling listWalletSweepToAddresses");
|
|
261
|
+
}
|
|
262
|
+
var pathParams = {};
|
|
263
|
+
var queryParams = {
|
|
264
|
+
'wallet_id': wallet_id
|
|
265
|
+
};
|
|
266
|
+
var headerParams = {};
|
|
267
|
+
var formParams = {};
|
|
268
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
269
|
+
var contentTypes = [];
|
|
270
|
+
var accepts = ['application/json'];
|
|
271
|
+
var returnType = _ListWalletSweepToAddresses200Response["default"];
|
|
272
|
+
return this.apiClient.callApi('/auto_sweep/sweep_to_addresses', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* List wallet sweep to addresses
|
|
277
|
+
* This operation retrieves a list of sweep to addresses within your wallet.
|
|
278
|
+
* @param {String} wallet_id The wallet ID.
|
|
279
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListWalletSweepToAddresses200Response}
|
|
280
|
+
*/
|
|
281
|
+
}, {
|
|
282
|
+
key: "listWalletSweepToAddresses",
|
|
283
|
+
value: function listWalletSweepToAddresses(wallet_id) {
|
|
284
|
+
return this.listWalletSweepToAddressesWithHttpInfo(wallet_id).then(function (response_and_data) {
|
|
285
|
+
return response_and_data.data;
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
}]);
|
|
289
|
+
}();
|