@cobo/cobo-waas2 1.19.1 → 1.20.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.
Files changed (92) hide show
  1. package/README.md +10 -1
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/PreRequestScript.js +1 -1
  4. package/dist/api/OAuthApi.js +4 -4
  5. package/dist/api/PaymentApi.js +144 -6
  6. package/dist/api/TransactionsApi.js +2 -2
  7. package/dist/index.js +42 -0
  8. package/dist/model/AddressesEventData.js +13 -3
  9. package/dist/model/BalanceUpdateInfoEventData.js +13 -3
  10. package/dist/model/ChainsEventData.js +13 -3
  11. package/dist/model/ContractCallDestination.js +1 -1
  12. package/dist/model/CreatePaymentOrderRequest.js +4 -4
  13. package/dist/model/CreateRefundRequest.js +3 -3
  14. package/dist/model/CreateSettlement.js +1 -1
  15. package/dist/model/CustodialWeb3TransferSource.js +2 -2
  16. package/dist/model/EstimateContractCallFeeParams.js +4 -6
  17. package/dist/model/EvmContractCallDestination.js +2 -2
  18. package/dist/model/ForcedSweep.js +193 -0
  19. package/dist/model/ForcedSweepRequest.js +156 -0
  20. package/dist/model/ForcedSweepStatus.js +66 -0
  21. package/dist/model/ListForcedSweepRequests200Response.js +123 -0
  22. package/dist/model/MPCVaultEventData.js +13 -3
  23. package/dist/model/MpcTransferSource.js +2 -2
  24. package/dist/model/Order.js +2 -2
  25. package/dist/model/PaymentAddressUpdateEventData.js +284 -0
  26. package/dist/model/PaymentOrderEventData.js +16 -6
  27. package/dist/model/PaymentRefundEventData.js +13 -3
  28. package/dist/model/PaymentSettlementEvent.js +13 -3
  29. package/dist/model/PaymentTransactionEventData.js +827 -0
  30. package/dist/model/SafeWalletDelegates.js +1 -1
  31. package/dist/model/SafeWalletDelegatesContractCall.js +1 -1
  32. package/dist/model/SettlementInfo.js +26 -0
  33. package/dist/model/SuspendedTokenEventData.js +13 -3
  34. package/dist/model/TSSRequestWebhookEventData.js +13 -3
  35. package/dist/model/TokenListingEventData.js +13 -3
  36. package/dist/model/TokenizationContractCallParamsData.js +1 -1
  37. package/dist/model/TokenizationEvmContractCallParams.js +2 -2
  38. package/dist/model/TokensEventData.js +13 -3
  39. package/dist/model/TransactionDestination.js +1 -1
  40. package/dist/model/TransactionEvmContractDestination.js +2 -2
  41. package/dist/model/TransactionRbfSource.js +1 -1
  42. package/dist/model/TransactionWebhookEventData.js +13 -3
  43. package/dist/model/UpdateTopUpAddress.js +2 -2
  44. package/dist/model/WalletInfoEventData.js +13 -3
  45. package/dist/model/WebhookEventData.js +115 -23
  46. package/dist/model/WebhookEventDataType.js +12 -2
  47. package/dist/model/WebhookEventType.js +5 -0
  48. package/docs/AddressesEventData.md +5 -1
  49. package/docs/BalanceUpdateInfoEventData.md +5 -1
  50. package/docs/ChainsEventData.md +5 -1
  51. package/docs/ContractCallDestination.md +1 -1
  52. package/docs/CreatePaymentOrderRequest.md +2 -2
  53. package/docs/CreateRefundRequest.md +2 -2
  54. package/docs/CreateSettlement.md +1 -1
  55. package/docs/CustodialWeb3TransferSource.md +1 -1
  56. package/docs/EstimateContractCallFeeParams.md +1 -1
  57. package/docs/EstimateFeeParams.md +1 -1
  58. package/docs/EvmContractCallDestination.md +1 -1
  59. package/docs/ForcedSweep.md +16 -0
  60. package/docs/ForcedSweepRequest.md +12 -0
  61. package/docs/ForcedSweepStatus.md +14 -0
  62. package/docs/ListForcedSweepRequests200Response.md +10 -0
  63. package/docs/MPCVaultEventData.md +5 -1
  64. package/docs/MpcTransferSource.md +1 -1
  65. package/docs/OAuthApi.md +2 -2
  66. package/docs/Order.md +1 -1
  67. package/docs/PaymentAddressUpdateEventData.md +53 -0
  68. package/docs/PaymentApi.md +168 -3
  69. package/docs/PaymentOrderEventData.md +6 -2
  70. package/docs/PaymentRefundEventData.md +5 -1
  71. package/docs/PaymentSettlementEvent.md +5 -1
  72. package/docs/PaymentTransactionEventData.md +84 -0
  73. package/docs/SafeWalletDelegates.md +1 -1
  74. package/docs/SafeWalletDelegatesContractCall.md +1 -1
  75. package/docs/SettlementInfo.md +2 -0
  76. package/docs/SuspendedTokenEventData.md +5 -1
  77. package/docs/TSSRequestWebhookEventData.md +5 -1
  78. package/docs/TokenListingEventData.md +5 -1
  79. package/docs/TokenizationContractCallParamsData.md +1 -1
  80. package/docs/TokenizationEvmContractCallParams.md +1 -1
  81. package/docs/TokensEventData.md +5 -1
  82. package/docs/TransactionDestination.md +1 -1
  83. package/docs/TransactionEvmContractDestination.md +1 -1
  84. package/docs/TransactionRbfSource.md +1 -1
  85. package/docs/TransactionWebhookEventData.md +5 -1
  86. package/docs/TransactionsApi.md +1 -1
  87. package/docs/UpdateTopUpAddress.md +1 -1
  88. package/docs/WalletInfoEventData.md +5 -1
  89. package/docs/WebhookEventData.md +22 -12
  90. package/docs/WebhookEventDataType.md +5 -1
  91. package/docs/WebhookEventType.md +2 -0
  92. package/package.json +1 -1
@@ -37,7 +37,7 @@ var ChainsEventData = /*#__PURE__*/function () {
37
37
  * Constructs a new <code>ChainsEventData</code>.
38
38
  * @alias module:model/ChainsEventData
39
39
  * @implements module:model/WebhookEventDataType
40
- * @param data_type {module:model/ChainsEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
40
+ * @param data_type {module:model/ChainsEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The payment address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
41
41
  * @param chains {Array.<module:model/ChainInfo>} The enabled chains.
42
42
  */
43
43
  function ChainsEventData(data_type, chains) {
@@ -146,7 +146,7 @@ var ChainsEventData = /*#__PURE__*/function () {
146
146
  ChainsEventData.RequiredProperties = ["data_type", "chains"];
147
147
 
148
148
  /**
149
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
149
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The payment address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
150
150
  * @member {module:model/ChainsEventData.DataTypeEnum} data_type
151
151
  */
152
152
  ChainsEventData.prototype['data_type'] = undefined;
@@ -169,7 +169,7 @@ ChainsEventData.prototype['wallet_subtypes'] = undefined;
169
169
 
170
170
  // Implement WebhookEventDataType interface:
171
171
  /**
172
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
172
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The payment address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
173
173
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
174
174
  */
175
175
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -235,6 +235,16 @@ ChainsEventData['DataTypeEnum'] = {
235
235
  * @const
236
236
  */
237
237
  "PaymentSettlement": "PaymentSettlement",
238
+ /**
239
+ * value: "PaymentTransaction"
240
+ * @const
241
+ */
242
+ "PaymentTransaction": "PaymentTransaction",
243
+ /**
244
+ * value: "PaymentAddressUpdate"
245
+ * @const
246
+ */
247
+ "PaymentAddressUpdate": "PaymentAddressUpdate",
238
248
  /**
239
249
  * value: "BalanceUpdateInfo"
240
250
  * @const
@@ -191,7 +191,7 @@ ContractCallDestination.prototype['address'] = undefined;
191
191
  ContractCallDestination.prototype['value'] = undefined;
192
192
 
193
193
  /**
194
- * The data that is used to invoke a specific function or method within the specified contract at the destination address.
194
+ * The data used to invoke a specific function or method within the specified contract at the destination address, with a maximum length of 65,000 characters.
195
195
  * @member {String} calldata
196
196
  */
197
197
  ContractCallDestination.prototype['calldata'] = undefined;
@@ -33,7 +33,7 @@ var CreatePaymentOrderRequest = /*#__PURE__*/function () {
33
33
  * Constructs a new <code>CreatePaymentOrderRequest</code>.
34
34
  * @alias module:model/CreatePaymentOrderRequest
35
35
  * @param merchant_id {String} The merchant ID.
36
- * @param token_id {String} The ID of the cryptocurrency used for payment. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
36
+ * @param token_id {String} The ID of the cryptocurrency used for payment. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
37
37
  * @param order_amount {String} The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). Values must be greater than `0` and contain two decimal places.
38
38
  * @param fee_amount {String} The developer fee for the order in fiat currency. It is added to the base amount (`order_amount`) to determine the final charge. For example, if order_amount is \"100.00\" and fee_amount is \"2.00\", the customer will be charged \"102.00\" in total, with \"100.00\" being settled to the merchant and \"2.00\" settled to the developer. Values must be greater than 0 and contain two decimal places.
39
39
  * @param psp_order_code {String} A unique reference code assigned by you as a developer to identify this order in your system. This code must be unique across all orders in your system. The code should have a maximum length of 128 characters.
@@ -165,7 +165,7 @@ CreatePaymentOrderRequest.RequiredProperties = ["merchant_id", "token_id", "orde
165
165
  CreatePaymentOrderRequest.prototype['merchant_id'] = undefined;
166
166
 
167
167
  /**
168
- * The ID of the cryptocurrency used for payment. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
168
+ * The ID of the cryptocurrency used for payment. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
169
169
  * @member {String} token_id
170
170
  */
171
171
  CreatePaymentOrderRequest.prototype['token_id'] = undefined;
@@ -173,9 +173,9 @@ CreatePaymentOrderRequest.prototype['token_id'] = undefined;
173
173
  /**
174
174
  * The fiat currency of the order. Currently, only `USD` is supported.
175
175
  * @member {String} currency
176
- * @default 'USD'
176
+ * @default ''
177
177
  */
178
- CreatePaymentOrderRequest.prototype['currency'] = 'USD';
178
+ CreatePaymentOrderRequest.prototype['currency'] = '';
179
179
 
180
180
  /**
181
181
  * The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). Values must be greater than `0` and contain two decimal places.
@@ -35,7 +35,7 @@ var CreateRefundRequest = /*#__PURE__*/function () {
35
35
  * @alias module:model/CreateRefundRequest
36
36
  * @param request_id {String} The request ID that is used to track a refund request. The request ID is provided by you and must be unique.
37
37
  * @param payable_amount {String} The amount to refund in cryptocurrency. The amount must be a positive integer with up to two decimal places.
38
- * @param token_id {String} The ID of the cryptocurrency used for refund. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
38
+ * @param token_id {String} The ID of the cryptocurrency used for refund. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
39
39
  * @param refund_type {module:model/RefundType}
40
40
  */
41
41
  function CreateRefundRequest(request_id, payable_amount, token_id, refund_type) {
@@ -189,7 +189,7 @@ CreateRefundRequest.prototype['payable_amount'] = undefined;
189
189
  CreateRefundRequest.prototype['to_address'] = undefined;
190
190
 
191
191
  /**
192
- * The ID of the cryptocurrency used for refund. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
192
+ * The ID of the cryptocurrency used for refund. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
193
193
  * @member {String} token_id
194
194
  */
195
195
  CreateRefundRequest.prototype['token_id'] = undefined;
@@ -218,7 +218,7 @@ CreateRefundRequest.prototype['charge_merchant_fee'] = undefined;
218
218
  CreateRefundRequest.prototype['merchant_fee_amount'] = undefined;
219
219
 
220
220
  /**
221
- * The ID of the cryptocurrency used for the developer fee. It must be the same as `token_id`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
221
+ * The ID of the cryptocurrency used for the developer fee. It must be the same as `token_id`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
222
222
  * @member {String} merchant_fee_token_id
223
223
  */
224
224
  CreateRefundRequest.prototype['merchant_fee_token_id'] = undefined;
@@ -128,7 +128,7 @@ var CreateSettlement = /*#__PURE__*/function () {
128
128
  CreateSettlement.prototype['merchant_id'] = undefined;
129
129
 
130
130
  /**
131
- * The ID of the cryptocurrency you want to settle. Specify this field when `payout_channel` is set to `Crypto`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
131
+ * The ID of the cryptocurrency you want to settle. Specify this field when `payout_channel` is set to `Crypto`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
132
132
  * @member {String} token_id
133
133
  */
134
134
  CreateSettlement.prototype['token_id'] = undefined;
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  var CustodialWeb3TransferSource = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>CustodialWeb3TransferSource</code>.
36
- * The information about the transaction source types &#x60;Web3&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. - For UTXO-based chains: both &#x60;address&#x60; and &#x60;included_utxos&#x60; are optional. If both &#x60;address&#x60; and &#x60;included_utxos&#x60; are provided, the UTXOs must belong to the specified address. If neither &#x60;address&#x60; nor &#x60;included_utxos&#x60; is provided, the system will select UTXOs from the wallet associated with &#x60;wallet_id&#x60;. - For account-based chains: You need to provide &#x60;address&#x60; otherwise the token transfer will fail. However, when estimating fees for a transfer, &#x60;address&#x60; is not required. Switch between the tabs to display the properties for different transaction sources.
36
+ * The information about the transaction source types &#x60;Web3&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. - For UTXO-based chains: both &#x60;address&#x60; and &#x60;included_utxos&#x60; are optional. If both &#x60;address&#x60; and &#x60;included_utxos&#x60; are provided, the UTXOs must belong to the specified address. If neither &#x60;address&#x60; nor &#x60;included_utxos&#x60; is provided, the system will select UTXOs from the wallet associated with &#x60;wallet_id&#x60;. - For account-based chains: You need to provide &#x60;address&#x60; otherwise the token transfer will fail. However, when estimating fees for a transfer, &#x60;address&#x60; is not required. For detailed rules on &#x60;address&#x60; and &#x60;included_utxos&#x60; in both regular and RBF transactions, see [Address and included_utxos usage](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations#address-and-included-utxos-usage). Switch between the tabs to display the properties for different transaction sources.
37
37
  * @alias module:model/CustodialWeb3TransferSource
38
38
  * @param source_type {module:model/WalletSubtype}
39
39
  * @param wallet_id {String} The wallet ID.
@@ -177,7 +177,7 @@ CustodialWeb3TransferSource.prototype['source_type'] = undefined;
177
177
  CustodialWeb3TransferSource.prototype['wallet_id'] = undefined;
178
178
 
179
179
  /**
180
- * Indicates the wallet address to be used as the source of funds. - For UTXO-based chains: both `address` and `included_utxos` are optional. If both `address` and `included_utxos` are provided, the UTXOs must belong to the specified address. If neither `address` nor `included_utxos` is provided, the system will select UTXOs from the wallet associated with `wallet_id`. For RBF transactions, please note the following: - If the original transaction did not specify `included_utxos`, the RBF transaction may omit `address`, `included_utxos`, or both. - If the original transaction specified `included_utxos`, the RBF transaction must specify either `address` or `included_utxos`, or both. - The `address` or `included_utxos` in the RBF transaction may differ from those in the original transaction. - For account-based chains: You need to provide `address` otherwise the token transfer will fail. However, when estimating fees for a transfer, `address` is not required.
180
+ * Indicates the wallet address to be used as the source of funds. - For UTXO-based chains: both `address` and `included_utxos` are optional. If both `address` and `included_utxos` are provided, the UTXOs must belong to the specified address. If neither `address` nor `included_utxos` is provided, the system will select UTXOs from the wallet associated with `wallet_id`. - For account-based chains: You need to provide `address` otherwise the token transfer will fail. However, when estimating fees for a transfer, `address` is not required. For detailed rules on `address` and `included_utxos` in both regular and RBF transactions, see [Address and included_utxos usage](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations#address-and-included-utxos-usage).
181
181
  * @member {String} address
182
182
  */
183
183
  CustodialWeb3TransferSource.prototype['address'] = undefined;
@@ -40,11 +40,10 @@ var EstimateContractCallFeeParams = /*#__PURE__*/function () {
40
40
  * @param request_type {module:model/EstimateFeeRequestType}
41
41
  * @param chain_id {String} The chain ID of the chain on which the smart contract is issued. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
42
42
  * @param source {module:model/ContractCallSource}
43
- * @param destination {module:model/ContractCallDestination}
44
43
  */
45
- function EstimateContractCallFeeParams(request_type, chain_id, source, destination) {
44
+ function EstimateContractCallFeeParams(request_type, chain_id, source) {
46
45
  _classCallCheck(this, EstimateContractCallFeeParams);
47
- EstimateContractCallFeeParams.initialize(this, request_type, chain_id, source, destination);
46
+ EstimateContractCallFeeParams.initialize(this, request_type, chain_id, source);
48
47
  }
49
48
 
50
49
  /**
@@ -54,11 +53,10 @@ var EstimateContractCallFeeParams = /*#__PURE__*/function () {
54
53
  */
55
54
  return _createClass(EstimateContractCallFeeParams, null, [{
56
55
  key: "initialize",
57
- value: function initialize(obj, request_type, chain_id, source, destination) {
56
+ value: function initialize(obj, request_type, chain_id, source) {
58
57
  obj['request_type'] = request_type;
59
58
  obj['chain_id'] = chain_id;
60
59
  obj['source'] = source;
61
- obj['destination'] = destination;
62
60
  }
63
61
 
64
62
  /**
@@ -151,7 +149,7 @@ var EstimateContractCallFeeParams = /*#__PURE__*/function () {
151
149
  }
152
150
  }]);
153
151
  }();
154
- EstimateContractCallFeeParams.RequiredProperties = ["request_type", "chain_id", "source", "destination"];
152
+ EstimateContractCallFeeParams.RequiredProperties = ["request_type", "chain_id", "source"];
155
153
 
156
154
  /**
157
155
  * The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee.
@@ -36,7 +36,7 @@ var EvmContractCallDestination = /*#__PURE__*/function () {
36
36
  * @alias module:model/EvmContractCallDestination
37
37
  * @param destination_type {module:model/ContractCallDestinationType}
38
38
  * @param address {String} The destination address.
39
- * @param calldata {String} The data that is used to invoke a specific function or method within the specified contract at the destination address.
39
+ * @param calldata {String} The data used to invoke a specific function or method within the specified contract at the destination address, with a maximum length of 65,000 characters.
40
40
  */
41
41
  function EvmContractCallDestination(destination_type, address, calldata) {
42
42
  _classCallCheck(this, EvmContractCallDestination);
@@ -143,7 +143,7 @@ EvmContractCallDestination.prototype['address'] = undefined;
143
143
  EvmContractCallDestination.prototype['value'] = undefined;
144
144
 
145
145
  /**
146
- * The data that is used to invoke a specific function or method within the specified contract at the destination address.
146
+ * The data used to invoke a specific function or method within the specified contract at the destination address, with a maximum length of 65,000 characters.
147
147
  * @member {String} calldata
148
148
  */
149
149
  EvmContractCallDestination.prototype['calldata'] = undefined;
@@ -0,0 +1,193 @@
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 _ForcedSweepStatus = _interopRequireDefault(require("./ForcedSweepStatus"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ 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); }
11
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ 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); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ 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); } /**
19
+ * Cobo Wallet as a Service 2.0
20
+ *
21
+ * Contact: help@cobo.com
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The ForcedSweep model module.
30
+ * @module model/ForcedSweep
31
+ */
32
+ var ForcedSweep = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>ForcedSweep</code>.
35
+ * @alias module:model/ForcedSweep
36
+ * @param forced_sweep_id {String} The force sweep ID.
37
+ * @param request_id {String} The request ID provided by you when creating the force sweep request.
38
+ * @param status {module:model/ForcedSweepStatus}
39
+ */
40
+ function ForcedSweep(forced_sweep_id, request_id, status) {
41
+ _classCallCheck(this, ForcedSweep);
42
+ ForcedSweep.initialize(this, forced_sweep_id, request_id, status);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(ForcedSweep, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, forced_sweep_id, request_id, status) {
53
+ obj['forced_sweep_id'] = forced_sweep_id;
54
+ obj['request_id'] = request_id;
55
+ obj['status'] = status;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>ForcedSweep</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:model/ForcedSweep} obj Optional instance to populate.
63
+ * @return {module:model/ForcedSweep} The populated <code>ForcedSweep</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new ForcedSweep();
70
+ if (data.hasOwnProperty('forced_sweep_id')) {
71
+ obj['forced_sweep_id'] = _ApiClient["default"].convertToType(data['forced_sweep_id'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('request_id')) {
74
+ obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
75
+ }
76
+ if (data.hasOwnProperty('wallet_id')) {
77
+ obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('token_id')) {
80
+ obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
81
+ }
82
+ if (data.hasOwnProperty('amount')) {
83
+ obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
84
+ }
85
+ if (data.hasOwnProperty('status')) {
86
+ obj['status'] = _ForcedSweepStatus["default"].constructFromObject(data['status']);
87
+ }
88
+ if (data.hasOwnProperty('created_timestamp')) {
89
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
90
+ }
91
+ if (data.hasOwnProperty('updated_timestamp')) {
92
+ obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
93
+ }
94
+ }
95
+ return obj;
96
+ }
97
+
98
+ /**
99
+ * Validates the JSON data with respect to <code>ForcedSweep</code>.
100
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
101
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ForcedSweep</code>.
102
+ */
103
+ }, {
104
+ key: "validateJSON",
105
+ value: function validateJSON(data) {
106
+ // check to make sure all required properties are present in the JSON string
107
+ var _iterator = _createForOfIteratorHelper(ForcedSweep.RequiredProperties),
108
+ _step;
109
+ try {
110
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
111
+ var property = _step.value;
112
+ if (!data.hasOwnProperty(property)) {
113
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
114
+ }
115
+ }
116
+ // ensure the json data is a string
117
+ } catch (err) {
118
+ _iterator.e(err);
119
+ } finally {
120
+ _iterator.f();
121
+ }
122
+ if (data['forced_sweep_id'] && !(typeof data['forced_sweep_id'] === 'string' || data['forced_sweep_id'] instanceof String)) {
123
+ throw new Error("Expected the field `forced_sweep_id` to be a primitive type in the JSON string but got " + data['forced_sweep_id']);
124
+ }
125
+ // ensure the json data is a string
126
+ if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
127
+ throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
128
+ }
129
+ // ensure the json data is a string
130
+ if (data['wallet_id'] && !(typeof data['wallet_id'] === 'string' || data['wallet_id'] instanceof String)) {
131
+ throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
132
+ }
133
+ // ensure the json data is a string
134
+ if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
135
+ throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
136
+ }
137
+ // ensure the json data is a string
138
+ if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
139
+ throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
140
+ }
141
+ return true;
142
+ }
143
+ }]);
144
+ }();
145
+ ForcedSweep.RequiredProperties = ["forced_sweep_id", "request_id", "status"];
146
+
147
+ /**
148
+ * The force sweep ID.
149
+ * @member {String} forced_sweep_id
150
+ */
151
+ ForcedSweep.prototype['forced_sweep_id'] = undefined;
152
+
153
+ /**
154
+ * The request ID provided by you when creating the force sweep request.
155
+ * @member {String} request_id
156
+ */
157
+ ForcedSweep.prototype['request_id'] = undefined;
158
+
159
+ /**
160
+ * The wallet ID to force sweep, which is the unique identifier of a wallet.
161
+ * @member {String} wallet_id
162
+ */
163
+ ForcedSweep.prototype['wallet_id'] = undefined;
164
+
165
+ /**
166
+ * The token ID to force sweep, which is the unique identifier of a token.
167
+ * @member {String} token_id
168
+ */
169
+ ForcedSweep.prototype['token_id'] = undefined;
170
+
171
+ /**
172
+ * The amount of needing force sweep.
173
+ * @member {String} amount
174
+ */
175
+ ForcedSweep.prototype['amount'] = undefined;
176
+
177
+ /**
178
+ * @member {module:model/ForcedSweepStatus} status
179
+ */
180
+ ForcedSweep.prototype['status'] = undefined;
181
+
182
+ /**
183
+ * The created time of the force sweep request, represented as a UNIX timestamp in seconds.
184
+ * @member {Number} created_timestamp
185
+ */
186
+ ForcedSweep.prototype['created_timestamp'] = undefined;
187
+
188
+ /**
189
+ * The updated time of the force sweep request, represented as a UNIX timestamp in seconds.
190
+ * @member {Number} updated_timestamp
191
+ */
192
+ ForcedSweep.prototype['updated_timestamp'] = undefined;
193
+ var _default = exports["default"] = ForcedSweep;
@@ -0,0 +1,156 @@
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
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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); }
10
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ 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); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ 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); } /**
18
+ * Cobo Wallet as a Service 2.0
19
+ *
20
+ * Contact: help@cobo.com
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The ForcedSweepRequest model module.
29
+ * @module model/ForcedSweepRequest
30
+ */
31
+ var ForcedSweepRequest = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>ForcedSweepRequest</code>.
34
+ * The information about the request to force sweep.
35
+ * @alias module:model/ForcedSweepRequest
36
+ * @param request_id {String} The request id of the force sweep.
37
+ * @param wallet_id {String} The wallet ID to force sweep, which is the unique identifier of a wallet.
38
+ * @param token_id {String} The token ID to force sweep, which is the unique identifier of a token.
39
+ * @param amount {String} The amount of needing force sweep.
40
+ */
41
+ function ForcedSweepRequest(request_id, wallet_id, token_id, amount) {
42
+ _classCallCheck(this, ForcedSweepRequest);
43
+ ForcedSweepRequest.initialize(this, request_id, wallet_id, token_id, amount);
44
+ }
45
+
46
+ /**
47
+ * Initializes the fields of this object.
48
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
+ * Only for internal use.
50
+ */
51
+ return _createClass(ForcedSweepRequest, null, [{
52
+ key: "initialize",
53
+ value: function initialize(obj, request_id, wallet_id, token_id, amount) {
54
+ obj['request_id'] = request_id;
55
+ obj['wallet_id'] = wallet_id;
56
+ obj['token_id'] = token_id;
57
+ obj['amount'] = amount;
58
+ }
59
+
60
+ /**
61
+ * Constructs a <code>ForcedSweepRequest</code> from a plain JavaScript object, optionally creating a new instance.
62
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
63
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
64
+ * @param {module:model/ForcedSweepRequest} obj Optional instance to populate.
65
+ * @return {module:model/ForcedSweepRequest} The populated <code>ForcedSweepRequest</code> instance.
66
+ */
67
+ }, {
68
+ key: "constructFromObject",
69
+ value: function constructFromObject(data, obj) {
70
+ if (data) {
71
+ obj = obj || new ForcedSweepRequest();
72
+ if (data.hasOwnProperty('request_id')) {
73
+ obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
74
+ }
75
+ if (data.hasOwnProperty('wallet_id')) {
76
+ obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
77
+ }
78
+ if (data.hasOwnProperty('token_id')) {
79
+ obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
80
+ }
81
+ if (data.hasOwnProperty('amount')) {
82
+ obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
83
+ }
84
+ }
85
+ return obj;
86
+ }
87
+
88
+ /**
89
+ * Validates the JSON data with respect to <code>ForcedSweepRequest</code>.
90
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
91
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ForcedSweepRequest</code>.
92
+ */
93
+ }, {
94
+ key: "validateJSON",
95
+ value: function validateJSON(data) {
96
+ // check to make sure all required properties are present in the JSON string
97
+ var _iterator = _createForOfIteratorHelper(ForcedSweepRequest.RequiredProperties),
98
+ _step;
99
+ try {
100
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
101
+ var property = _step.value;
102
+ if (!data.hasOwnProperty(property)) {
103
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
104
+ }
105
+ }
106
+ // ensure the json data is a string
107
+ } catch (err) {
108
+ _iterator.e(err);
109
+ } finally {
110
+ _iterator.f();
111
+ }
112
+ if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
113
+ throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
114
+ }
115
+ // ensure the json data is a string
116
+ if (data['wallet_id'] && !(typeof data['wallet_id'] === 'string' || data['wallet_id'] instanceof String)) {
117
+ throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
118
+ }
119
+ // ensure the json data is a string
120
+ if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
121
+ throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
122
+ }
123
+ // ensure the json data is a string
124
+ if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
125
+ throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
126
+ }
127
+ return true;
128
+ }
129
+ }]);
130
+ }();
131
+ ForcedSweepRequest.RequiredProperties = ["request_id", "wallet_id", "token_id", "amount"];
132
+
133
+ /**
134
+ * The request id of the force sweep.
135
+ * @member {String} request_id
136
+ */
137
+ ForcedSweepRequest.prototype['request_id'] = undefined;
138
+
139
+ /**
140
+ * The wallet ID to force sweep, which is the unique identifier of a wallet.
141
+ * @member {String} wallet_id
142
+ */
143
+ ForcedSweepRequest.prototype['wallet_id'] = undefined;
144
+
145
+ /**
146
+ * The token ID to force sweep, which is the unique identifier of a token.
147
+ * @member {String} token_id
148
+ */
149
+ ForcedSweepRequest.prototype['token_id'] = undefined;
150
+
151
+ /**
152
+ * The amount of needing force sweep.
153
+ * @member {String} amount
154
+ */
155
+ ForcedSweepRequest.prototype['amount'] = undefined;
156
+ var _default = exports["default"] = ForcedSweepRequest;
@@ -0,0 +1,66 @@
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
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ 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); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class ForcedSweepStatus.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var ForcedSweepStatus = exports["default"] = /*#__PURE__*/function () {
31
+ function ForcedSweepStatus() {
32
+ _classCallCheck(this, ForcedSweepStatus);
33
+ /**
34
+ * value: "Pending"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Pending", "Pending");
38
+ /**
39
+ * value: "Processing"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Processing", "Processing");
43
+ /**
44
+ * value: "Completed"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "Completed", "Completed");
48
+ /**
49
+ * value: "unknown_default_open_api"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
53
+ }
54
+ return _createClass(ForcedSweepStatus, null, [{
55
+ key: "constructFromObject",
56
+ value:
57
+ /**
58
+ * Returns a <code>ForcedSweepStatus</code> enum value from a Javascript object name.
59
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
60
+ * @return {module:model/ForcedSweepStatus} The enum <code>ForcedSweepStatus</code> value.
61
+ */
62
+ function constructFromObject(object) {
63
+ return object;
64
+ }
65
+ }]);
66
+ }();