@cobo/cobo-waas2 1.22.0 → 1.23.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 (142) hide show
  1. package/README.md +39 -14
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +200 -21
  4. package/dist/api/AutoSweepApi.js +26 -26
  5. package/dist/api/ComplianceApi.js +214 -0
  6. package/dist/api/PaymentApi.js +16 -16
  7. package/dist/api/TokenizationApi.js +2 -2
  8. package/dist/api/TransactionsApi.js +16 -16
  9. package/dist/api/WalletsApi.js +4 -4
  10. package/dist/api/WalletsMPCWalletsApi.js +2 -2
  11. package/dist/index.js +105 -7
  12. package/dist/model/AddressBook.js +12 -12
  13. package/dist/model/AddressesEventData.js +8 -3
  14. package/dist/model/ApprovalDetail.js +4 -4
  15. package/dist/model/ApprovalResult.js +6 -11
  16. package/dist/model/ApprovalTemplate.js +4 -4
  17. package/dist/model/ApprovalTransactionResult.js +8 -8
  18. package/dist/model/ApprovalUserDetail.js +95 -24
  19. package/dist/model/AutoSweepTask.js +9 -9
  20. package/dist/model/BalanceUpdateInfoEventData.js +8 -3
  21. package/dist/model/ChainInfo.js +14 -1
  22. package/dist/model/ChainsEventData.js +8 -3
  23. package/dist/model/ComplianceDispositionUpdateEventData.js +321 -0
  24. package/dist/model/CreateAddressBookParam.js +165 -0
  25. package/dist/model/CreateAddressBooks201Response.js +107 -0
  26. package/dist/model/CreateAddressBooksParam.js +128 -0
  27. package/dist/model/CreateAutoSweepTask.js +5 -5
  28. package/dist/model/CreateCustodialWalletParams.js +1 -1
  29. package/dist/model/CreateExchangeWalletParams.js +2 -2
  30. package/dist/model/CreateMerchantRequest.js +1 -1
  31. package/dist/model/CreateMpcWalletParams.js +2 -2
  32. package/dist/model/CreatePaymentOrderRequest.js +3 -3
  33. package/dist/model/CreateRefundRequest.js +2 -2
  34. package/dist/model/CreateSafeWalletParams.js +1 -1
  35. package/dist/model/CreateSettlement.js +1 -1
  36. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  37. package/dist/model/CreateSweepToAddress.js +1 -1
  38. package/dist/model/CreateWalletParams.js +1 -1
  39. package/dist/model/DeleteAddressBookById201Response.js +106 -0
  40. package/dist/model/DispositionEventData.js +170 -0
  41. package/dist/model/DispositionQueryResponse.js +146 -0
  42. package/dist/model/DispositionResponse.js +122 -0
  43. package/dist/model/DispositionStatus.js +116 -0
  44. package/dist/model/DispositionType.js +66 -0
  45. package/dist/model/IsolateDisposition.js +167 -0
  46. package/dist/model/MPCVaultEventData.js +8 -3
  47. package/dist/model/Merchant.js +1 -1
  48. package/dist/model/MerchantBalance.js +7 -7
  49. package/dist/model/OrgInfo.js +9 -0
  50. package/dist/model/PaymentAddressUpdateEventData.js +8 -3
  51. package/dist/model/PaymentOrderEventData.js +8 -3
  52. package/dist/model/PaymentRefundEventData.js +8 -3
  53. package/dist/model/PaymentSettlementEvent.js +8 -3
  54. package/dist/model/PaymentTransactionEventData.js +8 -3
  55. package/dist/model/PaymentWalletBalance.js +6 -6
  56. package/dist/model/PspBalance.js +7 -7
  57. package/dist/model/ReceivedAmountPerAddress.js +5 -5
  58. package/dist/model/RefundDisposition.js +167 -0
  59. package/dist/model/RoleDetail.js +41 -6
  60. package/dist/model/SuspendedTokenEventData.js +8 -3
  61. package/dist/model/SweepToAddress.js +1 -1
  62. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  63. package/dist/model/TokenListingEventData.js +8 -3
  64. package/dist/model/TokensEventData.js +8 -3
  65. package/dist/model/TransactionWebhookEventData.js +8 -3
  66. package/dist/model/UnfreezeDisposition.js +111 -0
  67. package/dist/model/UpdateAddressBookParam.js +150 -0
  68. package/dist/model/UpdateMerchantByIdRequest.js +1 -1
  69. package/dist/model/WalletInfoEventData.js +8 -3
  70. package/dist/model/WebhookEventData.js +62 -10
  71. package/dist/model/WebhookEventDataType.js +7 -2
  72. package/dist/model/WebhookEventType.js +5 -0
  73. package/docs/AddressBook.md +7 -7
  74. package/docs/AddressBooksApi.md +218 -8
  75. package/docs/AddressesEventData.md +3 -1
  76. package/docs/ApprovalDetail.md +3 -3
  77. package/docs/ApprovalResult.md +3 -5
  78. package/docs/ApprovalTemplate.md +3 -3
  79. package/docs/ApprovalTransactionResult.md +4 -4
  80. package/docs/ApprovalUserDetail.md +15 -9
  81. package/docs/AutoSweepApi.md +18 -18
  82. package/docs/AutoSweepTask.md +5 -5
  83. package/docs/BalanceUpdateInfoEventData.md +3 -1
  84. package/docs/ChainInfo.md +2 -1
  85. package/docs/ChainsEventData.md +3 -1
  86. package/docs/ComplianceApi.md +218 -0
  87. package/docs/ComplianceDispositionUpdateEventData.md +56 -0
  88. package/docs/CreateAddressBookParam.md +13 -0
  89. package/docs/CreateAddressBooks201Response.md +9 -0
  90. package/docs/CreateAddressBooksParam.md +9 -0
  91. package/docs/CreateAutoSweepTask.md +2 -2
  92. package/docs/CreateCustodialWalletParams.md +1 -1
  93. package/docs/CreateExchangeWalletParams.md +1 -1
  94. package/docs/CreateMerchantRequest.md +1 -1
  95. package/docs/CreateMpcWalletParams.md +1 -1
  96. package/docs/CreatePaymentOrderRequest.md +2 -2
  97. package/docs/CreateRefundRequest.md +1 -1
  98. package/docs/CreateSafeWalletParams.md +1 -1
  99. package/docs/CreateSettlement.md +1 -1
  100. package/docs/CreateSmartContractWalletParams.md +1 -1
  101. package/docs/CreateWalletParams.md +1 -1
  102. package/docs/DeleteAddressBookById201Response.md +9 -0
  103. package/docs/DispositionEventData.md +14 -0
  104. package/docs/DispositionQueryResponse.md +12 -0
  105. package/docs/DispositionResponse.md +10 -0
  106. package/docs/DispositionStatus.md +34 -0
  107. package/docs/DispositionType.md +14 -0
  108. package/docs/IsolateDisposition.md +13 -0
  109. package/docs/MPCVaultEventData.md +3 -1
  110. package/docs/Merchant.md +1 -1
  111. package/docs/MerchantBalance.md +6 -6
  112. package/docs/OrgInfo.md +1 -0
  113. package/docs/PaymentAddressUpdateEventData.md +3 -1
  114. package/docs/PaymentApi.md +10 -10
  115. package/docs/PaymentOrderEventData.md +3 -1
  116. package/docs/PaymentRefundEventData.md +3 -1
  117. package/docs/PaymentSettlementEvent.md +3 -1
  118. package/docs/PaymentTransactionEventData.md +3 -1
  119. package/docs/PaymentWalletBalance.md +5 -5
  120. package/docs/PspBalance.md +6 -6
  121. package/docs/ReceivedAmountPerAddress.md +2 -2
  122. package/docs/RefundDisposition.md +13 -0
  123. package/docs/RoleDetail.md +4 -1
  124. package/docs/SuspendedTokenEventData.md +3 -1
  125. package/docs/TSSRequestWebhookEventData.md +3 -1
  126. package/docs/TokenListingEventData.md +3 -1
  127. package/docs/TokenizationApi.md +2 -2
  128. package/docs/TokensEventData.md +3 -1
  129. package/docs/TransactionWebhookEventData.md +3 -1
  130. package/docs/TransactionsApi.md +10 -10
  131. package/docs/UnfreezeDisposition.md +9 -0
  132. package/docs/UpdateAddressBookParam.md +12 -0
  133. package/docs/UpdateMerchantByIdRequest.md +1 -1
  134. package/docs/WalletInfoEventData.md +3 -1
  135. package/docs/WalletsApi.md +2 -2
  136. package/docs/WalletsMPCWalletsApi.md +1 -1
  137. package/docs/WebhookEventData.md +8 -2
  138. package/docs/WebhookEventDataType.md +3 -1
  139. package/docs/WebhookEventType.md +2 -0
  140. package/package.json +1 -1
  141. package/dist/model/ApprovalShowInfo.js +0 -140
  142. package/docs/ApprovalShowInfo.md +0 -13
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _ApprovalResult = _interopRequireDefault(require("./ApprovalResult"));
9
- var _ApprovalShowInfo = _interopRequireDefault(require("./ApprovalShowInfo"));
10
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
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); }
12
11
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -30,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
29
  var ApprovalUserDetail = /*#__PURE__*/function () {
31
30
  /**
32
31
  * Constructs a new <code>ApprovalUserDetail</code>.
33
- * The user detail for a transaction approval. This includes the user&#39;s email, public key, signature, statement UUID, result of the approval, creation time, template version, header title, whether it is for signing, and additional information to show.
32
+ * Details about a user involved in a transaction approval workflow.
34
33
  * @alias module:model/ApprovalUserDetail
35
34
  */
36
35
  function ApprovalUserDetail() {
@@ -59,8 +58,11 @@ var ApprovalUserDetail = /*#__PURE__*/function () {
59
58
  value: function constructFromObject(data, obj) {
60
59
  if (data) {
61
60
  obj = obj || new ApprovalUserDetail();
62
- if (data.hasOwnProperty('user_email')) {
63
- obj['user_email'] = _ApiClient["default"].convertToType(data['user_email'], 'String');
61
+ if (data.hasOwnProperty('name')) {
62
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
63
+ }
64
+ if (data.hasOwnProperty('email')) {
65
+ obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
64
66
  }
65
67
  if (data.hasOwnProperty('pubkey')) {
66
68
  obj['pubkey'] = _ApiClient["default"].convertToType(data['pubkey'], 'String');
@@ -74,6 +76,9 @@ var ApprovalUserDetail = /*#__PURE__*/function () {
74
76
  if (data.hasOwnProperty('result')) {
75
77
  obj['result'] = _ApprovalResult["default"].constructFromObject(data['result']);
76
78
  }
79
+ if (data.hasOwnProperty('approval_result_code')) {
80
+ obj['approval_result_code'] = _ApiClient["default"].convertToType(data['approval_result_code'], 'Number');
81
+ }
77
82
  if (data.hasOwnProperty('created_time')) {
78
83
  obj['created_time'] = _ApiClient["default"].convertToType(data['created_time'], 'Number');
79
84
  }
@@ -87,7 +92,19 @@ var ApprovalUserDetail = /*#__PURE__*/function () {
87
92
  obj['is_for_sign'] = _ApiClient["default"].convertToType(data['is_for_sign'], 'Boolean');
88
93
  }
89
94
  if (data.hasOwnProperty('show_info')) {
90
- obj['show_info'] = _ApprovalShowInfo["default"].constructFromObject(data['show_info']);
95
+ obj['show_info'] = _ApiClient["default"].convertToType(data['show_info'], 'String');
96
+ }
97
+ if (data.hasOwnProperty('language')) {
98
+ obj['language'] = _ApiClient["default"].convertToType(data['language'], 'String');
99
+ }
100
+ if (data.hasOwnProperty('message_version')) {
101
+ obj['message_version'] = _ApiClient["default"].convertToType(data['message_version'], 'String');
102
+ }
103
+ if (data.hasOwnProperty('message')) {
104
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
105
+ }
106
+ if (data.hasOwnProperty('extra_message')) {
107
+ obj['extra_message'] = _ApiClient["default"].convertToType(data['extra_message'], 'String');
91
108
  }
92
109
  }
93
110
  return obj;
@@ -102,8 +119,12 @@ var ApprovalUserDetail = /*#__PURE__*/function () {
102
119
  key: "validateJSON",
103
120
  value: function validateJSON(data) {
104
121
  // ensure the json data is a string
105
- if (data['user_email'] && !(typeof data['user_email'] === 'string' || data['user_email'] instanceof String)) {
106
- throw new Error("Expected the field `user_email` to be a primitive type in the JSON string but got " + data['user_email']);
122
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
123
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
124
+ }
125
+ // ensure the json data is a string
126
+ if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
127
+ throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
107
128
  }
108
129
  // ensure the json data is a string
109
130
  if (data['pubkey'] && !(typeof data['pubkey'] === 'string' || data['pubkey'] instanceof String)) {
@@ -125,37 +146,56 @@ var ApprovalUserDetail = /*#__PURE__*/function () {
125
146
  if (data['header_title'] && !(typeof data['header_title'] === 'string' || data['header_title'] instanceof String)) {
126
147
  throw new Error("Expected the field `header_title` to be a primitive type in the JSON string but got " + data['header_title']);
127
148
  }
128
- // validate the optional field `show_info`
129
- if (data['show_info']) {
130
- // data not null
131
- if (!!_ApprovalShowInfo["default"].validateJSON) {
132
- _ApprovalShowInfo["default"].validateJSON(data['show_info']);
133
- }
149
+ // ensure the json data is a string
150
+ if (data['show_info'] && !(typeof data['show_info'] === 'string' || data['show_info'] instanceof String)) {
151
+ throw new Error("Expected the field `show_info` to be a primitive type in the JSON string but got " + data['show_info']);
152
+ }
153
+ // ensure the json data is a string
154
+ if (data['language'] && !(typeof data['language'] === 'string' || data['language'] instanceof String)) {
155
+ throw new Error("Expected the field `language` to be a primitive type in the JSON string but got " + data['language']);
156
+ }
157
+ // ensure the json data is a string
158
+ if (data['message_version'] && !(typeof data['message_version'] === 'string' || data['message_version'] instanceof String)) {
159
+ throw new Error("Expected the field `message_version` to be a primitive type in the JSON string but got " + data['message_version']);
160
+ }
161
+ // ensure the json data is a string
162
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
163
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
164
+ }
165
+ // ensure the json data is a string
166
+ if (data['extra_message'] && !(typeof data['extra_message'] === 'string' || data['extra_message'] instanceof String)) {
167
+ throw new Error("Expected the field `extra_message` to be a primitive type in the JSON string but got " + data['extra_message']);
134
168
  }
135
169
  return true;
136
170
  }
137
171
  }]);
138
172
  }();
139
173
  /**
140
- * The email address of the user who approved the transaction.
141
- * @member {String} user_email
174
+ * Name of the user who approved the transaction.
175
+ * @member {String} name
142
176
  */
143
- ApprovalUserDetail.prototype['user_email'] = undefined;
177
+ ApprovalUserDetail.prototype['name'] = undefined;
144
178
 
145
179
  /**
146
- * The public key of the user who approved the transaction.
180
+ * Email of the user.
181
+ * @member {String} email
182
+ */
183
+ ApprovalUserDetail.prototype['email'] = undefined;
184
+
185
+ /**
186
+ * Public key of the user.
147
187
  * @member {String} pubkey
148
188
  */
149
189
  ApprovalUserDetail.prototype['pubkey'] = undefined;
150
190
 
151
191
  /**
152
- * The signature of the transaction approval.
192
+ * Signature produced by the user for this approval.
153
193
  * @member {String} signature
154
194
  */
155
195
  ApprovalUserDetail.prototype['signature'] = undefined;
156
196
 
157
197
  /**
158
- * The UUID of the statement associated with the transaction approval.
198
+ * UUID of the statement associated with this approval.
159
199
  * @member {String} statement_uuid
160
200
  */
161
201
  ApprovalUserDetail.prototype['statement_uuid'] = undefined;
@@ -166,31 +206,62 @@ ApprovalUserDetail.prototype['statement_uuid'] = undefined;
166
206
  ApprovalUserDetail.prototype['result'] = undefined;
167
207
 
168
208
  /**
169
- * The timestamp when the approval was created.
209
+ * Integer value representing the result of the approval.
210
+ * @member {Number} approval_result_code
211
+ */
212
+ ApprovalUserDetail.prototype['approval_result_code'] = undefined;
213
+
214
+ /**
215
+ * Timestamp when the approval was created.
170
216
  * @member {Number} created_time
171
217
  */
172
218
  ApprovalUserDetail.prototype['created_time'] = undefined;
173
219
 
174
220
  /**
175
- * The version of the template used for the transaction approval.
221
+ * Version of the template used for the transaction approval.
176
222
  * @member {String} template_version
177
223
  */
178
224
  ApprovalUserDetail.prototype['template_version'] = undefined;
179
225
 
180
226
  /**
181
- * The title of the header for the transaction approval.
227
+ * Display title used in the transaction approval.
182
228
  * @member {String} header_title
183
229
  */
184
230
  ApprovalUserDetail.prototype['header_title'] = undefined;
185
231
 
186
232
  /**
187
- * Indicates whether the approval is for signing.
233
+ * Indicates whether this approval requires signing: - `true`: The user must sign the transaction. - `false`: The user only needs to approve or reject without signing.
188
234
  * @member {Boolean} is_for_sign
189
235
  */
190
236
  ApprovalUserDetail.prototype['is_for_sign'] = undefined;
191
237
 
192
238
  /**
193
- * @member {module:model/ApprovalShowInfo} show_info
239
+ * Additional information to show for the transaction approval.
240
+ * @member {String} show_info
194
241
  */
195
242
  ApprovalUserDetail.prototype['show_info'] = undefined;
243
+
244
+ /**
245
+ * Language used for the transaction approval.
246
+ * @member {String} language
247
+ */
248
+ ApprovalUserDetail.prototype['language'] = undefined;
249
+
250
+ /**
251
+ * Version of the message format used for the transaction approval.
252
+ * @member {String} message_version
253
+ */
254
+ ApprovalUserDetail.prototype['message_version'] = undefined;
255
+
256
+ /**
257
+ * Message associated with the transaction approval.
258
+ * @member {String} message
259
+ */
260
+ ApprovalUserDetail.prototype['message'] = undefined;
261
+
262
+ /**
263
+ * Any additional message or information related to the transaction approval.
264
+ * @member {String} extra_message
265
+ */
266
+ ApprovalUserDetail.prototype['extra_message'] = undefined;
196
267
  var _default = exports["default"] = ApprovalUserDetail;
@@ -32,11 +32,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  var AutoSweepTask = /*#__PURE__*/function () {
33
33
  /**
34
34
  * Constructs a new <code>AutoSweepTask</code>.
35
- * The auto sweep task information.
35
+ * Auto-sweep task information.
36
36
  * @alias module:model/AutoSweepTask
37
- * @param task_id {String} The auto sweep task ID.
38
- * @param wallet_id {String} The wallet ID.
39
- * @param token_id {String} The token ID of the swept 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).
37
+ * @param task_id {String} Auto-sweep task ID.
38
+ * @param wallet_id {String} Wallet ID.
39
+ * @param token_id {String} Token ID of the swept 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).
40
40
  * @param status {module:model/AutoSweepTaskStatus}
41
41
  * @param created_timestamp {Number} The time when the task was created, in Unix timestamp format, measured in milliseconds.
42
42
  */
@@ -150,19 +150,19 @@ var AutoSweepTask = /*#__PURE__*/function () {
150
150
  AutoSweepTask.RequiredProperties = ["task_id", "wallet_id", "token_id", "status", "created_timestamp"];
151
151
 
152
152
  /**
153
- * The auto sweep task ID.
153
+ * Auto-sweep task ID.
154
154
  * @member {String} task_id
155
155
  */
156
156
  AutoSweepTask.prototype['task_id'] = undefined;
157
157
 
158
158
  /**
159
- * The wallet ID.
159
+ * Wallet ID.
160
160
  * @member {String} wallet_id
161
161
  */
162
162
  AutoSweepTask.prototype['wallet_id'] = undefined;
163
163
 
164
164
  /**
165
- * The token ID of the swept 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).
165
+ * Token ID of the swept 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).
166
166
  * @member {String} token_id
167
167
  */
168
168
  AutoSweepTask.prototype['token_id'] = undefined;
@@ -173,13 +173,13 @@ AutoSweepTask.prototype['token_id'] = undefined;
173
173
  AutoSweepTask.prototype['status'] = undefined;
174
174
 
175
175
  /**
176
- * The IDs of the corresponding transactions of the auto sweep task.
176
+ * IDs of the transactions triggered by the task.
177
177
  * @member {Array.<String>} transaction_ids
178
178
  */
179
179
  AutoSweepTask.prototype['transaction_ids'] = undefined;
180
180
 
181
181
  /**
182
- * Failed reason of create auto sweep transaction.
182
+ * Reasons why the task creation failed.
183
183
  * @member {Array.<String>} failed_reasons
184
184
  */
185
185
  AutoSweepTask.prototype['failed_reasons'] = undefined;
@@ -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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update 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 top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition 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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update 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 top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition 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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update 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 top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
196
196
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
197
197
  */
198
198
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -303,6 +303,11 @@ BalanceUpdateInfoEventData['DataTypeEnum'] = {
303
303
  * @const
304
304
  */
305
305
  "SuspendedToken": "SuspendedToken",
306
+ /**
307
+ * value: "ComplianceDisposition"
308
+ * @const
309
+ */
310
+ "ComplianceDisposition": "ComplianceDisposition",
306
311
  /**
307
312
  * value: "unknown_default_open_api"
308
313
  * @const
@@ -72,6 +72,9 @@ var ChainInfo = /*#__PURE__*/function () {
72
72
  if (data.hasOwnProperty('icon_url')) {
73
73
  obj['icon_url'] = _ApiClient["default"].convertToType(data['icon_url'], 'String');
74
74
  }
75
+ if (data.hasOwnProperty('chain_identifier')) {
76
+ obj['chain_identifier'] = _ApiClient["default"].convertToType(data['chain_identifier'], 'String');
77
+ }
75
78
  if (data.hasOwnProperty('explorer_tx_url')) {
76
79
  obj['explorer_tx_url'] = _ApiClient["default"].convertToType(data['explorer_tx_url'], 'String');
77
80
  }
@@ -127,6 +130,10 @@ var ChainInfo = /*#__PURE__*/function () {
127
130
  throw new Error("Expected the field `icon_url` to be a primitive type in the JSON string but got " + data['icon_url']);
128
131
  }
129
132
  // ensure the json data is a string
133
+ if (data['chain_identifier'] && !(typeof data['chain_identifier'] === 'string' || data['chain_identifier'] instanceof String)) {
134
+ throw new Error("Expected the field `chain_identifier` to be a primitive type in the JSON string but got " + data['chain_identifier']);
135
+ }
136
+ // ensure the json data is a string
130
137
  if (data['explorer_tx_url'] && !(typeof data['explorer_tx_url'] === 'string' || data['explorer_tx_url'] instanceof String)) {
131
138
  throw new Error("Expected the field `explorer_tx_url` to be a primitive type in the JSON string but got " + data['explorer_tx_url']);
132
139
  }
@@ -147,7 +154,7 @@ ChainInfo.RequiredProperties = ["chain_id"];
147
154
  ChainInfo.prototype['chain_id'] = undefined;
148
155
 
149
156
  /**
150
- * The chain symbol, which is the abbreviated name of a chain.
157
+ * The chain symbol for display purposes, which is the abbreviated name of a chain.
151
158
  * @member {String} symbol
152
159
  */
153
160
  ChainInfo.prototype['symbol'] = undefined;
@@ -158,6 +165,12 @@ ChainInfo.prototype['symbol'] = undefined;
158
165
  */
159
166
  ChainInfo.prototype['icon_url'] = undefined;
160
167
 
168
+ /**
169
+ * A functional identifier used to group blockchains with similar execution logic. For example, `ETH` for all EVM-compatible chains (Ethereum, BNB Smart Chain, Polygon).
170
+ * @member {String} chain_identifier
171
+ */
172
+ ChainInfo.prototype['chain_identifier'] = undefined;
173
+
161
174
  /**
162
175
  * The transaction URL pattern on the blockchain explorer. You can use it to concatenate the transaction URLs.
163
176
  * @member {String} explorer_tx_url
@@ -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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update 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 top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition 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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update 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 top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition 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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update 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 top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
173
173
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
174
174
  */
175
175
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -255,6 +255,11 @@ ChainsEventData['DataTypeEnum'] = {
255
255
  * @const
256
256
  */
257
257
  "SuspendedToken": "SuspendedToken",
258
+ /**
259
+ * value: "ComplianceDisposition"
260
+ * @const
261
+ */
262
+ "ComplianceDisposition": "ComplianceDisposition",
258
263
  /**
259
264
  * value: "unknown_default_open_api"
260
265
  * @const