@cobo/cobo-waas2 1.14.0 → 1.16.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 (216) hide show
  1. package/README.md +70 -5
  2. package/dist/ApiClient.js +2 -3
  3. package/dist/PreRequestScript.js +1 -1
  4. package/dist/api/AddressBooksApi.js +4 -4
  5. package/dist/api/AppWorkflowsApi.js +275 -0
  6. package/dist/api/DevelopersApi.js +4 -4
  7. package/dist/api/DevelopersWebhooksApi.js +12 -12
  8. package/dist/api/FeeStationApi.js +26 -26
  9. package/dist/api/PaymentApi.js +16 -16
  10. package/dist/api/StakingsApi.js +28 -28
  11. package/dist/api/TransactionsApi.js +16 -8
  12. package/dist/api/WalletsApi.js +121 -70
  13. package/dist/api/WalletsExchangeWalletApi.js +8 -8
  14. package/dist/api/WalletsMPCWalletsApi.js +20 -20
  15. package/dist/crypto/ApiSigner.js +1 -2
  16. package/dist/index.js +420 -0
  17. package/dist/model/AddressBook.js +18 -0
  18. package/dist/model/AppWorkflow.js +173 -0
  19. package/dist/model/AppWorkflowField.js +137 -0
  20. package/dist/model/AppWorkflowPolicy.js +144 -0
  21. package/dist/model/ApprovalEntry.js +148 -0
  22. package/dist/model/ApprovalRequest.js +178 -0
  23. package/dist/model/ApprovalRequestDetail.js +176 -0
  24. package/dist/model/ApprovalStatus.js +71 -0
  25. package/dist/model/ApprovalUser.js +146 -0
  26. package/dist/model/BabylonStakeExtra.js +16 -0
  27. package/dist/model/BankAccount.js +18 -0
  28. package/dist/model/BatchCheckUtxo201Response.js +107 -0
  29. package/dist/model/BatchCheckUtxoRequest.js +142 -0
  30. package/dist/model/BatchUTXOParam.js +123 -0
  31. package/dist/model/ChainInfo.js +9 -0
  32. package/dist/model/CreateApprovalRequest201Response.js +109 -0
  33. package/dist/model/CreateSettlement.js +4 -29
  34. package/dist/model/CreateStakeActivityExtra.js +6 -0
  35. package/dist/model/CreateTokenListingRequest201Response.js +2 -2
  36. package/dist/model/CreateTokenListingRequestRequest.js +4 -4
  37. package/dist/model/CustodialWeb3TransferSource.js +1 -1
  38. package/dist/model/EstimateContractCallFeeParams.js +13 -0
  39. package/dist/model/EstimateFeeParams.js +6 -0
  40. package/dist/model/EstimateTransferFeeParams.js +13 -0
  41. package/dist/model/FeeStationTransfer.js +1 -1
  42. package/dist/model/ListApprovalRequests200Response.js +123 -0
  43. package/dist/model/Merchant.js +18 -0
  44. package/dist/model/MpcTransferSource.js +1 -1
  45. package/dist/model/Order.js +49 -0
  46. package/dist/model/PaymentOrderEventData.js +64 -0
  47. package/dist/model/PaymentRefundEventData.js +77 -0
  48. package/dist/model/PaymentSettlementEvent.js +46 -0
  49. package/dist/model/PaymentTransaction.js +13 -0
  50. package/dist/model/PolicyAction.js +123 -0
  51. package/dist/model/PolicyActionContent.js +167 -0
  52. package/dist/model/PolicyActionType.js +66 -0
  53. package/dist/model/PolicyCondition.js +148 -0
  54. package/dist/model/PolicyFieldOperator.js +76 -0
  55. package/dist/model/PolicyFieldValueType.js +61 -0
  56. package/dist/model/Refund.js +53 -0
  57. package/dist/model/RequestApproval.js +188 -0
  58. package/dist/model/RevokeApprovalRequest201Response.js +118 -0
  59. package/dist/model/RevokeApprovalRequestRequest.js +110 -0
  60. package/dist/model/Settlement.js +31 -0
  61. package/dist/model/SettlementDetail.js +57 -0
  62. package/dist/model/SettlementInfo.js +31 -0
  63. package/dist/model/SwapActivity.js +3 -3
  64. package/dist/model/SwapActivityApprovers.js +122 -0
  65. package/dist/model/SwapActivityDetail.js +36 -6
  66. package/dist/model/SwapApproversStatus.js +66 -0
  67. package/dist/model/SwapQuote.js +49 -4
  68. package/dist/model/SwapToken.js +2 -2
  69. package/dist/model/TSSBaseRequestEventData.js +163 -0
  70. package/dist/model/TSSCallbackActionType.js +61 -0
  71. package/dist/model/TSSCallbackRequest.js +122 -0
  72. package/dist/model/TSSCallbackRequestType.js +76 -0
  73. package/dist/model/TSSCallbackResponse.js +118 -0
  74. package/dist/model/TSSCurve.js +61 -0
  75. package/dist/model/TSSCurveType.js +61 -0
  76. package/dist/model/TSSEvent.js +158 -0
  77. package/dist/model/TSSEventData.js +278 -0
  78. package/dist/model/TSSEventDataType.js +71 -0
  79. package/dist/model/TSSEventType.js +136 -0
  80. package/dist/model/TSSGroup.js +221 -0
  81. package/dist/model/TSSGroupType.js +61 -0
  82. package/dist/model/TSSGroups.js +1 -1
  83. package/dist/model/TSSKeyGenEventData.js +228 -0
  84. package/dist/model/TSSKeyGenExtra.js +154 -0
  85. package/dist/model/TSSKeyGenRequest.js +130 -0
  86. package/dist/model/TSSKeyReshareEventData.js +228 -0
  87. package/dist/model/TSSKeyReshareExtra.js +169 -0
  88. package/dist/model/TSSKeyReshareRequest.js +177 -0
  89. package/dist/model/TSSKeyShareSignDetail.js +100 -0
  90. package/dist/model/TSSKeyShareSignEventData.js +228 -0
  91. package/dist/model/TSSKeyShareSignExtra.js +171 -0
  92. package/dist/model/TSSKeyShareSignRequest.js +146 -0
  93. package/dist/model/TSSKeyShareSignSignature.js +126 -0
  94. package/dist/model/TSSKeyShareSignSignatures.js +107 -0
  95. package/dist/model/TSSKeySignEventData.js +228 -0
  96. package/dist/model/TSSKeySignExtra.js +203 -0
  97. package/dist/model/TSSKeySignRequest.js +192 -0
  98. package/dist/model/TSSParticipant.js +113 -0
  99. package/dist/model/TSSProtocol.js +66 -0
  100. package/dist/model/TSSRequestTypeEenum.js +71 -0
  101. package/dist/model/TSSSignature.js +139 -0
  102. package/dist/model/TSSSignatureType.js +66 -0
  103. package/dist/model/TSSSignatures.js +125 -0
  104. package/dist/model/TSSStatus.js +96 -0
  105. package/dist/model/TokenListing.js +10 -10
  106. package/dist/model/TokenListingEventData.js +15 -15
  107. package/dist/model/TransactionCoboCategory.js +102 -7
  108. package/dist/model/TransactionRbfSource.js +1 -1
  109. package/dist/model/TransactionSubStatus.js +35 -0
  110. package/dist/model/UTXO.js +9 -0
  111. package/dist/model/WebhookEventData.js +15 -9
  112. package/docs/AddressBook.md +2 -0
  113. package/docs/AddressBooksApi.md +2 -2
  114. package/docs/AppWorkflow.md +12 -0
  115. package/docs/AppWorkflowField.md +11 -0
  116. package/docs/AppWorkflowPolicy.md +10 -0
  117. package/docs/AppWorkflowsApi.md +273 -0
  118. package/docs/ApprovalEntry.md +11 -0
  119. package/docs/ApprovalRequest.md +13 -0
  120. package/docs/ApprovalRequestDetail.md +13 -0
  121. package/docs/ApprovalStatus.md +16 -0
  122. package/docs/ApprovalUser.md +12 -0
  123. package/docs/BabylonStakeExtra.md +1 -0
  124. package/docs/BankAccount.md +2 -0
  125. package/docs/BatchCheckUtxo201Response.md +9 -0
  126. package/docs/BatchCheckUtxoRequest.md +10 -0
  127. package/docs/BatchUTXOParam.md +10 -0
  128. package/docs/ChainInfo.md +1 -0
  129. package/docs/CreateApprovalRequest201Response.md +9 -0
  130. package/docs/CreateSettlement.md +2 -2
  131. package/docs/CreateStakeActivityExtra.md +1 -0
  132. package/docs/CreateTokenListingRequest201Response.md +1 -1
  133. package/docs/CreateTokenListingRequestRequest.md +2 -2
  134. package/docs/CustodialWeb3TransferSource.md +1 -1
  135. package/docs/DevelopersApi.md +2 -2
  136. package/docs/DevelopersWebhooksApi.md +6 -6
  137. package/docs/EstimateContractCallFeeParams.md +1 -0
  138. package/docs/EstimateFeeParams.md +1 -0
  139. package/docs/EstimateTransferFeeParams.md +1 -0
  140. package/docs/FeeStationApi.md +14 -14
  141. package/docs/ListApprovalRequests200Response.md +10 -0
  142. package/docs/Merchant.md +2 -0
  143. package/docs/MpcTransferSource.md +1 -1
  144. package/docs/Order.md +3 -0
  145. package/docs/PaymentApi.md +8 -8
  146. package/docs/PaymentOrderEventData.md +3 -0
  147. package/docs/PaymentRefundEventData.md +5 -0
  148. package/docs/PaymentSettlementEvent.md +3 -0
  149. package/docs/PaymentTransaction.md +1 -0
  150. package/docs/PolicyAction.md +10 -0
  151. package/docs/PolicyActionContent.md +25 -0
  152. package/docs/PolicyActionType.md +14 -0
  153. package/docs/PolicyCondition.md +12 -0
  154. package/docs/PolicyFieldOperator.md +18 -0
  155. package/docs/PolicyFieldValueType.md +12 -0
  156. package/docs/Refund.md +5 -0
  157. package/docs/RequestApproval.md +13 -0
  158. package/docs/RevokeApprovalRequest201Response.md +10 -0
  159. package/docs/RevokeApprovalRequestRequest.md +9 -0
  160. package/docs/Settlement.md +3 -0
  161. package/docs/SettlementDetail.md +5 -0
  162. package/docs/SettlementInfo.md +3 -0
  163. package/docs/StakingsApi.md +14 -14
  164. package/docs/SwapActivity.md +3 -3
  165. package/docs/SwapActivityApprovers.md +10 -0
  166. package/docs/SwapActivityDetail.md +4 -3
  167. package/docs/SwapApproversStatus.md +14 -0
  168. package/docs/SwapQuote.md +3 -0
  169. package/docs/SwapToken.md +2 -2
  170. package/docs/TSSBaseRequestEventData.md +14 -0
  171. package/docs/TSSCallbackActionType.md +12 -0
  172. package/docs/TSSCallbackRequest.md +12 -0
  173. package/docs/TSSCallbackRequestType.md +18 -0
  174. package/docs/TSSCallbackResponse.md +12 -0
  175. package/docs/TSSCurve.md +12 -0
  176. package/docs/TSSCurveType.md +12 -0
  177. package/docs/TSSEvent.md +13 -0
  178. package/docs/TSSEventData.md +16 -0
  179. package/docs/TSSEventDataType.md +16 -0
  180. package/docs/TSSEventType.md +42 -0
  181. package/docs/TSSGroup.md +19 -0
  182. package/docs/TSSGroupType.md +12 -0
  183. package/docs/TSSKeyGenEventData.md +16 -0
  184. package/docs/TSSKeyGenExtra.md +13 -0
  185. package/docs/TSSKeyGenRequest.md +13 -0
  186. package/docs/TSSKeyReshareEventData.md +16 -0
  187. package/docs/TSSKeyReshareExtra.md +14 -0
  188. package/docs/TSSKeyReshareRequest.md +17 -0
  189. package/docs/TSSKeyShareSignDetail.md +10 -0
  190. package/docs/TSSKeyShareSignEventData.md +16 -0
  191. package/docs/TSSKeyShareSignExtra.md +13 -0
  192. package/docs/TSSKeyShareSignRequest.md +12 -0
  193. package/docs/TSSKeyShareSignSignature.md +12 -0
  194. package/docs/TSSKeyShareSignSignatures.md +9 -0
  195. package/docs/TSSKeySignEventData.md +16 -0
  196. package/docs/TSSKeySignExtra.md +15 -0
  197. package/docs/TSSKeySignRequest.md +18 -0
  198. package/docs/TSSParticipant.md +11 -0
  199. package/docs/TSSProtocol.md +14 -0
  200. package/docs/TSSRequestTypeEenum.md +16 -0
  201. package/docs/TSSSignature.md +13 -0
  202. package/docs/TSSSignatureType.md +14 -0
  203. package/docs/TSSSignatures.md +11 -0
  204. package/docs/TSSStatus.md +26 -0
  205. package/docs/TokenListing.md +6 -6
  206. package/docs/TokenListingEventData.md +6 -6
  207. package/docs/TransactionCoboCategory.md +41 -3
  208. package/docs/TransactionRbfSource.md +1 -1
  209. package/docs/TransactionSubStatus.md +14 -0
  210. package/docs/TransactionsApi.md +8 -4
  211. package/docs/UTXO.md +1 -0
  212. package/docs/WalletsApi.md +91 -36
  213. package/docs/WalletsExchangeWalletApi.md +4 -4
  214. package/docs/WalletsMPCWalletsApi.md +10 -10
  215. package/docs/WebhookEventData.md +8 -7
  216. package/package.json +1 -1
@@ -177,7 +177,7 @@ CustodialWeb3TransferSource.prototype['source_type'] = undefined;
177
177
  CustodialWeb3TransferSource.prototype['wallet_id'] = undefined;
178
178
 
179
179
  /**
180
- * The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. It is recommended to specify no more than 100 included UTXOs to ensure optimal transaction processing. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail.
180
+ * The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. When `included_utxos` is specified, only these specified UTXOs will be used for the transaction. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. It is recommended to specify no more than 100 included UTXOs to ensure optimal transaction processing. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail.
181
181
  * @member {String} address
182
182
  */
183
183
  CustodialWeb3TransferSource.prototype['address'] = undefined;
@@ -91,6 +91,9 @@ var EstimateContractCallFeeParams = /*#__PURE__*/function () {
91
91
  if (data.hasOwnProperty('fee_type')) {
92
92
  obj['fee_type'] = _FeeType["default"].constructFromObject(data['fee_type']);
93
93
  }
94
+ if (data.hasOwnProperty('replaced_transaction_id')) {
95
+ obj['replaced_transaction_id'] = _ApiClient["default"].convertToType(data['replaced_transaction_id'], 'String');
96
+ }
94
97
  }
95
98
  return obj;
96
99
  }
@@ -140,6 +143,10 @@ var EstimateContractCallFeeParams = /*#__PURE__*/function () {
140
143
  _ContractCallDestination["default"].validateJSON(data['destination']);
141
144
  }
142
145
  }
146
+ // ensure the json data is a string
147
+ if (data['replaced_transaction_id'] && !(typeof data['replaced_transaction_id'] === 'string' || data['replaced_transaction_id'] instanceof String)) {
148
+ throw new Error("Expected the field `replaced_transaction_id` to be a primitive type in the JSON string but got " + data['replaced_transaction_id']);
149
+ }
143
150
  return true;
144
151
  }
145
152
  }]);
@@ -177,4 +184,10 @@ EstimateContractCallFeeParams.prototype['destination'] = undefined;
177
184
  * @member {module:model/FeeType} fee_type
178
185
  */
179
186
  EstimateContractCallFeeParams.prototype['fee_type'] = undefined;
187
+
188
+ /**
189
+ * The ID of the transaction that this transaction replaced.
190
+ * @member {String} replaced_transaction_id
191
+ */
192
+ EstimateContractCallFeeParams.prototype['replaced_transaction_id'] = undefined;
180
193
  var _default = exports["default"] = EstimateContractCallFeeParams;
@@ -207,6 +207,12 @@ EstimateFeeParams.prototype['destination'] = undefined;
207
207
  */
208
208
  EstimateFeeParams.prototype['fee_type'] = undefined;
209
209
 
210
+ /**
211
+ * The ID of the transaction that this transaction replaced.
212
+ * @member {String} replaced_transaction_id
213
+ */
214
+ EstimateFeeParams.prototype['replaced_transaction_id'] = undefined;
215
+
210
216
  /**
211
217
  * The chain ID of the chain on which the smart contract is deployed. 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).
212
218
  * @member {String} chain_id
@@ -89,6 +89,9 @@ var EstimateTransferFeeParams = /*#__PURE__*/function () {
89
89
  if (data.hasOwnProperty('fee_type')) {
90
90
  obj['fee_type'] = _FeeType["default"].constructFromObject(data['fee_type']);
91
91
  }
92
+ if (data.hasOwnProperty('replaced_transaction_id')) {
93
+ obj['replaced_transaction_id'] = _ApiClient["default"].convertToType(data['replaced_transaction_id'], 'String');
94
+ }
92
95
  }
93
96
  return obj;
94
97
  }
@@ -138,6 +141,10 @@ var EstimateTransferFeeParams = /*#__PURE__*/function () {
138
141
  _TransferDestination["default"].validateJSON(data['destination']);
139
142
  }
140
143
  }
144
+ // ensure the json data is a string
145
+ if (data['replaced_transaction_id'] && !(typeof data['replaced_transaction_id'] === 'string' || data['replaced_transaction_id'] instanceof String)) {
146
+ throw new Error("Expected the field `replaced_transaction_id` to be a primitive type in the JSON string but got " + data['replaced_transaction_id']);
147
+ }
141
148
  return true;
142
149
  }
143
150
  }]);
@@ -175,4 +182,10 @@ EstimateTransferFeeParams.prototype['destination'] = undefined;
175
182
  * @member {module:model/FeeType} fee_type
176
183
  */
177
184
  EstimateTransferFeeParams.prototype['fee_type'] = undefined;
185
+
186
+ /**
187
+ * The ID of the transaction that this transaction replaced.
188
+ * @member {String} replaced_transaction_id
189
+ */
190
+ EstimateTransferFeeParams.prototype['replaced_transaction_id'] = undefined;
178
191
  var _default = exports["default"] = EstimateTransferFeeParams;
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  var FeeStationTransfer = /*#__PURE__*/function () {
33
33
  /**
34
34
  * Constructs a new <code>FeeStationTransfer</code>.
35
- * The information about a token transfer.
35
+ * The information about a Fee Station top-up transaction.
36
36
  * @alias module:model/FeeStationTransfer
37
37
  * @param token_id {String} The token ID of the transferred 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).
38
38
  */
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _ApprovalRequest = _interopRequireDefault(require("./ApprovalRequest"));
9
+ var _Pagination = _interopRequireDefault(require("./Pagination"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ 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
+ 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; } } }; }
13
+ 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; } }
14
+ 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; }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ 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); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ 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); } /**
20
+ * Cobo Wallet as a Service 2.0
21
+ *
22
+ * Contact: help@cobo.com
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The ListApprovalRequests200Response model module.
31
+ * @module model/ListApprovalRequests200Response
32
+ */
33
+ var ListApprovalRequests200Response = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>ListApprovalRequests200Response</code>.
36
+ * @alias module:model/ListApprovalRequests200Response
37
+ */
38
+ function ListApprovalRequests200Response() {
39
+ _classCallCheck(this, ListApprovalRequests200Response);
40
+ ListApprovalRequests200Response.initialize(this);
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(ListApprovalRequests200Response, null, [{
49
+ key: "initialize",
50
+ value: function initialize(obj) {}
51
+
52
+ /**
53
+ * Constructs a <code>ListApprovalRequests200Response</code> from a plain JavaScript object, optionally creating a new instance.
54
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
55
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
56
+ * @param {module:model/ListApprovalRequests200Response} obj Optional instance to populate.
57
+ * @return {module:model/ListApprovalRequests200Response} The populated <code>ListApprovalRequests200Response</code> instance.
58
+ */
59
+ }, {
60
+ key: "constructFromObject",
61
+ value: function constructFromObject(data, obj) {
62
+ if (data) {
63
+ obj = obj || new ListApprovalRequests200Response();
64
+ if (data.hasOwnProperty('data')) {
65
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_ApprovalRequest["default"]]);
66
+ }
67
+ if (data.hasOwnProperty('pagination')) {
68
+ obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
69
+ }
70
+ }
71
+ return obj;
72
+ }
73
+
74
+ /**
75
+ * Validates the JSON data with respect to <code>ListApprovalRequests200Response</code>.
76
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
77
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListApprovalRequests200Response</code>.
78
+ */
79
+ }, {
80
+ key: "validateJSON",
81
+ value: function validateJSON(data) {
82
+ if (data['data']) {
83
+ // data not null
84
+ // ensure the json data is an array
85
+ if (!Array.isArray(data['data'])) {
86
+ throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
87
+ }
88
+ // validate the optional field `data` (array)
89
+ var _iterator = _createForOfIteratorHelper(data['data']),
90
+ _step;
91
+ try {
92
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
93
+ var item = _step.value;
94
+ _ApprovalRequest["default"].validateJSON(item);
95
+ }
96
+ } catch (err) {
97
+ _iterator.e(err);
98
+ } finally {
99
+ _iterator.f();
100
+ }
101
+ ;
102
+ }
103
+ // validate the optional field `pagination`
104
+ if (data['pagination']) {
105
+ // data not null
106
+ if (!!_Pagination["default"].validateJSON) {
107
+ _Pagination["default"].validateJSON(data['pagination']);
108
+ }
109
+ }
110
+ return true;
111
+ }
112
+ }]);
113
+ }();
114
+ /**
115
+ * @member {Array.<module:model/ApprovalRequest>} data
116
+ */
117
+ ListApprovalRequests200Response.prototype['data'] = undefined;
118
+
119
+ /**
120
+ * @member {module:model/Pagination} pagination
121
+ */
122
+ ListApprovalRequests200Response.prototype['pagination'] = undefined;
123
+ var _default = exports["default"] = ListApprovalRequests200Response;
@@ -75,6 +75,12 @@ var Merchant = /*#__PURE__*/function () {
75
75
  if (data.hasOwnProperty('wallet_id')) {
76
76
  obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
77
77
  }
78
+ if (data.hasOwnProperty('created_timestamp')) {
79
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
80
+ }
81
+ if (data.hasOwnProperty('updated_timestamp')) {
82
+ obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
83
+ }
78
84
  }
79
85
  return obj;
80
86
  }
@@ -137,4 +143,16 @@ Merchant.prototype['name'] = undefined;
137
143
  * @member {String} wallet_id
138
144
  */
139
145
  Merchant.prototype['wallet_id'] = undefined;
146
+
147
+ /**
148
+ * The created time of the merchant, represented as a UNIX timestamp in seconds.
149
+ * @member {Number} created_timestamp
150
+ */
151
+ Merchant.prototype['created_timestamp'] = undefined;
152
+
153
+ /**
154
+ * The updated time of the merchant, represented as a UNIX timestamp in seconds.
155
+ * @member {Number} updated_timestamp
156
+ */
157
+ Merchant.prototype['updated_timestamp'] = undefined;
140
158
  var _default = exports["default"] = Merchant;
@@ -188,7 +188,7 @@ MpcTransferSource.prototype['source_type'] = undefined;
188
188
  MpcTransferSource.prototype['wallet_id'] = undefined;
189
189
 
190
190
  /**
191
- * The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. It is recommended to specify no more than 100 included UTXOs to ensure optimal transaction processing. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail.
191
+ * The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. When `included_utxos` is specified, only these specified UTXOs will be used for the transaction. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. It is recommended to specify no more than 100 included UTXOs to ensure optimal transaction processing. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail.
192
192
  * @member {String} address
193
193
  */
194
194
  MpcTransferSource.prototype['address'] = undefined;
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _OrderStatus = _interopRequireDefault(require("./OrderStatus"));
9
+ var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
9
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
11
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
12
  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; } } }; }
@@ -130,6 +131,15 @@ var Order = /*#__PURE__*/function () {
130
131
  if (data.hasOwnProperty('received_token_amount')) {
131
132
  obj['received_token_amount'] = _ApiClient["default"].convertToType(data['received_token_amount'], 'String');
132
133
  }
134
+ if (data.hasOwnProperty('created_timestamp')) {
135
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
136
+ }
137
+ if (data.hasOwnProperty('updated_timestamp')) {
138
+ obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
139
+ }
140
+ if (data.hasOwnProperty('transactions')) {
141
+ obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
142
+ }
133
143
  }
134
144
  return obj;
135
145
  }
@@ -209,6 +219,27 @@ var Order = /*#__PURE__*/function () {
209
219
  if (data['received_token_amount'] && !(typeof data['received_token_amount'] === 'string' || data['received_token_amount'] instanceof String)) {
210
220
  throw new Error("Expected the field `received_token_amount` to be a primitive type in the JSON string but got " + data['received_token_amount']);
211
221
  }
222
+ if (data['transactions']) {
223
+ // data not null
224
+ // ensure the json data is an array
225
+ if (!Array.isArray(data['transactions'])) {
226
+ throw new Error("Expected the field `transactions` to be an array in the JSON data but got " + data['transactions']);
227
+ }
228
+ // validate the optional field `transactions` (array)
229
+ var _iterator2 = _createForOfIteratorHelper(data['transactions']),
230
+ _step2;
231
+ try {
232
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
233
+ var item = _step2.value;
234
+ _PaymentTransaction["default"].validateJSON(item);
235
+ }
236
+ } catch (err) {
237
+ _iterator2.e(err);
238
+ } finally {
239
+ _iterator2.f();
240
+ }
241
+ ;
242
+ }
212
243
  return true;
213
244
  }
214
245
  }]);
@@ -303,4 +334,22 @@ Order.prototype['status'] = undefined;
303
334
  * @member {String} received_token_amount
304
335
  */
305
336
  Order.prototype['received_token_amount'] = undefined;
337
+
338
+ /**
339
+ * The created time of the order, represented as a UNIX timestamp in seconds.
340
+ * @member {Number} created_timestamp
341
+ */
342
+ Order.prototype['created_timestamp'] = undefined;
343
+
344
+ /**
345
+ * The updated time of the order, represented as a UNIX timestamp in seconds.
346
+ * @member {Number} updated_timestamp
347
+ */
348
+ Order.prototype['updated_timestamp'] = undefined;
349
+
350
+ /**
351
+ * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process.
352
+ * @member {Array.<module:model/PaymentTransaction>} transactions
353
+ */
354
+ Order.prototype['transactions'] = undefined;
306
355
  var _default = exports["default"] = Order;
@@ -7,6 +7,7 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _Order = _interopRequireDefault(require("./Order"));
9
9
  var _OrderStatus = _interopRequireDefault(require("./OrderStatus"));
10
+ var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
10
11
  var _WebhookEventDataType = _interopRequireDefault(require("./WebhookEventDataType"));
11
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
13
  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); }
@@ -143,6 +144,15 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
143
144
  if (data.hasOwnProperty('received_token_amount')) {
144
145
  obj['received_token_amount'] = _ApiClient["default"].convertToType(data['received_token_amount'], 'String');
145
146
  }
147
+ if (data.hasOwnProperty('created_timestamp')) {
148
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
149
+ }
150
+ if (data.hasOwnProperty('updated_timestamp')) {
151
+ obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
152
+ }
153
+ if (data.hasOwnProperty('transactions')) {
154
+ obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
155
+ }
146
156
  }
147
157
  return obj;
148
158
  }
@@ -226,6 +236,27 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
226
236
  if (data['received_token_amount'] && !(typeof data['received_token_amount'] === 'string' || data['received_token_amount'] instanceof String)) {
227
237
  throw new Error("Expected the field `received_token_amount` to be a primitive type in the JSON string but got " + data['received_token_amount']);
228
238
  }
239
+ if (data['transactions']) {
240
+ // data not null
241
+ // ensure the json data is an array
242
+ if (!Array.isArray(data['transactions'])) {
243
+ throw new Error("Expected the field `transactions` to be an array in the JSON data but got " + data['transactions']);
244
+ }
245
+ // validate the optional field `transactions` (array)
246
+ var _iterator2 = _createForOfIteratorHelper(data['transactions']),
247
+ _step2;
248
+ try {
249
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
250
+ var item = _step2.value;
251
+ _PaymentTransaction["default"].validateJSON(item);
252
+ }
253
+ } catch (err) {
254
+ _iterator2.e(err);
255
+ } finally {
256
+ _iterator2.f();
257
+ }
258
+ ;
259
+ }
229
260
  return true;
230
261
  }
231
262
  }]);
@@ -327,6 +358,24 @@ PaymentOrderEventData.prototype['status'] = undefined;
327
358
  */
328
359
  PaymentOrderEventData.prototype['received_token_amount'] = undefined;
329
360
 
361
+ /**
362
+ * The created time of the order, represented as a UNIX timestamp in seconds.
363
+ * @member {Number} created_timestamp
364
+ */
365
+ PaymentOrderEventData.prototype['created_timestamp'] = undefined;
366
+
367
+ /**
368
+ * The updated time of the order, represented as a UNIX timestamp in seconds.
369
+ * @member {Number} updated_timestamp
370
+ */
371
+ PaymentOrderEventData.prototype['updated_timestamp'] = undefined;
372
+
373
+ /**
374
+ * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process.
375
+ * @member {Array.<module:model/PaymentTransaction>} transactions
376
+ */
377
+ PaymentOrderEventData.prototype['transactions'] = undefined;
378
+
330
379
  // Implement WebhookEventDataType interface:
331
380
  /**
332
381
  * 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.
@@ -408,6 +457,21 @@ _Order["default"].prototype['status'] = undefined;
408
457
  * @member {String} received_token_amount
409
458
  */
410
459
  _Order["default"].prototype['received_token_amount'] = undefined;
460
+ /**
461
+ * The created time of the order, represented as a UNIX timestamp in seconds.
462
+ * @member {Number} created_timestamp
463
+ */
464
+ _Order["default"].prototype['created_timestamp'] = undefined;
465
+ /**
466
+ * The updated time of the order, represented as a UNIX timestamp in seconds.
467
+ * @member {Number} updated_timestamp
468
+ */
469
+ _Order["default"].prototype['updated_timestamp'] = undefined;
470
+ /**
471
+ * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process.
472
+ * @member {Array.<module:model/PaymentTransaction>} transactions
473
+ */
474
+ _Order["default"].prototype['transactions'] = undefined;
411
475
 
412
476
  /**
413
477
  * Allowed values for the <code>data_type</code> property.
@@ -8,6 +8,7 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
9
9
  var _Refund = _interopRequireDefault(require("./Refund"));
10
10
  var _RefundStatus = _interopRequireDefault(require("./RefundStatus"));
11
+ var _RefundType = _interopRequireDefault(require("./RefundType"));
11
12
  var _WebhookEventDataType = _interopRequireDefault(require("./WebhookEventDataType"));
12
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
14
  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); }
@@ -93,6 +94,9 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
93
94
  if (data.hasOwnProperty('refund_id')) {
94
95
  obj['refund_id'] = _ApiClient["default"].convertToType(data['refund_id'], 'String');
95
96
  }
97
+ if (data.hasOwnProperty('order_id')) {
98
+ obj['order_id'] = _ApiClient["default"].convertToType(data['order_id'], 'String');
99
+ }
96
100
  if (data.hasOwnProperty('merchant_id')) {
97
101
  obj['merchant_id'] = _ApiClient["default"].convertToType(data['merchant_id'], 'String');
98
102
  }
@@ -111,6 +115,18 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
111
115
  if (data.hasOwnProperty('status')) {
112
116
  obj['status'] = _RefundStatus["default"].constructFromObject(data['status']);
113
117
  }
118
+ if (data.hasOwnProperty('refund_type')) {
119
+ obj['refund_type'] = _RefundType["default"].constructFromObject(data['refund_type']);
120
+ }
121
+ if (data.hasOwnProperty('created_timestamp')) {
122
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
123
+ }
124
+ if (data.hasOwnProperty('updated_timestamp')) {
125
+ obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
126
+ }
127
+ if (data.hasOwnProperty('initiator')) {
128
+ obj['initiator'] = _ApiClient["default"].convertToType(data['initiator'], 'String');
129
+ }
114
130
  if (data.hasOwnProperty('transactions')) {
115
131
  obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
116
132
  }
@@ -154,6 +170,10 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
154
170
  throw new Error("Expected the field `refund_id` to be a primitive type in the JSON string but got " + data['refund_id']);
155
171
  }
156
172
  // ensure the json data is a string
173
+ if (data['order_id'] && !(typeof data['order_id'] === 'string' || data['order_id'] instanceof String)) {
174
+ throw new Error("Expected the field `order_id` to be a primitive type in the JSON string but got " + data['order_id']);
175
+ }
176
+ // ensure the json data is a string
157
177
  if (data['merchant_id'] && !(typeof data['merchant_id'] === 'string' || data['merchant_id'] instanceof String)) {
158
178
  throw new Error("Expected the field `merchant_id` to be a primitive type in the JSON string but got " + data['merchant_id']);
159
179
  }
@@ -173,6 +193,10 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
173
193
  if (data['to_address'] && !(typeof data['to_address'] === 'string' || data['to_address'] instanceof String)) {
174
194
  throw new Error("Expected the field `to_address` to be a primitive type in the JSON string but got " + data['to_address']);
175
195
  }
196
+ // ensure the json data is a string
197
+ if (data['initiator'] && !(typeof data['initiator'] === 'string' || data['initiator'] instanceof String)) {
198
+ throw new Error("Expected the field `initiator` to be a primitive type in the JSON string but got " + data['initiator']);
199
+ }
176
200
  if (data['transactions']) {
177
201
  // data not null
178
202
  // ensure the json data is an array
@@ -218,6 +242,12 @@ PaymentRefundEventData.prototype['request_id'] = undefined;
218
242
  */
219
243
  PaymentRefundEventData.prototype['refund_id'] = undefined;
220
244
 
245
+ /**
246
+ * The order ID corresponding to this refund.
247
+ * @member {String} order_id
248
+ */
249
+ PaymentRefundEventData.prototype['order_id'] = undefined;
250
+
221
251
  /**
222
252
  * The merchant ID.
223
253
  * @member {String} merchant_id
@@ -253,6 +283,29 @@ PaymentRefundEventData.prototype['to_address'] = undefined;
253
283
  */
254
284
  PaymentRefundEventData.prototype['status'] = undefined;
255
285
 
286
+ /**
287
+ * @member {module:model/RefundType} refund_type
288
+ */
289
+ PaymentRefundEventData.prototype['refund_type'] = undefined;
290
+
291
+ /**
292
+ * The created time of the refund order, represented as a UNIX timestamp in seconds.
293
+ * @member {Number} created_timestamp
294
+ */
295
+ PaymentRefundEventData.prototype['created_timestamp'] = undefined;
296
+
297
+ /**
298
+ * The updated time of the refund order, represented as a UNIX timestamp in seconds.
299
+ * @member {Number} updated_timestamp
300
+ */
301
+ PaymentRefundEventData.prototype['updated_timestamp'] = undefined;
302
+
303
+ /**
304
+ * The initiator of this refund order, usually the user's API key.
305
+ * @member {String} initiator
306
+ */
307
+ PaymentRefundEventData.prototype['initiator'] = undefined;
308
+
256
309
  /**
257
310
  * An array of transactions associated with this refund order. Each transaction represents a separate blockchain operation related to the refund process.
258
311
  * @member {Array.<module:model/PaymentTransaction>} transactions
@@ -276,6 +329,11 @@ _Refund["default"].prototype['request_id'] = undefined;
276
329
  * @member {String} refund_id
277
330
  */
278
331
  _Refund["default"].prototype['refund_id'] = undefined;
332
+ /**
333
+ * The order ID corresponding to this refund.
334
+ * @member {String} order_id
335
+ */
336
+ _Refund["default"].prototype['order_id'] = undefined;
279
337
  /**
280
338
  * The merchant ID.
281
339
  * @member {String} merchant_id
@@ -305,6 +363,25 @@ _Refund["default"].prototype['to_address'] = undefined;
305
363
  * @member {module:model/RefundStatus} status
306
364
  */
307
365
  _Refund["default"].prototype['status'] = undefined;
366
+ /**
367
+ * @member {module:model/RefundType} refund_type
368
+ */
369
+ _Refund["default"].prototype['refund_type'] = undefined;
370
+ /**
371
+ * The created time of the refund order, represented as a UNIX timestamp in seconds.
372
+ * @member {Number} created_timestamp
373
+ */
374
+ _Refund["default"].prototype['created_timestamp'] = undefined;
375
+ /**
376
+ * The updated time of the refund order, represented as a UNIX timestamp in seconds.
377
+ * @member {Number} updated_timestamp
378
+ */
379
+ _Refund["default"].prototype['updated_timestamp'] = undefined;
380
+ /**
381
+ * The initiator of this refund order, usually the user's API key.
382
+ * @member {String} initiator
383
+ */
384
+ _Refund["default"].prototype['initiator'] = undefined;
308
385
  /**
309
386
  * An array of transactions associated with this refund order. Each transaction represents a separate blockchain operation related to the refund process.
310
387
  * @member {Array.<module:model/PaymentTransaction>} transactions
@@ -95,6 +95,15 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
95
95
  if (data.hasOwnProperty('settlements')) {
96
96
  obj['settlements'] = _ApiClient["default"].convertToType(data['settlements'], [_SettlementDetail["default"]]);
97
97
  }
98
+ if (data.hasOwnProperty('created_timestamp')) {
99
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
100
+ }
101
+ if (data.hasOwnProperty('updated_timestamp')) {
102
+ obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
103
+ }
104
+ if (data.hasOwnProperty('initiator')) {
105
+ obj['initiator'] = _ApiClient["default"].convertToType(data['initiator'], 'String');
106
+ }
98
107
  }
99
108
  return obj;
100
109
  }
@@ -155,6 +164,10 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
155
164
  }
156
165
  ;
157
166
  }
167
+ // ensure the json data is a string
168
+ if (data['initiator'] && !(typeof data['initiator'] === 'string' || data['initiator'] instanceof String)) {
169
+ throw new Error("Expected the field `initiator` to be a primitive type in the JSON string but got " + data['initiator']);
170
+ }
158
171
  return true;
159
172
  }
160
173
  }]);
@@ -189,6 +202,24 @@ PaymentSettlementEvent.prototype['status'] = undefined;
189
202
  */
190
203
  PaymentSettlementEvent.prototype['settlements'] = undefined;
191
204
 
205
+ /**
206
+ * The created time of the settlement request, represented as a UNIX timestamp in seconds.
207
+ * @member {Number} created_timestamp
208
+ */
209
+ PaymentSettlementEvent.prototype['created_timestamp'] = undefined;
210
+
211
+ /**
212
+ * The updated time of the settlement request, represented as a UNIX timestamp in seconds.
213
+ * @member {Number} updated_timestamp
214
+ */
215
+ PaymentSettlementEvent.prototype['updated_timestamp'] = undefined;
216
+
217
+ /**
218
+ * The initiator of this settlement request, usually the user's API key.
219
+ * @member {String} initiator
220
+ */
221
+ PaymentSettlementEvent.prototype['initiator'] = undefined;
222
+
192
223
  // Implement WebhookEventDataType interface:
193
224
  /**
194
225
  * 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.
@@ -214,6 +245,21 @@ _Settlement["default"].prototype['status'] = undefined;
214
245
  * @member {Array.<module:model/SettlementDetail>} settlements
215
246
  */
216
247
  _Settlement["default"].prototype['settlements'] = undefined;
248
+ /**
249
+ * The created time of the settlement request, represented as a UNIX timestamp in seconds.
250
+ * @member {Number} created_timestamp
251
+ */
252
+ _Settlement["default"].prototype['created_timestamp'] = undefined;
253
+ /**
254
+ * The updated time of the settlement request, represented as a UNIX timestamp in seconds.
255
+ * @member {Number} updated_timestamp
256
+ */
257
+ _Settlement["default"].prototype['updated_timestamp'] = undefined;
258
+ /**
259
+ * The initiator of this settlement request, usually the user's API key.
260
+ * @member {String} initiator
261
+ */
262
+ _Settlement["default"].prototype['initiator'] = undefined;
217
263
 
218
264
  /**
219
265
  * Allowed values for the <code>data_type</code> property.