@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
@@ -38,8 +38,8 @@ var PaymentPayoutItemDetail = /*#__PURE__*/function () {
38
38
  * @alias module:model/PaymentPayoutItemDetail
39
39
  * @param payout_item_id {String} The payout item ID generated by Cobo.
40
40
  * @param payout_id {String} The payout ID generated by Cobo.
41
- * @param source_account {String}
42
- * @param amount {String} The payout token_id amount.
41
+ * @param source_account {String} The source account from which the payout was made. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
42
+ * @param amount {String} The amount of the cryptocurrency paid out.
43
43
  * @param status {module:model/PaymentPayoutStatus}
44
44
  */
45
45
  function PaymentPayoutItemDetail(payout_item_id, payout_id, source_account, amount, status) {
@@ -229,7 +229,7 @@ PaymentPayoutItemDetail.prototype['payout_item_id'] = undefined;
229
229
  PaymentPayoutItemDetail.prototype['payout_id'] = undefined;
230
230
 
231
231
  /**
232
- * The token id of the payout.
232
+ * The ID of the cryptocurrency paid out.
233
233
  * @member {String} token_id
234
234
  */
235
235
  PaymentPayoutItemDetail.prototype['token_id'] = undefined;
@@ -241,12 +241,13 @@ PaymentPayoutItemDetail.prototype['token_id'] = undefined;
241
241
  PaymentPayoutItemDetail.prototype['chain_id'] = undefined;
242
242
 
243
243
  /**
244
+ * The source account from which the payout was made. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
244
245
  * @member {String} source_account
245
246
  */
246
247
  PaymentPayoutItemDetail.prototype['source_account'] = undefined;
247
248
 
248
249
  /**
249
- * The payout token_id amount.
250
+ * The amount of the cryptocurrency paid out.
250
251
  * @member {String} amount
251
252
  */
252
253
  PaymentPayoutItemDetail.prototype['amount'] = undefined;
@@ -257,7 +258,7 @@ PaymentPayoutItemDetail.prototype['amount'] = undefined;
257
258
  PaymentPayoutItemDetail.prototype['status'] = undefined;
258
259
 
259
260
  /**
260
- * An array of transactions associated with this payout request. Each transaction represents a separate blockchain operation related to the payout process.
261
+ * An array of transactions associated with this payout item. Each transaction represents a separate blockchain operation related to the payout process.
261
262
  * @member {Array.<module:model/PaymentTransaction>} transactions
262
263
  */
263
264
  PaymentPayoutItemDetail.prototype['transactions'] = undefined;
@@ -275,13 +276,13 @@ PaymentPayoutItemDetail.prototype['created_timestamp'] = undefined;
275
276
  PaymentPayoutItemDetail.prototype['updated_timestamp'] = undefined;
276
277
 
277
278
  /**
278
- * Unique identifier for the pre-approved crypto address, used to reference the address securely in requests.
279
+ * The ID of the crypto address used for crypto payouts.
279
280
  * @member {String} crypto_address_id
280
281
  */
281
282
  PaymentPayoutItemDetail.prototype['crypto_address_id'] = undefined;
282
283
 
283
284
  /**
284
- * The actual blockchain address to which funds were transferred.
285
+ * The actual blockchain address to which funds were transferred for crypto payouts.
285
286
  * @member {String} crypto_address
286
287
  */
287
288
  PaymentPayoutItemDetail.prototype['crypto_address'] = undefined;
@@ -32,9 +32,9 @@ var PaymentPayoutParam = /*#__PURE__*/function () {
32
32
  /**
33
33
  * Constructs a new <code>PaymentPayoutParam</code>.
34
34
  * @alias module:model/PaymentPayoutParam
35
- * @param source_account {String}
36
- * @param token_id {String} Only used in Crypto payout channel. The ID of the cryptocurrency you want to settle. 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`
37
- * @param amount {String} The payout cryptocurrency amount.
35
+ * @param source_account {String} The source account from which the payout will be made. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
36
+ * @param token_id {String} The ID of the cryptocurrency you want to pay out. Specify this field when `payout_channel` is set to `Crypto`. 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`
37
+ * @param amount {String} The amount of the cryptocurrency to pay out.
38
38
  */
39
39
  function PaymentPayoutParam(source_account, token_id, amount) {
40
40
  _classCallCheck(this, PaymentPayoutParam);
@@ -135,30 +135,31 @@ var PaymentPayoutParam = /*#__PURE__*/function () {
135
135
  PaymentPayoutParam.RequiredProperties = ["source_account", "token_id", "amount"];
136
136
 
137
137
  /**
138
+ * The source account from which the payout will be made. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
138
139
  * @member {String} source_account
139
140
  */
140
141
  PaymentPayoutParam.prototype['source_account'] = undefined;
141
142
 
142
143
  /**
143
- * Only used in Crypto payout channel. The ID of the cryptocurrency you want to settle. 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`
144
+ * The ID of the cryptocurrency you want to pay out. Specify this field when `payout_channel` is set to `Crypto`. 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`
144
145
  * @member {String} token_id
145
146
  */
146
147
  PaymentPayoutParam.prototype['token_id'] = undefined;
147
148
 
148
149
  /**
149
- * The payout cryptocurrency amount.
150
+ * The amount of the cryptocurrency to pay out.
150
151
  * @member {String} amount
151
152
  */
152
153
  PaymentPayoutParam.prototype['amount'] = undefined;
153
154
 
154
155
  /**
155
- * Only used in Crypto payout channel. The ID of the pre-approved crypto address used for Crypto settlements. - The value must refer to a valid address that has been pre-configured and approved for the given token.
156
+ * The ID of the crypto address used for crypto payouts. Specify this field when `payout_channel` is set to `Crypto`. Call [List crypto addresses](https://www.cobo.com/payments/en/api-references/payment/list-crypto-addresses) to retrieve registered crypto addresses.
156
157
  * @member {String} crypto_address_id
157
158
  */
158
159
  PaymentPayoutParam.prototype['crypto_address_id'] = undefined;
159
160
 
160
161
  /**
161
- * Only used in Crypto payout channel. The actual blockchain address to which funds will be transferred. If enable destination whitelist, this address must be associated with a destination.
162
+ * The actual blockchain address to which funds will be transferred. Specify this field when `payout_channel` is set to `Crypto`. <Note> If you have enabled the *Use Destinations as Payout Whitelist* toggle in *Destinations*, you can only transfer to registered destinations. For more details, see [Destinations](https://www.cobo.com/payments/en/guides/destinations). </Note>
162
163
  * @member {String} crypto_address
163
164
  */
164
165
  PaymentPayoutParam.prototype['crypto_address'] = undefined;
@@ -40,7 +40,7 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
40
40
  * @alias module:model/PaymentRefundEventData
41
41
  * @implements module:model/WebhookEventDataType
42
42
  * @implements module:model/Refund
43
- * @param data_type {module:model/PaymentRefundEventData.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.
43
+ * @param data_type {module:model/PaymentRefundEventData.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.
44
44
  * @param refund_id {String} The refund order ID.
45
45
  * @param token_id {String} The ID of the cryptocurrency used for refund.
46
46
  * @param chain_id {String} The ID of the blockchain network on which the refund transaction occurs.
@@ -253,7 +253,7 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
253
253
  PaymentRefundEventData.RequiredProperties = ["data_type", "refund_id", "token_id", "chain_id", "amount", "to_address", "status"];
254
254
 
255
255
  /**
256
- * 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.
256
+ * 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.
257
257
  * @member {module:model/PaymentRefundEventData.DataTypeEnum} data_type
258
258
  */
259
259
  PaymentRefundEventData.prototype['data_type'] = undefined;
@@ -365,7 +365,7 @@ PaymentRefundEventData.prototype['commission_fee'] = undefined;
365
365
 
366
366
  // Implement WebhookEventDataType interface:
367
367
  /**
368
- * 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.
368
+ * 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.
369
369
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
370
370
  */
371
371
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -554,6 +554,11 @@ PaymentRefundEventData['DataTypeEnum'] = {
554
554
  * @const
555
555
  */
556
556
  "ComplianceKytScreenings": "ComplianceKytScreenings",
557
+ /**
558
+ * value: "ComplianceKyaScreenings"
559
+ * @const
560
+ */
561
+ "ComplianceKyaScreenings": "ComplianceKyaScreenings",
557
562
  /**
558
563
  * value: "unknown_default_open_api"
559
564
  * @const
@@ -42,7 +42,7 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
42
42
  * @alias module:model/PaymentSettlementEvent
43
43
  * @implements module:model/WebhookEventDataType
44
44
  * @implements module:model/Settlement
45
- * @param data_type {module:model/PaymentSettlementEvent.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.
45
+ * @param data_type {module:model/PaymentSettlementEvent.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.
46
46
  * @param settlement_request_id {String} The settlement request ID generated by Cobo.
47
47
  * @param request_id {String} The request ID provided by you when creating the settlement request.
48
48
  * @param status {module:model/SettleRequestStatus}
@@ -212,7 +212,7 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
212
212
  PaymentSettlementEvent.RequiredProperties = ["data_type", "settlement_request_id", "request_id", "status", "settlements"];
213
213
 
214
214
  /**
215
- * 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.
215
+ * 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.
216
216
  * @member {module:model/PaymentSettlementEvent.DataTypeEnum} data_type
217
217
  */
218
218
  PaymentSettlementEvent.prototype['data_type'] = undefined;
@@ -291,7 +291,7 @@ PaymentSettlementEvent.prototype['bank_account'] = undefined;
291
291
 
292
292
  // Implement WebhookEventDataType interface:
293
293
  /**
294
- * 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.
294
+ * 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.
295
295
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
296
296
  */
297
297
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -452,6 +452,11 @@ PaymentSettlementEvent['DataTypeEnum'] = {
452
452
  * @const
453
453
  */
454
454
  "ComplianceKytScreenings": "ComplianceKytScreenings",
455
+ /**
456
+ * value: "ComplianceKyaScreenings"
457
+ * @const
458
+ */
459
+ "ComplianceKyaScreenings": "ComplianceKyaScreenings",
455
460
  /**
456
461
  * value: "unknown_default_open_api"
457
462
  * @const
@@ -49,7 +49,7 @@ var PaymentTransactionEventData = /*#__PURE__*/function () {
49
49
  * @alias module:model/PaymentTransactionEventData
50
50
  * @implements module:model/WebhookEventDataType
51
51
  * @implements module:model/Transaction
52
- * @param data_type {module:model/PaymentTransactionEventData.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.
52
+ * @param data_type {module:model/PaymentTransactionEventData.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.
53
53
  * @param transaction_id {String} The transaction ID.
54
54
  * @param wallet_id {String} For deposit transactions, this property represents the wallet ID of the transaction destination. For transactions of other types, this property represents the wallet ID of the transaction source.
55
55
  * @param status {module:model/TransactionStatus}
@@ -378,7 +378,7 @@ var PaymentTransactionEventData = /*#__PURE__*/function () {
378
378
  PaymentTransactionEventData.RequiredProperties = ["data_type", "transaction_id", "wallet_id", "status", "source", "destination", "initiator_type", "created_timestamp", "updated_timestamp", "acquiring_type"];
379
379
 
380
380
  /**
381
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `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.
381
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `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.
382
382
  * @member {module:model/PaymentTransactionEventData.DataTypeEnum} data_type
383
383
  */
384
384
  PaymentTransactionEventData.prototype['data_type'] = undefined;
@@ -588,7 +588,7 @@ PaymentTransactionEventData.prototype['custom_payer_id'] = undefined;
588
588
 
589
589
  // Implement WebhookEventDataType interface:
590
590
  /**
591
- * 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.
591
+ * 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.
592
592
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
593
593
  */
594
594
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -833,6 +833,11 @@ PaymentTransactionEventData['DataTypeEnum'] = {
833
833
  * @const
834
834
  */
835
835
  "ComplianceKytScreenings": "ComplianceKytScreenings",
836
+ /**
837
+ * value: "ComplianceKyaScreenings"
838
+ * @const
839
+ */
840
+ "ComplianceKyaScreenings": "ComplianceKyaScreenings",
836
841
  /**
837
842
  * value: "unknown_default_open_api"
838
843
  * @const
@@ -170,7 +170,7 @@ PspBalance.prototype['developer_fee_amount'] = undefined;
170
170
  PspBalance.prototype['settled_amount'] = undefined;
171
171
 
172
172
  /**
173
- * The psp payout amount.
173
+ * This field is reserved for future use.
174
174
  * @member {String} payout_amount
175
175
  */
176
176
  PspBalance.prototype['payout_amount'] = undefined;
@@ -182,19 +182,19 @@ PspBalance.prototype['payout_amount'] = undefined;
182
182
  PspBalance.prototype['refunded_amount'] = undefined;
183
183
 
184
184
  /**
185
- * The total balance of the token available for payout or refund for the developer. `total_balance` = `developer_fee_amount` - `settled_amount` - `refunded_amount` For more information, please refer to [Funds allocation and balances](https://www.cobo.com/payments/en/guides/amounts-and-balances)
185
+ * The total balance of the token available for payout or refund for the developer. For more information, please refer to [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances)
186
186
  * @member {String} total_balance
187
187
  */
188
188
  PspBalance.prototype['total_balance'] = undefined;
189
189
 
190
190
  /**
191
- * The psp available balance.
191
+ * This field has been deprecated.
192
192
  * @member {String} available_balance
193
193
  */
194
194
  PspBalance.prototype['available_balance'] = undefined;
195
195
 
196
196
  /**
197
- * The psp locked balance.
197
+ * This field is reserved for future use.
198
198
  * @member {String} locked_balance
199
199
  */
200
200
  PspBalance.prototype['locked_balance'] = undefined;
@@ -155,7 +155,7 @@ RefundLinkBusinessInfo.prototype['refund_source'] = undefined;
155
155
  RefundLinkBusinessInfo.prototype['merchant_id'] = undefined;
156
156
 
157
157
  /**
158
- * The developer fee amount to charge the merchant, denominated in the cryptocurrency of the original payment transaction. This field is only valid when `refund_source` is `Merchant`. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/payments/en/guides/amounts-and-balances). Must be: - A positive integer with up to two decimal places. - Less than the refund amount
158
+ * The developer fee amount to charge the merchant, denominated in the cryptocurrency of the original payment transaction. This field is only valid when `refund_source` is `Merchant`. For more information, please refer to [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). Must be: - A positive integer with up to two decimal places. - Less than the refund amount
159
159
  * @member {String} fee_amount
160
160
  */
161
161
  RefundLinkBusinessInfo.prototype['fee_amount'] = undefined;
@@ -0,0 +1,209 @@
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 _ReportStatus = _interopRequireDefault(require("./ReportStatus"));
10
+ var _ReportType = _interopRequireDefault(require("./ReportType"));
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 Report model module.
32
+ * @module model/Report
33
+ */
34
+ var Report = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>Report</code>.
37
+ * @alias module:model/Report
38
+ * @param report_id {String} The report ID generated by Cobo.
39
+ * @param report_types {Array.<module:model/ReportType>} The types of the report.
40
+ * @param start_time {Number} The start time of the report. Unix timestamp measured in seconds.
41
+ * @param end_time {Number} The end time of the report. Unix timestamp measured in seconds.
42
+ * @param created_timestamp {Number} The created time of the report. Unix timestamp measured in seconds.
43
+ * @param report_export_format {module:model/ReportExportFormat}
44
+ * @param report_status {module:model/ReportStatus}
45
+ * @param initiator {String} The initiator of this report. Usually the API key used to generate the report.
46
+ */
47
+ function Report(report_id, report_types, start_time, end_time, created_timestamp, report_export_format, report_status, initiator) {
48
+ _classCallCheck(this, Report);
49
+ Report.initialize(this, report_id, report_types, start_time, end_time, created_timestamp, report_export_format, report_status, initiator);
50
+ }
51
+
52
+ /**
53
+ * Initializes the fields of this object.
54
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
55
+ * Only for internal use.
56
+ */
57
+ return _createClass(Report, null, [{
58
+ key: "initialize",
59
+ value: function initialize(obj, report_id, report_types, start_time, end_time, created_timestamp, report_export_format, report_status, initiator) {
60
+ obj['report_id'] = report_id;
61
+ obj['report_types'] = report_types;
62
+ obj['start_time'] = start_time;
63
+ obj['end_time'] = end_time;
64
+ obj['created_timestamp'] = created_timestamp;
65
+ obj['report_export_format'] = report_export_format;
66
+ obj['report_status'] = report_status;
67
+ obj['initiator'] = initiator;
68
+ }
69
+
70
+ /**
71
+ * Constructs a <code>Report</code> from a plain JavaScript object, optionally creating a new instance.
72
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
73
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
74
+ * @param {module:model/Report} obj Optional instance to populate.
75
+ * @return {module:model/Report} The populated <code>Report</code> instance.
76
+ */
77
+ }, {
78
+ key: "constructFromObject",
79
+ value: function constructFromObject(data, obj) {
80
+ if (data) {
81
+ obj = obj || new Report();
82
+ if (data.hasOwnProperty('report_id')) {
83
+ obj['report_id'] = _ApiClient["default"].convertToType(data['report_id'], 'String');
84
+ }
85
+ if (data.hasOwnProperty('report_types')) {
86
+ obj['report_types'] = _ApiClient["default"].convertToType(data['report_types'], [_ReportType["default"]]);
87
+ }
88
+ if (data.hasOwnProperty('start_time')) {
89
+ obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'Number');
90
+ }
91
+ if (data.hasOwnProperty('end_time')) {
92
+ obj['end_time'] = _ApiClient["default"].convertToType(data['end_time'], 'Number');
93
+ }
94
+ if (data.hasOwnProperty('created_timestamp')) {
95
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
96
+ }
97
+ if (data.hasOwnProperty('report_url')) {
98
+ obj['report_url'] = _ApiClient["default"].convertToType(data['report_url'], 'String');
99
+ }
100
+ if (data.hasOwnProperty('report_export_format')) {
101
+ obj['report_export_format'] = _ReportExportFormat["default"].constructFromObject(data['report_export_format']);
102
+ }
103
+ if (data.hasOwnProperty('report_status')) {
104
+ obj['report_status'] = _ReportStatus["default"].constructFromObject(data['report_status']);
105
+ }
106
+ if (data.hasOwnProperty('initiator')) {
107
+ obj['initiator'] = _ApiClient["default"].convertToType(data['initiator'], 'String');
108
+ }
109
+ }
110
+ return obj;
111
+ }
112
+
113
+ /**
114
+ * Validates the JSON data with respect to <code>Report</code>.
115
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
116
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Report</code>.
117
+ */
118
+ }, {
119
+ key: "validateJSON",
120
+ value: function validateJSON(data) {
121
+ // check to make sure all required properties are present in the JSON string
122
+ var _iterator = _createForOfIteratorHelper(Report.RequiredProperties),
123
+ _step;
124
+ try {
125
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
126
+ var property = _step.value;
127
+ if (!data.hasOwnProperty(property)) {
128
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
129
+ }
130
+ }
131
+ // ensure the json data is a string
132
+ } catch (err) {
133
+ _iterator.e(err);
134
+ } finally {
135
+ _iterator.f();
136
+ }
137
+ if (data['report_id'] && !(typeof data['report_id'] === 'string' || data['report_id'] instanceof String)) {
138
+ throw new Error("Expected the field `report_id` to be a primitive type in the JSON string but got " + data['report_id']);
139
+ }
140
+ // ensure the json data is an array
141
+ if (!Array.isArray(data['report_types'])) {
142
+ throw new Error("Expected the field `report_types` to be an array in the JSON data but got " + data['report_types']);
143
+ }
144
+ // ensure the json data is a string
145
+ if (data['report_url'] && !(typeof data['report_url'] === 'string' || data['report_url'] instanceof String)) {
146
+ throw new Error("Expected the field `report_url` to be a primitive type in the JSON string but got " + data['report_url']);
147
+ }
148
+ // ensure the json data is a string
149
+ if (data['initiator'] && !(typeof data['initiator'] === 'string' || data['initiator'] instanceof String)) {
150
+ throw new Error("Expected the field `initiator` to be a primitive type in the JSON string but got " + data['initiator']);
151
+ }
152
+ return true;
153
+ }
154
+ }]);
155
+ }();
156
+ Report.RequiredProperties = ["report_id", "report_types", "start_time", "end_time", "created_timestamp", "report_export_format", "report_status", "initiator"];
157
+
158
+ /**
159
+ * The report ID generated by Cobo.
160
+ * @member {String} report_id
161
+ */
162
+ Report.prototype['report_id'] = undefined;
163
+
164
+ /**
165
+ * The types of the report.
166
+ * @member {Array.<module:model/ReportType>} report_types
167
+ */
168
+ Report.prototype['report_types'] = undefined;
169
+
170
+ /**
171
+ * The start time of the report. Unix timestamp measured in seconds.
172
+ * @member {Number} start_time
173
+ */
174
+ Report.prototype['start_time'] = undefined;
175
+
176
+ /**
177
+ * The end time of the report. Unix timestamp measured in seconds.
178
+ * @member {Number} end_time
179
+ */
180
+ Report.prototype['end_time'] = undefined;
181
+
182
+ /**
183
+ * The created time of the report. Unix timestamp measured in seconds.
184
+ * @member {Number} created_timestamp
185
+ */
186
+ Report.prototype['created_timestamp'] = undefined;
187
+
188
+ /**
189
+ * The URL of the report.
190
+ * @member {String} report_url
191
+ */
192
+ Report.prototype['report_url'] = undefined;
193
+
194
+ /**
195
+ * @member {module:model/ReportExportFormat} report_export_format
196
+ */
197
+ Report.prototype['report_export_format'] = undefined;
198
+
199
+ /**
200
+ * @member {module:model/ReportStatus} report_status
201
+ */
202
+ Report.prototype['report_status'] = undefined;
203
+
204
+ /**
205
+ * The initiator of this report. Usually the API key used to generate the report.
206
+ * @member {String} initiator
207
+ */
208
+ Report.prototype['initiator'] = undefined;
209
+ var _default = exports["default"] = Report;
@@ -0,0 +1,66 @@
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ 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); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class ReportExportFormat.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var ReportExportFormat = exports["default"] = /*#__PURE__*/function () {
31
+ function ReportExportFormat() {
32
+ _classCallCheck(this, ReportExportFormat);
33
+ /**
34
+ * value: "CSV"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "CSV", "CSV");
38
+ /**
39
+ * value: "XLSX"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "XLSX", "XLSX");
43
+ /**
44
+ * value: "ZIP"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "ZIP", "ZIP");
48
+ /**
49
+ * value: "unknown_default_open_api"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
53
+ }
54
+ return _createClass(ReportExportFormat, null, [{
55
+ key: "constructFromObject",
56
+ value:
57
+ /**
58
+ * Returns a <code>ReportExportFormat</code> enum value from a Javascript object name.
59
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
60
+ * @return {module:model/ReportExportFormat} The enum <code>ReportExportFormat</code> value.
61
+ */
62
+ function constructFromObject(object) {
63
+ return object;
64
+ }
65
+ }]);
66
+ }();