@cobo/cobo-waas2 1.19.0 → 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 (96) hide show
  1. package/README.md +13 -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 +94 -2
  7. package/dist/index.js +49 -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/FILBase.js +0 -1
  19. package/dist/model/ForcedSweep.js +193 -0
  20. package/dist/model/ForcedSweepRequest.js +156 -0
  21. package/dist/model/ForcedSweepStatus.js +66 -0
  22. package/dist/model/ListForcedSweepRequests200Response.js +123 -0
  23. package/dist/model/ListTransactionApprovalDetails200Response.js +107 -0
  24. package/dist/model/MPCVaultEventData.js +13 -3
  25. package/dist/model/MpcTransferSource.js +2 -2
  26. package/dist/model/Order.js +2 -2
  27. package/dist/model/PaymentAddressUpdateEventData.js +284 -0
  28. package/dist/model/PaymentOrderEventData.js +16 -6
  29. package/dist/model/PaymentRefundEventData.js +13 -3
  30. package/dist/model/PaymentSettlementEvent.js +13 -3
  31. package/dist/model/PaymentTransactionEventData.js +827 -0
  32. package/dist/model/SOLBase.js +0 -1
  33. package/dist/model/SafeWalletDelegates.js +1 -1
  34. package/dist/model/SafeWalletDelegatesContractCall.js +1 -1
  35. package/dist/model/SettlementInfo.js +26 -0
  36. package/dist/model/SuspendedTokenEventData.js +13 -3
  37. package/dist/model/TSSRequestWebhookEventData.js +13 -3
  38. package/dist/model/TokenListingEventData.js +13 -3
  39. package/dist/model/TokenizationContractCallParamsData.js +1 -1
  40. package/dist/model/TokenizationEvmContractCallParams.js +2 -2
  41. package/dist/model/TokensEventData.js +13 -3
  42. package/dist/model/TransactionDestination.js +1 -1
  43. package/dist/model/TransactionEvmContractDestination.js +2 -2
  44. package/dist/model/TransactionRbfSource.js +1 -1
  45. package/dist/model/TransactionWebhookEventData.js +13 -3
  46. package/dist/model/UpdateTopUpAddress.js +2 -2
  47. package/dist/model/WalletInfoEventData.js +13 -3
  48. package/dist/model/WebhookEventData.js +115 -23
  49. package/dist/model/WebhookEventDataType.js +12 -2
  50. package/dist/model/WebhookEventType.js +5 -0
  51. package/docs/AddressesEventData.md +5 -1
  52. package/docs/BalanceUpdateInfoEventData.md +5 -1
  53. package/docs/ChainsEventData.md +5 -1
  54. package/docs/ContractCallDestination.md +1 -1
  55. package/docs/CreatePaymentOrderRequest.md +2 -2
  56. package/docs/CreateRefundRequest.md +2 -2
  57. package/docs/CreateSettlement.md +1 -1
  58. package/docs/CustodialWeb3TransferSource.md +1 -1
  59. package/docs/EstimateContractCallFeeParams.md +1 -1
  60. package/docs/EstimateFeeParams.md +1 -1
  61. package/docs/EvmContractCallDestination.md +1 -1
  62. package/docs/ForcedSweep.md +16 -0
  63. package/docs/ForcedSweepRequest.md +12 -0
  64. package/docs/ForcedSweepStatus.md +14 -0
  65. package/docs/ListForcedSweepRequests200Response.md +10 -0
  66. package/docs/ListTransactionApprovalDetails200Response.md +9 -0
  67. package/docs/MPCVaultEventData.md +5 -1
  68. package/docs/MpcTransferSource.md +1 -1
  69. package/docs/OAuthApi.md +2 -2
  70. package/docs/Order.md +1 -1
  71. package/docs/PaymentAddressUpdateEventData.md +53 -0
  72. package/docs/PaymentApi.md +168 -3
  73. package/docs/PaymentOrderEventData.md +6 -2
  74. package/docs/PaymentRefundEventData.md +5 -1
  75. package/docs/PaymentSettlementEvent.md +5 -1
  76. package/docs/PaymentTransactionEventData.md +84 -0
  77. package/docs/SafeWalletDelegates.md +1 -1
  78. package/docs/SafeWalletDelegatesContractCall.md +1 -1
  79. package/docs/SettlementInfo.md +2 -0
  80. package/docs/SuspendedTokenEventData.md +5 -1
  81. package/docs/TSSRequestWebhookEventData.md +5 -1
  82. package/docs/TokenListingEventData.md +5 -1
  83. package/docs/TokenizationContractCallParamsData.md +1 -1
  84. package/docs/TokenizationEvmContractCallParams.md +1 -1
  85. package/docs/TokensEventData.md +5 -1
  86. package/docs/TransactionDestination.md +1 -1
  87. package/docs/TransactionEvmContractDestination.md +1 -1
  88. package/docs/TransactionRbfSource.md +1 -1
  89. package/docs/TransactionWebhookEventData.md +5 -1
  90. package/docs/TransactionsApi.md +107 -1
  91. package/docs/UpdateTopUpAddress.md +1 -1
  92. package/docs/WalletInfoEventData.md +5 -1
  93. package/docs/WebhookEventData.md +22 -12
  94. package/docs/WebhookEventDataType.md +5 -1
  95. package/docs/WebhookEventType.md +2 -0
  96. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1221,6 +1221,24 @@ Object.defineProperty(exports, "FixedFeeRate", {
1221
1221
  return _FixedFeeRate["default"];
1222
1222
  }
1223
1223
  });
1224
+ Object.defineProperty(exports, "ForcedSweep", {
1225
+ enumerable: true,
1226
+ get: function get() {
1227
+ return _ForcedSweep["default"];
1228
+ }
1229
+ });
1230
+ Object.defineProperty(exports, "ForcedSweepRequest", {
1231
+ enumerable: true,
1232
+ get: function get() {
1233
+ return _ForcedSweepRequest["default"];
1234
+ }
1235
+ });
1236
+ Object.defineProperty(exports, "ForcedSweepStatus", {
1237
+ enumerable: true,
1238
+ get: function get() {
1239
+ return _ForcedSweepStatus["default"];
1240
+ }
1241
+ });
1224
1242
  Object.defineProperty(exports, "GetApiKeyInfo200Response", {
1225
1243
  enumerable: true,
1226
1244
  get: function get() {
@@ -1419,6 +1437,12 @@ Object.defineProperty(exports, "ListExchanges200ResponseInner", {
1419
1437
  return _ListExchanges200ResponseInner["default"];
1420
1438
  }
1421
1439
  });
1440
+ Object.defineProperty(exports, "ListForcedSweepRequests200Response", {
1441
+ enumerable: true,
1442
+ get: function get() {
1443
+ return _ListForcedSweepRequests200Response["default"];
1444
+ }
1445
+ });
1422
1446
  Object.defineProperty(exports, "ListKeyShareHolderGroups200Response", {
1423
1447
  enumerable: true,
1424
1448
  get: function get() {
@@ -1539,6 +1563,12 @@ Object.defineProperty(exports, "ListTopUpPayers200ResponseDataInner", {
1539
1563
  return _ListTopUpPayers200ResponseDataInner["default"];
1540
1564
  }
1541
1565
  });
1566
+ Object.defineProperty(exports, "ListTransactionApprovalDetails200Response", {
1567
+ enumerable: true,
1568
+ get: function get() {
1569
+ return _ListTransactionApprovalDetails200Response["default"];
1570
+ }
1571
+ });
1542
1572
  Object.defineProperty(exports, "ListTransactions200Response", {
1543
1573
  enumerable: true,
1544
1574
  get: function get() {
@@ -1761,6 +1791,12 @@ Object.defineProperty(exports, "PayerAccount", {
1761
1791
  return _PayerAccount["default"];
1762
1792
  }
1763
1793
  });
1794
+ Object.defineProperty(exports, "PaymentAddressUpdateEventData", {
1795
+ enumerable: true,
1796
+ get: function get() {
1797
+ return _PaymentAddressUpdateEventData["default"];
1798
+ }
1799
+ });
1764
1800
  Object.defineProperty(exports, "PaymentApi", {
1765
1801
  enumerable: true,
1766
1802
  get: function get() {
@@ -1791,6 +1827,12 @@ Object.defineProperty(exports, "PaymentTransaction", {
1791
1827
  return _PaymentTransaction["default"];
1792
1828
  }
1793
1829
  });
1830
+ Object.defineProperty(exports, "PaymentTransactionEventData", {
1831
+ enumerable: true,
1832
+ get: function get() {
1833
+ return _PaymentTransactionEventData["default"];
1834
+ }
1835
+ });
1794
1836
  Object.defineProperty(exports, "PayoutChannel", {
1795
1837
  enumerable: true,
1796
1838
  get: function get() {
@@ -4012,6 +4054,9 @@ var _FeeStationTransactionType = _interopRequireDefault(require("./model/FeeStat
4012
4054
  var _FeeStationTransfer = _interopRequireDefault(require("./model/FeeStationTransfer"));
4013
4055
  var _FeeType = _interopRequireDefault(require("./model/FeeType"));
4014
4056
  var _FixedFeeRate = _interopRequireDefault(require("./model/FixedFeeRate"));
4057
+ var _ForcedSweep = _interopRequireDefault(require("./model/ForcedSweep"));
4058
+ var _ForcedSweepRequest = _interopRequireDefault(require("./model/ForcedSweepRequest"));
4059
+ var _ForcedSweepStatus = _interopRequireDefault(require("./model/ForcedSweepStatus"));
4015
4060
  var _GetApiKeyInfo200Response = _interopRequireDefault(require("./model/GetApiKeyInfo200Response"));
4016
4061
  var _GetExchangeRate200Response = _interopRequireDefault(require("./model/GetExchangeRate200Response"));
4017
4062
  var _GetMaxTransferableValueWithFeeModelRequest = _interopRequireDefault(require("./model/GetMaxTransferableValueWithFeeModelRequest"));
@@ -4045,6 +4090,7 @@ var _ListBabylonEligibleStakings200ResponseDataInner = _interopRequireDefault(re
4045
4090
  var _ListBabylonStakingRegistrations200Response = _interopRequireDefault(require("./model/ListBabylonStakingRegistrations200Response"));
4046
4091
  var _ListCallbackMessages200Response = _interopRequireDefault(require("./model/ListCallbackMessages200Response"));
4047
4092
  var _ListExchanges200ResponseInner = _interopRequireDefault(require("./model/ListExchanges200ResponseInner"));
4093
+ var _ListForcedSweepRequests200Response = _interopRequireDefault(require("./model/ListForcedSweepRequests200Response"));
4048
4094
  var _ListKeyShareHolderGroups200Response = _interopRequireDefault(require("./model/ListKeyShareHolderGroups200Response"));
4049
4095
  var _ListKeyShareHolders200Response = _interopRequireDefault(require("./model/ListKeyShareHolders200Response"));
4050
4096
  var _ListMerchants200Response = _interopRequireDefault(require("./model/ListMerchants200Response"));
@@ -4065,6 +4111,7 @@ var _ListTokenBalancesForFeeStation200ResponseDataInner = _interopRequireDefault
4065
4111
  var _ListTokenListingRequests200Response = _interopRequireDefault(require("./model/ListTokenListingRequests200Response"));
4066
4112
  var _ListTopUpPayers200Response = _interopRequireDefault(require("./model/ListTopUpPayers200Response"));
4067
4113
  var _ListTopUpPayers200ResponseDataInner = _interopRequireDefault(require("./model/ListTopUpPayers200ResponseDataInner"));
4114
+ var _ListTransactionApprovalDetails200Response = _interopRequireDefault(require("./model/ListTransactionApprovalDetails200Response"));
4068
4115
  var _ListTransactions200Response = _interopRequireDefault(require("./model/ListTransactions200Response"));
4069
4116
  var _ListTssRequests200Response = _interopRequireDefault(require("./model/ListTssRequests200Response"));
4070
4117
  var _ListUtxos200Response = _interopRequireDefault(require("./model/ListUtxos200Response"));
@@ -4100,10 +4147,12 @@ var _OrderStatus = _interopRequireDefault(require("./model/OrderStatus"));
4100
4147
  var _OrgInfo = _interopRequireDefault(require("./model/OrgInfo"));
4101
4148
  var _Pagination = _interopRequireDefault(require("./model/Pagination"));
4102
4149
  var _PayerAccount = _interopRequireDefault(require("./model/PayerAccount"));
4150
+ var _PaymentAddressUpdateEventData = _interopRequireDefault(require("./model/PaymentAddressUpdateEventData"));
4103
4151
  var _PaymentOrderEventData = _interopRequireDefault(require("./model/PaymentOrderEventData"));
4104
4152
  var _PaymentRefundEventData = _interopRequireDefault(require("./model/PaymentRefundEventData"));
4105
4153
  var _PaymentSettlementEvent = _interopRequireDefault(require("./model/PaymentSettlementEvent"));
4106
4154
  var _PaymentTransaction = _interopRequireDefault(require("./model/PaymentTransaction"));
4155
+ var _PaymentTransactionEventData = _interopRequireDefault(require("./model/PaymentTransactionEventData"));
4107
4156
  var _PayoutChannel = _interopRequireDefault(require("./model/PayoutChannel"));
4108
4157
  var _PolicyAction = _interopRequireDefault(require("./model/PolicyAction"));
4109
4158
  var _PolicyActionContent = _interopRequireDefault(require("./model/PolicyActionContent"));
@@ -35,7 +35,7 @@ var AddressesEventData = /*#__PURE__*/function () {
35
35
  * Constructs a new <code>AddressesEventData</code>.
36
36
  * @alias module:model/AddressesEventData
37
37
  * @implements module:model/WebhookEventDataType
38
- * @param data_type {module:model/AddressesEventData.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.
38
+ * @param data_type {module:model/AddressesEventData.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.
39
39
  */
40
40
  function AddressesEventData(data_type) {
41
41
  _classCallCheck(this, AddressesEventData);
@@ -132,7 +132,7 @@ var AddressesEventData = /*#__PURE__*/function () {
132
132
  AddressesEventData.RequiredProperties = ["data_type"];
133
133
 
134
134
  /**
135
- * 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.
135
+ * 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.
136
136
  * @member {module:model/AddressesEventData.DataTypeEnum} data_type
137
137
  */
138
138
  AddressesEventData.prototype['data_type'] = undefined;
@@ -145,7 +145,7 @@ AddressesEventData.prototype['addresses'] = undefined;
145
145
 
146
146
  // Implement WebhookEventDataType interface:
147
147
  /**
148
- * 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.
148
+ * 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.
149
149
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
150
150
  */
151
151
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -211,6 +211,16 @@ AddressesEventData['DataTypeEnum'] = {
211
211
  * @const
212
212
  */
213
213
  "PaymentSettlement": "PaymentSettlement",
214
+ /**
215
+ * value: "PaymentTransaction"
216
+ * @const
217
+ */
218
+ "PaymentTransaction": "PaymentTransaction",
219
+ /**
220
+ * value: "PaymentAddressUpdate"
221
+ * @const
222
+ */
223
+ "PaymentAddressUpdate": "PaymentAddressUpdate",
214
224
  /**
215
225
  * value: "BalanceUpdateInfo"
216
226
  * @const
@@ -37,7 +37,7 @@ var BalanceUpdateInfoEventData = /*#__PURE__*/function () {
37
37
  * @alias module:model/BalanceUpdateInfoEventData
38
38
  * @implements module:model/WebhookEventDataType
39
39
  * @implements module:model/BalanceUpdateInfo
40
- * @param data_type {module:model/BalanceUpdateInfoEventData.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/BalanceUpdateInfoEventData.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 token_id {String} The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
42
42
  * @param address {String} The wallet address.
43
43
  * @param wallet_uuid {String} The wallet ID.
@@ -156,7 +156,7 @@ var BalanceUpdateInfoEventData = /*#__PURE__*/function () {
156
156
  BalanceUpdateInfoEventData.RequiredProperties = ["data_type", "token_id", "address", "wallet_uuid", "updated_timestamp", "balance"];
157
157
 
158
158
  /**
159
- * 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.
159
+ * 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.
160
160
  * @member {module:model/BalanceUpdateInfoEventData.DataTypeEnum} data_type
161
161
  */
162
162
  BalanceUpdateInfoEventData.prototype['data_type'] = undefined;
@@ -192,7 +192,7 @@ BalanceUpdateInfoEventData.prototype['balance'] = undefined;
192
192
 
193
193
  // Implement WebhookEventDataType interface:
194
194
  /**
195
- * 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.
195
+ * 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.
196
196
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
197
197
  */
198
198
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -283,6 +283,16 @@ BalanceUpdateInfoEventData['DataTypeEnum'] = {
283
283
  * @const
284
284
  */
285
285
  "PaymentSettlement": "PaymentSettlement",
286
+ /**
287
+ * value: "PaymentTransaction"
288
+ * @const
289
+ */
290
+ "PaymentTransaction": "PaymentTransaction",
291
+ /**
292
+ * value: "PaymentAddressUpdate"
293
+ * @const
294
+ */
295
+ "PaymentAddressUpdate": "PaymentAddressUpdate",
286
296
  /**
287
297
  * value: "BalanceUpdateInfo"
288
298
  * @const
@@ -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;
@@ -28,7 +28,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  var FILBase = /*#__PURE__*/function () {
29
29
  /**
30
30
  * Constructs a new <code>FILBase</code>.
31
- * The transaction gas base based on the FIL fee model.
32
31
  * @alias module:model/FILBase
33
32
  */
34
33
  function FILBase() {
@@ -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;