@cobo/cobo-waas2 1.18.0 → 1.19.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 (283) hide show
  1. package/README.md +78 -4
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/OAuthApi.js +2 -2
  4. package/dist/api/TransactionsApi.js +0 -92
  5. package/dist/api/WalletsApi.js +50 -0
  6. package/dist/index.js +518 -7
  7. package/dist/model/AddressesEventData.js +13 -8
  8. package/dist/model/ApprovalDetail.js +160 -0
  9. package/dist/model/ApprovalResult.js +66 -0
  10. package/dist/model/ApprovalShowInfo.js +140 -0
  11. package/dist/model/ApprovalTemplate.js +114 -0
  12. package/dist/model/ApprovalTransactionResult.js +66 -0
  13. package/dist/model/ApprovalUserDetail.js +196 -0
  14. package/dist/model/AutoFuelType.js +5 -0
  15. package/dist/model/BalanceUpdateInfoEventData.js +13 -8
  16. package/dist/model/ChainsEventData.js +13 -8
  17. package/dist/model/CreatePaymentOrderRequest.js +7 -6
  18. package/dist/model/CreateSettlement.js +1 -2
  19. package/dist/model/CustodialWeb3TransferSource.js +2 -2
  20. package/dist/model/EstimatedEvmEip1559Fee.js +2 -2
  21. package/dist/model/EstimatedEvmLegacyFee.js +2 -2
  22. package/dist/model/EstimatedFILFee.js +2 -2
  23. package/dist/model/EstimatedFILFeeSlow.js +12 -12
  24. package/dist/model/EstimatedFee.js +1 -1
  25. package/dist/model/EstimatedFixedFee.js +2 -2
  26. package/dist/model/EstimatedSOLFee.js +2 -2
  27. package/dist/model/EstimatedSOLFeeSlow.js +11 -11
  28. package/dist/model/EstimatedUtxoFee.js +2 -2
  29. package/dist/model/EvmEip1559FeeBasePrice.js +0 -1
  30. package/dist/model/EvmEip1559FeeRate.js +2 -2
  31. package/dist/model/EvmLegacyFeeBasePrice.js +0 -1
  32. package/dist/model/EvmLegacyFeeRate.js +2 -2
  33. package/dist/model/FILBase.js +1 -1
  34. package/dist/model/FILPrice.js +3 -4
  35. package/dist/model/FeeRate.js +1 -1
  36. package/dist/model/FixedFeeRate.js +2 -2
  37. package/dist/model/GetMaxTransferableValueWithFeeModelRequest.js +156 -0
  38. package/dist/model/MPCVaultEventData.js +13 -8
  39. package/dist/model/MaxFeeAmount.js +0 -1
  40. package/dist/model/MaxTransferableValue.js +2 -2
  41. package/dist/model/MpcTransferSource.js +2 -2
  42. package/dist/model/PaymentOrderEventData.js +13 -8
  43. package/dist/model/PaymentRefundEventData.js +13 -8
  44. package/dist/model/PaymentSettlementEvent.js +13 -8
  45. package/dist/model/{ListTransactionApprovalDetails200Response.js → RoleDetail.js} +46 -27
  46. package/dist/model/SOLBase.js +2 -2
  47. package/dist/model/SOLComputeUnit.js +2 -3
  48. package/dist/model/SuspendedTokenEventData.js +225 -0
  49. package/dist/model/SuspendedTokenOperationType.js +61 -0
  50. package/dist/model/SwapActivity.js +29 -0
  51. package/dist/model/SwapActivityDetail.js +38 -0
  52. package/dist/model/TSSRequestWebhookEventData.js +13 -8
  53. package/dist/model/TokenListingEventData.js +13 -8
  54. package/dist/model/TokenizationActivityInfo.js +224 -0
  55. package/dist/model/TokenizationActivityStatus.js +66 -0
  56. package/dist/model/TokenizationAddressPermission.js +135 -0
  57. package/dist/model/TokenizationAllowlistActivationParams.js +124 -0
  58. package/dist/model/TokenizationAllowlistActivationRequest.js +180 -0
  59. package/dist/model/TokenizationAllowlistAddressNote.js +132 -0
  60. package/dist/model/TokenizationAppInitiator.js +87 -0
  61. package/dist/model/TokenizationBlocklistAddressNote.js +132 -0
  62. package/dist/model/TokenizationBurnEstimateFeeParams.js +187 -0
  63. package/dist/model/TokenizationBurnTokenParams.js +146 -0
  64. package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +125 -0
  65. package/dist/model/TokenizationBurnTokenRequest.js +202 -0
  66. package/dist/model/TokenizationContractCallEstimateFeeParams.js +167 -0
  67. package/dist/model/TokenizationContractCallParams.js +107 -0
  68. package/dist/model/TokenizationContractCallParamsData.js +164 -0
  69. package/dist/model/TokenizationContractCallRequest.js +182 -0
  70. package/dist/model/TokenizationContractCallType.js +56 -0
  71. package/dist/model/TokenizationERC20TokenParams.js +173 -0
  72. package/dist/model/TokenizationEstimateFeeRequest.js +113 -0
  73. package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +439 -0
  74. package/dist/model/TokenizationEvmContractCallParams.js +133 -0
  75. package/dist/model/TokenizationHoldingInfo.js +166 -0
  76. package/dist/model/TokenizationIssueEstimateFeeParams.js +176 -0
  77. package/dist/model/TokenizationIssueTokenParams.js +146 -0
  78. package/dist/model/TokenizationIssueTokenParamsTokenParams.js +183 -0
  79. package/dist/model/TokenizationIssuedTokenRequest.js +206 -0
  80. package/dist/model/TokenizationListActivitiesResponse.js +146 -0
  81. package/dist/model/TokenizationListEnabledChainsResponse.js +128 -0
  82. package/dist/model/TokenizationListHoldingsResponse.js +146 -0
  83. package/dist/model/TokenizationListTokenInfoResponse.js +146 -0
  84. package/dist/model/TokenizationMintEstimateFeeParams.js +187 -0
  85. package/dist/model/TokenizationMintTokenParams.js +146 -0
  86. package/dist/model/TokenizationMintTokenParamsMintsInner.js +125 -0
  87. package/dist/model/TokenizationMintTokenRequest.js +202 -0
  88. package/dist/model/TokenizationMpcOperationSource.js +136 -0
  89. package/dist/model/TokenizationOperationResponse.js +110 -0
  90. package/dist/model/TokenizationOperationSourceType.js +61 -0
  91. package/dist/model/TokenizationOperationType.js +96 -0
  92. package/dist/model/TokenizationPauseEstimateFeeParams.js +149 -0
  93. package/dist/model/TokenizationPauseTokenParams.js +113 -0
  94. package/dist/model/TokenizationPauseTokenRequest.js +164 -0
  95. package/dist/model/TokenizationStatus.js +71 -0
  96. package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +165 -0
  97. package/dist/model/TokenizationTokenDetailInfo.js +309 -0
  98. package/dist/model/TokenizationTokenInfo.js +223 -0
  99. package/dist/model/TokenizationTokenOperationSource.js +192 -0
  100. package/dist/model/TokenizationTokenPermission.js +147 -0
  101. package/dist/model/TokenizationTokenPermissionParams.js +166 -0
  102. package/dist/model/TokenizationTokenPermissionType.js +86 -0
  103. package/dist/model/TokenizationTokenPermissionsResponse.js +139 -0
  104. package/dist/model/TokenizationTokenStandard.js +56 -0
  105. package/dist/model/TokenizationUnpauseEstimateFeeParams.js +149 -0
  106. package/dist/model/TokenizationUnpauseTokenParams.js +113 -0
  107. package/dist/model/TokenizationUnpauseTokenRequest.js +164 -0
  108. package/dist/model/TokenizationUpdateAddressAction.js +61 -0
  109. package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +202 -0
  110. package/dist/model/TokenizationUpdateAllowlistAddressesParams.js +157 -0
  111. package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +123 -0
  112. package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +217 -0
  113. package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +202 -0
  114. package/dist/model/TokenizationUpdateBlocklistAddressesParams.js +157 -0
  115. package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +123 -0
  116. package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +217 -0
  117. package/dist/model/TokenizationWeb3OperationSource.js +136 -0
  118. package/dist/model/TokensEventData.js +13 -8
  119. package/dist/model/TopUpAddress.js +2 -2
  120. package/dist/model/TransactionEvmEip1559Fee.js +2 -2
  121. package/dist/model/TransactionEvmLegacyFee.js +2 -2
  122. package/dist/model/TransactionFILFee.js +11 -11
  123. package/dist/model/TransactionFee.js +10 -10
  124. package/dist/model/TransactionFixedFee.js +2 -2
  125. package/dist/model/TransactionRbfSource.js +1 -1
  126. package/dist/model/TransactionRequestEvmEip1559Fee.js +2 -2
  127. package/dist/model/TransactionRequestEvmLegacyFee.js +2 -2
  128. package/dist/model/TransactionRequestFILFee.js +11 -11
  129. package/dist/model/TransactionRequestFee.js +6 -6
  130. package/dist/model/TransactionRequestFixedFee.js +2 -2
  131. package/dist/model/TransactionRequestSOLFee.js +9 -9
  132. package/dist/model/TransactionRequestUtxoFee.js +2 -2
  133. package/dist/model/TransactionSOLFee.js +11 -11
  134. package/dist/model/TransactionSubStatus.js +5 -0
  135. package/dist/model/TransactionUtxoFee.js +2 -2
  136. package/dist/model/TransactionWebhookEventData.js +13 -8
  137. package/dist/model/UtxoFeeBasePrice.js +0 -1
  138. package/dist/model/UtxoFeeRate.js +2 -2
  139. package/dist/model/WalletInfoEventData.js +13 -8
  140. package/dist/model/WebhookEvent.js +2 -2
  141. package/dist/model/WebhookEventData.js +49 -9
  142. package/dist/model/WebhookEventDataType.js +12 -7
  143. package/dist/model/WebhookEventLog.js +2 -2
  144. package/dist/model/WebhookEventType.js +20 -0
  145. package/docs/AddressesEventData.md +5 -3
  146. package/docs/ApprovalDetail.md +14 -0
  147. package/docs/ApprovalResult.md +14 -0
  148. package/docs/ApprovalShowInfo.md +13 -0
  149. package/docs/ApprovalTemplate.md +11 -0
  150. package/docs/ApprovalTransactionResult.md +14 -0
  151. package/docs/ApprovalUserDetail.md +18 -0
  152. package/docs/AutoFuelType.md +2 -0
  153. package/docs/BalanceUpdateInfoEventData.md +5 -3
  154. package/docs/ChainsEventData.md +5 -3
  155. package/docs/CreatePaymentOrderRequest.md +4 -4
  156. package/docs/CreateSettlement.md +2 -2
  157. package/docs/CustodialWeb3TransferSource.md +1 -1
  158. package/docs/EstimatedEvmEip1559Fee.md +1 -1
  159. package/docs/EstimatedEvmLegacyFee.md +1 -1
  160. package/docs/EstimatedFILFee.md +1 -1
  161. package/docs/EstimatedFILFeeSlow.md +4 -4
  162. package/docs/EstimatedFee.md +1 -1
  163. package/docs/EstimatedFixedFee.md +1 -1
  164. package/docs/EstimatedSOLFee.md +1 -1
  165. package/docs/EstimatedSOLFeeSlow.md +4 -4
  166. package/docs/EstimatedUtxoFee.md +1 -1
  167. package/docs/EvmEip1559FeeRate.md +1 -1
  168. package/docs/EvmLegacyFeeRate.md +1 -1
  169. package/docs/FILBase.md +1 -1
  170. package/docs/FILPrice.md +3 -3
  171. package/docs/FeeRate.md +1 -1
  172. package/docs/FixedFeeRate.md +1 -1
  173. package/docs/GetMaxTransferableValueWithFeeModelRequest.md +12 -0
  174. package/docs/MPCVaultEventData.md +5 -3
  175. package/docs/MaxTransferableValue.md +1 -1
  176. package/docs/MpcTransferSource.md +1 -1
  177. package/docs/OAuthApi.md +1 -1
  178. package/docs/PaymentOrderEventData.md +5 -3
  179. package/docs/PaymentRefundEventData.md +5 -3
  180. package/docs/PaymentSettlementEvent.md +5 -3
  181. package/docs/RoleDetail.md +11 -0
  182. package/docs/SOLBase.md +2 -2
  183. package/docs/SOLComputeUnit.md +2 -2
  184. package/docs/SuspendedTokenEventData.md +46 -0
  185. package/docs/SuspendedTokenOperationType.md +12 -0
  186. package/docs/SwapActivity.md +2 -0
  187. package/docs/SwapActivityDetail.md +2 -0
  188. package/docs/TSSRequestWebhookEventData.md +5 -3
  189. package/docs/TokenListingEventData.md +5 -3
  190. package/docs/TokenizationActivityInfo.md +18 -0
  191. package/docs/TokenizationActivityStatus.md +14 -0
  192. package/docs/TokenizationAddressPermission.md +11 -0
  193. package/docs/TokenizationAllowlistActivationParams.md +10 -0
  194. package/docs/TokenizationAllowlistActivationRequest.md +12 -0
  195. package/docs/TokenizationAllowlistAddressNote.md +11 -0
  196. package/docs/TokenizationAppInitiator.md +9 -0
  197. package/docs/TokenizationBlocklistAddressNote.md +11 -0
  198. package/docs/TokenizationBurnEstimateFeeParams.md +12 -0
  199. package/docs/TokenizationBurnTokenParams.md +10 -0
  200. package/docs/TokenizationBurnTokenParamsBurnsInner.md +10 -0
  201. package/docs/TokenizationBurnTokenRequest.md +12 -0
  202. package/docs/TokenizationContractCallEstimateFeeParams.md +12 -0
  203. package/docs/TokenizationContractCallParams.md +10 -0
  204. package/docs/TokenizationContractCallParamsData.md +11 -0
  205. package/docs/TokenizationContractCallRequest.md +12 -0
  206. package/docs/TokenizationContractCallType.md +10 -0
  207. package/docs/TokenizationERC20TokenParams.md +14 -0
  208. package/docs/TokenizationEstimateFeeRequest.md +9 -0
  209. package/docs/TokenizationEstimateFeeRequestOperationParams.md +19 -0
  210. package/docs/TokenizationEvmContractCallParams.md +11 -0
  211. package/docs/TokenizationHoldingInfo.md +13 -0
  212. package/docs/TokenizationIssueEstimateFeeParams.md +12 -0
  213. package/docs/TokenizationIssueTokenParams.md +11 -0
  214. package/docs/TokenizationIssueTokenParamsTokenParams.md +14 -0
  215. package/docs/TokenizationIssuedTokenRequest.md +13 -0
  216. package/docs/TokenizationListActivitiesResponse.md +10 -0
  217. package/docs/TokenizationListEnabledChainsResponse.md +10 -0
  218. package/docs/TokenizationListHoldingsResponse.md +10 -0
  219. package/docs/TokenizationListTokenInfoResponse.md +10 -0
  220. package/docs/TokenizationMintEstimateFeeParams.md +12 -0
  221. package/docs/TokenizationMintTokenParams.md +10 -0
  222. package/docs/TokenizationMintTokenParamsMintsInner.md +10 -0
  223. package/docs/TokenizationMintTokenRequest.md +12 -0
  224. package/docs/TokenizationMpcOperationSource.md +11 -0
  225. package/docs/TokenizationOperationResponse.md +9 -0
  226. package/docs/TokenizationOperationSourceType.md +12 -0
  227. package/docs/TokenizationOperationType.md +26 -0
  228. package/docs/TokenizationPauseEstimateFeeParams.md +11 -0
  229. package/docs/TokenizationPauseTokenParams.md +9 -0
  230. package/docs/TokenizationPauseTokenRequest.md +11 -0
  231. package/docs/TokenizationStatus.md +16 -0
  232. package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +12 -0
  233. package/docs/TokenizationTokenDetailInfo.md +19 -0
  234. package/docs/TokenizationTokenInfo.md +18 -0
  235. package/docs/TokenizationTokenOperationSource.md +11 -0
  236. package/docs/TokenizationTokenPermission.md +12 -0
  237. package/docs/TokenizationTokenPermissionParams.md +15 -0
  238. package/docs/TokenizationTokenPermissionType.md +22 -0
  239. package/docs/TokenizationTokenPermissionsResponse.md +10 -0
  240. package/docs/TokenizationTokenStandard.md +10 -0
  241. package/docs/TokenizationUnpauseEstimateFeeParams.md +11 -0
  242. package/docs/TokenizationUnpauseTokenParams.md +9 -0
  243. package/docs/TokenizationUnpauseTokenRequest.md +11 -0
  244. package/docs/TokenizationUpdateAddressAction.md +12 -0
  245. package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +13 -0
  246. package/docs/TokenizationUpdateAllowlistAddressesParams.md +11 -0
  247. package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +10 -0
  248. package/docs/TokenizationUpdateAllowlistAddressesRequest.md +13 -0
  249. package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +13 -0
  250. package/docs/TokenizationUpdateBlocklistAddressesParams.md +11 -0
  251. package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +10 -0
  252. package/docs/TokenizationUpdateBlocklistAddressesRequest.md +13 -0
  253. package/docs/TokenizationWeb3OperationSource.md +11 -0
  254. package/docs/TokensEventData.md +5 -3
  255. package/docs/TopUpAddress.md +1 -1
  256. package/docs/TransactionEvmEip1559Fee.md +2 -2
  257. package/docs/TransactionEvmLegacyFee.md +2 -2
  258. package/docs/TransactionFILFee.md +6 -6
  259. package/docs/TransactionFee.md +10 -10
  260. package/docs/TransactionFixedFee.md +2 -2
  261. package/docs/TransactionRbfSource.md +1 -1
  262. package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
  263. package/docs/TransactionRequestEvmLegacyFee.md +1 -1
  264. package/docs/TransactionRequestFILFee.md +4 -4
  265. package/docs/TransactionRequestFee.md +6 -6
  266. package/docs/TransactionRequestFixedFee.md +1 -1
  267. package/docs/TransactionRequestSOLFee.md +3 -3
  268. package/docs/TransactionRequestUtxoFee.md +1 -1
  269. package/docs/TransactionSOLFee.md +6 -6
  270. package/docs/TransactionSubStatus.md +2 -0
  271. package/docs/TransactionUtxoFee.md +2 -2
  272. package/docs/TransactionWebhookEventData.md +5 -3
  273. package/docs/TransactionsApi.md +0 -106
  274. package/docs/UtxoFeeRate.md +1 -1
  275. package/docs/WalletInfoEventData.md +5 -3
  276. package/docs/WalletsApi.md +55 -0
  277. package/docs/WebhookEvent.md +1 -1
  278. package/docs/WebhookEventData.md +7 -3
  279. package/docs/WebhookEventDataType.md +5 -3
  280. package/docs/WebhookEventLog.md +1 -1
  281. package/docs/WebhookEventType.md +8 -0
  282. package/package.json +1 -1
  283. package/docs/ListTransactionApprovalDetails200Response.md +0 -9
@@ -38,7 +38,7 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
38
38
  * @alias module:model/PaymentSettlementEvent
39
39
  * @implements module:model/WebhookEventDataType
40
40
  * @implements module:model/Settlement
41
- * @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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
41
+ * @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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
42
42
  * @param settlement_request_id {String} The settlement request ID generated by Cobo.
43
43
  * @param request_id {String} The request ID provided by you when creating the settlement request.
44
44
  * @param status {module:model/SettleRequestStatus}
@@ -175,7 +175,7 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
175
175
  PaymentSettlementEvent.RequiredProperties = ["data_type", "settlement_request_id", "request_id", "status", "settlements"];
176
176
 
177
177
  /**
178
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
178
+ * 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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
179
179
  * @member {module:model/PaymentSettlementEvent.DataTypeEnum} data_type
180
180
  */
181
181
  PaymentSettlementEvent.prototype['data_type'] = undefined;
@@ -222,7 +222,7 @@ PaymentSettlementEvent.prototype['initiator'] = undefined;
222
222
 
223
223
  // Implement WebhookEventDataType interface:
224
224
  /**
225
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
225
+ * 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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
226
226
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
227
227
  */
228
228
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -307,11 +307,6 @@ PaymentSettlementEvent['DataTypeEnum'] = {
307
307
  * @const
308
308
  */
309
309
  "TokenListing": "TokenListing",
310
- /**
311
- * value: "BalanceUpdateInfo"
312
- * @const
313
- */
314
- "BalanceUpdateInfo": "BalanceUpdateInfo",
315
310
  /**
316
311
  * value: "PaymentOrder"
317
312
  * @const
@@ -327,6 +322,16 @@ PaymentSettlementEvent['DataTypeEnum'] = {
327
322
  * @const
328
323
  */
329
324
  "PaymentSettlement": "PaymentSettlement",
325
+ /**
326
+ * value: "BalanceUpdateInfo"
327
+ * @const
328
+ */
329
+ "BalanceUpdateInfo": "BalanceUpdateInfo",
330
+ /**
331
+ * value: "SuspendedToken"
332
+ * @const
333
+ */
334
+ "SuspendedToken": "SuspendedToken",
330
335
  /**
331
336
  * value: "unknown_default_open_api"
332
337
  * @const
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _TransactionApprovalDetail = _interopRequireDefault(require("./TransactionApprovalDetail"));
8
+ var _ApprovalTransactionResult = _interopRequireDefault(require("./ApprovalTransactionResult"));
9
+ var _ApprovalUserDetail = _interopRequireDefault(require("./ApprovalUserDetail"));
9
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
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); }
11
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; } } }; }
@@ -26,17 +27,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
27
  *
27
28
  */
28
29
  /**
29
- * The ListTransactionApprovalDetails200Response model module.
30
- * @module model/ListTransactionApprovalDetails200Response
30
+ * The RoleDetail model module.
31
+ * @module model/RoleDetail
31
32
  */
32
- var ListTransactionApprovalDetails200Response = /*#__PURE__*/function () {
33
+ var RoleDetail = /*#__PURE__*/function () {
33
34
  /**
34
- * Constructs a new <code>ListTransactionApprovalDetails200Response</code>.
35
- * @alias module:model/ListTransactionApprovalDetails200Response
35
+ * Constructs a new <code>RoleDetail</code>.
36
+ * Transaction approval details response schema.
37
+ * @alias module:model/RoleDetail
36
38
  */
37
- function ListTransactionApprovalDetails200Response() {
38
- _classCallCheck(this, ListTransactionApprovalDetails200Response);
39
- ListTransactionApprovalDetails200Response.initialize(this);
39
+ function RoleDetail() {
40
+ _classCallCheck(this, RoleDetail);
41
+ RoleDetail.initialize(this);
40
42
  }
41
43
 
42
44
  /**
@@ -44,50 +46,56 @@ var ListTransactionApprovalDetails200Response = /*#__PURE__*/function () {
44
46
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
47
  * Only for internal use.
46
48
  */
47
- return _createClass(ListTransactionApprovalDetails200Response, null, [{
49
+ return _createClass(RoleDetail, null, [{
48
50
  key: "initialize",
49
51
  value: function initialize(obj) {}
50
52
 
51
53
  /**
52
- * Constructs a <code>ListTransactionApprovalDetails200Response</code> from a plain JavaScript object, optionally creating a new instance.
54
+ * Constructs a <code>RoleDetail</code> from a plain JavaScript object, optionally creating a new instance.
53
55
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
54
56
  * @param {Object} data The plain JavaScript object bearing properties of interest.
55
- * @param {module:model/ListTransactionApprovalDetails200Response} obj Optional instance to populate.
56
- * @return {module:model/ListTransactionApprovalDetails200Response} The populated <code>ListTransactionApprovalDetails200Response</code> instance.
57
+ * @param {module:model/RoleDetail} obj Optional instance to populate.
58
+ * @return {module:model/RoleDetail} The populated <code>RoleDetail</code> instance.
57
59
  */
58
60
  }, {
59
61
  key: "constructFromObject",
60
62
  value: function constructFromObject(data, obj) {
61
63
  if (data) {
62
- obj = obj || new ListTransactionApprovalDetails200Response();
63
- if (data.hasOwnProperty('data')) {
64
- obj['data'] = _ApiClient["default"].convertToType(data['data'], [_TransactionApprovalDetail["default"]]);
64
+ obj = obj || new RoleDetail();
65
+ if (data.hasOwnProperty('result')) {
66
+ obj['result'] = _ApprovalTransactionResult["default"].constructFromObject(data['result']);
67
+ }
68
+ if (data.hasOwnProperty('threshold')) {
69
+ obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number');
70
+ }
71
+ if (data.hasOwnProperty('user_details')) {
72
+ obj['user_details'] = _ApiClient["default"].convertToType(data['user_details'], [_ApprovalUserDetail["default"]]);
65
73
  }
66
74
  }
67
75
  return obj;
68
76
  }
69
77
 
70
78
  /**
71
- * Validates the JSON data with respect to <code>ListTransactionApprovalDetails200Response</code>.
79
+ * Validates the JSON data with respect to <code>RoleDetail</code>.
72
80
  * @param {Object} data The plain JavaScript object bearing properties of interest.
73
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListTransactionApprovalDetails200Response</code>.
81
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>RoleDetail</code>.
74
82
  */
75
83
  }, {
76
84
  key: "validateJSON",
77
85
  value: function validateJSON(data) {
78
- if (data['data']) {
86
+ if (data['user_details']) {
79
87
  // data not null
80
88
  // ensure the json data is an array
81
- if (!Array.isArray(data['data'])) {
82
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
89
+ if (!Array.isArray(data['user_details'])) {
90
+ throw new Error("Expected the field `user_details` to be an array in the JSON data but got " + data['user_details']);
83
91
  }
84
- // validate the optional field `data` (array)
85
- var _iterator = _createForOfIteratorHelper(data['data']),
92
+ // validate the optional field `user_details` (array)
93
+ var _iterator = _createForOfIteratorHelper(data['user_details']),
86
94
  _step;
87
95
  try {
88
96
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
89
97
  var item = _step.value;
90
- _TransactionApprovalDetail["default"].validateJSON(item);
98
+ _ApprovalUserDetail["default"].validateJSON(item);
91
99
  }
92
100
  } catch (err) {
93
101
  _iterator.e(err);
@@ -101,7 +109,18 @@ var ListTransactionApprovalDetails200Response = /*#__PURE__*/function () {
101
109
  }]);
102
110
  }();
103
111
  /**
104
- * @member {Array.<module:model/TransactionApprovalDetail>} data
112
+ * @member {module:model/ApprovalTransactionResult} result
113
+ */
114
+ RoleDetail.prototype['result'] = undefined;
115
+
116
+ /**
117
+ * The threshold for the transaction approval.
118
+ * @member {Number} threshold
119
+ */
120
+ RoleDetail.prototype['threshold'] = undefined;
121
+
122
+ /**
123
+ * @member {Array.<module:model/ApprovalUserDetail>} user_details
105
124
  */
106
- ListTransactionApprovalDetails200Response.prototype['data'] = undefined;
107
- var _default = exports["default"] = ListTransactionApprovalDetails200Response;
125
+ RoleDetail.prototype['user_details'] = undefined;
126
+ var _default = exports["default"] = RoleDetail;
@@ -88,13 +88,13 @@ var SOLBase = /*#__PURE__*/function () {
88
88
  }]);
89
89
  }();
90
90
  /**
91
- * The fundamental fee required for each transaction. It is charged to prevent spam transactions and network congestion, ensuring that only meaningful transactions consume network resources.
91
+ * A fixed fee charged per signature. The default is 5,000 lamports per signature.
92
92
  * @member {String} base_fee
93
93
  */
94
94
  SOLBase.prototype['base_fee'] = undefined;
95
95
 
96
96
  /**
97
- * The fee charged as rent for maintaining the state of accounts on the blockchain. This rent ensures accounts are stored on-chain over the long term and that there's sufficient balance to sustain the account state.
97
+ * The rent fee charged by the network to store non–rent-exempt accounts on-chain. It is deducted periodically until the account maintains the minimum balance required for rent exemption.
98
98
  * @member {String} rent_amount
99
99
  */
100
100
  SOLBase.prototype['rent_amount'] = undefined;
@@ -28,7 +28,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  var SOLComputeUnit = /*#__PURE__*/function () {
29
29
  /**
30
30
  * Constructs a new <code>SOLComputeUnit</code>.
31
- * The transaction gas price based on the SOL fee model.
32
31
  * @alias module:model/SOLComputeUnit
33
32
  */
34
33
  function SOLComputeUnit() {
@@ -88,13 +87,13 @@ var SOLComputeUnit = /*#__PURE__*/function () {
88
87
  }]);
89
88
  }();
90
89
  /**
91
- * The cost per compute unit. Transactions consume computational resources measured in compute units, and this price helps determine the cost of executing transactions, especially complex ones involving smart contracts.
90
+ * The price paid per compute unit. This value determines the priority fee for the transaction, allowing you to increase inclusion probability in congested conditions.
92
91
  * @member {String} compute_unit_price
93
92
  */
94
93
  SOLComputeUnit.prototype['compute_unit_price'] = undefined;
95
94
 
96
95
  /**
97
- * The maximum number of compute units allowed for a transaction. This limits the resources any single transaction can consume, preventing excessive resource usage that could impact network performance negatively.
96
+ * The maximum number of compute units your transaction is allowed to consume. It sets an upper bound on computational resource usage to prevent overload.
98
97
  * @member {String} compute_unit_limit
99
98
  */
100
99
  SOLComputeUnit.prototype['compute_unit_limit'] = undefined;
@@ -0,0 +1,225 @@
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 _SuspendedTokenOperationType = _interopRequireDefault(require("./SuspendedTokenOperationType"));
9
+ var _WebhookEventDataType = _interopRequireDefault(require("./WebhookEventDataType"));
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 SuspendedTokenEventData model module.
31
+ * @module model/SuspendedTokenEventData
32
+ */
33
+ var SuspendedTokenEventData = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>SuspendedTokenEventData</code>.
36
+ * @alias module:model/SuspendedTokenEventData
37
+ * @implements module:model/WebhookEventDataType
38
+ * @param data_type {module:model/SuspendedTokenEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
39
+ * @param token_ids {String} A list of token IDs, separated by comma.
40
+ * @param operation_type {module:model/SuspendedTokenOperationType}
41
+ */
42
+ function SuspendedTokenEventData(data_type, token_ids, operation_type) {
43
+ _classCallCheck(this, SuspendedTokenEventData);
44
+ _WebhookEventDataType["default"].initialize(this, data_type);
45
+ SuspendedTokenEventData.initialize(this, data_type, token_ids, operation_type);
46
+ }
47
+
48
+ /**
49
+ * Initializes the fields of this object.
50
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
51
+ * Only for internal use.
52
+ */
53
+ return _createClass(SuspendedTokenEventData, null, [{
54
+ key: "initialize",
55
+ value: function initialize(obj, data_type, token_ids, operation_type) {
56
+ obj['data_type'] = data_type;
57
+ obj['token_ids'] = token_ids;
58
+ obj['operation_type'] = operation_type;
59
+ }
60
+
61
+ /**
62
+ * Constructs a <code>SuspendedTokenEventData</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/SuspendedTokenEventData} obj Optional instance to populate.
66
+ * @return {module:model/SuspendedTokenEventData} The populated <code>SuspendedTokenEventData</code> instance.
67
+ */
68
+ }, {
69
+ key: "constructFromObject",
70
+ value: function constructFromObject(data, obj) {
71
+ if (data) {
72
+ obj = obj || new SuspendedTokenEventData();
73
+ _WebhookEventDataType["default"].constructFromObject(data, obj);
74
+ if (data.hasOwnProperty('data_type')) {
75
+ obj['data_type'] = _ApiClient["default"].convertToType(data['data_type'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('token_ids')) {
78
+ obj['token_ids'] = _ApiClient["default"].convertToType(data['token_ids'], 'String');
79
+ }
80
+ if (data.hasOwnProperty('operation_type')) {
81
+ obj['operation_type'] = _SuspendedTokenOperationType["default"].constructFromObject(data['operation_type']);
82
+ }
83
+ }
84
+ return obj;
85
+ }
86
+
87
+ /**
88
+ * Validates the JSON data with respect to <code>SuspendedTokenEventData</code>.
89
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
90
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SuspendedTokenEventData</code>.
91
+ */
92
+ }, {
93
+ key: "validateJSON",
94
+ value: function validateJSON(data) {
95
+ // check to make sure all required properties are present in the JSON string
96
+ var _iterator = _createForOfIteratorHelper(SuspendedTokenEventData.RequiredProperties),
97
+ _step;
98
+ try {
99
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
100
+ var property = _step.value;
101
+ if (!data.hasOwnProperty(property)) {
102
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
103
+ }
104
+ }
105
+ // ensure the json data is a string
106
+ } catch (err) {
107
+ _iterator.e(err);
108
+ } finally {
109
+ _iterator.f();
110
+ }
111
+ if (data['data_type'] && !(typeof data['data_type'] === 'string' || data['data_type'] instanceof String)) {
112
+ throw new Error("Expected the field `data_type` to be a primitive type in the JSON string but got " + data['data_type']);
113
+ }
114
+ // ensure the json data is a string
115
+ if (data['token_ids'] && !(typeof data['token_ids'] === 'string' || data['token_ids'] instanceof String)) {
116
+ throw new Error("Expected the field `token_ids` to be a primitive type in the JSON string but got " + data['token_ids']);
117
+ }
118
+ return true;
119
+ }
120
+ }]);
121
+ }();
122
+ SuspendedTokenEventData.RequiredProperties = ["data_type", "token_ids", "operation_type"];
123
+
124
+ /**
125
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
126
+ * @member {module:model/SuspendedTokenEventData.DataTypeEnum} data_type
127
+ */
128
+ SuspendedTokenEventData.prototype['data_type'] = undefined;
129
+
130
+ /**
131
+ * A list of token IDs, separated by comma.
132
+ * @member {String} token_ids
133
+ */
134
+ SuspendedTokenEventData.prototype['token_ids'] = undefined;
135
+
136
+ /**
137
+ * @member {module:model/SuspendedTokenOperationType} operation_type
138
+ */
139
+ SuspendedTokenEventData.prototype['operation_type'] = undefined;
140
+
141
+ // Implement WebhookEventDataType interface:
142
+ /**
143
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
144
+ * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
145
+ */
146
+ _WebhookEventDataType["default"].prototype['data_type'] = undefined;
147
+
148
+ /**
149
+ * Allowed values for the <code>data_type</code> property.
150
+ * @enum {String}
151
+ * @readonly
152
+ */
153
+ SuspendedTokenEventData['DataTypeEnum'] = {
154
+ /**
155
+ * value: "Transaction"
156
+ * @const
157
+ */
158
+ "Transaction": "Transaction",
159
+ /**
160
+ * value: "TSSRequest"
161
+ * @const
162
+ */
163
+ "TSSRequest": "TSSRequest",
164
+ /**
165
+ * value: "Addresses"
166
+ * @const
167
+ */
168
+ "Addresses": "Addresses",
169
+ /**
170
+ * value: "WalletInfo"
171
+ * @const
172
+ */
173
+ "WalletInfo": "WalletInfo",
174
+ /**
175
+ * value: "MPCVault"
176
+ * @const
177
+ */
178
+ "MPCVault": "MPCVault",
179
+ /**
180
+ * value: "Chains"
181
+ * @const
182
+ */
183
+ "Chains": "Chains",
184
+ /**
185
+ * value: "Tokens"
186
+ * @const
187
+ */
188
+ "Tokens": "Tokens",
189
+ /**
190
+ * value: "TokenListing"
191
+ * @const
192
+ */
193
+ "TokenListing": "TokenListing",
194
+ /**
195
+ * value: "PaymentOrder"
196
+ * @const
197
+ */
198
+ "PaymentOrder": "PaymentOrder",
199
+ /**
200
+ * value: "PaymentRefund"
201
+ * @const
202
+ */
203
+ "PaymentRefund": "PaymentRefund",
204
+ /**
205
+ * value: "PaymentSettlement"
206
+ * @const
207
+ */
208
+ "PaymentSettlement": "PaymentSettlement",
209
+ /**
210
+ * value: "BalanceUpdateInfo"
211
+ * @const
212
+ */
213
+ "BalanceUpdateInfo": "BalanceUpdateInfo",
214
+ /**
215
+ * value: "SuspendedToken"
216
+ * @const
217
+ */
218
+ "SuspendedToken": "SuspendedToken",
219
+ /**
220
+ * value: "unknown_default_open_api"
221
+ * @const
222
+ */
223
+ "unknown_default_open_api": "unknown_default_open_api"
224
+ };
225
+ var _default = exports["default"] = SuspendedTokenEventData;
@@ -0,0 +1,61 @@
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 SuspendedTokenOperationType.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var SuspendedTokenOperationType = exports["default"] = /*#__PURE__*/function () {
31
+ function SuspendedTokenOperationType() {
32
+ _classCallCheck(this, SuspendedTokenOperationType);
33
+ /**
34
+ * value: "Added"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Added", "Added");
38
+ /**
39
+ * value: "Removed"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Removed", "Removed");
43
+ /**
44
+ * value: "unknown_default_open_api"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
48
+ }
49
+ return _createClass(SuspendedTokenOperationType, null, [{
50
+ key: "constructFromObject",
51
+ value:
52
+ /**
53
+ * Returns a <code>SuspendedTokenOperationType</code> enum value from a Javascript object name.
54
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
55
+ * @return {module:model/SuspendedTokenOperationType} The enum <code>SuspendedTokenOperationType</code> value.
56
+ */
57
+ function constructFromObject(object) {
58
+ return object;
59
+ }
60
+ }]);
61
+ }();
@@ -8,6 +8,7 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _SwapActivityStatus = _interopRequireDefault(require("./SwapActivityStatus"));
9
9
  var _SwapType = _interopRequireDefault(require("./SwapType"));
10
10
  var _TransactionInitiatorType = _interopRequireDefault(require("./TransactionInitiatorType"));
11
+ var _TransactionRequestFee = _interopRequireDefault(require("./TransactionRequestFee"));
11
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
13
  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
14
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -107,6 +108,12 @@ var SwapActivity = /*#__PURE__*/function () {
107
108
  if (data.hasOwnProperty('updated_timestamp')) {
108
109
  obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
109
110
  }
111
+ if (data.hasOwnProperty('network_fee')) {
112
+ obj['network_fee'] = _TransactionRequestFee["default"].constructFromObject(data['network_fee']);
113
+ }
114
+ if (data.hasOwnProperty('destination_address')) {
115
+ obj['destination_address'] = _ApiClient["default"].convertToType(data['destination_address'], 'String');
116
+ }
110
117
  }
111
118
  return obj;
112
119
  }
@@ -163,6 +170,17 @@ var SwapActivity = /*#__PURE__*/function () {
163
170
  if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
164
171
  throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
165
172
  }
173
+ // validate the optional field `network_fee`
174
+ if (data['network_fee']) {
175
+ // data not null
176
+ if (!!_TransactionRequestFee["default"].validateJSON) {
177
+ _TransactionRequestFee["default"].validateJSON(data['network_fee']);
178
+ }
179
+ }
180
+ // ensure the json data is a string
181
+ if (data['destination_address'] && !(typeof data['destination_address'] === 'string' || data['destination_address'] instanceof String)) {
182
+ throw new Error("Expected the field `destination_address` to be a primitive type in the JSON string but got " + data['destination_address']);
183
+ }
166
184
  return true;
167
185
  }
168
186
  }]);
@@ -259,4 +277,15 @@ SwapActivity.prototype['created_timestamp'] = undefined;
259
277
  * @member {Number} updated_timestamp
260
278
  */
261
279
  SwapActivity.prototype['updated_timestamp'] = undefined;
280
+
281
+ /**
282
+ * @member {module:model/TransactionRequestFee} network_fee
283
+ */
284
+ SwapActivity.prototype['network_fee'] = undefined;
285
+
286
+ /**
287
+ * the destination address of web3/mpc wallets.
288
+ * @member {String} destination_address
289
+ */
290
+ SwapActivity.prototype['destination_address'] = undefined;
262
291
  var _default = exports["default"] = SwapActivity;