@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
@@ -34,7 +34,7 @@ var CreatePaymentOrderRequest = /*#__PURE__*/function () {
34
34
  * @alias module:model/CreatePaymentOrderRequest
35
35
  * @param merchant_id {String} The merchant ID.
36
36
  * @param psp_order_code {String} A unique reference code assigned by the developer to identify this order in their system.
37
- * @param fee_amount {String} The developer fee for the order in fiat currency. It is added to the base amount (`order_amount`) to determine the final charge. For example, if order_amount is \"100.00\" and fee_amount is \"2.00\", the customer will be charged \"102.00\" in total, with \"100.00\" being settled to the merchant and \"2.00\" settled to the developer. Values must be greater than 0 and contain two decimal places.
37
+ * @param fee_amount {String} The developer fee for the order. It is added to the base amount (`pricing_amount`) to determine the final charge. For example, if `pricing_amount` is \"100.00\" and `fee_amount` is \"2.00\", the payer will be charged \"102.00\" in total, with \"100.00\" being settled to the merchant account and \"2.00\" settled to the developer account. Values must be greater than 0 and contain two decimal places.
38
38
  */
39
39
  function CreatePaymentOrderRequest(merchant_id, psp_order_code, fee_amount) {
40
40
  _classCallCheck(this, CreatePaymentOrderRequest);
@@ -215,19 +215,19 @@ CreatePaymentOrderRequest.prototype['merchant_order_code'] = undefined;
215
215
  CreatePaymentOrderRequest.prototype['psp_order_code'] = undefined;
216
216
 
217
217
  /**
218
- * The ID of the cryptocurrency used for payment. Supported values: - 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`
218
+ * The pricing currency that denominates `pricing_amount` and `fee_amount`. If left empty, both values will be denominated in `payable_currency`. Currently, only `USD` is supported.
219
219
  * @member {String} pricing_currency
220
220
  */
221
221
  CreatePaymentOrderRequest.prototype['pricing_currency'] = undefined;
222
222
 
223
223
  /**
224
- * The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). Values must be greater than `0` and contain two decimal places.
224
+ * The base amount of the order, excluding the developer fee (specified in `fee_amount`). Values must be greater than `0` and contain two decimal places.
225
225
  * @member {String} pricing_amount
226
226
  */
227
227
  CreatePaymentOrderRequest.prototype['pricing_amount'] = undefined;
228
228
 
229
229
  /**
230
- * The developer fee for the order in fiat currency. It is added to the base amount (`order_amount`) to determine the final charge. For example, if order_amount is \"100.00\" and fee_amount is \"2.00\", the customer will be charged \"102.00\" in total, with \"100.00\" being settled to the merchant and \"2.00\" settled to the developer. Values must be greater than 0 and contain two decimal places.
230
+ * The developer fee for the order. It is added to the base amount (`pricing_amount`) to determine the final charge. For example, if `pricing_amount` is \"100.00\" and `fee_amount` is \"2.00\", the payer will be charged \"102.00\" in total, with \"100.00\" being settled to the merchant account and \"2.00\" settled to the developer account. Values must be greater than 0 and contain two decimal places.
231
231
  * @member {String} fee_amount
232
232
  */
233
233
  CreatePaymentOrderRequest.prototype['fee_amount'] = undefined;
@@ -239,7 +239,7 @@ CreatePaymentOrderRequest.prototype['fee_amount'] = undefined;
239
239
  CreatePaymentOrderRequest.prototype['payable_currency'] = undefined;
240
240
 
241
241
  /**
242
- * The actual payable amount of the order in the cryptocurrency.
242
+ * The total amount the payer needs to pay, denominated in the specified `payable_currency`. If this field is left blank, the system will automatically calculate the amount at order creation using the following formula: (`pricing_amount` + `fee_amount`) / current exchange rate. Values must be greater than 0 and contain two decimal places.
243
243
  * @member {String} payable_amount
244
244
  */
245
245
  CreatePaymentOrderRequest.prototype['payable_amount'] = undefined;
@@ -251,38 +251,38 @@ CreatePaymentOrderRequest.prototype['payable_amount'] = undefined;
251
251
  CreatePaymentOrderRequest.prototype['expired_in'] = undefined;
252
252
 
253
253
  /**
254
- * Allowed amount deviation, precision to 1 decimal place.
254
+ * The allowed amount deviation, with precision up to 1 decimal place. For example, if `payable_amount` is `100.00` and `amount_tolerance` is `0.50`: - Payer pays 99.55 → Success (difference of 0.45 ≤ 0.5) - Payer pays 99.40 → Underpaid (difference of 0.60 > 0.5)
255
255
  * @member {String} amount_tolerance
256
256
  */
257
257
  CreatePaymentOrderRequest.prototype['amount_tolerance'] = undefined;
258
258
 
259
259
  /**
260
- * The fiat currency of the order.
260
+ * This field has been deprecated. Please use `pricing_currency` instead.
261
261
  * @member {String} currency
262
262
  * @default ''
263
263
  */
264
264
  CreatePaymentOrderRequest.prototype['currency'] = '';
265
265
 
266
266
  /**
267
- * The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). Values must be greater than `0` and contain two decimal places.
267
+ * This field has been deprecated. Please use `pricing_amount` instead.
268
268
  * @member {String} order_amount
269
269
  */
270
270
  CreatePaymentOrderRequest.prototype['order_amount'] = undefined;
271
271
 
272
272
  /**
273
- * The ID of the cryptocurrency used for payment. Supported values: - 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`
273
+ * This field has been deprecated. Please use `payable_currency` instead.
274
274
  * @member {String} token_id
275
275
  */
276
276
  CreatePaymentOrderRequest.prototype['token_id'] = undefined;
277
277
 
278
278
  /**
279
- * Indicates whether to allocate a dedicated address for this order. If false, a shared address from the address pool will be used.
279
+ * This field has been deprecated.
280
280
  * @member {Boolean} use_dedicated_address
281
281
  */
282
282
  CreatePaymentOrderRequest.prototype['use_dedicated_address'] = undefined;
283
283
 
284
284
  /**
285
- * A custom exchange rate specified by the merchant. - Only effective when `currency` is `\"USD\"`. - Expressed as the amount of USD per 1 unit of the specified cryptocurrency. - If not provided, the system will use the default internal rate. Example: If the cryptocurrency is USDT and `custom_exchange_rate` = `\"0.99\"`, it means 1 USDT = 0.99 USD.
285
+ * This field has been deprecated.
286
286
  * @member {String} custom_exchange_rate
287
287
  */
288
288
  CreatePaymentOrderRequest.prototype['custom_exchange_rate'] = undefined;
@@ -34,7 +34,7 @@ var CreatePayoutRequest = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>CreatePayoutRequest</code>.
36
36
  * @alias module:model/CreatePayoutRequest
37
- * @param request_id {String} The request ID that is used to track a settlement request. The request ID is provided by you and must be unique.
37
+ * @param request_id {String} The request ID that is used to track a payout request. The request ID is provided by you and must be unique.
38
38
  * @param payout_channel {module:model/PayoutChannel}
39
39
  * @param payout_params {Array.<module:model/PaymentPayoutParam>}
40
40
  */
@@ -157,7 +157,7 @@ var CreatePayoutRequest = /*#__PURE__*/function () {
157
157
  CreatePayoutRequest.RequiredProperties = ["request_id", "payout_channel", "payout_params"];
158
158
 
159
159
  /**
160
- * The request ID that is used to track a settlement request. The request ID is provided by you and must be unique.
160
+ * The request ID that is used to track a payout request. The request ID is provided by you and must be unique.
161
161
  * @member {String} request_id
162
162
  */
163
163
  CreatePayoutRequest.prototype['request_id'] = undefined;
@@ -173,19 +173,19 @@ CreatePayoutRequest.prototype['payout_channel'] = undefined;
173
173
  CreatePayoutRequest.prototype['payout_params'] = undefined;
174
174
 
175
175
  /**
176
- * | Only used in OffRamp payout channel. The ID of the bank account where the settled funds will be deposited.
176
+ * The ID of the bank account where the funds will be deposited. Specify this field when `payout_channel` is set to `OffRamp`. You can call [List all bank accounts](https://www.cobo.com/payments/en/api-references/payment/list-all-bank-accounts) to retrieve the IDs of registered bank accounts. To add a new bank account, refer to [Destinations](https://www.cobo.com/payments/en/guides/destinations).
177
177
  * @member {String} bank_account_id
178
178
  */
179
179
  CreatePayoutRequest.prototype['bank_account_id'] = undefined;
180
180
 
181
181
  /**
182
- * The fiat currency for the create payouts.
182
+ * The fiat currency you will receive from the payout. - Required when `payout_channel` is set to `OffRamp`. - Currently, only `USD` is supported.
183
183
  * @member {String} currency
184
184
  */
185
185
  CreatePayoutRequest.prototype['currency'] = undefined;
186
186
 
187
187
  /**
188
- * The remark for the create payouts.
188
+ * The remark for the payout.
189
189
  * @member {String} remark
190
190
  */
191
191
  CreatePayoutRequest.prototype['remark'] = undefined;
@@ -206,13 +206,13 @@ CreateRefundRequest.prototype['refund_type'] = undefined;
206
206
  CreateRefundRequest.prototype['order_id'] = undefined;
207
207
 
208
208
  /**
209
- * Whether to charge developer fee to the merchant. This field is only valid when `refund_type` is `Merchant`. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/payments/en/guides/amounts-and-balances). - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee When enabled, ensure both `merchant_fee_amount` and `merchant_fee_token_id` are properly specified.
209
+ * Whether to charge developer fee to the merchant. This field is only valid when `refund_type` is `Merchant`. For more information, please refer to [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee When enabled, ensure both `merchant_fee_amount` and `merchant_fee_token_id` are properly specified.
210
210
  * @member {Boolean} charge_merchant_fee
211
211
  */
212
212
  CreateRefundRequest.prototype['charge_merchant_fee'] = undefined;
213
213
 
214
214
  /**
215
- * The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. This field is only valid when `refund_type` is `Merchant`. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/payments/en/guides/amounts-and-balances). This field is required when `charge_merchant_fee` is `true`. Must be: - A positive integer with up to two decimal places. - Less than the refund amount
215
+ * The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. This field is only valid when `refund_type` is `Merchant`. For more information, please refer to [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). This field is required when `charge_merchant_fee` is `true`. Must be: - A positive integer with up to two decimal places. - Less than the refund amount
216
216
  * @member {String} merchant_fee_amount
217
217
  */
218
218
  CreateRefundRequest.prototype['merchant_fee_amount'] = undefined;
@@ -0,0 +1,156 @@
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 _ReportExportFormat = _interopRequireDefault(require("./ReportExportFormat"));
9
+ var _ReportType = _interopRequireDefault(require("./ReportType"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
13
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
14
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
20
+ * Cobo Wallet as a Service 2.0
21
+ *
22
+ * Contact: help@cobo.com
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The CreateReportRequest model module.
31
+ * @module model/CreateReportRequest
32
+ */
33
+ var CreateReportRequest = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>CreateReportRequest</code>.
36
+ * @alias module:model/CreateReportRequest
37
+ * @param start_time {Number} The start time of the report. Unix timestamp measured in seconds.
38
+ * @param end_time {Number} The end time of the report. Unix timestamp measured in seconds.
39
+ * @param report_export_format {module:model/ReportExportFormat}
40
+ * @param report_types {Array.<module:model/ReportType>}
41
+ */
42
+ function CreateReportRequest(start_time, end_time, report_export_format, report_types) {
43
+ _classCallCheck(this, CreateReportRequest);
44
+ CreateReportRequest.initialize(this, start_time, end_time, report_export_format, report_types);
45
+ }
46
+
47
+ /**
48
+ * Initializes the fields of this object.
49
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
+ * Only for internal use.
51
+ */
52
+ return _createClass(CreateReportRequest, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj, start_time, end_time, report_export_format, report_types) {
55
+ obj['start_time'] = start_time;
56
+ obj['end_time'] = end_time;
57
+ obj['report_export_format'] = report_export_format;
58
+ obj['report_types'] = report_types;
59
+ }
60
+
61
+ /**
62
+ * Constructs a <code>CreateReportRequest</code> from a plain JavaScript object, optionally creating a new instance.
63
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
64
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
65
+ * @param {module:model/CreateReportRequest} obj Optional instance to populate.
66
+ * @return {module:model/CreateReportRequest} The populated <code>CreateReportRequest</code> instance.
67
+ */
68
+ }, {
69
+ key: "constructFromObject",
70
+ value: function constructFromObject(data, obj) {
71
+ if (data) {
72
+ obj = obj || new CreateReportRequest();
73
+ if (data.hasOwnProperty('start_time')) {
74
+ obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'Number');
75
+ }
76
+ if (data.hasOwnProperty('end_time')) {
77
+ obj['end_time'] = _ApiClient["default"].convertToType(data['end_time'], 'Number');
78
+ }
79
+ if (data.hasOwnProperty('report_export_format')) {
80
+ obj['report_export_format'] = _ReportExportFormat["default"].constructFromObject(data['report_export_format']);
81
+ }
82
+ if (data.hasOwnProperty('report_types')) {
83
+ obj['report_types'] = _ApiClient["default"].convertToType(data['report_types'], [_ReportType["default"]]);
84
+ }
85
+ if (data.hasOwnProperty('token_ids')) {
86
+ obj['token_ids'] = _ApiClient["default"].convertToType(data['token_ids'], ['String']);
87
+ }
88
+ }
89
+ return obj;
90
+ }
91
+
92
+ /**
93
+ * Validates the JSON data with respect to <code>CreateReportRequest</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>CreateReportRequest</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(CreateReportRequest.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 an array
111
+ } catch (err) {
112
+ _iterator.e(err);
113
+ } finally {
114
+ _iterator.f();
115
+ }
116
+ if (!Array.isArray(data['report_types'])) {
117
+ throw new Error("Expected the field `report_types` to be an array in the JSON data but got " + data['report_types']);
118
+ }
119
+ // ensure the json data is an array
120
+ if (!Array.isArray(data['token_ids'])) {
121
+ throw new Error("Expected the field `token_ids` to be an array in the JSON data but got " + data['token_ids']);
122
+ }
123
+ return true;
124
+ }
125
+ }]);
126
+ }();
127
+ CreateReportRequest.RequiredProperties = ["start_time", "end_time", "report_export_format", "report_types"];
128
+
129
+ /**
130
+ * The start time of the report. Unix timestamp measured in seconds.
131
+ * @member {Number} start_time
132
+ */
133
+ CreateReportRequest.prototype['start_time'] = undefined;
134
+
135
+ /**
136
+ * The end time of the report. Unix timestamp measured in seconds.
137
+ * @member {Number} end_time
138
+ */
139
+ CreateReportRequest.prototype['end_time'] = undefined;
140
+
141
+ /**
142
+ * @member {module:model/ReportExportFormat} report_export_format
143
+ */
144
+ CreateReportRequest.prototype['report_export_format'] = undefined;
145
+
146
+ /**
147
+ * @member {Array.<module:model/ReportType>} report_types
148
+ */
149
+ CreateReportRequest.prototype['report_types'] = undefined;
150
+
151
+ /**
152
+ * Optional filter to include only items related to specified token IDs in the report.
153
+ * @member {Array.<String>} token_ids
154
+ */
155
+ CreateReportRequest.prototype['token_ids'] = undefined;
156
+ var _default = exports["default"] = CreateReportRequest;
@@ -33,7 +33,7 @@ var CreateWalletAddress = /*#__PURE__*/function () {
33
33
  * Constructs a new <code>CreateWalletAddress</code>.
34
34
  * @alias module:model/CreateWalletAddress
35
35
  * @param address {String} The wallet address.
36
- * @param chain_id {String} The chain ID of the cryptocurrency.
36
+ * @param chain_id {String} The chain ID of the address.
37
37
  */
38
38
  function CreateWalletAddress(address, chain_id) {
39
39
  _classCallCheck(this, CreateWalletAddress);
@@ -118,7 +118,7 @@ CreateWalletAddress.RequiredProperties = ["address", "chain_id"];
118
118
  CreateWalletAddress.prototype['address'] = undefined;
119
119
 
120
120
  /**
121
- * The chain ID of the cryptocurrency.
121
+ * The chain ID of the address.
122
122
  * @member {String} chain_id
123
123
  */
124
124
  CreateWalletAddress.prototype['chain_id'] = undefined;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ * Cobo Wallet as a Service 2.0
19
+ *
20
+ * Contact: help@cobo.com
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The DeleteCounterpartyById200Response model module.
29
+ * @module model/DeleteCounterpartyById200Response
30
+ */
31
+ var DeleteCounterpartyById200Response = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>DeleteCounterpartyById200Response</code>.
34
+ * @alias module:model/DeleteCounterpartyById200Response
35
+ * @param deleted_counterparty_id {String} The deleted counterparty ID.
36
+ */
37
+ function DeleteCounterpartyById200Response(deleted_counterparty_id) {
38
+ _classCallCheck(this, DeleteCounterpartyById200Response);
39
+ DeleteCounterpartyById200Response.initialize(this, deleted_counterparty_id);
40
+ }
41
+
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+ return _createClass(DeleteCounterpartyById200Response, null, [{
48
+ key: "initialize",
49
+ value: function initialize(obj, deleted_counterparty_id) {
50
+ obj['deleted_counterparty_id'] = deleted_counterparty_id;
51
+ }
52
+
53
+ /**
54
+ * Constructs a <code>DeleteCounterpartyById200Response</code> from a plain JavaScript object, optionally creating a new instance.
55
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
57
+ * @param {module:model/DeleteCounterpartyById200Response} obj Optional instance to populate.
58
+ * @return {module:model/DeleteCounterpartyById200Response} The populated <code>DeleteCounterpartyById200Response</code> instance.
59
+ */
60
+ }, {
61
+ key: "constructFromObject",
62
+ value: function constructFromObject(data, obj) {
63
+ if (data) {
64
+ obj = obj || new DeleteCounterpartyById200Response();
65
+ if (data.hasOwnProperty('deleted_counterparty_id')) {
66
+ obj['deleted_counterparty_id'] = _ApiClient["default"].convertToType(data['deleted_counterparty_id'], 'String');
67
+ }
68
+ }
69
+ return obj;
70
+ }
71
+
72
+ /**
73
+ * Validates the JSON data with respect to <code>DeleteCounterpartyById200Response</code>.
74
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
75
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>DeleteCounterpartyById200Response</code>.
76
+ */
77
+ }, {
78
+ key: "validateJSON",
79
+ value: function validateJSON(data) {
80
+ // check to make sure all required properties are present in the JSON string
81
+ var _iterator = _createForOfIteratorHelper(DeleteCounterpartyById200Response.RequiredProperties),
82
+ _step;
83
+ try {
84
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
85
+ var property = _step.value;
86
+ if (!data.hasOwnProperty(property)) {
87
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
88
+ }
89
+ }
90
+ // ensure the json data is a string
91
+ } catch (err) {
92
+ _iterator.e(err);
93
+ } finally {
94
+ _iterator.f();
95
+ }
96
+ if (data['deleted_counterparty_id'] && !(typeof data['deleted_counterparty_id'] === 'string' || data['deleted_counterparty_id'] instanceof String)) {
97
+ throw new Error("Expected the field `deleted_counterparty_id` to be a primitive type in the JSON string but got " + data['deleted_counterparty_id']);
98
+ }
99
+ return true;
100
+ }
101
+ }]);
102
+ }();
103
+ DeleteCounterpartyById200Response.RequiredProperties = ["deleted_counterparty_id"];
104
+
105
+ /**
106
+ * The deleted counterparty ID.
107
+ * @member {String} deleted_counterparty_id
108
+ */
109
+ DeleteCounterpartyById200Response.prototype['deleted_counterparty_id'] = undefined;
110
+ var _default = exports["default"] = DeleteCounterpartyById200Response;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ * Cobo Wallet as a Service 2.0
19
+ *
20
+ * Contact: help@cobo.com
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The DeleteCounterpartyEntry200Response model module.
29
+ * @module model/DeleteCounterpartyEntry200Response
30
+ */
31
+ var DeleteCounterpartyEntry200Response = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>DeleteCounterpartyEntry200Response</code>.
34
+ * @alias module:model/DeleteCounterpartyEntry200Response
35
+ * @param deleted_counterparty_entry_id {String} The deleted counterparty entry ID.
36
+ */
37
+ function DeleteCounterpartyEntry200Response(deleted_counterparty_entry_id) {
38
+ _classCallCheck(this, DeleteCounterpartyEntry200Response);
39
+ DeleteCounterpartyEntry200Response.initialize(this, deleted_counterparty_entry_id);
40
+ }
41
+
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+ return _createClass(DeleteCounterpartyEntry200Response, null, [{
48
+ key: "initialize",
49
+ value: function initialize(obj, deleted_counterparty_entry_id) {
50
+ obj['deleted_counterparty_entry_id'] = deleted_counterparty_entry_id;
51
+ }
52
+
53
+ /**
54
+ * Constructs a <code>DeleteCounterpartyEntry200Response</code> from a plain JavaScript object, optionally creating a new instance.
55
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
57
+ * @param {module:model/DeleteCounterpartyEntry200Response} obj Optional instance to populate.
58
+ * @return {module:model/DeleteCounterpartyEntry200Response} The populated <code>DeleteCounterpartyEntry200Response</code> instance.
59
+ */
60
+ }, {
61
+ key: "constructFromObject",
62
+ value: function constructFromObject(data, obj) {
63
+ if (data) {
64
+ obj = obj || new DeleteCounterpartyEntry200Response();
65
+ if (data.hasOwnProperty('deleted_counterparty_entry_id')) {
66
+ obj['deleted_counterparty_entry_id'] = _ApiClient["default"].convertToType(data['deleted_counterparty_entry_id'], 'String');
67
+ }
68
+ }
69
+ return obj;
70
+ }
71
+
72
+ /**
73
+ * Validates the JSON data with respect to <code>DeleteCounterpartyEntry200Response</code>.
74
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
75
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>DeleteCounterpartyEntry200Response</code>.
76
+ */
77
+ }, {
78
+ key: "validateJSON",
79
+ value: function validateJSON(data) {
80
+ // check to make sure all required properties are present in the JSON string
81
+ var _iterator = _createForOfIteratorHelper(DeleteCounterpartyEntry200Response.RequiredProperties),
82
+ _step;
83
+ try {
84
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
85
+ var property = _step.value;
86
+ if (!data.hasOwnProperty(property)) {
87
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
88
+ }
89
+ }
90
+ // ensure the json data is a string
91
+ } catch (err) {
92
+ _iterator.e(err);
93
+ } finally {
94
+ _iterator.f();
95
+ }
96
+ if (data['deleted_counterparty_entry_id'] && !(typeof data['deleted_counterparty_entry_id'] === 'string' || data['deleted_counterparty_entry_id'] instanceof String)) {
97
+ throw new Error("Expected the field `deleted_counterparty_entry_id` to be a primitive type in the JSON string but got " + data['deleted_counterparty_entry_id']);
98
+ }
99
+ return true;
100
+ }
101
+ }]);
102
+ }();
103
+ DeleteCounterpartyEntry200Response.RequiredProperties = ["deleted_counterparty_entry_id"];
104
+
105
+ /**
106
+ * The deleted counterparty entry ID.
107
+ * @member {String} deleted_counterparty_entry_id
108
+ */
109
+ DeleteCounterpartyEntry200Response.prototype['deleted_counterparty_entry_id'] = undefined;
110
+ var _default = exports["default"] = DeleteCounterpartyEntry200Response;