@cobo/cobo-waas2 1.20.0 → 1.22.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 (224) hide show
  1. package/README.md +60 -4
  2. package/dist/ApiClient.js +11 -2
  3. package/dist/PreRequestScript.js +2 -4
  4. package/dist/api/AutoSweepApi.js +289 -0
  5. package/dist/api/PaymentApi.js +386 -24
  6. package/dist/api/TokenizationApi.js +1024 -0
  7. package/dist/api/TransactionsApi.js +103 -2
  8. package/dist/api/WalletsApi.js +2 -2
  9. package/dist/crypto/ApiSigner.js +5 -1
  10. package/dist/index.js +175 -0
  11. package/dist/model/AddressesEventData.js +3 -3
  12. package/dist/model/ApprovalDetail.js +7 -7
  13. package/dist/model/AutoSweepTask.js +198 -0
  14. package/dist/model/AutoSweepTaskStatus.js +61 -0
  15. package/dist/model/BalanceUpdateInfoEventData.js +3 -3
  16. package/dist/model/ChainsEventData.js +3 -3
  17. package/dist/model/CreateAutoSweepTask.js +126 -0
  18. package/dist/model/CreateCryptoAddressRequest.js +138 -0
  19. package/dist/model/CreateCustodialWalletParams.js +9 -0
  20. package/dist/model/CreateExchangeWalletParams.js +14 -0
  21. package/dist/model/CreateMpcWalletParams.js +14 -0
  22. package/dist/model/CreatePaymentOrderRequest.js +5 -5
  23. package/dist/model/CreateSafeWalletParams.js +9 -0
  24. package/dist/model/CreateSettlement.js +27 -4
  25. package/dist/model/CreateSmartContractWalletParams.js +6 -0
  26. package/dist/model/CreateSweepToAddress.js +126 -0
  27. package/dist/model/CreateWalletParams.js +6 -0
  28. package/dist/model/CreatedWalletInfo.js +6 -0
  29. package/dist/model/CryptoAddress.js +12 -12
  30. package/dist/model/CustodialWalletInfo.js +9 -0
  31. package/dist/model/DeleteCryptoAddress201Response.js +110 -0
  32. package/dist/model/ExchangeWalletInfo.js +14 -0
  33. package/dist/model/ForcedSweep.js +9 -9
  34. package/dist/model/ForcedSweepRequest.js +8 -9
  35. package/dist/model/GetTokenizationAllowlistActivation200Response.js +107 -0
  36. package/dist/model/ListAutoSweepTask200Response.js +123 -0
  37. package/dist/model/ListMerchantBalances200Response.js +107 -0
  38. package/dist/model/ListPaymentWalletBalances200Response.js +107 -0
  39. package/dist/model/ListSettlementDetails200Response.js +123 -0
  40. package/dist/model/ListTokenizationBlocklistAddresses200Response.js +145 -0
  41. package/dist/model/ListWalletSweepToAddresses200Response.js +107 -0
  42. package/dist/model/MPCVaultEventData.js +3 -3
  43. package/dist/model/MPCWalletInfo.js +14 -0
  44. package/dist/model/MerchantBalance.js +201 -0
  45. package/dist/model/PaymentAddressUpdateEventData.js +13 -13
  46. package/dist/model/PaymentOrderEventData.js +3 -3
  47. package/dist/model/PaymentRefundEventData.js +3 -3
  48. package/dist/model/PaymentSettlementEvent.js +42 -3
  49. package/dist/model/PaymentTransactionEventData.js +6 -6
  50. package/dist/model/PaymentWalletBalance.js +177 -0
  51. package/dist/model/PspBalance.js +175 -0
  52. package/dist/model/ReceivedAmountPerAddress.js +126 -0
  53. package/dist/model/SafeWallet.js +9 -0
  54. package/dist/model/Settlement.js +27 -0
  55. package/dist/model/SettlementDetail.js +26 -0
  56. package/dist/model/SettlementInfo.js +7 -7
  57. package/dist/model/SmartContractWalletInfo.js +6 -0
  58. package/dist/model/SuspendedTokenEventData.js +3 -3
  59. package/dist/model/SweepToAddress.js +135 -0
  60. package/dist/model/SweepToAddressStatus.js +61 -0
  61. package/dist/model/TSSRequestWebhookEventData.js +3 -3
  62. package/dist/model/TokenListingEventData.js +3 -3
  63. package/dist/model/TokenizationActivityInfo.js +8 -4
  64. package/dist/model/TokenizationAllowlistActivationRequest.js +13 -0
  65. package/dist/model/TokenizationAllowlistAddressNote.js +4 -4
  66. package/dist/model/TokenizationAllowlistAddressesResponse.js +145 -0
  67. package/dist/model/TokenizationBlocklistAddressNote.js +4 -4
  68. package/dist/model/TokenizationBurnEstimateFeeParams.js +13 -0
  69. package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +4 -4
  70. package/dist/model/TokenizationBurnTokenRequest.js +13 -0
  71. package/dist/model/TokenizationContractCallEstimateFeeParams.js +13 -0
  72. package/dist/model/TokenizationContractCallParamsData.js +43 -9
  73. package/dist/model/TokenizationContractCallRequest.js +13 -0
  74. package/dist/model/TokenizationContractCallType.js +5 -0
  75. package/dist/model/TokenizationERC20TokenParams.js +4 -4
  76. package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +6 -0
  77. package/dist/model/TokenizationEvmContractCallParams.js +2 -2
  78. package/dist/model/TokenizationIssueEstimateFeeParams.js +13 -0
  79. package/dist/model/TokenizationIssueTokenParamsTokenParams.js +40 -12
  80. package/dist/model/TokenizationIssuedTokenRequest.js +14 -1
  81. package/dist/model/TokenizationMintEstimateFeeParams.js +13 -0
  82. package/dist/model/TokenizationMintTokenRequest.js +13 -0
  83. package/dist/model/TokenizationMpcOperationSource.js +2 -2
  84. package/dist/model/TokenizationPauseEstimateFeeParams.js +13 -0
  85. package/dist/model/TokenizationPauseTokenRequest.js +13 -0
  86. package/dist/model/TokenizationSOLTokenParams.js +173 -0
  87. package/dist/model/TokenizationSolContractCallParams.js +137 -0
  88. package/dist/model/TokenizationSolTokenPermissionParams.js +140 -0
  89. package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +13 -0
  90. package/dist/model/TokenizationTokenDetailInfo.js +6 -6
  91. package/dist/model/TokenizationTokenInfo.js +4 -4
  92. package/dist/model/TokenizationTokenOperationSource.js +1 -1
  93. package/dist/model/TokenizationTokenPermissionParams.js +1 -1
  94. package/dist/model/TokenizationTokenPermissionType.js +15 -0
  95. package/dist/model/TokenizationTokenStandard.js +5 -0
  96. package/dist/model/TokenizationUnpauseEstimateFeeParams.js +13 -0
  97. package/dist/model/TokenizationUnpauseTokenRequest.js +13 -0
  98. package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +13 -0
  99. package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +1 -1
  100. package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +13 -0
  101. package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +13 -0
  102. package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +1 -1
  103. package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +13 -0
  104. package/dist/model/TokenizationWeb3OperationSource.js +2 -2
  105. package/dist/model/TokensEventData.js +3 -3
  106. package/dist/model/TopUpAddress.js +0 -1
  107. package/dist/model/TransactionWebhookEventData.js +3 -3
  108. package/dist/model/UpdateCustodialWalletParams.js +13 -6
  109. package/dist/model/UpdateMpcWalletParams.js +13 -6
  110. package/dist/model/UpdateTopUpAddress.js +3 -3
  111. package/dist/model/UpdateWalletParams.js +6 -0
  112. package/dist/model/WalletInfo.js +6 -0
  113. package/dist/model/WalletInfoEventData.js +3 -3
  114. package/dist/model/WebhookEventData.js +19 -7
  115. package/dist/model/WebhookEventDataType.js +2 -2
  116. package/docs/AddressesEventData.md +1 -1
  117. package/docs/ApprovalDetail.md +1 -1
  118. package/docs/AutoSweepApi.md +285 -0
  119. package/docs/AutoSweepTask.md +16 -0
  120. package/docs/AutoSweepTaskStatus.md +12 -0
  121. package/docs/BalanceUpdateInfoEventData.md +1 -1
  122. package/docs/ChainsEventData.md +1 -1
  123. package/docs/CreateAutoSweepTask.md +10 -0
  124. package/docs/CreateCryptoAddressRequest.md +11 -0
  125. package/docs/CreateCustodialWalletParams.md +1 -0
  126. package/docs/CreateExchangeWalletParams.md +1 -0
  127. package/docs/CreateMpcWalletParams.md +1 -0
  128. package/docs/CreatePaymentOrderRequest.md +3 -3
  129. package/docs/CreateSafeWalletParams.md +1 -0
  130. package/docs/CreateSettlement.md +1 -1
  131. package/docs/CreateSmartContractWalletParams.md +1 -0
  132. package/docs/CreateSweepToAddress.md +10 -0
  133. package/docs/CreateWalletParams.md +1 -0
  134. package/docs/CreatedWalletInfo.md +1 -0
  135. package/docs/CryptoAddress.md +1 -1
  136. package/docs/CustodialWalletInfo.md +1 -0
  137. package/docs/DeleteCryptoAddress201Response.md +9 -0
  138. package/docs/ExchangeWalletInfo.md +1 -0
  139. package/docs/ForcedSweep.md +7 -7
  140. package/docs/ForcedSweepRequest.md +4 -4
  141. package/docs/GetTokenizationAllowlistActivation200Response.md +9 -0
  142. package/docs/ListAutoSweepTask200Response.md +10 -0
  143. package/docs/ListMerchantBalances200Response.md +9 -0
  144. package/docs/ListPaymentWalletBalances200Response.md +9 -0
  145. package/docs/ListSettlementDetails200Response.md +10 -0
  146. package/docs/ListTokenizationBlocklistAddresses200Response.md +10 -0
  147. package/docs/ListWalletSweepToAddresses200Response.md +9 -0
  148. package/docs/MPCVaultEventData.md +1 -1
  149. package/docs/MPCWalletInfo.md +1 -0
  150. package/docs/MerchantBalance.md +16 -0
  151. package/docs/PaymentAddressUpdateEventData.md +6 -6
  152. package/docs/PaymentApi.md +403 -16
  153. package/docs/PaymentOrderEventData.md +1 -1
  154. package/docs/PaymentRefundEventData.md +1 -1
  155. package/docs/PaymentSettlementEvent.md +4 -1
  156. package/docs/PaymentTransactionEventData.md +4 -4
  157. package/docs/PaymentWalletBalance.md +14 -0
  158. package/docs/PspBalance.md +14 -0
  159. package/docs/ReceivedAmountPerAddress.md +10 -0
  160. package/docs/SafeWallet.md +1 -0
  161. package/docs/Settlement.md +3 -0
  162. package/docs/SettlementDetail.md +2 -0
  163. package/docs/SettlementInfo.md +6 -6
  164. package/docs/SmartContractWalletInfo.md +1 -0
  165. package/docs/SuspendedTokenEventData.md +1 -1
  166. package/docs/SweepToAddress.md +11 -0
  167. package/docs/SweepToAddressStatus.md +12 -0
  168. package/docs/TSSRequestWebhookEventData.md +1 -1
  169. package/docs/TokenListingEventData.md +1 -1
  170. package/docs/TokenizationActivityInfo.md +2 -2
  171. package/docs/TokenizationAllowlistActivationRequest.md +1 -0
  172. package/docs/TokenizationAllowlistAddressNote.md +3 -3
  173. package/docs/TokenizationAllowlistAddressesResponse.md +10 -0
  174. package/docs/TokenizationApi.md +1069 -0
  175. package/docs/TokenizationBlocklistAddressNote.md +3 -3
  176. package/docs/TokenizationBurnEstimateFeeParams.md +1 -0
  177. package/docs/TokenizationBurnTokenParamsBurnsInner.md +2 -2
  178. package/docs/TokenizationBurnTokenRequest.md +1 -0
  179. package/docs/TokenizationContractCallEstimateFeeParams.md +1 -0
  180. package/docs/TokenizationContractCallParamsData.md +2 -1
  181. package/docs/TokenizationContractCallRequest.md +1 -0
  182. package/docs/TokenizationContractCallType.md +2 -0
  183. package/docs/TokenizationERC20TokenParams.md +1 -1
  184. package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -0
  185. package/docs/TokenizationEvmContractCallParams.md +1 -1
  186. package/docs/TokenizationIssueEstimateFeeParams.md +1 -0
  187. package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -2
  188. package/docs/TokenizationIssuedTokenRequest.md +2 -1
  189. package/docs/TokenizationMintEstimateFeeParams.md +1 -0
  190. package/docs/TokenizationMintTokenRequest.md +1 -0
  191. package/docs/TokenizationMpcOperationSource.md +1 -1
  192. package/docs/TokenizationPauseEstimateFeeParams.md +1 -0
  193. package/docs/TokenizationPauseTokenRequest.md +1 -0
  194. package/docs/TokenizationSOLTokenParams.md +14 -0
  195. package/docs/TokenizationSolContractCallParams.md +10 -0
  196. package/docs/TokenizationSolTokenPermissionParams.md +13 -0
  197. package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +1 -0
  198. package/docs/TokenizationTokenDetailInfo.md +1 -1
  199. package/docs/TokenizationTokenInfo.md +1 -1
  200. package/docs/TokenizationTokenOperationSource.md +1 -1
  201. package/docs/TokenizationTokenPermissionType.md +6 -0
  202. package/docs/TokenizationTokenStandard.md +2 -0
  203. package/docs/TokenizationUnpauseEstimateFeeParams.md +1 -0
  204. package/docs/TokenizationUnpauseTokenRequest.md +1 -0
  205. package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +1 -0
  206. package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +1 -1
  207. package/docs/TokenizationUpdateAllowlistAddressesRequest.md +1 -0
  208. package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +1 -0
  209. package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +1 -1
  210. package/docs/TokenizationUpdateBlocklistAddressesRequest.md +1 -0
  211. package/docs/TokenizationWeb3OperationSource.md +1 -1
  212. package/docs/TokensEventData.md +1 -1
  213. package/docs/TransactionWebhookEventData.md +1 -1
  214. package/docs/TransactionsApi.md +113 -1
  215. package/docs/UpdateCustodialWalletParams.md +2 -1
  216. package/docs/UpdateMpcWalletParams.md +2 -1
  217. package/docs/UpdateTopUpAddress.md +1 -1
  218. package/docs/UpdateWalletParams.md +1 -0
  219. package/docs/WalletInfo.md +1 -0
  220. package/docs/WalletInfoEventData.md +1 -1
  221. package/docs/WalletsApi.md +1 -1
  222. package/docs/WebhookEventData.md +9 -7
  223. package/docs/WebhookEventDataType.md +1 -1
  224. package/package.json +1 -1
@@ -0,0 +1,175 @@
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 PspBalance model module.
29
+ * @module model/PspBalance
30
+ */
31
+ var PspBalance = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>PspBalance</code>.
34
+ * @alias module:model/PspBalance
35
+ * @param token_id {String} The ID of the cryptocurrency.
36
+ */
37
+ function PspBalance(token_id) {
38
+ _classCallCheck(this, PspBalance);
39
+ PspBalance.initialize(this, token_id);
40
+ }
41
+
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+ return _createClass(PspBalance, null, [{
48
+ key: "initialize",
49
+ value: function initialize(obj, token_id) {
50
+ obj['token_id'] = token_id;
51
+ }
52
+
53
+ /**
54
+ * Constructs a <code>PspBalance</code> from a plain JavaScript object, optionally creating a new instance.
55
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
57
+ * @param {module:model/PspBalance} obj Optional instance to populate.
58
+ * @return {module:model/PspBalance} The populated <code>PspBalance</code> instance.
59
+ */
60
+ }, {
61
+ key: "constructFromObject",
62
+ value: function constructFromObject(data, obj) {
63
+ if (data) {
64
+ obj = obj || new PspBalance();
65
+ if (data.hasOwnProperty('token_id')) {
66
+ obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
67
+ }
68
+ if (data.hasOwnProperty('developer_fee_amount')) {
69
+ obj['developer_fee_amount'] = _ApiClient["default"].convertToType(data['developer_fee_amount'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('settled_amount')) {
72
+ obj['settled_amount'] = _ApiClient["default"].convertToType(data['settled_amount'], 'String');
73
+ }
74
+ if (data.hasOwnProperty('refunded_amount')) {
75
+ obj['refunded_amount'] = _ApiClient["default"].convertToType(data['refunded_amount'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('total_balance')) {
78
+ obj['total_balance'] = _ApiClient["default"].convertToType(data['total_balance'], 'String');
79
+ }
80
+ if (data.hasOwnProperty('available_balance')) {
81
+ obj['available_balance'] = _ApiClient["default"].convertToType(data['available_balance'], 'String');
82
+ }
83
+ }
84
+ return obj;
85
+ }
86
+
87
+ /**
88
+ * Validates the JSON data with respect to <code>PspBalance</code>.
89
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
90
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>PspBalance</code>.
91
+ */
92
+ }, {
93
+ key: "validateJSON",
94
+ value: function validateJSON(data) {
95
+ // check to make sure all required properties are present in the JSON string
96
+ var _iterator = _createForOfIteratorHelper(PspBalance.RequiredProperties),
97
+ _step;
98
+ try {
99
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
100
+ var property = _step.value;
101
+ if (!data.hasOwnProperty(property)) {
102
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
103
+ }
104
+ }
105
+ // ensure the json data is a string
106
+ } catch (err) {
107
+ _iterator.e(err);
108
+ } finally {
109
+ _iterator.f();
110
+ }
111
+ if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
112
+ throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
113
+ }
114
+ // ensure the json data is a string
115
+ if (data['developer_fee_amount'] && !(typeof data['developer_fee_amount'] === 'string' || data['developer_fee_amount'] instanceof String)) {
116
+ throw new Error("Expected the field `developer_fee_amount` to be a primitive type in the JSON string but got " + data['developer_fee_amount']);
117
+ }
118
+ // ensure the json data is a string
119
+ if (data['settled_amount'] && !(typeof data['settled_amount'] === 'string' || data['settled_amount'] instanceof String)) {
120
+ throw new Error("Expected the field `settled_amount` to be a primitive type in the JSON string but got " + data['settled_amount']);
121
+ }
122
+ // ensure the json data is a string
123
+ if (data['refunded_amount'] && !(typeof data['refunded_amount'] === 'string' || data['refunded_amount'] instanceof String)) {
124
+ throw new Error("Expected the field `refunded_amount` to be a primitive type in the JSON string but got " + data['refunded_amount']);
125
+ }
126
+ // ensure the json data is a string
127
+ if (data['total_balance'] && !(typeof data['total_balance'] === 'string' || data['total_balance'] instanceof String)) {
128
+ throw new Error("Expected the field `total_balance` to be a primitive type in the JSON string but got " + data['total_balance']);
129
+ }
130
+ // ensure the json data is a string
131
+ if (data['available_balance'] && !(typeof data['available_balance'] === 'string' || data['available_balance'] instanceof String)) {
132
+ throw new Error("Expected the field `available_balance` to be a primitive type in the JSON string but got " + data['available_balance']);
133
+ }
134
+ return true;
135
+ }
136
+ }]);
137
+ }();
138
+ PspBalance.RequiredProperties = ["token_id"];
139
+
140
+ /**
141
+ * The ID of the cryptocurrency.
142
+ * @member {String} token_id
143
+ */
144
+ PspBalance.prototype['token_id'] = undefined;
145
+
146
+ /**
147
+ * The psp developer fee amount.
148
+ * @member {String} developer_fee_amount
149
+ */
150
+ PspBalance.prototype['developer_fee_amount'] = undefined;
151
+
152
+ /**
153
+ * The psp settled amount.
154
+ * @member {String} settled_amount
155
+ */
156
+ PspBalance.prototype['settled_amount'] = undefined;
157
+
158
+ /**
159
+ * The psp total refunded amount.
160
+ * @member {String} refunded_amount
161
+ */
162
+ PspBalance.prototype['refunded_amount'] = undefined;
163
+
164
+ /**
165
+ * The psp total balance.
166
+ * @member {String} total_balance
167
+ */
168
+ PspBalance.prototype['total_balance'] = undefined;
169
+
170
+ /**
171
+ * The psp available balance.
172
+ * @member {String} available_balance
173
+ */
174
+ PspBalance.prototype['available_balance'] = undefined;
175
+ var _default = exports["default"] = PspBalance;
@@ -0,0 +1,126 @@
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 ReceivedAmountPerAddress model module.
29
+ * @module model/ReceivedAmountPerAddress
30
+ */
31
+ var ReceivedAmountPerAddress = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>ReceivedAmountPerAddress</code>.
34
+ * Total amount of a specific token received at a given address.
35
+ * @alias module:model/ReceivedAmountPerAddress
36
+ * @param address {String} Receiving address.
37
+ * @param total_received_amount {String} Total tokens received at this address, as a decimal string.
38
+ */
39
+ function ReceivedAmountPerAddress(address, total_received_amount) {
40
+ _classCallCheck(this, ReceivedAmountPerAddress);
41
+ ReceivedAmountPerAddress.initialize(this, address, total_received_amount);
42
+ }
43
+
44
+ /**
45
+ * Initializes the fields of this object.
46
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
47
+ * Only for internal use.
48
+ */
49
+ return _createClass(ReceivedAmountPerAddress, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, address, total_received_amount) {
52
+ obj['address'] = address;
53
+ obj['total_received_amount'] = total_received_amount;
54
+ }
55
+
56
+ /**
57
+ * Constructs a <code>ReceivedAmountPerAddress</code> from a plain JavaScript object, optionally creating a new instance.
58
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
59
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
60
+ * @param {module:model/ReceivedAmountPerAddress} obj Optional instance to populate.
61
+ * @return {module:model/ReceivedAmountPerAddress} The populated <code>ReceivedAmountPerAddress</code> instance.
62
+ */
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new ReceivedAmountPerAddress();
68
+ if (data.hasOwnProperty('address')) {
69
+ obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('total_received_amount')) {
72
+ obj['total_received_amount'] = _ApiClient["default"].convertToType(data['total_received_amount'], 'String');
73
+ }
74
+ }
75
+ return obj;
76
+ }
77
+
78
+ /**
79
+ * Validates the JSON data with respect to <code>ReceivedAmountPerAddress</code>.
80
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
81
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ReceivedAmountPerAddress</code>.
82
+ */
83
+ }, {
84
+ key: "validateJSON",
85
+ value: function validateJSON(data) {
86
+ // check to make sure all required properties are present in the JSON string
87
+ var _iterator = _createForOfIteratorHelper(ReceivedAmountPerAddress.RequiredProperties),
88
+ _step;
89
+ try {
90
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
91
+ var property = _step.value;
92
+ if (!data.hasOwnProperty(property)) {
93
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
94
+ }
95
+ }
96
+ // ensure the json data is a string
97
+ } catch (err) {
98
+ _iterator.e(err);
99
+ } finally {
100
+ _iterator.f();
101
+ }
102
+ if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
103
+ throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
104
+ }
105
+ // ensure the json data is a string
106
+ if (data['total_received_amount'] && !(typeof data['total_received_amount'] === 'string' || data['total_received_amount'] instanceof String)) {
107
+ throw new Error("Expected the field `total_received_amount` to be a primitive type in the JSON string but got " + data['total_received_amount']);
108
+ }
109
+ return true;
110
+ }
111
+ }]);
112
+ }();
113
+ ReceivedAmountPerAddress.RequiredProperties = ["address", "total_received_amount"];
114
+
115
+ /**
116
+ * Receiving address.
117
+ * @member {String} address
118
+ */
119
+ ReceivedAmountPerAddress.prototype['address'] = undefined;
120
+
121
+ /**
122
+ * Total tokens received at this address, as a decimal string.
123
+ * @member {String} total_received_amount
124
+ */
125
+ ReceivedAmountPerAddress.prototype['total_received_amount'] = undefined;
126
+ var _default = exports["default"] = ReceivedAmountPerAddress;
@@ -91,6 +91,9 @@ var SafeWallet = /*#__PURE__*/function () {
91
91
  if (data.hasOwnProperty('org_id')) {
92
92
  obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'String');
93
93
  }
94
+ if (data.hasOwnProperty('enable_auto_sweep')) {
95
+ obj['enable_auto_sweep'] = _ApiClient["default"].convertToType(data['enable_auto_sweep'], 'Boolean');
96
+ }
94
97
  if (data.hasOwnProperty('chain_id')) {
95
98
  obj['chain_id'] = _ApiClient["default"].convertToType(data['chain_id'], 'String');
96
99
  }
@@ -208,6 +211,12 @@ SafeWallet.prototype['name'] = undefined;
208
211
  */
209
212
  SafeWallet.prototype['org_id'] = undefined;
210
213
 
214
+ /**
215
+ * Enable the auto sweep feature for the wallet
216
+ * @member {Boolean} enable_auto_sweep
217
+ */
218
+ SafeWallet.prototype['enable_auto_sweep'] = undefined;
219
+
211
220
  /**
212
221
  * The ID of the chain on which the wallet operates.
213
222
  * @member {String} chain_id
@@ -5,8 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _AcquiringType = _interopRequireDefault(require("./AcquiringType"));
9
+ var _PayoutChannel = _interopRequireDefault(require("./PayoutChannel"));
8
10
  var _SettleRequestStatus = _interopRequireDefault(require("./SettleRequestStatus"));
9
11
  var _SettlementDetail = _interopRequireDefault(require("./SettlementDetail"));
12
+ var _SettlementType = _interopRequireDefault(require("./SettlementType"));
10
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
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); }
12
15
  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; } } }; }
@@ -91,6 +94,15 @@ var Settlement = /*#__PURE__*/function () {
91
94
  if (data.hasOwnProperty('initiator')) {
92
95
  obj['initiator'] = _ApiClient["default"].convertToType(data['initiator'], 'String');
93
96
  }
97
+ if (data.hasOwnProperty('acquiring_type')) {
98
+ obj['acquiring_type'] = _AcquiringType["default"].constructFromObject(data['acquiring_type']);
99
+ }
100
+ if (data.hasOwnProperty('payout_channel')) {
101
+ obj['payout_channel'] = _PayoutChannel["default"].constructFromObject(data['payout_channel']);
102
+ }
103
+ if (data.hasOwnProperty('settlement_type')) {
104
+ obj['settlement_type'] = _SettlementType["default"].constructFromObject(data['settlement_type']);
105
+ }
94
106
  }
95
107
  return obj;
96
108
  }
@@ -196,4 +208,19 @@ Settlement.prototype['updated_timestamp'] = undefined;
196
208
  * @member {String} initiator
197
209
  */
198
210
  Settlement.prototype['initiator'] = undefined;
211
+
212
+ /**
213
+ * @member {module:model/AcquiringType} acquiring_type
214
+ */
215
+ Settlement.prototype['acquiring_type'] = undefined;
216
+
217
+ /**
218
+ * @member {module:model/PayoutChannel} payout_channel
219
+ */
220
+ Settlement.prototype['payout_channel'] = undefined;
221
+
222
+ /**
223
+ * @member {module:model/SettlementType} settlement_type
224
+ */
225
+ Settlement.prototype['settlement_type'] = undefined;
199
226
  var _default = exports["default"] = Settlement;
@@ -106,6 +106,12 @@ var SettlementDetail = /*#__PURE__*/function () {
106
106
  if (data.hasOwnProperty('acquiring_type')) {
107
107
  obj['acquiring_type'] = _AcquiringType["default"].constructFromObject(data['acquiring_type']);
108
108
  }
109
+ if (data.hasOwnProperty('settlement_request_id')) {
110
+ obj['settlement_request_id'] = _ApiClient["default"].convertToType(data['settlement_request_id'], 'String');
111
+ }
112
+ if (data.hasOwnProperty('order_ids')) {
113
+ obj['order_ids'] = _ApiClient["default"].convertToType(data['order_ids'], ['String']);
114
+ }
109
115
  }
110
116
  return obj;
111
117
  }
@@ -174,6 +180,14 @@ var SettlementDetail = /*#__PURE__*/function () {
174
180
  if (data['crypto_address_id'] && !(typeof data['crypto_address_id'] === 'string' || data['crypto_address_id'] instanceof String)) {
175
181
  throw new Error("Expected the field `crypto_address_id` to be a primitive type in the JSON string but got " + data['crypto_address_id']);
176
182
  }
183
+ // ensure the json data is a string
184
+ if (data['settlement_request_id'] && !(typeof data['settlement_request_id'] === 'string' || data['settlement_request_id'] instanceof String)) {
185
+ throw new Error("Expected the field `settlement_request_id` to be a primitive type in the JSON string but got " + data['settlement_request_id']);
186
+ }
187
+ // ensure the json data is an array
188
+ if (!Array.isArray(data['order_ids'])) {
189
+ throw new Error("Expected the field `order_ids` to be an array in the JSON data but got " + data['order_ids']);
190
+ }
177
191
  return true;
178
192
  }
179
193
  }]);
@@ -257,4 +271,16 @@ SettlementDetail.prototype['payout_channel'] = undefined;
257
271
  * @member {module:model/AcquiringType} acquiring_type
258
272
  */
259
273
  SettlementDetail.prototype['acquiring_type'] = undefined;
274
+
275
+ /**
276
+ * The settlement request ID generated by Cobo.
277
+ * @member {String} settlement_request_id
278
+ */
279
+ SettlementDetail.prototype['settlement_request_id'] = undefined;
280
+
281
+ /**
282
+ * A list of unique order IDs to be included in this settlement. - This field is only applicable when `settlement_type` is set to `Merchant`. - If provided, the settlement will only apply to the specified orders.
283
+ * @member {Array.<String>} order_ids
284
+ */
285
+ SettlementDetail.prototype['order_ids'] = undefined;
260
286
  var _default = exports["default"] = SettlementDetail;
@@ -33,7 +33,7 @@ var SettlementInfo = /*#__PURE__*/function () {
33
33
  /**
34
34
  * Constructs a new <code>SettlementInfo</code>.
35
35
  * @alias module:model/SettlementInfo
36
- * @param available_amount {String} The amount available for settlement or refund, in the specified cryptocurrency.
36
+ * @param available_amount {String} This field is no longer in use and can be ignored.
37
37
  */
38
38
  function SettlementInfo(available_amount) {
39
39
  _classCallCheck(this, SettlementInfo);
@@ -181,25 +181,25 @@ SettlementInfo.prototype['merchant_id'] = undefined;
181
181
  SettlementInfo.prototype['token_id'] = undefined;
182
182
 
183
183
  /**
184
- * The amount available for settlement or refund, in the specified cryptocurrency.
184
+ * This field is no longer in use and can be ignored.
185
185
  * @member {String} available_amount
186
186
  */
187
187
  SettlementInfo.prototype['available_amount'] = undefined;
188
188
 
189
189
  /**
190
- * The amount available for settlement or refund, in the specified fiat currency.
190
+ * This field is no longer in use and can be ignored.
191
191
  * @member {String} available_currency_balance
192
192
  */
193
193
  SettlementInfo.prototype['available_currency_balance'] = undefined;
194
194
 
195
195
  /**
196
- * The amount unavailable for settlement or refund, in the specified cryptocurrency.
196
+ * This field is no longer in use and can be ignored.
197
197
  * @member {String} pending_amount
198
198
  */
199
199
  SettlementInfo.prototype['pending_amount'] = undefined;
200
200
 
201
201
  /**
202
- * The amount unavailable for settlement or refund, in the specified fiat currency.
202
+ * This field is no longer in use and can be ignored.
203
203
  * @member {String} pending_currency_balance
204
204
  */
205
205
  SettlementInfo.prototype['pending_currency_balance'] = undefined;
@@ -211,13 +211,13 @@ SettlementInfo.prototype['pending_currency_balance'] = undefined;
211
211
  SettlementInfo.prototype['settled_amount'] = undefined;
212
212
 
213
213
  /**
214
- * The balance available for settlement or refund, in the specified fiat currency.
214
+ * The balance available for settlement or refund, in the specified cryptocurrency.
215
215
  * @member {String} available_balance
216
216
  */
217
217
  SettlementInfo.prototype['available_balance'] = undefined;
218
218
 
219
219
  /**
220
- * The balance total for settlement or refund, in the specified fiat currency.
220
+ * The total unsettled balance in the specified cryptocurrency, including: - Available balance that can be settled immediately - Amounts below the sweep threshold that require forced sweep before settlement
221
221
  * @member {String} total_balance
222
222
  */
223
223
  SettlementInfo.prototype['total_balance'] = undefined;
@@ -175,6 +175,12 @@ SmartContractWalletInfo.prototype['name'] = undefined;
175
175
  */
176
176
  SmartContractWalletInfo.prototype['org_id'] = undefined;
177
177
 
178
+ /**
179
+ * Enable the auto sweep feature for the wallet
180
+ * @member {Boolean} enable_auto_sweep
181
+ */
182
+ SmartContractWalletInfo.prototype['enable_auto_sweep'] = undefined;
183
+
178
184
  /**
179
185
  * The ID of the chain on which the wallet operates.
180
186
  * @member {String} chain_id
@@ -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 payment 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.
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 payment 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.
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 payment 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.
144
144
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
145
145
  */
146
146
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;