@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
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ * Cobo Wallet as a Service 2.0
19
+ *
20
+ * Contact: help@cobo.com
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The RefundDisposition model module.
29
+ * @module model/RefundDisposition
30
+ */
31
+ var RefundDisposition = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>RefundDisposition</code>.
34
+ * The information about a request to refund funds.
35
+ * @alias module:model/RefundDisposition
36
+ * @param transaction_id {String} The UUID of the transaction whose funds are to be refunded. This identifies the original transaction that requires refund processing.
37
+ * @param destination_address {String} The blockchain address to receive the refunded funds.
38
+ * @param disposition_amount {String} The amount to be refunded from the original transaction, specified as a numeric string. This value cannot exceed the total amount of the original transaction.
39
+ */
40
+ function RefundDisposition(transaction_id, destination_address, disposition_amount) {
41
+ _classCallCheck(this, RefundDisposition);
42
+ RefundDisposition.initialize(this, transaction_id, destination_address, disposition_amount);
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(RefundDisposition, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, transaction_id, destination_address, disposition_amount) {
53
+ obj['transaction_id'] = transaction_id;
54
+ obj['destination_address'] = destination_address;
55
+ obj['disposition_amount'] = disposition_amount;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>RefundDisposition</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/RefundDisposition} obj Optional instance to populate.
63
+ * @return {module:model/RefundDisposition} The populated <code>RefundDisposition</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new RefundDisposition();
70
+ if (data.hasOwnProperty('transaction_id')) {
71
+ obj['transaction_id'] = _ApiClient["default"].convertToType(data['transaction_id'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('destination_address')) {
74
+ obj['destination_address'] = _ApiClient["default"].convertToType(data['destination_address'], 'String');
75
+ }
76
+ if (data.hasOwnProperty('disposition_amount')) {
77
+ obj['disposition_amount'] = _ApiClient["default"].convertToType(data['disposition_amount'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('category_names')) {
80
+ obj['category_names'] = _ApiClient["default"].convertToType(data['category_names'], ['String']);
81
+ }
82
+ if (data.hasOwnProperty('description')) {
83
+ obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
84
+ }
85
+ }
86
+ return obj;
87
+ }
88
+
89
+ /**
90
+ * Validates the JSON data with respect to <code>RefundDisposition</code>.
91
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
92
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>RefundDisposition</code>.
93
+ */
94
+ }, {
95
+ key: "validateJSON",
96
+ value: function validateJSON(data) {
97
+ // check to make sure all required properties are present in the JSON string
98
+ var _iterator = _createForOfIteratorHelper(RefundDisposition.RequiredProperties),
99
+ _step;
100
+ try {
101
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
102
+ var property = _step.value;
103
+ if (!data.hasOwnProperty(property)) {
104
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
105
+ }
106
+ }
107
+ // ensure the json data is a string
108
+ } catch (err) {
109
+ _iterator.e(err);
110
+ } finally {
111
+ _iterator.f();
112
+ }
113
+ if (data['transaction_id'] && !(typeof data['transaction_id'] === 'string' || data['transaction_id'] instanceof String)) {
114
+ throw new Error("Expected the field `transaction_id` to be a primitive type in the JSON string but got " + data['transaction_id']);
115
+ }
116
+ // ensure the json data is a string
117
+ if (data['destination_address'] && !(typeof data['destination_address'] === 'string' || data['destination_address'] instanceof String)) {
118
+ throw new Error("Expected the field `destination_address` to be a primitive type in the JSON string but got " + data['destination_address']);
119
+ }
120
+ // ensure the json data is a string
121
+ if (data['disposition_amount'] && !(typeof data['disposition_amount'] === 'string' || data['disposition_amount'] instanceof String)) {
122
+ throw new Error("Expected the field `disposition_amount` to be a primitive type in the JSON string but got " + data['disposition_amount']);
123
+ }
124
+ // ensure the json data is an array
125
+ if (!Array.isArray(data['category_names'])) {
126
+ throw new Error("Expected the field `category_names` to be an array in the JSON data but got " + data['category_names']);
127
+ }
128
+ // ensure the json data is a string
129
+ if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
130
+ throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
131
+ }
132
+ return true;
133
+ }
134
+ }]);
135
+ }();
136
+ RefundDisposition.RequiredProperties = ["transaction_id", "destination_address", "disposition_amount"];
137
+
138
+ /**
139
+ * The UUID of the transaction whose funds are to be refunded. This identifies the original transaction that requires refund processing.
140
+ * @member {String} transaction_id
141
+ */
142
+ RefundDisposition.prototype['transaction_id'] = undefined;
143
+
144
+ /**
145
+ * The blockchain address to receive the refunded funds.
146
+ * @member {String} destination_address
147
+ */
148
+ RefundDisposition.prototype['destination_address'] = undefined;
149
+
150
+ /**
151
+ * The amount to be refunded from the original transaction, specified as a numeric string. This value cannot exceed the total amount of the original transaction.
152
+ * @member {String} disposition_amount
153
+ */
154
+ RefundDisposition.prototype['disposition_amount'] = undefined;
155
+
156
+ /**
157
+ * Custom categories to identify and track this refund transaction. Used for transaction classification and reporting.
158
+ * @member {Array.<String>} category_names
159
+ */
160
+ RefundDisposition.prototype['category_names'] = undefined;
161
+
162
+ /**
163
+ * Additional notes or description for the refund.
164
+ * @member {String} description
165
+ */
166
+ RefundDisposition.prototype['description'] = undefined;
167
+ var _default = exports["default"] = RefundDisposition;
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  var RoleDetail = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>RoleDetail</code>.
36
- * Transaction approval details response schema.
36
+ * Details of the role in a transaction approval.
37
37
  * @alias module:model/RoleDetail
38
38
  */
39
39
  function RoleDetail() {
@@ -65,8 +65,17 @@ var RoleDetail = /*#__PURE__*/function () {
65
65
  if (data.hasOwnProperty('result')) {
66
66
  obj['result'] = _ApprovalTransactionResult["default"].constructFromObject(data['result']);
67
67
  }
68
- if (data.hasOwnProperty('threshold')) {
69
- obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number');
68
+ if (data.hasOwnProperty('review_threshold')) {
69
+ obj['review_threshold'] = _ApiClient["default"].convertToType(data['review_threshold'], 'Number');
70
+ }
71
+ if (data.hasOwnProperty('initiator')) {
72
+ obj['initiator'] = _ApiClient["default"].convertToType(data['initiator'], 'String');
73
+ }
74
+ if (data.hasOwnProperty('is_upgraded')) {
75
+ obj['is_upgraded'] = _ApiClient["default"].convertToType(data['is_upgraded'], 'Boolean');
76
+ }
77
+ if (data.hasOwnProperty('complete_time')) {
78
+ obj['complete_time'] = _ApiClient["default"].convertToType(data['complete_time'], 'String');
70
79
  }
71
80
  if (data.hasOwnProperty('user_details')) {
72
81
  obj['user_details'] = _ApiClient["default"].convertToType(data['user_details'], [_ApprovalUserDetail["default"]]);
@@ -83,6 +92,14 @@ var RoleDetail = /*#__PURE__*/function () {
83
92
  }, {
84
93
  key: "validateJSON",
85
94
  value: function validateJSON(data) {
95
+ // ensure the json data is a string
96
+ if (data['initiator'] && !(typeof data['initiator'] === 'string' || data['initiator'] instanceof String)) {
97
+ throw new Error("Expected the field `initiator` to be a primitive type in the JSON string but got " + data['initiator']);
98
+ }
99
+ // ensure the json data is a string
100
+ if (data['complete_time'] && !(typeof data['complete_time'] === 'string' || data['complete_time'] instanceof String)) {
101
+ throw new Error("Expected the field `complete_time` to be a primitive type in the JSON string but got " + data['complete_time']);
102
+ }
86
103
  if (data['user_details']) {
87
104
  // data not null
88
105
  // ensure the json data is an array
@@ -114,10 +131,28 @@ var RoleDetail = /*#__PURE__*/function () {
114
131
  RoleDetail.prototype['result'] = undefined;
115
132
 
116
133
  /**
117
- * The threshold for the transaction approval.
118
- * @member {Number} threshold
134
+ * Minimum number of approvals required for this role.
135
+ * @member {Number} review_threshold
136
+ */
137
+ RoleDetail.prototype['review_threshold'] = undefined;
138
+
139
+ /**
140
+ * The initiator of the transaction.
141
+ * @member {String} initiator
142
+ */
143
+ RoleDetail.prototype['initiator'] = undefined;
144
+
145
+ /**
146
+ * Indicates whether the transaction approval has been upgraded.
147
+ * @member {Boolean} is_upgraded
148
+ */
149
+ RoleDetail.prototype['is_upgraded'] = undefined;
150
+
151
+ /**
152
+ * Time when the role completed the approval.
153
+ * @member {String} complete_time
119
154
  */
120
- RoleDetail.prototype['threshold'] = undefined;
155
+ RoleDetail.prototype['complete_time'] = undefined;
121
156
 
122
157
  /**
123
158
  * @member {Array.<module:model/ApprovalUserDetail>} user_details
@@ -35,7 +35,7 @@ var SuspendedTokenEventData = /*#__PURE__*/function () {
35
35
  * Constructs a new <code>SuspendedTokenEventData</code>.
36
36
  * @alias module:model/SuspendedTokenEventData
37
37
  * @implements module:model/WebhookEventDataType
38
- * @param data_type {module:model/SuspendedTokenEventData.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.
38
+ * @param data_type {module:model/SuspendedTokenEventData.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.
39
39
  * @param token_ids {String} A list of token IDs, separated by comma.
40
40
  * @param operation_type {module:model/SuspendedTokenOperationType}
41
41
  */
@@ -122,7 +122,7 @@ var SuspendedTokenEventData = /*#__PURE__*/function () {
122
122
  SuspendedTokenEventData.RequiredProperties = ["data_type", "token_ids", "operation_type"];
123
123
 
124
124
  /**
125
- * 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.
125
+ * 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.
126
126
  * @member {module:model/SuspendedTokenEventData.DataTypeEnum} data_type
127
127
  */
128
128
  SuspendedTokenEventData.prototype['data_type'] = undefined;
@@ -140,7 +140,7 @@ SuspendedTokenEventData.prototype['operation_type'] = undefined;
140
140
 
141
141
  // Implement WebhookEventDataType interface:
142
142
  /**
143
- * 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.
143
+ * 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.
144
144
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
145
145
  */
146
146
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -226,6 +226,11 @@ SuspendedTokenEventData['DataTypeEnum'] = {
226
226
  * @const
227
227
  */
228
228
  "SuspendedToken": "SuspendedToken",
229
+ /**
230
+ * value: "ComplianceDisposition"
231
+ * @const
232
+ */
233
+ "ComplianceDisposition": "ComplianceDisposition",
229
234
  /**
230
235
  * value: "unknown_default_open_api"
231
236
  * @const
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  var SweepToAddress = /*#__PURE__*/function () {
33
33
  /**
34
34
  * Constructs a new <code>SweepToAddress</code>.
35
- * The sweep to address information.
35
+ * Information about the sweep-to address.
36
36
  * @alias module:model/SweepToAddress
37
37
  * @param address {String} The wallet address.
38
38
  * @param chain_id {String} The chain ID, which is the unique identifier of a blockchain. 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).
@@ -39,7 +39,7 @@ var TSSRequestWebhookEventData = /*#__PURE__*/function () {
39
39
  * @alias module:model/TSSRequestWebhookEventData
40
40
  * @implements module:model/WebhookEventDataType
41
41
  * @implements module:model/TSSRequest
42
- * @param data_type {module:model/TSSRequestWebhookEventData.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.
42
+ * @param data_type {module:model/TSSRequestWebhookEventData.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.
43
43
  */
44
44
  function TSSRequestWebhookEventData(data_type) {
45
45
  _classCallCheck(this, TSSRequestWebhookEventData);
@@ -154,7 +154,7 @@ var TSSRequestWebhookEventData = /*#__PURE__*/function () {
154
154
  TSSRequestWebhookEventData.RequiredProperties = ["data_type"];
155
155
 
156
156
  /**
157
- * 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.
157
+ * 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.
158
158
  * @member {module:model/TSSRequestWebhookEventData.DataTypeEnum} data_type
159
159
  */
160
160
  TSSRequestWebhookEventData.prototype['data_type'] = undefined;
@@ -200,7 +200,7 @@ TSSRequestWebhookEventData.prototype['created_timestamp'] = undefined;
200
200
 
201
201
  // Implement WebhookEventDataType interface:
202
202
  /**
203
- * 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.
203
+ * 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.
204
204
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
205
205
  */
206
206
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -319,6 +319,11 @@ TSSRequestWebhookEventData['DataTypeEnum'] = {
319
319
  * @const
320
320
  */
321
321
  "SuspendedToken": "SuspendedToken",
322
+ /**
323
+ * value: "ComplianceDisposition"
324
+ * @const
325
+ */
326
+ "ComplianceDisposition": "ComplianceDisposition",
322
327
  /**
323
328
  * value: "unknown_default_open_api"
324
329
  * @const
@@ -41,7 +41,7 @@ var TokenListingEventData = /*#__PURE__*/function () {
41
41
  * @alias module:model/TokenListingEventData
42
42
  * @implements module:model/WebhookEventDataType
43
43
  * @implements module:model/TokenListing
44
- * @param data_type {module:model/TokenListingEventData.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.
44
+ * @param data_type {module:model/TokenListingEventData.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.
45
45
  * @param request_id {String} The unique identifier of the token listing request.
46
46
  * @param chain_id {String} The ID of the blockchain where the token is deployed.
47
47
  * @param contract_address {String} The token's contract address on the specified blockchain.
@@ -184,7 +184,7 @@ var TokenListingEventData = /*#__PURE__*/function () {
184
184
  TokenListingEventData.RequiredProperties = ["data_type", "request_id", "chain_id", "contract_address", "wallet_type", "wallet_subtype", "status"];
185
185
 
186
186
  /**
187
- * 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.
187
+ * 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.
188
188
  * @member {module:model/TokenListingEventData.DataTypeEnum} data_type
189
189
  */
190
190
  TokenListingEventData.prototype['data_type'] = undefined;
@@ -252,7 +252,7 @@ TokenListingEventData.prototype['updated_timestamp'] = undefined;
252
252
 
253
253
  // Implement WebhookEventDataType interface:
254
254
  /**
255
- * 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.
255
+ * 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.
256
256
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
257
257
  */
258
258
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -389,6 +389,11 @@ TokenListingEventData['DataTypeEnum'] = {
389
389
  * @const
390
390
  */
391
391
  "SuspendedToken": "SuspendedToken",
392
+ /**
393
+ * value: "ComplianceDisposition"
394
+ * @const
395
+ */
396
+ "ComplianceDisposition": "ComplianceDisposition",
392
397
  /**
393
398
  * value: "unknown_default_open_api"
394
399
  * @const
@@ -37,7 +37,7 @@ var TokensEventData = /*#__PURE__*/function () {
37
37
  * Constructs a new <code>TokensEventData</code>.
38
38
  * @alias module:model/TokensEventData
39
39
  * @implements module:model/WebhookEventDataType
40
- * @param data_type {module:model/TokensEventData.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/TokensEventData.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 tokens {Array.<module:model/TokenInfo>} The enabled tokens.
42
42
  */
43
43
  function TokensEventData(data_type, tokens) {
@@ -146,7 +146,7 @@ var TokensEventData = /*#__PURE__*/function () {
146
146
  TokensEventData.RequiredProperties = ["data_type", "tokens"];
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/TokensEventData.DataTypeEnum} data_type
151
151
  */
152
152
  TokensEventData.prototype['data_type'] = undefined;
@@ -169,7 +169,7 @@ TokensEventData.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 @@ TokensEventData['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
@@ -48,7 +48,7 @@ var TransactionWebhookEventData = /*#__PURE__*/function () {
48
48
  * @alias module:model/TransactionWebhookEventData
49
49
  * @implements module:model/WebhookEventDataType
50
50
  * @implements module:model/Transaction
51
- * @param data_type {module:model/TransactionWebhookEventData.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.
51
+ * @param data_type {module:model/TransactionWebhookEventData.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.
52
52
  * @param transaction_id {String} The transaction ID.
53
53
  * @param wallet_id {String} For deposit transactions, this property represents the wallet ID of the transaction destination. For transactions of other types, this property represents the wallet ID of the transaction source.
54
54
  * @param status {module:model/TransactionStatus}
@@ -344,7 +344,7 @@ var TransactionWebhookEventData = /*#__PURE__*/function () {
344
344
  TransactionWebhookEventData.RequiredProperties = ["data_type", "transaction_id", "wallet_id", "status", "source", "destination", "initiator_type", "created_timestamp", "updated_timestamp"];
345
345
 
346
346
  /**
347
- * 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.
347
+ * 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.
348
348
  * @member {module:model/TransactionWebhookEventData.DataTypeEnum} data_type
349
349
  */
350
350
  TransactionWebhookEventData.prototype['data_type'] = undefined;
@@ -525,7 +525,7 @@ TransactionWebhookEventData.prototype['updated_timestamp'] = undefined;
525
525
 
526
526
  // Implement WebhookEventDataType interface:
527
527
  /**
528
- * 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.
528
+ * 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.
529
529
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
530
530
  */
531
531
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -755,6 +755,11 @@ TransactionWebhookEventData['DataTypeEnum'] = {
755
755
  * @const
756
756
  */
757
757
  "SuspendedToken": "SuspendedToken",
758
+ /**
759
+ * value: "ComplianceDisposition"
760
+ * @const
761
+ */
762
+ "ComplianceDisposition": "ComplianceDisposition",
758
763
  /**
759
764
  * value: "unknown_default_open_api"
760
765
  * @const
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ * Cobo Wallet as a Service 2.0
19
+ *
20
+ * Contact: help@cobo.com
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The UnfreezeDisposition model module.
29
+ * @module model/UnfreezeDisposition
30
+ */
31
+ var UnfreezeDisposition = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>UnfreezeDisposition</code>.
34
+ * The information about a request to unfreeze funds.
35
+ * @alias module:model/UnfreezeDisposition
36
+ * @param transaction_id {String} The UUID of the transaction whose funds are to be unfrozen.
37
+ */
38
+ function UnfreezeDisposition(transaction_id) {
39
+ _classCallCheck(this, UnfreezeDisposition);
40
+ UnfreezeDisposition.initialize(this, transaction_id);
41
+ }
42
+
43
+ /**
44
+ * Initializes the fields of this object.
45
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
+ * Only for internal use.
47
+ */
48
+ return _createClass(UnfreezeDisposition, null, [{
49
+ key: "initialize",
50
+ value: function initialize(obj, transaction_id) {
51
+ obj['transaction_id'] = transaction_id;
52
+ }
53
+
54
+ /**
55
+ * Constructs a <code>UnfreezeDisposition</code> from a plain JavaScript object, optionally creating a new instance.
56
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
57
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
58
+ * @param {module:model/UnfreezeDisposition} obj Optional instance to populate.
59
+ * @return {module:model/UnfreezeDisposition} The populated <code>UnfreezeDisposition</code> instance.
60
+ */
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new UnfreezeDisposition();
66
+ if (data.hasOwnProperty('transaction_id')) {
67
+ obj['transaction_id'] = _ApiClient["default"].convertToType(data['transaction_id'], 'String');
68
+ }
69
+ }
70
+ return obj;
71
+ }
72
+
73
+ /**
74
+ * Validates the JSON data with respect to <code>UnfreezeDisposition</code>.
75
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
76
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>UnfreezeDisposition</code>.
77
+ */
78
+ }, {
79
+ key: "validateJSON",
80
+ value: function validateJSON(data) {
81
+ // check to make sure all required properties are present in the JSON string
82
+ var _iterator = _createForOfIteratorHelper(UnfreezeDisposition.RequiredProperties),
83
+ _step;
84
+ try {
85
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
86
+ var property = _step.value;
87
+ if (!data.hasOwnProperty(property)) {
88
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
89
+ }
90
+ }
91
+ // ensure the json data is a string
92
+ } catch (err) {
93
+ _iterator.e(err);
94
+ } finally {
95
+ _iterator.f();
96
+ }
97
+ if (data['transaction_id'] && !(typeof data['transaction_id'] === 'string' || data['transaction_id'] instanceof String)) {
98
+ throw new Error("Expected the field `transaction_id` to be a primitive type in the JSON string but got " + data['transaction_id']);
99
+ }
100
+ return true;
101
+ }
102
+ }]);
103
+ }();
104
+ UnfreezeDisposition.RequiredProperties = ["transaction_id"];
105
+
106
+ /**
107
+ * The UUID of the transaction whose funds are to be unfrozen.
108
+ * @member {String} transaction_id
109
+ */
110
+ UnfreezeDisposition.prototype['transaction_id'] = undefined;
111
+ var _default = exports["default"] = UnfreezeDisposition;