@cobo/cobo-waas2 1.17.0 → 1.18.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 (174) hide show
  1. package/README.md +36 -4
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/FeeStationApi.js +2 -2
  4. package/dist/api/OAuthApi.js +12 -12
  5. package/dist/api/OrganizationsApi.js +79 -0
  6. package/dist/api/PaymentApi.js +233 -16
  7. package/dist/api/TransactionsApi.js +2 -2
  8. package/dist/api/WalletsApi.js +5 -2
  9. package/dist/index.js +203 -7
  10. package/dist/model/Account.js +174 -0
  11. package/dist/model/AcquiringType.js +61 -0
  12. package/dist/model/AddressTransferDestination.js +2 -2
  13. package/dist/model/AddressesEventData.js +8 -3
  14. package/dist/model/BalanceUpdateInfo.js +170 -0
  15. package/dist/model/BalanceUpdateInfoEventData.js +297 -0
  16. package/dist/model/BankAccount.js +2 -2
  17. package/dist/model/ChainsEventData.js +8 -3
  18. package/dist/model/CreateMerchantRequest.js +13 -0
  19. package/dist/model/CreatePaymentOrderRequest.js +10 -1
  20. package/dist/model/CreateRefundRequest.js +9 -11
  21. package/dist/model/CreateSettlement.js +8 -27
  22. package/dist/model/CreateSettlementRequestRequest.js +27 -0
  23. package/dist/model/CryptoAddress.js +7 -7
  24. package/dist/model/CustodialTransferDestination.js +1 -1
  25. package/dist/model/EstimateContractCallFeeParams.js +2 -2
  26. package/dist/model/EstimateFeeParams.js +1 -1
  27. package/dist/model/EstimatedFILFee.js +170 -0
  28. package/dist/model/EstimatedFILFeeSlow.js +186 -0
  29. package/dist/model/EstimatedFee.js +68 -12
  30. package/dist/model/EstimatedSOLFee.js +170 -0
  31. package/dist/model/EstimatedSOLFeeSlow.js +184 -0
  32. package/dist/model/ExchangePermissionToken201Response.js +4 -4
  33. package/dist/model/ExchangePermissionTokenRequest.js +2 -2
  34. package/dist/model/FILBase.js +88 -0
  35. package/dist/model/FILPrice.js +114 -0
  36. package/dist/model/FeeType.js +10 -0
  37. package/dist/model/GetExchangeRate200Response.js +2 -2
  38. package/dist/model/GraphQLError.js +135 -0
  39. package/dist/model/GraphQLErrorLocationsInner.js +92 -0
  40. package/dist/model/{TransactionMessageSignBTCEIP191Destination.js → GraphQLRequest.js} +49 -36
  41. package/dist/model/GraphQLResponse.js +119 -0
  42. package/dist/model/ListTopUpPayers200Response.js +123 -0
  43. package/dist/model/ListTopUpPayers200ResponseDataInner.js +189 -0
  44. package/dist/model/MPCVaultEventData.js +8 -3
  45. package/dist/model/Merchant.js +15 -2
  46. package/dist/model/Order.js +12 -3
  47. package/dist/model/PayerAccount.js +189 -0
  48. package/dist/model/PaymentOrderEventData.js +27 -9
  49. package/dist/model/PaymentRefundEventData.js +66 -11
  50. package/dist/model/PaymentSettlementEvent.js +14 -9
  51. package/dist/model/RefreshPermissionTokenRequest.js +2 -2
  52. package/dist/model/Refund.js +39 -4
  53. package/dist/model/RefundStatus.js +5 -0
  54. package/dist/model/SOLBase.js +101 -0
  55. package/dist/model/SOLComputeUnit.js +101 -0
  56. package/dist/model/Settlement.js +3 -3
  57. package/dist/model/SettlementDetail.js +15 -6
  58. package/dist/model/SettlementInfo.js +11 -2
  59. package/dist/model/SwapActivityDetail.js +30 -0
  60. package/dist/model/SwapActivitySigners.js +110 -0
  61. package/dist/model/SwapQuote.js +17 -4
  62. package/dist/model/SwapSingingStatus.js +71 -0
  63. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  64. package/dist/model/TokenListingEventData.js +8 -3
  65. package/dist/model/TokensEventData.js +8 -3
  66. package/dist/model/TopUpAddress.js +230 -0
  67. package/dist/model/TransactionCoboCategory.js +20 -0
  68. package/dist/model/TransactionDestination.js +10 -38
  69. package/dist/model/TransactionEvmCalldataInfo.js +1 -1
  70. package/dist/model/TransactionFILFee.js +229 -0
  71. package/dist/model/TransactionFee.js +107 -9
  72. package/dist/model/TransactionRequestFILFee.js +186 -0
  73. package/dist/model/TransactionRequestFee.js +89 -9
  74. package/dist/model/TransactionRequestSOLFee.js +168 -0
  75. package/dist/model/TransactionSOLFee.js +229 -0
  76. package/dist/model/TransactionTransferToAddressDestination.js +2 -2
  77. package/dist/model/TransactionTransferToWalletDestination.js +1 -1
  78. package/dist/model/TransactionWebhookEventData.js +8 -3
  79. package/dist/model/TransferDestination.js +2 -2
  80. package/dist/model/UpdateMerchantByIdRequest.js +13 -0
  81. package/dist/model/UpdateRefundByIdRequest.js +110 -0
  82. package/dist/model/UpdateTopUpAddress.js +141 -0
  83. package/dist/model/WalletInfoEventData.js +8 -3
  84. package/dist/model/WebhookEvent.js +2 -2
  85. package/dist/model/WebhookEventData.js +83 -13
  86. package/dist/model/WebhookEventDataType.js +7 -2
  87. package/dist/model/WebhookEventLog.js +2 -2
  88. package/dist/model/WebhookEventType.js +15 -0
  89. package/docs/Account.md +14 -0
  90. package/docs/AcquiringType.md +12 -0
  91. package/docs/AddressTransferDestination.md +2 -2
  92. package/docs/AddressesEventData.md +3 -1
  93. package/docs/BalanceUpdateInfo.md +13 -0
  94. package/docs/BalanceUpdateInfoEventData.md +47 -0
  95. package/docs/BankAccount.md +2 -2
  96. package/docs/ChainsEventData.md +3 -1
  97. package/docs/CreateMerchantRequest.md +1 -0
  98. package/docs/CreatePaymentOrderRequest.md +2 -1
  99. package/docs/CreateRefundRequest.md +5 -5
  100. package/docs/CreateSettlement.md +7 -9
  101. package/docs/CreateSettlementRequestRequest.md +3 -0
  102. package/docs/CryptoAddress.md +5 -5
  103. package/docs/EstimateContractCallFeeParams.md +1 -1
  104. package/docs/EstimateFeeParams.md +1 -1
  105. package/docs/EstimatedFILFee.md +13 -0
  106. package/docs/EstimatedFILFeeSlow.md +12 -0
  107. package/docs/EstimatedFee.md +3 -3
  108. package/docs/EstimatedSOLFee.md +13 -0
  109. package/docs/EstimatedSOLFeeSlow.md +12 -0
  110. package/docs/ExchangePermissionToken201Response.md +4 -4
  111. package/docs/ExchangePermissionTokenRequest.md +1 -1
  112. package/docs/FILBase.md +9 -0
  113. package/docs/FILPrice.md +11 -0
  114. package/docs/FeeStationApi.md +1 -1
  115. package/docs/FeeType.md +4 -0
  116. package/docs/GetExchangeRate200Response.md +1 -1
  117. package/docs/GraphQLError.md +11 -0
  118. package/docs/GraphQLErrorLocationsInner.md +10 -0
  119. package/docs/GraphQLRequest.md +11 -0
  120. package/docs/GraphQLResponse.md +10 -0
  121. package/docs/ListTopUpPayers200Response.md +10 -0
  122. package/docs/ListTopUpPayers200ResponseDataInner.md +14 -0
  123. package/docs/MPCVaultEventData.md +3 -1
  124. package/docs/Merchant.md +3 -2
  125. package/docs/OAuthApi.md +8 -8
  126. package/docs/Order.md +4 -3
  127. package/docs/OrganizationsApi.md +55 -0
  128. package/docs/PayerAccount.md +14 -0
  129. package/docs/PaymentApi.md +230 -6
  130. package/docs/PaymentOrderEventData.md +7 -4
  131. package/docs/PaymentRefundEventData.md +10 -5
  132. package/docs/PaymentSettlementEvent.md +6 -4
  133. package/docs/RefreshPermissionTokenRequest.md +1 -1
  134. package/docs/Refund.md +7 -4
  135. package/docs/RefundStatus.md +2 -0
  136. package/docs/SOLBase.md +10 -0
  137. package/docs/SOLComputeUnit.md +10 -0
  138. package/docs/Settlement.md +3 -3
  139. package/docs/SettlementDetail.md +7 -6
  140. package/docs/SettlementInfo.md +3 -2
  141. package/docs/SwapActivityDetail.md +1 -0
  142. package/docs/SwapActivitySigners.md +11 -0
  143. package/docs/SwapQuote.md +3 -2
  144. package/docs/SwapSingingStatus.md +16 -0
  145. package/docs/TSSRequestWebhookEventData.md +3 -1
  146. package/docs/TokenListingEventData.md +3 -1
  147. package/docs/TokensEventData.md +3 -1
  148. package/docs/TopUpAddress.md +18 -0
  149. package/docs/TransactionCoboCategory.md +8 -0
  150. package/docs/TransactionDestination.md +2 -2
  151. package/docs/TransactionEvmCalldataInfo.md +1 -1
  152. package/docs/TransactionFILFee.md +16 -0
  153. package/docs/TransactionFee.md +8 -1
  154. package/docs/TransactionRequestFILFee.md +13 -0
  155. package/docs/TransactionRequestFee.md +5 -1
  156. package/docs/TransactionRequestSOLFee.md +12 -0
  157. package/docs/TransactionSOLFee.md +16 -0
  158. package/docs/TransactionTransferToAddressDestination.md +2 -2
  159. package/docs/TransactionTransferToWalletDestination.md +1 -1
  160. package/docs/TransactionWebhookEventData.md +3 -1
  161. package/docs/TransactionsApi.md +1 -1
  162. package/docs/TransferDestination.md +2 -2
  163. package/docs/UpdateMerchantByIdRequest.md +1 -0
  164. package/docs/UpdateRefundByIdRequest.md +9 -0
  165. package/docs/UpdateTopUpAddress.md +11 -0
  166. package/docs/WalletInfoEventData.md +3 -1
  167. package/docs/WalletsApi.md +3 -1
  168. package/docs/WebhookEvent.md +1 -1
  169. package/docs/WebhookEventData.md +14 -5
  170. package/docs/WebhookEventDataType.md +3 -1
  171. package/docs/WebhookEventLog.md +1 -1
  172. package/docs/WebhookEventType.md +6 -0
  173. package/package.json +1 -1
  174. package/docs/TransactionMessageSignBTCEIP191Destination.md +0 -10
@@ -0,0 +1,189 @@
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 _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
+ * Cobo Wallet as a Service 2.0
20
+ *
21
+ * Contact: help@cobo.com
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The ListTopUpPayers200ResponseDataInner model module.
30
+ * @module model/ListTopUpPayers200ResponseDataInner
31
+ */
32
+ var ListTopUpPayers200ResponseDataInner = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>ListTopUpPayers200ResponseDataInner</code>.
35
+ * @alias module:model/ListTopUpPayers200ResponseDataInner
36
+ * @param merchant_id {String} The merchant ID.
37
+ * @param payer_id {String} A unique identifier assigned by Cobo to track and identify individual payers.
38
+ * @param developer_fee_rate {String} The developer fee rate applied to top-up transactions made by this payer. Expressed as a decimal string where \"0.1\" represents 10%.
39
+ */
40
+ function ListTopUpPayers200ResponseDataInner(merchant_id, payer_id, developer_fee_rate) {
41
+ _classCallCheck(this, ListTopUpPayers200ResponseDataInner);
42
+ ListTopUpPayers200ResponseDataInner.initialize(this, merchant_id, payer_id, developer_fee_rate);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(ListTopUpPayers200ResponseDataInner, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, merchant_id, payer_id, developer_fee_rate) {
53
+ obj['merchant_id'] = merchant_id;
54
+ obj['payer_id'] = payer_id;
55
+ obj['developer_fee_rate'] = developer_fee_rate;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>ListTopUpPayers200ResponseDataInner</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:model/ListTopUpPayers200ResponseDataInner} obj Optional instance to populate.
63
+ * @return {module:model/ListTopUpPayers200ResponseDataInner} The populated <code>ListTopUpPayers200ResponseDataInner</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new ListTopUpPayers200ResponseDataInner();
70
+ if (data.hasOwnProperty('merchant_id')) {
71
+ obj['merchant_id'] = _ApiClient["default"].convertToType(data['merchant_id'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('payer_id')) {
74
+ obj['payer_id'] = _ApiClient["default"].convertToType(data['payer_id'], 'String');
75
+ }
76
+ if (data.hasOwnProperty('developer_fee_rate')) {
77
+ obj['developer_fee_rate'] = _ApiClient["default"].convertToType(data['developer_fee_rate'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('created_timestamp')) {
80
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
81
+ }
82
+ if (data.hasOwnProperty('updated_timestamp')) {
83
+ obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
84
+ }
85
+ if (data.hasOwnProperty('transactions')) {
86
+ obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
87
+ }
88
+ }
89
+ return obj;
90
+ }
91
+
92
+ /**
93
+ * Validates the JSON data with respect to <code>ListTopUpPayers200ResponseDataInner</code>.
94
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
95
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListTopUpPayers200ResponseDataInner</code>.
96
+ */
97
+ }, {
98
+ key: "validateJSON",
99
+ value: function validateJSON(data) {
100
+ // check to make sure all required properties are present in the JSON string
101
+ var _iterator = _createForOfIteratorHelper(ListTopUpPayers200ResponseDataInner.RequiredProperties),
102
+ _step;
103
+ try {
104
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
105
+ var property = _step.value;
106
+ if (!data.hasOwnProperty(property)) {
107
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
108
+ }
109
+ }
110
+ // ensure the json data is a string
111
+ } catch (err) {
112
+ _iterator.e(err);
113
+ } finally {
114
+ _iterator.f();
115
+ }
116
+ if (data['merchant_id'] && !(typeof data['merchant_id'] === 'string' || data['merchant_id'] instanceof String)) {
117
+ throw new Error("Expected the field `merchant_id` to be a primitive type in the JSON string but got " + data['merchant_id']);
118
+ }
119
+ // ensure the json data is a string
120
+ if (data['payer_id'] && !(typeof data['payer_id'] === 'string' || data['payer_id'] instanceof String)) {
121
+ throw new Error("Expected the field `payer_id` to be a primitive type in the JSON string but got " + data['payer_id']);
122
+ }
123
+ // ensure the json data is a string
124
+ if (data['developer_fee_rate'] && !(typeof data['developer_fee_rate'] === 'string' || data['developer_fee_rate'] instanceof String)) {
125
+ throw new Error("Expected the field `developer_fee_rate` to be a primitive type in the JSON string but got " + data['developer_fee_rate']);
126
+ }
127
+ if (data['transactions']) {
128
+ // data not null
129
+ // ensure the json data is an array
130
+ if (!Array.isArray(data['transactions'])) {
131
+ throw new Error("Expected the field `transactions` to be an array in the JSON data but got " + data['transactions']);
132
+ }
133
+ // validate the optional field `transactions` (array)
134
+ var _iterator2 = _createForOfIteratorHelper(data['transactions']),
135
+ _step2;
136
+ try {
137
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
138
+ var item = _step2.value;
139
+ _PaymentTransaction["default"].validateJSON(item);
140
+ }
141
+ } catch (err) {
142
+ _iterator2.e(err);
143
+ } finally {
144
+ _iterator2.f();
145
+ }
146
+ ;
147
+ }
148
+ return true;
149
+ }
150
+ }]);
151
+ }();
152
+ ListTopUpPayers200ResponseDataInner.RequiredProperties = ["merchant_id", "payer_id", "developer_fee_rate"];
153
+
154
+ /**
155
+ * The merchant ID.
156
+ * @member {String} merchant_id
157
+ */
158
+ ListTopUpPayers200ResponseDataInner.prototype['merchant_id'] = undefined;
159
+
160
+ /**
161
+ * A unique identifier assigned by Cobo to track and identify individual payers.
162
+ * @member {String} payer_id
163
+ */
164
+ ListTopUpPayers200ResponseDataInner.prototype['payer_id'] = undefined;
165
+
166
+ /**
167
+ * The developer fee rate applied to top-up transactions made by this payer. Expressed as a decimal string where \"0.1\" represents 10%.
168
+ * @member {String} developer_fee_rate
169
+ */
170
+ ListTopUpPayers200ResponseDataInner.prototype['developer_fee_rate'] = undefined;
171
+
172
+ /**
173
+ * The creation time of the payer, represented as a UNIX timestamp in seconds.
174
+ * @member {Number} created_timestamp
175
+ */
176
+ ListTopUpPayers200ResponseDataInner.prototype['created_timestamp'] = undefined;
177
+
178
+ /**
179
+ * The last update time of the payer, represented as a UNIX timestamp in seconds.
180
+ * @member {Number} updated_timestamp
181
+ */
182
+ ListTopUpPayers200ResponseDataInner.prototype['updated_timestamp'] = undefined;
183
+
184
+ /**
185
+ * An array of top-up transactions associated with this payer.
186
+ * @member {Array.<module:model/PaymentTransaction>} transactions
187
+ */
188
+ ListTopUpPayers200ResponseDataInner.prototype['transactions'] = undefined;
189
+ var _default = exports["default"] = ListTopUpPayers200ResponseDataInner;
@@ -38,7 +38,7 @@ var MPCVaultEventData = /*#__PURE__*/function () {
38
38
  * @alias module:model/MPCVaultEventData
39
39
  * @implements module:model/WebhookEventDataType
40
40
  * @implements module:model/MPCVault
41
- * @param data_type {module:model/MPCVaultEventData.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.
41
+ * @param data_type {module:model/MPCVaultEventData.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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
42
42
  */
43
43
  function MPCVaultEventData(data_type) {
44
44
  _classCallCheck(this, MPCVaultEventData);
@@ -164,7 +164,7 @@ var MPCVaultEventData = /*#__PURE__*/function () {
164
164
  MPCVaultEventData.RequiredProperties = ["data_type"];
165
165
 
166
166
  /**
167
- * 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.
167
+ * 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
168
168
  * @member {module:model/MPCVaultEventData.DataTypeEnum} data_type
169
169
  */
170
170
  MPCVaultEventData.prototype['data_type'] = undefined;
@@ -205,7 +205,7 @@ MPCVaultEventData.prototype['created_timestamp'] = undefined;
205
205
 
206
206
  // Implement WebhookEventDataType interface:
207
207
  /**
208
- * 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.
208
+ * 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
209
209
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
210
210
  */
211
211
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -285,6 +285,11 @@ MPCVaultEventData['DataTypeEnum'] = {
285
285
  * @const
286
286
  */
287
287
  "TokenListing": "TokenListing",
288
+ /**
289
+ * value: "BalanceUpdateInfo"
290
+ * @const
291
+ */
292
+ "BalanceUpdateInfo": "BalanceUpdateInfo",
288
293
  /**
289
294
  * value: "PaymentOrder"
290
295
  * @const
@@ -75,6 +75,9 @@ 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('developer_fee_rate')) {
79
+ obj['developer_fee_rate'] = _ApiClient["default"].convertToType(data['developer_fee_rate'], 'String');
80
+ }
78
81
  if (data.hasOwnProperty('created_timestamp')) {
79
82
  obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
80
83
  }
@@ -120,6 +123,10 @@ var Merchant = /*#__PURE__*/function () {
120
123
  if (data['wallet_id'] && !(typeof data['wallet_id'] === 'string' || data['wallet_id'] instanceof String)) {
121
124
  throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
122
125
  }
126
+ // ensure the json data is a string
127
+ if (data['developer_fee_rate'] && !(typeof data['developer_fee_rate'] === 'string' || data['developer_fee_rate'] instanceof String)) {
128
+ throw new Error("Expected the field `developer_fee_rate` to be a primitive type in the JSON string but got " + data['developer_fee_rate']);
129
+ }
123
130
  return true;
124
131
  }
125
132
  }]);
@@ -145,13 +152,19 @@ Merchant.prototype['name'] = undefined;
145
152
  Merchant.prototype['wallet_id'] = undefined;
146
153
 
147
154
  /**
148
- * The created time of the merchant, represented as a UNIX timestamp in seconds.
155
+ * The developer fee rate applied to this merchant. Expressed as a string in decimal format where \"0.1\" represents 10%. This fee is deducted from the payment amount and only applies to top-up transactions.
156
+ * @member {String} developer_fee_rate
157
+ */
158
+ Merchant.prototype['developer_fee_rate'] = undefined;
159
+
160
+ /**
161
+ * The creation time of the merchant, represented as a UNIX timestamp in seconds.
149
162
  * @member {Number} created_timestamp
150
163
  */
151
164
  Merchant.prototype['created_timestamp'] = undefined;
152
165
 
153
166
  /**
154
- * The updated time of the merchant, represented as a UNIX timestamp in seconds.
167
+ * The last update time of the merchant, represented as a UNIX timestamp in seconds.
155
168
  * @member {Number} updated_timestamp
156
169
  */
157
170
  Merchant.prototype['updated_timestamp'] = undefined;
@@ -7,6 +7,7 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _OrderStatus = _interopRequireDefault(require("./OrderStatus"));
9
9
  var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
10
+ var _SettleStatus = _interopRequireDefault(require("./SettleStatus"));
10
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
12
  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
13
  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; } } }; }
@@ -140,6 +141,9 @@ var Order = /*#__PURE__*/function () {
140
141
  if (data.hasOwnProperty('transactions')) {
141
142
  obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
142
143
  }
144
+ if (data.hasOwnProperty('settlement_status')) {
145
+ obj['settlement_status'] = _SettleStatus["default"].constructFromObject(data['settlement_status']);
146
+ }
143
147
  }
144
148
  return obj;
145
149
  }
@@ -336,20 +340,25 @@ Order.prototype['status'] = undefined;
336
340
  Order.prototype['received_token_amount'] = undefined;
337
341
 
338
342
  /**
339
- * The created time of the order, represented as a UNIX timestamp in seconds.
343
+ * The creation time of the order, represented as a UNIX timestamp in seconds.
340
344
  * @member {Number} created_timestamp
341
345
  */
342
346
  Order.prototype['created_timestamp'] = undefined;
343
347
 
344
348
  /**
345
- * The updated time of the order, represented as a UNIX timestamp in seconds.
349
+ * The last update time of the order, represented as a UNIX timestamp in seconds.
346
350
  * @member {Number} updated_timestamp
347
351
  */
348
352
  Order.prototype['updated_timestamp'] = undefined;
349
353
 
350
354
  /**
351
- * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process.
355
+ * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the pay-in process.
352
356
  * @member {Array.<module:model/PaymentTransaction>} transactions
353
357
  */
354
358
  Order.prototype['transactions'] = undefined;
359
+
360
+ /**
361
+ * @member {module:model/SettleStatus} settlement_status
362
+ */
363
+ Order.prototype['settlement_status'] = undefined;
355
364
  var _default = exports["default"] = Order;
@@ -0,0 +1,189 @@
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 _Account = _interopRequireDefault(require("./Account"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
+ * Cobo Wallet as a Service 2.0
20
+ *
21
+ * Contact: help@cobo.com
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The PayerAccount model module.
30
+ * @module model/PayerAccount
31
+ */
32
+ var PayerAccount = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>PayerAccount</code>.
35
+ * @alias module:model/PayerAccount
36
+ * @param merchant_id {String} The merchant ID.
37
+ * @param payer_id {String} A unique identifier assigned by Cobo to track and identify individual payers.
38
+ * @param developer_fee_rate {String} The developer fee rate applied to the top-up transactions made by the payer. Expressed as a decimal string where \"0.1\" represents 10%.
39
+ */
40
+ function PayerAccount(merchant_id, payer_id, developer_fee_rate) {
41
+ _classCallCheck(this, PayerAccount);
42
+ PayerAccount.initialize(this, merchant_id, payer_id, developer_fee_rate);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(PayerAccount, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, merchant_id, payer_id, developer_fee_rate) {
53
+ obj['merchant_id'] = merchant_id;
54
+ obj['payer_id'] = payer_id;
55
+ obj['developer_fee_rate'] = developer_fee_rate;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>PayerAccount</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:model/PayerAccount} obj Optional instance to populate.
63
+ * @return {module:model/PayerAccount} The populated <code>PayerAccount</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new PayerAccount();
70
+ if (data.hasOwnProperty('merchant_id')) {
71
+ obj['merchant_id'] = _ApiClient["default"].convertToType(data['merchant_id'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('payer_id')) {
74
+ obj['payer_id'] = _ApiClient["default"].convertToType(data['payer_id'], 'String');
75
+ }
76
+ if (data.hasOwnProperty('developer_fee_rate')) {
77
+ obj['developer_fee_rate'] = _ApiClient["default"].convertToType(data['developer_fee_rate'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('created_timestamp')) {
80
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
81
+ }
82
+ if (data.hasOwnProperty('updated_timestamp')) {
83
+ obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
84
+ }
85
+ if (data.hasOwnProperty('accounts')) {
86
+ obj['accounts'] = _ApiClient["default"].convertToType(data['accounts'], [_Account["default"]]);
87
+ }
88
+ }
89
+ return obj;
90
+ }
91
+
92
+ /**
93
+ * Validates the JSON data with respect to <code>PayerAccount</code>.
94
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
95
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>PayerAccount</code>.
96
+ */
97
+ }, {
98
+ key: "validateJSON",
99
+ value: function validateJSON(data) {
100
+ // check to make sure all required properties are present in the JSON string
101
+ var _iterator = _createForOfIteratorHelper(PayerAccount.RequiredProperties),
102
+ _step;
103
+ try {
104
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
105
+ var property = _step.value;
106
+ if (!data.hasOwnProperty(property)) {
107
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
108
+ }
109
+ }
110
+ // ensure the json data is a string
111
+ } catch (err) {
112
+ _iterator.e(err);
113
+ } finally {
114
+ _iterator.f();
115
+ }
116
+ if (data['merchant_id'] && !(typeof data['merchant_id'] === 'string' || data['merchant_id'] instanceof String)) {
117
+ throw new Error("Expected the field `merchant_id` to be a primitive type in the JSON string but got " + data['merchant_id']);
118
+ }
119
+ // ensure the json data is a string
120
+ if (data['payer_id'] && !(typeof data['payer_id'] === 'string' || data['payer_id'] instanceof String)) {
121
+ throw new Error("Expected the field `payer_id` to be a primitive type in the JSON string but got " + data['payer_id']);
122
+ }
123
+ // ensure the json data is a string
124
+ if (data['developer_fee_rate'] && !(typeof data['developer_fee_rate'] === 'string' || data['developer_fee_rate'] instanceof String)) {
125
+ throw new Error("Expected the field `developer_fee_rate` to be a primitive type in the JSON string but got " + data['developer_fee_rate']);
126
+ }
127
+ if (data['accounts']) {
128
+ // data not null
129
+ // ensure the json data is an array
130
+ if (!Array.isArray(data['accounts'])) {
131
+ throw new Error("Expected the field `accounts` to be an array in the JSON data but got " + data['accounts']);
132
+ }
133
+ // validate the optional field `accounts` (array)
134
+ var _iterator2 = _createForOfIteratorHelper(data['accounts']),
135
+ _step2;
136
+ try {
137
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
138
+ var item = _step2.value;
139
+ _Account["default"].validateJSON(item);
140
+ }
141
+ } catch (err) {
142
+ _iterator2.e(err);
143
+ } finally {
144
+ _iterator2.f();
145
+ }
146
+ ;
147
+ }
148
+ return true;
149
+ }
150
+ }]);
151
+ }();
152
+ PayerAccount.RequiredProperties = ["merchant_id", "payer_id", "developer_fee_rate"];
153
+
154
+ /**
155
+ * The merchant ID.
156
+ * @member {String} merchant_id
157
+ */
158
+ PayerAccount.prototype['merchant_id'] = undefined;
159
+
160
+ /**
161
+ * A unique identifier assigned by Cobo to track and identify individual payers.
162
+ * @member {String} payer_id
163
+ */
164
+ PayerAccount.prototype['payer_id'] = undefined;
165
+
166
+ /**
167
+ * The developer fee rate applied to the top-up transactions made by the payer. Expressed as a decimal string where \"0.1\" represents 10%.
168
+ * @member {String} developer_fee_rate
169
+ */
170
+ PayerAccount.prototype['developer_fee_rate'] = undefined;
171
+
172
+ /**
173
+ * The creation time of the payer, represented as a UNIX timestamp in seconds.
174
+ * @member {Number} created_timestamp
175
+ */
176
+ PayerAccount.prototype['created_timestamp'] = undefined;
177
+
178
+ /**
179
+ * The last update time of the payer, represented as a UNIX timestamp in seconds.
180
+ * @member {Number} updated_timestamp
181
+ */
182
+ PayerAccount.prototype['updated_timestamp'] = undefined;
183
+
184
+ /**
185
+ * An array of accounts associated with this payer.
186
+ * @member {Array.<module:model/Account>} accounts
187
+ */
188
+ PayerAccount.prototype['accounts'] = undefined;
189
+ var _default = exports["default"] = PayerAccount;
@@ -8,6 +8,7 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _Order = _interopRequireDefault(require("./Order"));
9
9
  var _OrderStatus = _interopRequireDefault(require("./OrderStatus"));
10
10
  var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
11
+ var _SettleStatus = _interopRequireDefault(require("./SettleStatus"));
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); }
@@ -38,7 +39,7 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
38
39
  * @alias module:model/PaymentOrderEventData
39
40
  * @implements module:model/WebhookEventDataType
40
41
  * @implements module:model/Order
41
- * @param data_type {module:model/PaymentOrderEventData.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.
42
+ * @param data_type {module:model/PaymentOrderEventData.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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
42
43
  * @param order_id {String} The order ID.
43
44
  * @param token_id {String} The ID of the cryptocurrency used for payment. Supported tokens: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
44
45
  * @param chain_id {String} The ID of the blockchain network where the payment transaction should be made. Supported chains: - USDC: `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` - USDT: `TRON`, `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC`
@@ -153,6 +154,9 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
153
154
  if (data.hasOwnProperty('transactions')) {
154
155
  obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
155
156
  }
157
+ if (data.hasOwnProperty('settlement_status')) {
158
+ obj['settlement_status'] = _SettleStatus["default"].constructFromObject(data['settlement_status']);
159
+ }
156
160
  }
157
161
  return obj;
158
162
  }
@@ -264,7 +268,7 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
264
268
  PaymentOrderEventData.RequiredProperties = ["data_type", "order_id", "token_id", "chain_id", "payable_amount", "receive_address", "currency", "order_amount", "fee_amount", "exchange_rate", "psp_order_code", "status", "received_token_amount"];
265
269
 
266
270
  /**
267
- * 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.
271
+ * 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
268
272
  * @member {module:model/PaymentOrderEventData.DataTypeEnum} data_type
269
273
  */
270
274
  PaymentOrderEventData.prototype['data_type'] = undefined;
@@ -359,26 +363,31 @@ PaymentOrderEventData.prototype['status'] = undefined;
359
363
  PaymentOrderEventData.prototype['received_token_amount'] = undefined;
360
364
 
361
365
  /**
362
- * The created time of the order, represented as a UNIX timestamp in seconds.
366
+ * The creation time of the order, represented as a UNIX timestamp in seconds.
363
367
  * @member {Number} created_timestamp
364
368
  */
365
369
  PaymentOrderEventData.prototype['created_timestamp'] = undefined;
366
370
 
367
371
  /**
368
- * The updated time of the order, represented as a UNIX timestamp in seconds.
372
+ * The last update time of the order, represented as a UNIX timestamp in seconds.
369
373
  * @member {Number} updated_timestamp
370
374
  */
371
375
  PaymentOrderEventData.prototype['updated_timestamp'] = undefined;
372
376
 
373
377
  /**
374
- * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process.
378
+ * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the pay-in process.
375
379
  * @member {Array.<module:model/PaymentTransaction>} transactions
376
380
  */
377
381
  PaymentOrderEventData.prototype['transactions'] = undefined;
378
382
 
383
+ /**
384
+ * @member {module:model/SettleStatus} settlement_status
385
+ */
386
+ PaymentOrderEventData.prototype['settlement_status'] = undefined;
387
+
379
388
  // Implement WebhookEventDataType interface:
380
389
  /**
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.
390
+ * 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
382
391
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
383
392
  */
384
393
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -458,20 +467,24 @@ _Order["default"].prototype['status'] = undefined;
458
467
  */
459
468
  _Order["default"].prototype['received_token_amount'] = undefined;
460
469
  /**
461
- * The created time of the order, represented as a UNIX timestamp in seconds.
470
+ * The creation time of the order, represented as a UNIX timestamp in seconds.
462
471
  * @member {Number} created_timestamp
463
472
  */
464
473
  _Order["default"].prototype['created_timestamp'] = undefined;
465
474
  /**
466
- * The updated time of the order, represented as a UNIX timestamp in seconds.
475
+ * The last update time of the order, represented as a UNIX timestamp in seconds.
467
476
  * @member {Number} updated_timestamp
468
477
  */
469
478
  _Order["default"].prototype['updated_timestamp'] = undefined;
470
479
  /**
471
- * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process.
480
+ * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the pay-in process.
472
481
  * @member {Array.<module:model/PaymentTransaction>} transactions
473
482
  */
474
483
  _Order["default"].prototype['transactions'] = undefined;
484
+ /**
485
+ * @member {module:model/SettleStatus} settlement_status
486
+ */
487
+ _Order["default"].prototype['settlement_status'] = undefined;
475
488
 
476
489
  /**
477
490
  * Allowed values for the <code>data_type</code> property.
@@ -519,6 +532,11 @@ PaymentOrderEventData['DataTypeEnum'] = {
519
532
  * @const
520
533
  */
521
534
  "TokenListing": "TokenListing",
535
+ /**
536
+ * value: "BalanceUpdateInfo"
537
+ * @const
538
+ */
539
+ "BalanceUpdateInfo": "BalanceUpdateInfo",
522
540
  /**
523
541
  * value: "PaymentOrder"
524
542
  * @const