@cobo/cobo-waas2 1.23.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -6
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +6 -6
- package/dist/api/FeeStationApi.js +47 -4
- package/dist/api/PaymentApi.js +194 -47
- package/dist/api/SwapsApi.js +374 -0
- package/dist/api/TransactionsApi.js +4 -4
- package/dist/index.js +224 -14
- package/dist/model/AddressInfo.js +13 -0
- package/dist/model/AddressesEventDataAllOfAddresses.js +18 -0
- package/dist/model/BridgingFee.js +136 -0
- package/dist/model/CommissionFee.js +110 -0
- package/dist/model/ContractCallDestination.js +48 -8
- package/dist/model/ContractCallDestinationType.js +5 -0
- package/dist/model/CreateMerchantRequest.js +13 -6
- package/dist/model/CreatePaymentOrderRequest.js +14 -1
- package/dist/model/CreateSettlement.js +2 -2
- package/dist/model/CreateSettlementRequestRequest.js +39 -0
- package/dist/model/CreateSwapActivityRequest.js +193 -0
- package/dist/model/CustodialTransferDestination.js +1 -1
- package/dist/model/EstimateContractCallFeeParams.js +1 -1
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/EstimateTransferFeeParams.js +1 -1
- package/dist/model/EstimatedEvmEip1559Fee.js +1 -1
- package/dist/model/EstimatedEvmLegacyFee.js +1 -1
- package/dist/model/EstimatedFILFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +1 -1
- package/dist/model/EstimatedSOLFee.js +1 -1
- package/dist/model/EstimatedUtxoFee.js +1 -1
- package/dist/model/FeeStationCheckFeeStationUsage.js +186 -0
- package/dist/model/FeeStationCheckFeeStationUsageResponse.js +200 -0
- package/dist/model/FeeStationGasStationType.js +61 -0
- package/dist/model/ListSwapActivities200Response.js +123 -0
- package/dist/model/ListSwapEnabledTokens200Response.js +123 -0
- package/dist/model/ListTopUpPayerAccounts200Response.js +123 -0
- package/dist/model/Merchant.js +9 -0
- package/dist/model/MerchantBalance.js +3 -3
- package/dist/model/MessageSignDestination.js +8 -70
- package/dist/model/OtcFee.js +123 -0
- package/dist/model/PaymentEstimateFee.js +125 -0
- package/dist/model/PaymentEstimateFee201Response.js +107 -0
- package/dist/model/{RawMessageSignDestination.js → PaymentEstimateFeeRequest.js} +51 -37
- package/dist/model/PaymentEstimatedFee.js +173 -0
- package/dist/model/PaymentFeeType.js +71 -0
- package/dist/model/PaymentRefundEventData.js +22 -2
- package/dist/model/PaymentSettlementEvent.js +62 -6
- package/dist/model/PspBalance.js +3 -3
- package/dist/model/Refund.js +17 -1
- package/dist/model/SettleRequestStatus.js +5 -0
- package/dist/model/Settlement.js +45 -3
- package/dist/model/SettlementDetail.js +33 -1
- package/dist/model/SettlementInfo.js +7 -7
- package/dist/model/SolContractCallAddressLookupTableAccount.js +126 -0
- package/dist/model/SolContractCallDestination.js +30 -0
- package/dist/model/StellarContractCallContractParam.js +164 -0
- package/dist/model/StellarContractCallContractType.js +56 -0
- package/dist/model/StellarContractCallDestination.js +125 -0
- package/dist/model/StellarContractCallTrustLineOperationType.js +56 -0
- package/dist/model/StellarContractCallTrustLineParam.js +133 -0
- package/dist/model/SupportedToken.js +9 -0
- package/dist/model/SwapActivity.js +9 -9
- package/dist/model/SwapActivityApprovers.js +1 -1
- package/dist/model/SwapActivityDetail.js +34 -18
- package/dist/model/SwapActivitySigners.js +2 -2
- package/dist/model/SwapActivityTimeline.js +5 -5
- package/dist/model/SwapEstimateFee.js +147 -0
- package/dist/model/SwapQuote.js +18 -31
- package/dist/model/SwapReceivingTransaction.js +133 -0
- package/dist/model/SwapToken.js +9 -9
- package/dist/model/TransactionCoboCategory.js +5 -0
- package/dist/model/TransactionDestination.js +48 -8
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionEvmEip1559Fee.js +1 -1
- package/dist/model/TransactionEvmLegacyFee.js +1 -1
- package/dist/model/TransactionFILFee.js +1 -1
- package/dist/model/TransactionFixedFee.js +1 -1
- package/dist/model/TransactionFuelingInfo.js +13 -0
- package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
- package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
- package/dist/model/TransactionRequestFILFee.js +1 -1
- package/dist/model/TransactionRequestSOLFee.js +1 -1
- package/dist/model/TransactionRequestUtxoFee.js +1 -1
- package/dist/model/TransactionSOLFee.js +1 -1
- package/dist/model/TransactionSolContractAddressLookupTableAccount.js +126 -0
- package/dist/model/TransactionSolContractDestination.js +30 -0
- package/dist/model/TransactionStellarContractParam.js +164 -0
- package/dist/model/TransactionStellarContractType.js +56 -0
- package/dist/model/{BTCEIP191MessageSignDestination.js → TransactionStellarDestination.js} +38 -35
- package/dist/model/TransactionStellarTrustLineOperationType.js +56 -0
- package/dist/model/TransactionStellarTrustLineParam.js +133 -0
- package/dist/model/TransactionUtxoFee.js +1 -1
- package/dist/model/UpdateBankAccountByIdRequest.js +108 -0
- package/dist/model/UpdateTopUpAddress.js +4 -6
- package/dist/model/WalletSetup.js +66 -0
- package/dist/model/WebhookEventData.js +19 -1
- package/docs/AddressBooksApi.md +3 -3
- package/docs/AddressInfo.md +1 -0
- package/docs/AddressesEventDataAllOfAddresses.md +1 -0
- package/docs/BridgingFee.md +11 -0
- package/docs/CommissionFee.md +9 -0
- package/docs/ContractCallDestination.md +2 -0
- package/docs/ContractCallDestinationType.md +2 -0
- package/docs/CreateMerchantRequest.md +2 -1
- package/docs/CreatePaymentOrderRequest.md +2 -1
- package/docs/CreateSettlement.md +2 -2
- package/docs/CreateSettlementRequestRequest.md +3 -0
- package/docs/CreateSwapActivityRequest.md +15 -0
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimateTransferFeeParams.md +1 -1
- package/docs/FeeStationApi.md +53 -0
- package/docs/FeeStationCheckFeeStationUsage.md +14 -0
- package/docs/FeeStationCheckFeeStationUsageResponse.md +16 -0
- package/docs/FeeStationGasStationType.md +12 -0
- package/docs/ListSwapActivities200Response.md +10 -0
- package/docs/ListSwapEnabledTokens200Response.md +10 -0
- package/docs/ListTopUpPayerAccounts200Response.md +10 -0
- package/docs/Merchant.md +1 -0
- package/docs/MerchantBalance.md +3 -3
- package/docs/MessageSignDestination.md +0 -1
- package/docs/OtcFee.md +10 -0
- package/docs/PaymentApi.md +196 -21
- package/docs/PaymentEstimateFee.md +10 -0
- package/docs/PaymentEstimateFee201Response.md +9 -0
- package/docs/PaymentEstimateFeeRequest.md +10 -0
- package/docs/PaymentEstimatedFee.md +13 -0
- package/docs/PaymentFeeType.md +16 -0
- package/docs/PaymentRefundEventData.md +2 -1
- package/docs/PaymentSettlementEvent.md +6 -3
- package/docs/PspBalance.md +3 -3
- package/docs/Refund.md +2 -1
- package/docs/SettleRequestStatus.md +2 -0
- package/docs/Settlement.md +6 -3
- package/docs/SettlementDetail.md +3 -1
- package/docs/SettlementInfo.md +6 -6
- package/docs/SolContractCallAddressLookupTableAccount.md +10 -0
- package/docs/SolContractCallDestination.md +1 -0
- package/docs/StellarContractCallContractParam.md +11 -0
- package/docs/StellarContractCallContractType.md +10 -0
- package/docs/StellarContractCallDestination.md +10 -0
- package/docs/StellarContractCallTrustLineOperationType.md +10 -0
- package/docs/StellarContractCallTrustLineParam.md +11 -0
- package/docs/SupportedToken.md +1 -0
- package/docs/SwapActivity.md +9 -9
- package/docs/SwapActivityDetail.md +10 -9
- package/docs/SwapActivitySigners.md +1 -1
- package/docs/SwapActivityTimeline.md +3 -3
- package/docs/SwapEstimateFee.md +12 -0
- package/docs/SwapQuote.md +10 -11
- package/docs/SwapReceivingTransaction.md +11 -0
- package/docs/SwapToken.md +6 -6
- package/docs/SwapsApi.md +356 -0
- package/docs/TransactionCoboCategory.md +2 -0
- package/docs/TransactionDestination.md +2 -0
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionFuelingInfo.md +1 -0
- package/docs/TransactionSolContractAddressLookupTableAccount.md +10 -0
- package/docs/TransactionSolContractDestination.md +1 -0
- package/docs/TransactionStellarContractParam.md +11 -0
- package/docs/TransactionStellarContractType.md +10 -0
- package/docs/TransactionStellarDestination.md +10 -0
- package/docs/TransactionStellarTrustLineOperationType.md +10 -0
- package/docs/TransactionStellarTrustLineParam.md +11 -0
- package/docs/TransactionsApi.md +2 -2
- package/docs/UpdateBankAccountByIdRequest.md +9 -0
- package/docs/UpdateTopUpAddress.md +1 -1
- package/docs/WalletSetup.md +14 -0
- package/docs/WebhookEventData.md +4 -1
- package/package.json +1 -1
- package/docs/BTCEIP191MessageSignDestination.md +0 -10
- package/docs/RawMessageSignDestination.md +0 -10
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.24.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)
|
|
@@ -99,6 +99,7 @@ Class | Method | HTTP request | Description
|
|
|
99
99
|
*CoboWaas2.DevelopersWebhooksApi* | [**retryWebhookEventById**](docs/DevelopersWebhooksApi.md#retryWebhookEventById) | **POST** /webhooks/endpoints/{endpoint_id}/events/{event_id}/retry | Retry event
|
|
100
100
|
*CoboWaas2.DevelopersWebhooksApi* | [**triggerTestWebhookEvent**](docs/DevelopersWebhooksApi.md#triggerTestWebhookEvent) | **POST** /webhooks/events/trigger | Trigger test event
|
|
101
101
|
*CoboWaas2.DevelopersWebhooksApi* | [**updateWebhookEndpointById**](docs/DevelopersWebhooksApi.md#updateWebhookEndpointById) | **PUT** /webhooks/endpoints/{endpoint_id} | Update webhook endpoint
|
|
102
|
+
*CoboWaas2.FeeStationApi* | [**checkFeeStationUsage**](docs/FeeStationApi.md#checkFeeStationUsage) | **POST** /fee_station/check_fee_station_usage | Check Fee Station usage
|
|
102
103
|
*CoboWaas2.FeeStationApi* | [**estimateFeeStationFee**](docs/FeeStationApi.md#estimateFeeStationFee) | **POST** /fee_station/transactions/estimate_fee | Estimate fee for Fee Station transaction
|
|
103
104
|
*CoboWaas2.FeeStationApi* | [**getFeeStationTransactionById**](docs/FeeStationApi.md#getFeeStationTransactionById) | **GET** /fee_station/transactions/{transaction_id} | Get Fee Station transaction information
|
|
104
105
|
*CoboWaas2.FeeStationApi* | [**listFeeStationAddresses**](docs/FeeStationApi.md#listFeeStationAddresses) | **GET** /fee_station/addresses | List Fee Station addresses
|
|
@@ -136,7 +137,10 @@ Class | Method | HTTP request | Description
|
|
|
136
137
|
*CoboWaas2.PaymentApi* | [**listPaymentWalletBalances**](docs/PaymentApi.md#listPaymentWalletBalances) | **GET** /payments/balance/payment_wallets | List payment wallet balances
|
|
137
138
|
*CoboWaas2.PaymentApi* | [**listSettlementDetails**](docs/PaymentApi.md#listSettlementDetails) | **GET** /payments/settlement_details | List all settlement details
|
|
138
139
|
*CoboWaas2.PaymentApi* | [**listSettlementRequests**](docs/PaymentApi.md#listSettlementRequests) | **GET** /payments/settlement_requests | List all settlement requests
|
|
140
|
+
*CoboWaas2.PaymentApi* | [**listTopUpPayerAccounts**](docs/PaymentApi.md#listTopUpPayerAccounts) | **GET** /payments/topup/payer_accounts | List top-up payer accounts
|
|
139
141
|
*CoboWaas2.PaymentApi* | [**listTopUpPayers**](docs/PaymentApi.md#listTopUpPayers) | **GET** /payments/topup/payers | List payers
|
|
142
|
+
*CoboWaas2.PaymentApi* | [**paymentEstimateFee**](docs/PaymentApi.md#paymentEstimateFee) | **POST** /payments/estimate_fee | Payment estimate fee
|
|
143
|
+
*CoboWaas2.PaymentApi* | [**updateBankAccountById**](docs/PaymentApi.md#updateBankAccountById) | **PUT** /payments/bank_accounts/{bank_account_id} | Update bank account
|
|
140
144
|
*CoboWaas2.PaymentApi* | [**updateMerchantById**](docs/PaymentApi.md#updateMerchantById) | **PUT** /payments/merchants/{merchant_id} | Update merchant
|
|
141
145
|
*CoboWaas2.PaymentApi* | [**updatePaymentOrder**](docs/PaymentApi.md#updatePaymentOrder) | **PUT** /payments/orders/{order_id} | Update pay-in order
|
|
142
146
|
*CoboWaas2.PaymentApi* | [**updateRefundById**](docs/PaymentApi.md#updateRefundById) | **PUT** /payments/refunds/{refund_id} | Update refund order
|
|
@@ -167,6 +171,12 @@ Class | Method | HTTP request | Description
|
|
|
167
171
|
*CoboWaas2.StakingsApi* | [**listStakingActivities**](docs/StakingsApi.md#listStakingActivities) | **GET** /stakings/activities | List staking activities
|
|
168
172
|
*CoboWaas2.StakingsApi* | [**listStakingPools**](docs/StakingsApi.md#listStakingPools) | **GET** /stakings/pools | List staking pools
|
|
169
173
|
*CoboWaas2.StakingsApi* | [**listStakings**](docs/StakingsApi.md#listStakings) | **GET** /stakings | List staking positions
|
|
174
|
+
*CoboWaas2.SwapsApi* | [**createSwapActivity**](docs/SwapsApi.md#createSwapActivity) | **POST** /swaps/swap | Create swap activity
|
|
175
|
+
*CoboWaas2.SwapsApi* | [**estimateSwapFee**](docs/SwapsApi.md#estimateSwapFee) | **POST** /swaps/estimate_fee | Estimate swap fee
|
|
176
|
+
*CoboWaas2.SwapsApi* | [**getSwapActivity**](docs/SwapsApi.md#getSwapActivity) | **GET** /swaps/activities/{activity_id} | Get swap activity
|
|
177
|
+
*CoboWaas2.SwapsApi* | [**getSwapQuote**](docs/SwapsApi.md#getSwapQuote) | **GET** /swaps/quote | Get swap quote
|
|
178
|
+
*CoboWaas2.SwapsApi* | [**listSwapActivities**](docs/SwapsApi.md#listSwapActivities) | **GET** /swaps/activities | List swap activities
|
|
179
|
+
*CoboWaas2.SwapsApi* | [**listSwapEnabledTokens**](docs/SwapsApi.md#listSwapEnabledTokens) | **GET** /swaps/enabled_tokens | List enabled tokens for swap
|
|
170
180
|
*CoboWaas2.TokenizationApi* | [**burnTokenization**](docs/TokenizationApi.md#burnTokenization) | **POST** /tokenization/tokens/{token_id}/burn | Burn tokens
|
|
171
181
|
*CoboWaas2.TokenizationApi* | [**estimateTokenizationFee**](docs/TokenizationApi.md#estimateTokenizationFee) | **POST** /tokenization/estimate_fee | Estimate tokenization operation fee
|
|
172
182
|
*CoboWaas2.TokenizationApi* | [**getTokenizationActivity**](docs/TokenizationApi.md#getTokenizationActivity) | **GET** /tokenization/activities/{activity_id} | Get tokenization activity details
|
|
@@ -308,7 +318,6 @@ Class | Method | HTTP request | Description
|
|
|
308
318
|
- [CoboWaas2.AutoSweepTaskStatus](docs/AutoSweepTaskStatus.md)
|
|
309
319
|
- [CoboWaas2.BTCBIP137MessageSignDestination](docs/BTCBIP137MessageSignDestination.md)
|
|
310
320
|
- [CoboWaas2.BTCBIP322MessageSignDestination](docs/BTCBIP322MessageSignDestination.md)
|
|
311
|
-
- [CoboWaas2.BTCEIP191MessageSignDestination](docs/BTCEIP191MessageSignDestination.md)
|
|
312
321
|
- [CoboWaas2.BabylonAirdropPop](docs/BabylonAirdropPop.md)
|
|
313
322
|
- [CoboWaas2.BabylonAirdropRegistration](docs/BabylonAirdropRegistration.md)
|
|
314
323
|
- [CoboWaas2.BabylonEligibleAirdrop](docs/BabylonEligibleAirdrop.md)
|
|
@@ -331,6 +340,7 @@ Class | Method | HTTP request | Description
|
|
|
331
340
|
- [CoboWaas2.BatchCheckUtxo201Response](docs/BatchCheckUtxo201Response.md)
|
|
332
341
|
- [CoboWaas2.BatchCheckUtxoRequest](docs/BatchCheckUtxoRequest.md)
|
|
333
342
|
- [CoboWaas2.BatchUTXOParam](docs/BatchUTXOParam.md)
|
|
343
|
+
- [CoboWaas2.BridgingFee](docs/BridgingFee.md)
|
|
334
344
|
- [CoboWaas2.BroadcastSignedTransactions201ResponseInner](docs/BroadcastSignedTransactions201ResponseInner.md)
|
|
335
345
|
- [CoboWaas2.BroadcastSignedTransactionsRequest](docs/BroadcastSignedTransactionsRequest.md)
|
|
336
346
|
- [CoboWaas2.CallbackMessage](docs/CallbackMessage.md)
|
|
@@ -343,6 +353,7 @@ Class | Method | HTTP request | Description
|
|
|
343
353
|
- [CoboWaas2.CheckLoopTransfers200ResponseInner](docs/CheckLoopTransfers200ResponseInner.md)
|
|
344
354
|
- [CoboWaas2.CoboSafeDelegate](docs/CoboSafeDelegate.md)
|
|
345
355
|
- [CoboWaas2.CoboSafeDelegateType](docs/CoboSafeDelegateType.md)
|
|
356
|
+
- [CoboWaas2.CommissionFee](docs/CommissionFee.md)
|
|
346
357
|
- [CoboWaas2.ComplianceDispositionUpdateEventData](docs/ComplianceDispositionUpdateEventData.md)
|
|
347
358
|
- [CoboWaas2.ContractCallDestination](docs/ContractCallDestination.md)
|
|
348
359
|
- [CoboWaas2.ContractCallDestinationType](docs/ContractCallDestinationType.md)
|
|
@@ -388,6 +399,7 @@ Class | Method | HTTP request | Description
|
|
|
388
399
|
- [CoboWaas2.CreateStakeActivity201Response](docs/CreateStakeActivity201Response.md)
|
|
389
400
|
- [CoboWaas2.CreateStakeActivityExtra](docs/CreateStakeActivityExtra.md)
|
|
390
401
|
- [CoboWaas2.CreateStakeActivityRequest](docs/CreateStakeActivityRequest.md)
|
|
402
|
+
- [CoboWaas2.CreateSwapActivityRequest](docs/CreateSwapActivityRequest.md)
|
|
391
403
|
- [CoboWaas2.CreateSweepToAddress](docs/CreateSweepToAddress.md)
|
|
392
404
|
- [CoboWaas2.CreateTokenListingRequest201Response](docs/CreateTokenListingRequest201Response.md)
|
|
393
405
|
- [CoboWaas2.CreateTokenListingRequestRequest](docs/CreateTokenListingRequestRequest.md)
|
|
@@ -470,7 +482,10 @@ Class | Method | HTTP request | Description
|
|
|
470
482
|
- [CoboWaas2.FeeGasLimit](docs/FeeGasLimit.md)
|
|
471
483
|
- [CoboWaas2.FeeRate](docs/FeeRate.md)
|
|
472
484
|
- [CoboWaas2.FeeReserved](docs/FeeReserved.md)
|
|
485
|
+
- [CoboWaas2.FeeStationCheckFeeStationUsage](docs/FeeStationCheckFeeStationUsage.md)
|
|
486
|
+
- [CoboWaas2.FeeStationCheckFeeStationUsageResponse](docs/FeeStationCheckFeeStationUsageResponse.md)
|
|
473
487
|
- [CoboWaas2.FeeStationDestination](docs/FeeStationDestination.md)
|
|
488
|
+
- [CoboWaas2.FeeStationGasStationType](docs/FeeStationGasStationType.md)
|
|
474
489
|
- [CoboWaas2.FeeStationTransactionType](docs/FeeStationTransactionType.md)
|
|
475
490
|
- [CoboWaas2.FeeStationTransfer](docs/FeeStationTransfer.md)
|
|
476
491
|
- [CoboWaas2.FeeType](docs/FeeType.md)
|
|
@@ -532,11 +547,14 @@ Class | Method | HTTP request | Description
|
|
|
532
547
|
- [CoboWaas2.ListSupportedChains200Response](docs/ListSupportedChains200Response.md)
|
|
533
548
|
- [CoboWaas2.ListSupportedCountries200ResponseInner](docs/ListSupportedCountries200ResponseInner.md)
|
|
534
549
|
- [CoboWaas2.ListSupportedTokens200Response](docs/ListSupportedTokens200Response.md)
|
|
550
|
+
- [CoboWaas2.ListSwapActivities200Response](docs/ListSwapActivities200Response.md)
|
|
551
|
+
- [CoboWaas2.ListSwapEnabledTokens200Response](docs/ListSwapEnabledTokens200Response.md)
|
|
535
552
|
- [CoboWaas2.ListTokenBalancesForAddress200Response](docs/ListTokenBalancesForAddress200Response.md)
|
|
536
553
|
- [CoboWaas2.ListTokenBalancesForFeeStation200Response](docs/ListTokenBalancesForFeeStation200Response.md)
|
|
537
554
|
- [CoboWaas2.ListTokenBalancesForFeeStation200ResponseDataInner](docs/ListTokenBalancesForFeeStation200ResponseDataInner.md)
|
|
538
555
|
- [CoboWaas2.ListTokenListingRequests200Response](docs/ListTokenListingRequests200Response.md)
|
|
539
556
|
- [CoboWaas2.ListTokenizationBlocklistAddresses200Response](docs/ListTokenizationBlocklistAddresses200Response.md)
|
|
557
|
+
- [CoboWaas2.ListTopUpPayerAccounts200Response](docs/ListTopUpPayerAccounts200Response.md)
|
|
540
558
|
- [CoboWaas2.ListTopUpPayers200Response](docs/ListTopUpPayers200Response.md)
|
|
541
559
|
- [CoboWaas2.ListTopUpPayers200ResponseDataInner](docs/ListTopUpPayers200ResponseDataInner.md)
|
|
542
560
|
- [CoboWaas2.ListTransactionApprovalDetails200Response](docs/ListTransactionApprovalDetails200Response.md)
|
|
@@ -575,9 +593,15 @@ Class | Method | HTTP request | Description
|
|
|
575
593
|
- [CoboWaas2.Order](docs/Order.md)
|
|
576
594
|
- [CoboWaas2.OrderStatus](docs/OrderStatus.md)
|
|
577
595
|
- [CoboWaas2.OrgInfo](docs/OrgInfo.md)
|
|
596
|
+
- [CoboWaas2.OtcFee](docs/OtcFee.md)
|
|
578
597
|
- [CoboWaas2.Pagination](docs/Pagination.md)
|
|
579
598
|
- [CoboWaas2.PayerAccount](docs/PayerAccount.md)
|
|
580
599
|
- [CoboWaas2.PaymentAddressUpdateEventData](docs/PaymentAddressUpdateEventData.md)
|
|
600
|
+
- [CoboWaas2.PaymentEstimateFee](docs/PaymentEstimateFee.md)
|
|
601
|
+
- [CoboWaas2.PaymentEstimateFee201Response](docs/PaymentEstimateFee201Response.md)
|
|
602
|
+
- [CoboWaas2.PaymentEstimateFeeRequest](docs/PaymentEstimateFeeRequest.md)
|
|
603
|
+
- [CoboWaas2.PaymentEstimatedFee](docs/PaymentEstimatedFee.md)
|
|
604
|
+
- [CoboWaas2.PaymentFeeType](docs/PaymentFeeType.md)
|
|
581
605
|
- [CoboWaas2.PaymentOrderEventData](docs/PaymentOrderEventData.md)
|
|
582
606
|
- [CoboWaas2.PaymentRefundEventData](docs/PaymentRefundEventData.md)
|
|
583
607
|
- [CoboWaas2.PaymentSettlementEvent](docs/PaymentSettlementEvent.md)
|
|
@@ -598,7 +622,6 @@ Class | Method | HTTP request | Description
|
|
|
598
622
|
- [CoboWaas2.QueryApprovalStatement200Response](docs/QueryApprovalStatement200Response.md)
|
|
599
623
|
- [CoboWaas2.QueryGuardPubkey200Response](docs/QueryGuardPubkey200Response.md)
|
|
600
624
|
- [CoboWaas2.QueryGuardPubkey200ResponseAddressesInner](docs/QueryGuardPubkey200ResponseAddressesInner.md)
|
|
601
|
-
- [CoboWaas2.RawMessageSignDestination](docs/RawMessageSignDestination.md)
|
|
602
625
|
- [CoboWaas2.ReceivedAmountPerAddress](docs/ReceivedAmountPerAddress.md)
|
|
603
626
|
- [CoboWaas2.RefreshAddressBalancesByToken200Response](docs/RefreshAddressBalancesByToken200Response.md)
|
|
604
627
|
- [CoboWaas2.RefreshAddressBalancesByTokenRequest](docs/RefreshAddressBalancesByTokenRequest.md)
|
|
@@ -644,6 +667,7 @@ Class | Method | HTTP request | Description
|
|
|
644
667
|
- [CoboWaas2.SmartContractWalletOperationType](docs/SmartContractWalletOperationType.md)
|
|
645
668
|
- [CoboWaas2.SmartContractWalletType](docs/SmartContractWalletType.md)
|
|
646
669
|
- [CoboWaas2.SolContractCallAccount](docs/SolContractCallAccount.md)
|
|
670
|
+
- [CoboWaas2.SolContractCallAddressLookupTableAccount](docs/SolContractCallAddressLookupTableAccount.md)
|
|
647
671
|
- [CoboWaas2.SolContractCallDestination](docs/SolContractCallDestination.md)
|
|
648
672
|
- [CoboWaas2.SolContractCallInstruction](docs/SolContractCallInstruction.md)
|
|
649
673
|
- [CoboWaas2.SourceGroup](docs/SourceGroup.md)
|
|
@@ -653,6 +677,11 @@ Class | Method | HTTP request | Description
|
|
|
653
677
|
- [CoboWaas2.StakingSource](docs/StakingSource.md)
|
|
654
678
|
- [CoboWaas2.Stakings](docs/Stakings.md)
|
|
655
679
|
- [CoboWaas2.StakingsExtra](docs/StakingsExtra.md)
|
|
680
|
+
- [CoboWaas2.StellarContractCallContractParam](docs/StellarContractCallContractParam.md)
|
|
681
|
+
- [CoboWaas2.StellarContractCallContractType](docs/StellarContractCallContractType.md)
|
|
682
|
+
- [CoboWaas2.StellarContractCallDestination](docs/StellarContractCallDestination.md)
|
|
683
|
+
- [CoboWaas2.StellarContractCallTrustLineOperationType](docs/StellarContractCallTrustLineOperationType.md)
|
|
684
|
+
- [CoboWaas2.StellarContractCallTrustLineParam](docs/StellarContractCallTrustLineParam.md)
|
|
656
685
|
- [CoboWaas2.SubWalletAssetBalance](docs/SubWalletAssetBalance.md)
|
|
657
686
|
- [CoboWaas2.SubmitDepositTravelRuleInfo201Response](docs/SubmitDepositTravelRuleInfo201Response.md)
|
|
658
687
|
- [CoboWaas2.SupportedToken](docs/SupportedToken.md)
|
|
@@ -665,7 +694,9 @@ Class | Method | HTTP request | Description
|
|
|
665
694
|
- [CoboWaas2.SwapActivityStatus](docs/SwapActivityStatus.md)
|
|
666
695
|
- [CoboWaas2.SwapActivityTimeline](docs/SwapActivityTimeline.md)
|
|
667
696
|
- [CoboWaas2.SwapApproversStatus](docs/SwapApproversStatus.md)
|
|
697
|
+
- [CoboWaas2.SwapEstimateFee](docs/SwapEstimateFee.md)
|
|
668
698
|
- [CoboWaas2.SwapQuote](docs/SwapQuote.md)
|
|
699
|
+
- [CoboWaas2.SwapReceivingTransaction](docs/SwapReceivingTransaction.md)
|
|
669
700
|
- [CoboWaas2.SwapSingingStatus](docs/SwapSingingStatus.md)
|
|
670
701
|
- [CoboWaas2.SwapToken](docs/SwapToken.md)
|
|
671
702
|
- [CoboWaas2.SwapType](docs/SwapType.md)
|
|
@@ -854,11 +885,17 @@ Class | Method | HTTP request | Description
|
|
|
854
885
|
- [CoboWaas2.TransactionSigner](docs/TransactionSigner.md)
|
|
855
886
|
- [CoboWaas2.TransactionSmartContractSafeWalletSource](docs/TransactionSmartContractSafeWalletSource.md)
|
|
856
887
|
- [CoboWaas2.TransactionSolContractAccount](docs/TransactionSolContractAccount.md)
|
|
888
|
+
- [CoboWaas2.TransactionSolContractAddressLookupTableAccount](docs/TransactionSolContractAddressLookupTableAccount.md)
|
|
857
889
|
- [CoboWaas2.TransactionSolContractDestination](docs/TransactionSolContractDestination.md)
|
|
858
890
|
- [CoboWaas2.TransactionSolContractInstruction](docs/TransactionSolContractInstruction.md)
|
|
859
891
|
- [CoboWaas2.TransactionSource](docs/TransactionSource.md)
|
|
860
892
|
- [CoboWaas2.TransactionSourceType](docs/TransactionSourceType.md)
|
|
861
893
|
- [CoboWaas2.TransactionStatus](docs/TransactionStatus.md)
|
|
894
|
+
- [CoboWaas2.TransactionStellarContractParam](docs/TransactionStellarContractParam.md)
|
|
895
|
+
- [CoboWaas2.TransactionStellarContractType](docs/TransactionStellarContractType.md)
|
|
896
|
+
- [CoboWaas2.TransactionStellarDestination](docs/TransactionStellarDestination.md)
|
|
897
|
+
- [CoboWaas2.TransactionStellarTrustLineOperationType](docs/TransactionStellarTrustLineOperationType.md)
|
|
898
|
+
- [CoboWaas2.TransactionStellarTrustLineParam](docs/TransactionStellarTrustLineParam.md)
|
|
862
899
|
- [CoboWaas2.TransactionSubStatus](docs/TransactionSubStatus.md)
|
|
863
900
|
- [CoboWaas2.TransactionTimeline](docs/TransactionTimeline.md)
|
|
864
901
|
- [CoboWaas2.TransactionTokeApproval](docs/TransactionTokeApproval.md)
|
|
@@ -894,6 +931,7 @@ Class | Method | HTTP request | Description
|
|
|
894
931
|
- [CoboWaas2.UTXO](docs/UTXO.md)
|
|
895
932
|
- [CoboWaas2.UnfreezeDisposition](docs/UnfreezeDisposition.md)
|
|
896
933
|
- [CoboWaas2.UpdateAddressBookParam](docs/UpdateAddressBookParam.md)
|
|
934
|
+
- [CoboWaas2.UpdateBankAccountByIdRequest](docs/UpdateBankAccountByIdRequest.md)
|
|
897
935
|
- [CoboWaas2.UpdateCustodialWalletParams](docs/UpdateCustodialWalletParams.md)
|
|
898
936
|
- [CoboWaas2.UpdateExchangeWalletParams](docs/UpdateExchangeWalletParams.md)
|
|
899
937
|
- [CoboWaas2.UpdateGroupAction](docs/UpdateGroupAction.md)
|
|
@@ -913,6 +951,7 @@ Class | Method | HTTP request | Description
|
|
|
913
951
|
- [CoboWaas2.Vasp](docs/Vasp.md)
|
|
914
952
|
- [CoboWaas2.WalletInfo](docs/WalletInfo.md)
|
|
915
953
|
- [CoboWaas2.WalletInfoEventData](docs/WalletInfoEventData.md)
|
|
954
|
+
- [CoboWaas2.WalletSetup](docs/WalletSetup.md)
|
|
916
955
|
- [CoboWaas2.WalletSubtype](docs/WalletSubtype.md)
|
|
917
956
|
- [CoboWaas2.WalletType](docs/WalletType.md)
|
|
918
957
|
- [CoboWaas2.WebhookEndpoint](docs/WebhookEndpoint.md)
|
|
@@ -957,7 +996,7 @@ Authentication schemes defined for the API:
|
|
|
957
996
|
- **Flow**: accessCode
|
|
958
997
|
- **Authorization URL**: https://auth.cobo.com/authorize
|
|
959
998
|
- **Scopes**:
|
|
960
|
-
- address_book.read: Read
|
|
999
|
+
- address_book.read: Read address book
|
|
961
1000
|
- api_key.read: Read API key information
|
|
962
1001
|
- callback.read: Read callback message
|
|
963
1002
|
- callback.resend: Resend callback message
|
|
@@ -1002,8 +1041,8 @@ Authentication schemes defined for the API:
|
|
|
1002
1041
|
- payment_merchant.create: Create payment merchant
|
|
1003
1042
|
- payment_merchant.read: Read payment merchant information
|
|
1004
1043
|
- payment_merchant.update: Update payment merchant
|
|
1005
|
-
-
|
|
1006
|
-
-
|
|
1044
|
+
- payment_forced_sweep.create: Create payment force sweep request
|
|
1045
|
+
- payment_forced_sweep.read: Read payment force sweep request information
|
|
1007
1046
|
- compliance_funds.refund: Refund compliance funds request
|
|
1008
1047
|
- compliance_funds.isolate: Isolate compliance funds request
|
|
1009
1048
|
- compliance_funds.unfreeze: Unfreeze compliance funds request
|
package/dist/ApiClient.js
CHANGED
|
@@ -47,7 +47,7 @@ var AddressBooksApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Create Address Book entries
|
|
50
|
-
* This operation adds new entries (records) to your Address Book.
|
|
50
|
+
* This operation adds new entries (records) to your Address Book. <Note>This operation is available upon request. Please contact our [customer support](mailto:help@cobo.com) to enable it.</Note>
|
|
51
51
|
* @param {Object} opts Optional parameters
|
|
52
52
|
* @param {module:model/CreateAddressBooksParam} [CreateAddressBooksParam] The request body of the create Address Books operation.
|
|
53
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAddressBooks201Response} and HTTP response
|
|
@@ -73,7 +73,7 @@ var AddressBooksApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Create Address Book entries
|
|
76
|
-
* This operation adds new entries (records) to your Address Book.
|
|
76
|
+
* This operation adds new entries (records) to your Address Book. <Note>This operation is available upon request. Please contact our [customer support](mailto:help@cobo.com) to enable it.</Note>
|
|
77
77
|
* @param {Object} opts Optional parameters
|
|
78
78
|
* @param {module:model/CreateAddressBooksParam} opts.CreateAddressBooksParam The request body of the create Address Books operation.
|
|
79
79
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAddressBooks201Response}
|
|
@@ -88,7 +88,7 @@ var AddressBooksApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* Delete Address Book entry
|
|
91
|
-
* This operation deletes a specified Address Book entry (record).
|
|
91
|
+
* This operation deletes a specified Address Book entry (record). <Note>This operation is available upon request. Please contact our [customer support](mailto:help@cobo.com) to enable it.</Note>
|
|
92
92
|
* @param {String} entry_id The Address Book entry ID.
|
|
93
93
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteAddressBookById201Response} and HTTP response
|
|
94
94
|
*/
|
|
@@ -118,7 +118,7 @@ var AddressBooksApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
120
|
* Delete Address Book entry
|
|
121
|
-
* This operation deletes a specified Address Book entry (record).
|
|
121
|
+
* This operation deletes a specified Address Book entry (record). <Note>This operation is available upon request. Please contact our [customer support](mailto:help@cobo.com) to enable it.</Note>
|
|
122
122
|
* @param {String} entry_id The Address Book entry ID.
|
|
123
123
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteAddressBookById201Response}
|
|
124
124
|
*/
|
|
@@ -234,7 +234,7 @@ var AddressBooksApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
236
|
* Update Address Book entry
|
|
237
|
-
* This operation updates the information of a specified Address Book entry (record).
|
|
237
|
+
* This operation updates the information of a specified Address Book entry (record). <Note>This operation is available upon request. Please contact our [customer support](mailto:help@cobo.com) to enable it.</Note>
|
|
238
238
|
* @param {String} entry_id The Address Book entry ID.
|
|
239
239
|
* @param {Object} opts Optional parameters
|
|
240
240
|
* @param {module:model/UpdateAddressBookParam} [UpdateAddressBookParam] The request body of the update Address Book operation.
|
|
@@ -267,7 +267,7 @@ var AddressBooksApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
267
267
|
|
|
268
268
|
/**
|
|
269
269
|
* Update Address Book entry
|
|
270
|
-
* This operation updates the information of a specified Address Book entry (record).
|
|
270
|
+
* This operation updates the information of a specified Address Book entry (record). <Note>This operation is available upon request. Please contact our [customer support](mailto:help@cobo.com) to enable it.</Note>
|
|
271
271
|
* @param {String} entry_id The Address Book entry ID.
|
|
272
272
|
* @param {Object} opts Optional parameters
|
|
273
273
|
* @param {module:model/UpdateAddressBookParam} opts.UpdateAddressBookParam The request body of the update Address Book operation.
|
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
9
9
|
var _EstimatedFixedFee = _interopRequireDefault(require("../model/EstimatedFixedFee"));
|
|
10
|
+
var _FeeStationCheckFeeStationUsage = _interopRequireDefault(require("../model/FeeStationCheckFeeStationUsage"));
|
|
11
|
+
var _FeeStationCheckFeeStationUsageResponse = _interopRequireDefault(require("../model/FeeStationCheckFeeStationUsageResponse"));
|
|
10
12
|
var _FeeStationTransfer = _interopRequireDefault(require("../model/FeeStationTransfer"));
|
|
11
13
|
var _ListAddresses200Response = _interopRequireDefault(require("../model/ListAddresses200Response"));
|
|
12
14
|
var _ListTokenBalancesForFeeStation200Response = _interopRequireDefault(require("../model/ListTokenBalancesForFeeStation200Response"));
|
|
@@ -46,13 +48,54 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
/**
|
|
49
|
-
*
|
|
50
|
-
* This operation
|
|
51
|
+
* Check Fee Station usage
|
|
52
|
+
* This operation evaluates Fee Station usage for the current transaction. It determines whether Fee station can be used, checks if the Fee Station balance is sufficient, and returns a breakdown of the amounts involved, including any portion that must be covered by the user or sponsored in USDT (U).
|
|
51
53
|
* @param {Object} opts Optional parameters
|
|
52
|
-
* @param {module:model/
|
|
53
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
54
|
+
* @param {module:model/FeeStationCheckFeeStationUsage} [FeeStationCheckFeeStationUsage] The information for evaluating Fee Station usage.
|
|
55
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FeeStationCheckFeeStationUsageResponse} and HTTP response
|
|
54
56
|
*/
|
|
55
57
|
return _createClass(FeeStationApi, [{
|
|
58
|
+
key: "checkFeeStationUsageWithHttpInfo",
|
|
59
|
+
value: function checkFeeStationUsageWithHttpInfo(opts) {
|
|
60
|
+
opts = opts || {};
|
|
61
|
+
var postBody = opts['FeeStationCheckFeeStationUsage'];
|
|
62
|
+
if (postBody && postBody.toJSON) {
|
|
63
|
+
postBody = postBody.toJSON();
|
|
64
|
+
}
|
|
65
|
+
var pathParams = {};
|
|
66
|
+
var queryParams = {};
|
|
67
|
+
var headerParams = {};
|
|
68
|
+
var formParams = {};
|
|
69
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
70
|
+
var contentTypes = ['application/json'];
|
|
71
|
+
var accepts = ['application/json'];
|
|
72
|
+
var returnType = _FeeStationCheckFeeStationUsageResponse["default"];
|
|
73
|
+
return this.apiClient.callApi('/fee_station/check_fee_station_usage', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Check Fee Station usage
|
|
78
|
+
* This operation evaluates Fee Station usage for the current transaction. It determines whether Fee station can be used, checks if the Fee Station balance is sufficient, and returns a breakdown of the amounts involved, including any portion that must be covered by the user or sponsored in USDT (U).
|
|
79
|
+
* @param {Object} opts Optional parameters
|
|
80
|
+
* @param {module:model/FeeStationCheckFeeStationUsage} opts.FeeStationCheckFeeStationUsage The information for evaluating Fee Station usage.
|
|
81
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FeeStationCheckFeeStationUsageResponse}
|
|
82
|
+
*/
|
|
83
|
+
}, {
|
|
84
|
+
key: "checkFeeStationUsage",
|
|
85
|
+
value: function checkFeeStationUsage(opts) {
|
|
86
|
+
return this.checkFeeStationUsageWithHttpInfo(opts).then(function (response_and_data) {
|
|
87
|
+
return response_and_data.data;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Estimate fee for Fee Station transaction
|
|
93
|
+
* This operation estimates the gas fee required for a top-up transaction sent by [Fee Station](https://manuals.cobo.com/en/portal/fee-station/introduction) to provide gas to the sender of the original transaction. You need to provide the token ID and transfer amount. For more information about transaction fee models and how fees are calculated, refer to [Estimate transaction fee](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees).
|
|
94
|
+
* @param {Object} opts Optional parameters
|
|
95
|
+
* @param {module:model/FeeStationTransfer} [FeeStationTransfer] The information about a Fee Station top-up transaction.
|
|
96
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EstimatedFixedFee} and HTTP response
|
|
97
|
+
*/
|
|
98
|
+
}, {
|
|
56
99
|
key: "estimateFeeStationFeeWithHttpInfo",
|
|
57
100
|
value: function estimateFeeStationFeeWithHttpInfo(opts) {
|
|
58
101
|
opts = opts || {};
|