@cobo/cobo-waas2 1.28.0 → 1.29.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 (186) hide show
  1. package/README.md +66 -9
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AutoSweepApi.js +2 -2
  4. package/dist/api/ComplianceApi.js +144 -4
  5. package/dist/api/FeeStationApi.js +2 -2
  6. package/dist/api/PaymentApi.js +960 -85
  7. package/dist/api/StakingsApi.js +2 -2
  8. package/dist/api/TransactionsApi.js +6 -6
  9. package/dist/index.js +245 -0
  10. package/dist/model/AddressRiskLevel.js +71 -0
  11. package/dist/model/AddressesEventData.js +8 -3
  12. package/dist/model/AllocationRecord.js +8 -5
  13. package/dist/model/AllocationRequest.js +10 -7
  14. package/dist/model/BalanceUpdateInfoEventData.js +8 -3
  15. package/dist/model/BatchAllocation.js +1 -1
  16. package/dist/model/ChainsEventData.js +8 -3
  17. package/dist/model/CommissionFee.js +2 -2
  18. package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
  19. package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +341 -0
  20. package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
  21. package/dist/model/ContractCallParams.js +2 -2
  22. package/dist/model/CounterpartyWalletAddressDetail.js +2 -2
  23. package/dist/model/CreateBatchAllocationRequest.js +2 -2
  24. package/dist/model/CreateCounterpartyEntry201Response.js +143 -0
  25. package/dist/model/CreateCounterpartyEntryRequest.js +141 -0
  26. package/dist/model/CreateDestinationEntry201Response.js +172 -0
  27. package/dist/model/CreateDestinationEntryRequest.js +172 -0
  28. package/dist/model/CreateKyaScreeningsBody.js +129 -0
  29. package/dist/model/CreateMerchantRequest.js +1 -1
  30. package/dist/model/CreatePaymentOrderRequest.js +11 -11
  31. package/dist/model/CreatePayoutRequest.js +5 -5
  32. package/dist/model/CreateRefundRequest.js +2 -2
  33. package/dist/model/CreateReportRequest.js +156 -0
  34. package/dist/model/CreateWalletAddress.js +2 -2
  35. package/dist/model/DeleteCounterpartyById200Response.js +110 -0
  36. package/dist/model/DeleteCounterpartyEntry200Response.js +110 -0
  37. package/dist/model/DeleteDestinationById200Response.js +110 -0
  38. package/dist/model/DeleteDestinationEntry200Response.js +110 -0
  39. package/dist/model/EntryType.js +61 -0
  40. package/dist/model/GetCounterpartyEntry200Response.js +90 -0
  41. package/dist/model/GetDestinationEntry200Response.js +106 -0
  42. package/dist/model/GetReports200Response.js +123 -0
  43. package/dist/model/KyaRiskAssessment.js +151 -0
  44. package/dist/model/KyaRiskDetail.js +126 -0
  45. package/dist/model/KyaRiskLevel.js +66 -0
  46. package/dist/model/KyaScreeningRequest.js +154 -0
  47. package/dist/model/KyaScreeningResult.js +222 -0
  48. package/dist/model/KyaScreeningResultRiskAssessment.js +171 -0
  49. package/dist/model/KyaScreeningStatus.js +71 -0
  50. package/dist/model/KyaScreeningsEventData.js +174 -0
  51. package/dist/model/LinkDisplayInfo.js +1 -1
  52. package/dist/model/ListCounterpartyEntries200Response.js +123 -0
  53. package/dist/model/ListDestinationEntries200Response.js +153 -0
  54. package/dist/model/ListKyaScreenings200Response.js +145 -0
  55. package/dist/model/MPCVaultEventData.js +8 -3
  56. package/dist/model/MerchantBalance.js +4 -4
  57. package/dist/model/Order.js +10 -10
  58. package/dist/model/OrderLinkBusinessInfo.js +12 -12
  59. package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +2 -4
  60. package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +4 -4
  61. package/dist/model/PaymentAddressUpdateEventData.js +8 -3
  62. package/dist/model/PaymentAllocationAmount.js +2 -2
  63. package/dist/model/PaymentOrderEventData.js +26 -21
  64. package/dist/model/PaymentPayout.js +3 -3
  65. package/dist/model/PaymentPayoutDetail.js +3 -3
  66. package/dist/model/PaymentPayoutEvent.js +14 -9
  67. package/dist/model/PaymentPayoutItem.js +8 -7
  68. package/dist/model/PaymentPayoutItemDetail.js +8 -7
  69. package/dist/model/PaymentPayoutParam.js +8 -7
  70. package/dist/model/PaymentRefundEventData.js +8 -3
  71. package/dist/model/PaymentSettlementEvent.js +8 -3
  72. package/dist/model/PaymentTransactionEventData.js +8 -3
  73. package/dist/model/PspBalance.js +4 -4
  74. package/dist/model/RefundLinkBusinessInfo.js +1 -1
  75. package/dist/model/Report.js +209 -0
  76. package/dist/model/ReportExportFormat.js +66 -0
  77. package/dist/model/ReportStatus.js +61 -0
  78. package/dist/model/ReportType.js +121 -0
  79. package/dist/model/SuspendedTokenEventData.js +8 -3
  80. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  81. package/dist/model/TokenListingEventData.js +8 -3
  82. package/dist/model/TokensEventData.js +8 -3
  83. package/dist/model/TransactionWebhookEventData.js +8 -3
  84. package/dist/model/TransferParams.js +2 -2
  85. package/dist/model/UpdateCounterpartyRequest.js +160 -0
  86. package/dist/model/UpdateDestinationEntry200Response.js +90 -0
  87. package/dist/model/UpdateDestinationEntryRequest.js +135 -0
  88. package/dist/model/UpdateDestinationRequest.js +173 -0
  89. package/dist/model/UpdateMerchantByIdRequest.js +1 -1
  90. package/dist/model/WalletAddress.js +20 -2
  91. package/dist/model/WalletInfoEventData.js +8 -3
  92. package/dist/model/WebhookEventData.js +58 -24
  93. package/dist/model/WebhookEventDataType.js +7 -2
  94. package/dist/model/WebhookEventType.js +5 -0
  95. package/docs/AddressRiskLevel.md +16 -0
  96. package/docs/AddressesEventData.md +3 -1
  97. package/docs/AllocationRecord.md +5 -5
  98. package/docs/AllocationRequest.md +5 -5
  99. package/docs/AutoSweepApi.md +1 -1
  100. package/docs/BalanceUpdateInfoEventData.md +3 -1
  101. package/docs/BatchAllocation.md +1 -1
  102. package/docs/ChainsEventData.md +3 -1
  103. package/docs/CommissionFee.md +1 -1
  104. package/docs/ComplianceApi.md +163 -0
  105. package/docs/ComplianceDispositionUpdateEventData.md +3 -1
  106. package/docs/ComplianceKyaScreeningsUpdateEventData.md +62 -0
  107. package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
  108. package/docs/ContractCallParams.md +1 -1
  109. package/docs/CounterpartyWalletAddressDetail.md +1 -1
  110. package/docs/CreateBatchAllocationRequest.md +1 -1
  111. package/docs/CreateCounterpartyEntry201Response.md +10 -0
  112. package/docs/CreateCounterpartyEntryRequest.md +10 -0
  113. package/docs/CreateDestinationEntry201Response.md +11 -0
  114. package/docs/CreateDestinationEntryRequest.md +11 -0
  115. package/docs/CreateKyaScreeningsBody.md +9 -0
  116. package/docs/CreateMerchantRequest.md +1 -1
  117. package/docs/CreatePaymentOrderRequest.md +10 -10
  118. package/docs/CreatePayoutRequest.md +4 -4
  119. package/docs/CreateRefundRequest.md +2 -2
  120. package/docs/CreateReportRequest.md +13 -0
  121. package/docs/CreateWalletAddress.md +1 -1
  122. package/docs/DeleteCounterpartyById200Response.md +9 -0
  123. package/docs/DeleteCounterpartyEntry200Response.md +9 -0
  124. package/docs/DeleteDestinationById200Response.md +9 -0
  125. package/docs/DeleteDestinationEntry200Response.md +9 -0
  126. package/docs/EntryType.md +12 -0
  127. package/docs/FeeStationApi.md +1 -1
  128. package/docs/GetCounterpartyEntry200Response.md +9 -0
  129. package/docs/GetDestinationEntry200Response.md +10 -0
  130. package/docs/GetReports200Response.md +10 -0
  131. package/docs/KyaRiskAssessment.md +11 -0
  132. package/docs/KyaRiskDetail.md +10 -0
  133. package/docs/KyaRiskLevel.md +14 -0
  134. package/docs/KyaScreeningRequest.md +12 -0
  135. package/docs/KyaScreeningResult.md +17 -0
  136. package/docs/KyaScreeningResultRiskAssessment.md +11 -0
  137. package/docs/KyaScreeningStatus.md +16 -0
  138. package/docs/KyaScreeningsEventData.md +14 -0
  139. package/docs/LinkDisplayInfo.md +1 -1
  140. package/docs/ListCounterpartyEntries200Response.md +10 -0
  141. package/docs/ListDestinationEntries200Response.md +11 -0
  142. package/docs/ListKyaScreenings200Response.md +10 -0
  143. package/docs/MPCVaultEventData.md +3 -1
  144. package/docs/MerchantBalance.md +4 -4
  145. package/docs/Order.md +8 -8
  146. package/docs/OrderLinkBusinessInfo.md +11 -11
  147. package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
  148. package/docs/OrderLinkBusinessInfoPayableAmountsInner.md +2 -2
  149. package/docs/PaymentAddressUpdateEventData.md +3 -1
  150. package/docs/PaymentAllocationAmount.md +1 -1
  151. package/docs/PaymentApi.md +1104 -161
  152. package/docs/PaymentOrderEventData.md +11 -9
  153. package/docs/PaymentPayout.md +3 -3
  154. package/docs/PaymentPayoutDetail.md +3 -3
  155. package/docs/PaymentPayoutEvent.md +6 -4
  156. package/docs/PaymentPayoutItem.md +6 -6
  157. package/docs/PaymentPayoutItemDetail.md +6 -6
  158. package/docs/PaymentPayoutParam.md +5 -5
  159. package/docs/PaymentRefundEventData.md +3 -1
  160. package/docs/PaymentSettlementEvent.md +3 -1
  161. package/docs/PaymentTransactionEventData.md +3 -1
  162. package/docs/PspBalance.md +4 -4
  163. package/docs/RefundLinkBusinessInfo.md +1 -1
  164. package/docs/Report.md +17 -0
  165. package/docs/ReportExportFormat.md +14 -0
  166. package/docs/ReportStatus.md +12 -0
  167. package/docs/ReportType.md +36 -0
  168. package/docs/StakingsApi.md +1 -1
  169. package/docs/SuspendedTokenEventData.md +3 -1
  170. package/docs/TSSRequestWebhookEventData.md +3 -1
  171. package/docs/TokenListingEventData.md +3 -1
  172. package/docs/TokensEventData.md +3 -1
  173. package/docs/TransactionWebhookEventData.md +3 -1
  174. package/docs/TransactionsApi.md +3 -3
  175. package/docs/TransferParams.md +1 -1
  176. package/docs/UpdateCounterpartyRequest.md +13 -0
  177. package/docs/UpdateDestinationEntry200Response.md +9 -0
  178. package/docs/UpdateDestinationEntryRequest.md +11 -0
  179. package/docs/UpdateDestinationRequest.md +14 -0
  180. package/docs/UpdateMerchantByIdRequest.md +1 -1
  181. package/docs/WalletAddress.md +3 -1
  182. package/docs/WalletInfoEventData.md +3 -1
  183. package/docs/WebhookEventData.md +18 -15
  184. package/docs/WebhookEventDataType.md +3 -1
  185. package/docs/WebhookEventType.md +2 -0
  186. package/package.json +1 -1
@@ -0,0 +1,341 @@
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 _KyaScreeningStatus = _interopRequireDefault(require("./KyaScreeningStatus"));
9
+ var _KyaScreeningsEventData = _interopRequireDefault(require("./KyaScreeningsEventData"));
10
+ var _WebhookEventDataType = _interopRequireDefault(require("./WebhookEventDataType"));
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
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; } } }; }
14
+ 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; } }
15
+ 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; }
16
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
17
+ 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); } }
18
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
20
+ 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); } /**
21
+ * Cobo Wallet as a Service 2.0
22
+ *
23
+ * Contact: help@cobo.com
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+ /**
31
+ * The ComplianceKyaScreeningsUpdateEventData model module.
32
+ * @module model/ComplianceKyaScreeningsUpdateEventData
33
+ */
34
+ var ComplianceKyaScreeningsUpdateEventData = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>ComplianceKyaScreeningsUpdateEventData</code>.
37
+ * @alias module:model/ComplianceKyaScreeningsUpdateEventData
38
+ * @implements module:model/WebhookEventDataType
39
+ * @implements module:model/KyaScreeningsEventData
40
+ * @param data_type {module:model/ComplianceKyaScreeningsUpdateEventData.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. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
41
+ * @param screening_id {String} The unique system-generated identifier for this screening request (UUID format, fixed 36 characters).
42
+ * @param address {String} The screened blockchain address.
43
+ * @param chain_id {String} The chain identifier.
44
+ * @param status {module:model/KyaScreeningStatus}
45
+ * @param created_timestamp {Number} The time when the screening request was created, in Unix timestamp format, measured in milliseconds.
46
+ * @param updated_timestamp {Number} The time when the screening status was updated, in Unix timestamp format, measured in milliseconds.
47
+ */
48
+ function ComplianceKyaScreeningsUpdateEventData(data_type, screening_id, address, chain_id, status, created_timestamp, updated_timestamp) {
49
+ _classCallCheck(this, ComplianceKyaScreeningsUpdateEventData);
50
+ _WebhookEventDataType["default"].initialize(this, data_type);
51
+ _KyaScreeningsEventData["default"].initialize(this, screening_id, address, chain_id, status, created_timestamp, updated_timestamp);
52
+ ComplianceKyaScreeningsUpdateEventData.initialize(this, data_type, screening_id, address, chain_id, status, created_timestamp, updated_timestamp);
53
+ }
54
+
55
+ /**
56
+ * Initializes the fields of this object.
57
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
58
+ * Only for internal use.
59
+ */
60
+ return _createClass(ComplianceKyaScreeningsUpdateEventData, null, [{
61
+ key: "initialize",
62
+ value: function initialize(obj, data_type, screening_id, address, chain_id, status, created_timestamp, updated_timestamp) {
63
+ obj['data_type'] = data_type;
64
+ obj['screening_id'] = screening_id;
65
+ obj['address'] = address;
66
+ obj['chain_id'] = chain_id;
67
+ obj['status'] = status;
68
+ obj['created_timestamp'] = created_timestamp;
69
+ obj['updated_timestamp'] = updated_timestamp;
70
+ }
71
+
72
+ /**
73
+ * Constructs a <code>ComplianceKyaScreeningsUpdateEventData</code> from a plain JavaScript object, optionally creating a new instance.
74
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
75
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
76
+ * @param {module:model/ComplianceKyaScreeningsUpdateEventData} obj Optional instance to populate.
77
+ * @return {module:model/ComplianceKyaScreeningsUpdateEventData} The populated <code>ComplianceKyaScreeningsUpdateEventData</code> instance.
78
+ */
79
+ }, {
80
+ key: "constructFromObject",
81
+ value: function constructFromObject(data, obj) {
82
+ if (data) {
83
+ obj = obj || new ComplianceKyaScreeningsUpdateEventData();
84
+ _WebhookEventDataType["default"].constructFromObject(data, obj);
85
+ _KyaScreeningsEventData["default"].constructFromObject(data, obj);
86
+ if (data.hasOwnProperty('data_type')) {
87
+ obj['data_type'] = _ApiClient["default"].convertToType(data['data_type'], 'String');
88
+ }
89
+ if (data.hasOwnProperty('screening_id')) {
90
+ obj['screening_id'] = _ApiClient["default"].convertToType(data['screening_id'], 'String');
91
+ }
92
+ if (data.hasOwnProperty('address')) {
93
+ obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
94
+ }
95
+ if (data.hasOwnProperty('chain_id')) {
96
+ obj['chain_id'] = _ApiClient["default"].convertToType(data['chain_id'], 'String');
97
+ }
98
+ if (data.hasOwnProperty('status')) {
99
+ obj['status'] = _KyaScreeningStatus["default"].constructFromObject(data['status']);
100
+ }
101
+ if (data.hasOwnProperty('created_timestamp')) {
102
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
103
+ }
104
+ if (data.hasOwnProperty('updated_timestamp')) {
105
+ obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
106
+ }
107
+ }
108
+ return obj;
109
+ }
110
+
111
+ /**
112
+ * Validates the JSON data with respect to <code>ComplianceKyaScreeningsUpdateEventData</code>.
113
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
114
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ComplianceKyaScreeningsUpdateEventData</code>.
115
+ */
116
+ }, {
117
+ key: "validateJSON",
118
+ value: function validateJSON(data) {
119
+ // check to make sure all required properties are present in the JSON string
120
+ var _iterator = _createForOfIteratorHelper(ComplianceKyaScreeningsUpdateEventData.RequiredProperties),
121
+ _step;
122
+ try {
123
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
124
+ var property = _step.value;
125
+ if (!data.hasOwnProperty(property)) {
126
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
127
+ }
128
+ }
129
+ // ensure the json data is a string
130
+ } catch (err) {
131
+ _iterator.e(err);
132
+ } finally {
133
+ _iterator.f();
134
+ }
135
+ if (data['data_type'] && !(typeof data['data_type'] === 'string' || data['data_type'] instanceof String)) {
136
+ throw new Error("Expected the field `data_type` to be a primitive type in the JSON string but got " + data['data_type']);
137
+ }
138
+ // ensure the json data is a string
139
+ if (data['screening_id'] && !(typeof data['screening_id'] === 'string' || data['screening_id'] instanceof String)) {
140
+ throw new Error("Expected the field `screening_id` to be a primitive type in the JSON string but got " + data['screening_id']);
141
+ }
142
+ // ensure the json data is a string
143
+ if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
144
+ throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
145
+ }
146
+ // ensure the json data is a string
147
+ if (data['chain_id'] && !(typeof data['chain_id'] === 'string' || data['chain_id'] instanceof String)) {
148
+ throw new Error("Expected the field `chain_id` to be a primitive type in the JSON string but got " + data['chain_id']);
149
+ }
150
+ return true;
151
+ }
152
+ }]);
153
+ }();
154
+ ComplianceKyaScreeningsUpdateEventData.RequiredProperties = ["data_type", "screening_id", "address", "chain_id", "status", "created_timestamp", "updated_timestamp"];
155
+
156
+ /**
157
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
158
+ * @member {module:model/ComplianceKyaScreeningsUpdateEventData.DataTypeEnum} data_type
159
+ */
160
+ ComplianceKyaScreeningsUpdateEventData.prototype['data_type'] = undefined;
161
+
162
+ /**
163
+ * The unique system-generated identifier for this screening request (UUID format, fixed 36 characters).
164
+ * @member {String} screening_id
165
+ */
166
+ ComplianceKyaScreeningsUpdateEventData.prototype['screening_id'] = undefined;
167
+
168
+ /**
169
+ * The screened blockchain address.
170
+ * @member {String} address
171
+ */
172
+ ComplianceKyaScreeningsUpdateEventData.prototype['address'] = undefined;
173
+
174
+ /**
175
+ * The chain identifier.
176
+ * @member {String} chain_id
177
+ */
178
+ ComplianceKyaScreeningsUpdateEventData.prototype['chain_id'] = undefined;
179
+
180
+ /**
181
+ * @member {module:model/KyaScreeningStatus} status
182
+ */
183
+ ComplianceKyaScreeningsUpdateEventData.prototype['status'] = undefined;
184
+
185
+ /**
186
+ * The time when the screening request was created, in Unix timestamp format, measured in milliseconds.
187
+ * @member {Number} created_timestamp
188
+ */
189
+ ComplianceKyaScreeningsUpdateEventData.prototype['created_timestamp'] = undefined;
190
+
191
+ /**
192
+ * The time when the screening status was updated, in Unix timestamp format, measured in milliseconds.
193
+ * @member {Number} updated_timestamp
194
+ */
195
+ ComplianceKyaScreeningsUpdateEventData.prototype['updated_timestamp'] = undefined;
196
+
197
+ // Implement WebhookEventDataType interface:
198
+ /**
199
+ * 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. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
200
+ * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
201
+ */
202
+ _WebhookEventDataType["default"].prototype['data_type'] = undefined;
203
+ // Implement KyaScreeningsEventData interface:
204
+ /**
205
+ * The unique system-generated identifier for this screening request (UUID format, fixed 36 characters).
206
+ * @member {String} screening_id
207
+ */
208
+ _KyaScreeningsEventData["default"].prototype['screening_id'] = undefined;
209
+ /**
210
+ * The screened blockchain address.
211
+ * @member {String} address
212
+ */
213
+ _KyaScreeningsEventData["default"].prototype['address'] = undefined;
214
+ /**
215
+ * The chain identifier.
216
+ * @member {String} chain_id
217
+ */
218
+ _KyaScreeningsEventData["default"].prototype['chain_id'] = undefined;
219
+ /**
220
+ * @member {module:model/KyaScreeningStatus} status
221
+ */
222
+ _KyaScreeningsEventData["default"].prototype['status'] = undefined;
223
+ /**
224
+ * The time when the screening request was created, in Unix timestamp format, measured in milliseconds.
225
+ * @member {Number} created_timestamp
226
+ */
227
+ _KyaScreeningsEventData["default"].prototype['created_timestamp'] = undefined;
228
+ /**
229
+ * The time when the screening status was updated, in Unix timestamp format, measured in milliseconds.
230
+ * @member {Number} updated_timestamp
231
+ */
232
+ _KyaScreeningsEventData["default"].prototype['updated_timestamp'] = undefined;
233
+
234
+ /**
235
+ * Allowed values for the <code>data_type</code> property.
236
+ * @enum {String}
237
+ * @readonly
238
+ */
239
+ ComplianceKyaScreeningsUpdateEventData['DataTypeEnum'] = {
240
+ /**
241
+ * value: "Transaction"
242
+ * @const
243
+ */
244
+ "Transaction": "Transaction",
245
+ /**
246
+ * value: "TSSRequest"
247
+ * @const
248
+ */
249
+ "TSSRequest": "TSSRequest",
250
+ /**
251
+ * value: "Addresses"
252
+ * @const
253
+ */
254
+ "Addresses": "Addresses",
255
+ /**
256
+ * value: "WalletInfo"
257
+ * @const
258
+ */
259
+ "WalletInfo": "WalletInfo",
260
+ /**
261
+ * value: "MPCVault"
262
+ * @const
263
+ */
264
+ "MPCVault": "MPCVault",
265
+ /**
266
+ * value: "Chains"
267
+ * @const
268
+ */
269
+ "Chains": "Chains",
270
+ /**
271
+ * value: "Tokens"
272
+ * @const
273
+ */
274
+ "Tokens": "Tokens",
275
+ /**
276
+ * value: "TokenListing"
277
+ * @const
278
+ */
279
+ "TokenListing": "TokenListing",
280
+ /**
281
+ * value: "PaymentOrder"
282
+ * @const
283
+ */
284
+ "PaymentOrder": "PaymentOrder",
285
+ /**
286
+ * value: "PaymentRefund"
287
+ * @const
288
+ */
289
+ "PaymentRefund": "PaymentRefund",
290
+ /**
291
+ * value: "PaymentSettlement"
292
+ * @const
293
+ */
294
+ "PaymentSettlement": "PaymentSettlement",
295
+ /**
296
+ * value: "PaymentTransaction"
297
+ * @const
298
+ */
299
+ "PaymentTransaction": "PaymentTransaction",
300
+ /**
301
+ * value: "PaymentAddressUpdate"
302
+ * @const
303
+ */
304
+ "PaymentAddressUpdate": "PaymentAddressUpdate",
305
+ /**
306
+ * value: "PaymentPayout"
307
+ * @const
308
+ */
309
+ "PaymentPayout": "PaymentPayout",
310
+ /**
311
+ * value: "BalanceUpdateInfo"
312
+ * @const
313
+ */
314
+ "BalanceUpdateInfo": "BalanceUpdateInfo",
315
+ /**
316
+ * value: "SuspendedToken"
317
+ * @const
318
+ */
319
+ "SuspendedToken": "SuspendedToken",
320
+ /**
321
+ * value: "ComplianceDisposition"
322
+ * @const
323
+ */
324
+ "ComplianceDisposition": "ComplianceDisposition",
325
+ /**
326
+ * value: "ComplianceKytScreenings"
327
+ * @const
328
+ */
329
+ "ComplianceKytScreenings": "ComplianceKytScreenings",
330
+ /**
331
+ * value: "ComplianceKyaScreenings"
332
+ * @const
333
+ */
334
+ "ComplianceKyaScreenings": "ComplianceKyaScreenings",
335
+ /**
336
+ * value: "unknown_default_open_api"
337
+ * @const
338
+ */
339
+ "unknown_default_open_api": "unknown_default_open_api"
340
+ };
341
+ var _default = exports["default"] = ComplianceKyaScreeningsUpdateEventData;
@@ -39,7 +39,7 @@ var ComplianceKytScreeningsUpdateEventData = /*#__PURE__*/function () {
39
39
  * @alias module:model/ComplianceKytScreeningsUpdateEventData
40
40
  * @implements module:model/WebhookEventDataType
41
41
  * @implements module:model/KytScreeningsEventData
42
- * @param data_type {module:model/ComplianceKytScreeningsUpdateEventData.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. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
42
+ * @param data_type {module:model/ComplianceKytScreeningsUpdateEventData.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. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
43
43
  * @param transaction_id {String} The transaction ID.
44
44
  * @param transaction_type {module:model/KytScreeningsTransactionType}
45
45
  * @param review_status {module:model/ReviewStatusType}
@@ -143,7 +143,7 @@ var ComplianceKytScreeningsUpdateEventData = /*#__PURE__*/function () {
143
143
  ComplianceKytScreeningsUpdateEventData.RequiredProperties = ["data_type", "transaction_id", "transaction_type", "review_status", "funds_status", "updated_timestamp"];
144
144
 
145
145
  /**
146
- * 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. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
146
+ * 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. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
147
147
  * @member {module:model/ComplianceKytScreeningsUpdateEventData.DataTypeEnum} data_type
148
148
  */
149
149
  ComplianceKytScreeningsUpdateEventData.prototype['data_type'] = undefined;
@@ -177,7 +177,7 @@ ComplianceKytScreeningsUpdateEventData.prototype['updated_timestamp'] = undefine
177
177
 
178
178
  // Implement WebhookEventDataType interface:
179
179
  /**
180
- * 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. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
180
+ * 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. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
181
181
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
182
182
  */
183
183
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -301,6 +301,11 @@ ComplianceKytScreeningsUpdateEventData['DataTypeEnum'] = {
301
301
  * @const
302
302
  */
303
303
  "ComplianceKytScreenings": "ComplianceKytScreenings",
304
+ /**
305
+ * value: "ComplianceKyaScreenings"
306
+ * @const
307
+ */
308
+ "ComplianceKyaScreenings": "ComplianceKyaScreenings",
304
309
  /**
305
310
  * value: "unknown_default_open_api"
306
311
  * @const
@@ -38,7 +38,7 @@ var ContractCallParams = /*#__PURE__*/function () {
38
38
  * Constructs a new <code>ContractCallParams</code>.
39
39
  * The information about a transaction that interacts with a smart contract
40
40
  * @alias module:model/ContractCallParams
41
- * @param request_id {String} The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
41
+ * @param request_id {String} A client-defined unique request identifier (idempotency key) used to prevent duplicate contract call requests. It must be unique within the same organization. Requests with the same request ID will be rejected with an error.
42
42
  * @param chain_id {String} The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
43
43
  * @param source {module:model/ContractCallSource}
44
44
  * @param destination {module:model/ContractCallDestination}
@@ -172,7 +172,7 @@ var ContractCallParams = /*#__PURE__*/function () {
172
172
  ContractCallParams.RequiredProperties = ["request_id", "chain_id", "source", "destination"];
173
173
 
174
174
  /**
175
- * The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
175
+ * A client-defined unique request identifier (idempotency key) used to prevent duplicate contract call requests. It must be unique within the same organization. Requests with the same request ID will be rejected with an error.
176
176
  * @member {String} request_id
177
177
  */
178
178
  ContractCallParams.prototype['request_id'] = undefined;
@@ -38,7 +38,7 @@ var CounterpartyWalletAddressDetail = /*#__PURE__*/function () {
38
38
  * @param counterparty_type {module:model/CounterpartyType}
39
39
  * @param wallet_address_id {String} The wallet address ID.
40
40
  * @param address {String} The wallet address.
41
- * @param chain_id {String} The chain ID of the cryptocurrency.
41
+ * @param chain_id {String} The chain ID of the address.
42
42
  * @param updated_timestamp {Number} The updated time of the wallet address, represented as a UNIX timestamp in seconds.
43
43
  */
44
44
  function CounterpartyWalletAddressDetail(counterparty_id, counterparty_name, counterparty_type, wallet_address_id, address, chain_id, updated_timestamp) {
@@ -179,7 +179,7 @@ CounterpartyWalletAddressDetail.prototype['wallet_address_id'] = undefined;
179
179
  CounterpartyWalletAddressDetail.prototype['address'] = undefined;
180
180
 
181
181
  /**
182
- * The chain ID of the cryptocurrency.
182
+ * The chain ID of the address.
183
183
  * @member {String} chain_id
184
184
  */
185
185
  CounterpartyWalletAddressDetail.prototype['chain_id'] = undefined;
@@ -33,7 +33,7 @@ var CreateBatchAllocationRequest = /*#__PURE__*/function () {
33
33
  /**
34
34
  * Constructs a new <code>CreateBatchAllocationRequest</code>.
35
35
  * @alias module:model/CreateBatchAllocationRequest
36
- * @param request_id {String} The request ID that is used to track a allocation request. The request ID is provided by you and must be unique.
36
+ * @param request_id {String} The request ID that is used to track a batch allocation request. The request ID is provided by you and must be unique.
37
37
  * @param allocation_requests {Array.<module:model/AllocationRequest>}
38
38
  */
39
39
  function CreateBatchAllocationRequest(request_id, allocation_requests) {
@@ -130,7 +130,7 @@ var CreateBatchAllocationRequest = /*#__PURE__*/function () {
130
130
  CreateBatchAllocationRequest.RequiredProperties = ["request_id", "allocation_requests"];
131
131
 
132
132
  /**
133
- * The request ID that is used to track a allocation request. The request ID is provided by you and must be unique.
133
+ * The request ID that is used to track a batch allocation request. The request ID is provided by you and must be unique.
134
134
  * @member {String} request_id
135
135
  */
136
136
  CreateBatchAllocationRequest.prototype['request_id'] = undefined;
@@ -0,0 +1,143 @@
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 _WalletAddress = _interopRequireDefault(require("./WalletAddress"));
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 CreateCounterpartyEntry201Response model module.
30
+ * @module model/CreateCounterpartyEntry201Response
31
+ */
32
+ var CreateCounterpartyEntry201Response = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>CreateCounterpartyEntry201Response</code>.
35
+ * @alias module:model/CreateCounterpartyEntry201Response
36
+ * @param counterparty_id {String} The counterparty ID.
37
+ * @param wallet_addresses {Array.<module:model/WalletAddress>} The wallet addresses of the counterparty.
38
+ */
39
+ function CreateCounterpartyEntry201Response(counterparty_id, wallet_addresses) {
40
+ _classCallCheck(this, CreateCounterpartyEntry201Response);
41
+ CreateCounterpartyEntry201Response.initialize(this, counterparty_id, wallet_addresses);
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(CreateCounterpartyEntry201Response, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, counterparty_id, wallet_addresses) {
52
+ obj['counterparty_id'] = counterparty_id;
53
+ obj['wallet_addresses'] = wallet_addresses;
54
+ }
55
+
56
+ /**
57
+ * Constructs a <code>CreateCounterpartyEntry201Response</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/CreateCounterpartyEntry201Response} obj Optional instance to populate.
61
+ * @return {module:model/CreateCounterpartyEntry201Response} The populated <code>CreateCounterpartyEntry201Response</code> instance.
62
+ */
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new CreateCounterpartyEntry201Response();
68
+ if (data.hasOwnProperty('counterparty_id')) {
69
+ obj['counterparty_id'] = _ApiClient["default"].convertToType(data['counterparty_id'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('wallet_addresses')) {
72
+ obj['wallet_addresses'] = _ApiClient["default"].convertToType(data['wallet_addresses'], [_WalletAddress["default"]]);
73
+ }
74
+ }
75
+ return obj;
76
+ }
77
+
78
+ /**
79
+ * Validates the JSON data with respect to <code>CreateCounterpartyEntry201Response</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>CreateCounterpartyEntry201Response</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(CreateCounterpartyEntry201Response.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['counterparty_id'] && !(typeof data['counterparty_id'] === 'string' || data['counterparty_id'] instanceof String)) {
103
+ throw new Error("Expected the field `counterparty_id` to be a primitive type in the JSON string but got " + data['counterparty_id']);
104
+ }
105
+ if (data['wallet_addresses']) {
106
+ // data not null
107
+ // ensure the json data is an array
108
+ if (!Array.isArray(data['wallet_addresses'])) {
109
+ throw new Error("Expected the field `wallet_addresses` to be an array in the JSON data but got " + data['wallet_addresses']);
110
+ }
111
+ // validate the optional field `wallet_addresses` (array)
112
+ var _iterator2 = _createForOfIteratorHelper(data['wallet_addresses']),
113
+ _step2;
114
+ try {
115
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
116
+ var item = _step2.value;
117
+ _WalletAddress["default"].validateJSON(item);
118
+ }
119
+ } catch (err) {
120
+ _iterator2.e(err);
121
+ } finally {
122
+ _iterator2.f();
123
+ }
124
+ ;
125
+ }
126
+ return true;
127
+ }
128
+ }]);
129
+ }();
130
+ CreateCounterpartyEntry201Response.RequiredProperties = ["counterparty_id", "wallet_addresses"];
131
+
132
+ /**
133
+ * The counterparty ID.
134
+ * @member {String} counterparty_id
135
+ */
136
+ CreateCounterpartyEntry201Response.prototype['counterparty_id'] = undefined;
137
+
138
+ /**
139
+ * The wallet addresses of the counterparty.
140
+ * @member {Array.<module:model/WalletAddress>} wallet_addresses
141
+ */
142
+ CreateCounterpartyEntry201Response.prototype['wallet_addresses'] = undefined;
143
+ var _default = exports["default"] = CreateCounterpartyEntry201Response;