@cobo/cobo-waas2 1.17.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 (375) hide show
  1. package/README.md +113 -7
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/FeeStationApi.js +2 -2
  4. package/dist/api/OAuthApi.js +12 -12
  5. package/dist/api/OrganizationsApi.js +79 -0
  6. package/dist/api/PaymentApi.js +233 -16
  7. package/dist/api/TransactionsApi.js +2 -94
  8. package/dist/api/WalletsApi.js +55 -2
  9. package/dist/index.js +717 -10
  10. package/dist/model/Account.js +174 -0
  11. package/dist/model/AcquiringType.js +61 -0
  12. package/dist/model/AddressTransferDestination.js +2 -2
  13. package/dist/model/AddressesEventData.js +13 -3
  14. package/dist/model/ApprovalDetail.js +160 -0
  15. package/dist/model/ApprovalResult.js +66 -0
  16. package/dist/model/ApprovalShowInfo.js +140 -0
  17. package/dist/model/ApprovalTemplate.js +114 -0
  18. package/dist/model/ApprovalTransactionResult.js +66 -0
  19. package/dist/model/ApprovalUserDetail.js +196 -0
  20. package/dist/model/AutoFuelType.js +5 -0
  21. package/dist/model/BalanceUpdateInfo.js +170 -0
  22. package/dist/model/BalanceUpdateInfoEventData.js +302 -0
  23. package/dist/model/BankAccount.js +2 -2
  24. package/dist/model/ChainsEventData.js +13 -3
  25. package/dist/model/CreateMerchantRequest.js +13 -0
  26. package/dist/model/CreatePaymentOrderRequest.js +16 -6
  27. package/dist/model/CreateRefundRequest.js +9 -11
  28. package/dist/model/CreateSettlement.js +7 -27
  29. package/dist/model/CreateSettlementRequestRequest.js +27 -0
  30. package/dist/model/CryptoAddress.js +7 -7
  31. package/dist/model/CustodialTransferDestination.js +1 -1
  32. package/dist/model/CustodialWeb3TransferSource.js +2 -2
  33. package/dist/model/EstimateContractCallFeeParams.js +2 -2
  34. package/dist/model/EstimateFeeParams.js +1 -1
  35. package/dist/model/EstimatedEvmEip1559Fee.js +2 -2
  36. package/dist/model/EstimatedEvmLegacyFee.js +2 -2
  37. package/dist/model/EstimatedFILFee.js +170 -0
  38. package/dist/model/EstimatedFILFeeSlow.js +186 -0
  39. package/dist/model/EstimatedFee.js +69 -13
  40. package/dist/model/EstimatedFixedFee.js +2 -2
  41. package/dist/model/EstimatedSOLFee.js +170 -0
  42. package/dist/model/EstimatedSOLFeeSlow.js +184 -0
  43. package/dist/model/EstimatedUtxoFee.js +2 -2
  44. package/dist/model/EvmEip1559FeeBasePrice.js +0 -1
  45. package/dist/model/EvmEip1559FeeRate.js +2 -2
  46. package/dist/model/EvmLegacyFeeBasePrice.js +0 -1
  47. package/dist/model/EvmLegacyFeeRate.js +2 -2
  48. package/dist/model/ExchangePermissionToken201Response.js +4 -4
  49. package/dist/model/ExchangePermissionTokenRequest.js +2 -2
  50. package/dist/model/FILBase.js +88 -0
  51. package/dist/model/FILPrice.js +113 -0
  52. package/dist/model/FeeRate.js +1 -1
  53. package/dist/model/FeeType.js +10 -0
  54. package/dist/model/FixedFeeRate.js +2 -2
  55. package/dist/model/GetExchangeRate200Response.js +2 -2
  56. package/dist/model/GetMaxTransferableValueWithFeeModelRequest.js +156 -0
  57. package/dist/model/GraphQLError.js +135 -0
  58. package/dist/model/GraphQLErrorLocationsInner.js +92 -0
  59. package/dist/model/GraphQLRequest.js +135 -0
  60. package/dist/model/GraphQLResponse.js +119 -0
  61. package/dist/model/{ListTransactionApprovalDetails200Response.js → ListTopUpPayers200Response.js} +37 -21
  62. package/dist/model/ListTopUpPayers200ResponseDataInner.js +189 -0
  63. package/dist/model/MPCVaultEventData.js +13 -3
  64. package/dist/model/MaxFeeAmount.js +0 -1
  65. package/dist/model/MaxTransferableValue.js +2 -2
  66. package/dist/model/Merchant.js +15 -2
  67. package/dist/model/MpcTransferSource.js +2 -2
  68. package/dist/model/Order.js +12 -3
  69. package/dist/model/PayerAccount.js +189 -0
  70. package/dist/model/PaymentOrderEventData.js +32 -9
  71. package/dist/model/PaymentRefundEventData.js +71 -11
  72. package/dist/model/PaymentSettlementEvent.js +19 -9
  73. package/dist/model/RefreshPermissionTokenRequest.js +2 -2
  74. package/dist/model/Refund.js +39 -4
  75. package/dist/model/RefundStatus.js +5 -0
  76. package/dist/model/RoleDetail.js +126 -0
  77. package/dist/model/SOLBase.js +101 -0
  78. package/dist/model/SOLComputeUnit.js +100 -0
  79. package/dist/model/Settlement.js +3 -3
  80. package/dist/model/SettlementDetail.js +15 -6
  81. package/dist/model/SettlementInfo.js +11 -2
  82. package/dist/model/SuspendedTokenEventData.js +225 -0
  83. package/dist/model/SuspendedTokenOperationType.js +61 -0
  84. package/dist/model/SwapActivity.js +29 -0
  85. package/dist/model/SwapActivityDetail.js +68 -0
  86. package/dist/model/SwapActivitySigners.js +110 -0
  87. package/dist/model/SwapQuote.js +17 -4
  88. package/dist/model/SwapSingingStatus.js +71 -0
  89. package/dist/model/TSSRequestWebhookEventData.js +13 -3
  90. package/dist/model/TokenListingEventData.js +13 -3
  91. package/dist/model/TokenizationActivityInfo.js +224 -0
  92. package/dist/model/TokenizationActivityStatus.js +66 -0
  93. package/dist/model/TokenizationAddressPermission.js +135 -0
  94. package/dist/model/TokenizationAllowlistActivationParams.js +124 -0
  95. package/dist/model/TokenizationAllowlistActivationRequest.js +180 -0
  96. package/dist/model/{TransactionMessageSignBTCEIP191Destination.js → TokenizationAllowlistAddressNote.js} +46 -36
  97. package/dist/model/TokenizationAppInitiator.js +87 -0
  98. package/dist/model/TokenizationBlocklistAddressNote.js +132 -0
  99. package/dist/model/TokenizationBurnEstimateFeeParams.js +187 -0
  100. package/dist/model/TokenizationBurnTokenParams.js +146 -0
  101. package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +125 -0
  102. package/dist/model/TokenizationBurnTokenRequest.js +202 -0
  103. package/dist/model/TokenizationContractCallEstimateFeeParams.js +167 -0
  104. package/dist/model/TokenizationContractCallParams.js +107 -0
  105. package/dist/model/TokenizationContractCallParamsData.js +164 -0
  106. package/dist/model/TokenizationContractCallRequest.js +182 -0
  107. package/dist/model/TokenizationContractCallType.js +56 -0
  108. package/dist/model/TokenizationERC20TokenParams.js +173 -0
  109. package/dist/model/TokenizationEstimateFeeRequest.js +113 -0
  110. package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +439 -0
  111. package/dist/model/TokenizationEvmContractCallParams.js +133 -0
  112. package/dist/model/TokenizationHoldingInfo.js +166 -0
  113. package/dist/model/TokenizationIssueEstimateFeeParams.js +176 -0
  114. package/dist/model/TokenizationIssueTokenParams.js +146 -0
  115. package/dist/model/TokenizationIssueTokenParamsTokenParams.js +183 -0
  116. package/dist/model/TokenizationIssuedTokenRequest.js +206 -0
  117. package/dist/model/TokenizationListActivitiesResponse.js +146 -0
  118. package/dist/model/TokenizationListEnabledChainsResponse.js +128 -0
  119. package/dist/model/TokenizationListHoldingsResponse.js +146 -0
  120. package/dist/model/TokenizationListTokenInfoResponse.js +146 -0
  121. package/dist/model/TokenizationMintEstimateFeeParams.js +187 -0
  122. package/dist/model/TokenizationMintTokenParams.js +146 -0
  123. package/dist/model/TokenizationMintTokenParamsMintsInner.js +125 -0
  124. package/dist/model/TokenizationMintTokenRequest.js +202 -0
  125. package/dist/model/TokenizationMpcOperationSource.js +136 -0
  126. package/dist/model/TokenizationOperationResponse.js +110 -0
  127. package/dist/model/TokenizationOperationSourceType.js +61 -0
  128. package/dist/model/TokenizationOperationType.js +96 -0
  129. package/dist/model/TokenizationPauseEstimateFeeParams.js +149 -0
  130. package/dist/model/TokenizationPauseTokenParams.js +113 -0
  131. package/dist/model/TokenizationPauseTokenRequest.js +164 -0
  132. package/dist/model/TokenizationStatus.js +71 -0
  133. package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +165 -0
  134. package/dist/model/TokenizationTokenDetailInfo.js +309 -0
  135. package/dist/model/TokenizationTokenInfo.js +223 -0
  136. package/dist/model/TokenizationTokenOperationSource.js +192 -0
  137. package/dist/model/TokenizationTokenPermission.js +147 -0
  138. package/dist/model/TokenizationTokenPermissionParams.js +166 -0
  139. package/dist/model/TokenizationTokenPermissionType.js +86 -0
  140. package/dist/model/TokenizationTokenPermissionsResponse.js +139 -0
  141. package/dist/model/TokenizationTokenStandard.js +56 -0
  142. package/dist/model/TokenizationUnpauseEstimateFeeParams.js +149 -0
  143. package/dist/model/TokenizationUnpauseTokenParams.js +113 -0
  144. package/dist/model/TokenizationUnpauseTokenRequest.js +164 -0
  145. package/dist/model/TokenizationUpdateAddressAction.js +61 -0
  146. package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +202 -0
  147. package/dist/model/TokenizationUpdateAllowlistAddressesParams.js +157 -0
  148. package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +123 -0
  149. package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +217 -0
  150. package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +202 -0
  151. package/dist/model/TokenizationUpdateBlocklistAddressesParams.js +157 -0
  152. package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +123 -0
  153. package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +217 -0
  154. package/dist/model/TokenizationWeb3OperationSource.js +136 -0
  155. package/dist/model/TokensEventData.js +13 -3
  156. package/dist/model/TopUpAddress.js +230 -0
  157. package/dist/model/TransactionCoboCategory.js +20 -0
  158. package/dist/model/TransactionDestination.js +10 -38
  159. package/dist/model/TransactionEvmCalldataInfo.js +1 -1
  160. package/dist/model/TransactionEvmEip1559Fee.js +2 -2
  161. package/dist/model/TransactionEvmLegacyFee.js +2 -2
  162. package/dist/model/TransactionFILFee.js +229 -0
  163. package/dist/model/TransactionFee.js +109 -11
  164. package/dist/model/TransactionFixedFee.js +2 -2
  165. package/dist/model/TransactionRbfSource.js +1 -1
  166. package/dist/model/TransactionRequestEvmEip1559Fee.js +2 -2
  167. package/dist/model/TransactionRequestEvmLegacyFee.js +2 -2
  168. package/dist/model/TransactionRequestFILFee.js +186 -0
  169. package/dist/model/TransactionRequestFee.js +90 -10
  170. package/dist/model/TransactionRequestFixedFee.js +2 -2
  171. package/dist/model/TransactionRequestSOLFee.js +168 -0
  172. package/dist/model/TransactionRequestUtxoFee.js +2 -2
  173. package/dist/model/TransactionSOLFee.js +229 -0
  174. package/dist/model/TransactionSubStatus.js +5 -0
  175. package/dist/model/TransactionTransferToAddressDestination.js +2 -2
  176. package/dist/model/TransactionTransferToWalletDestination.js +1 -1
  177. package/dist/model/TransactionUtxoFee.js +2 -2
  178. package/dist/model/TransactionWebhookEventData.js +13 -3
  179. package/dist/model/TransferDestination.js +2 -2
  180. package/dist/model/UpdateMerchantByIdRequest.js +13 -0
  181. package/dist/model/UpdateRefundByIdRequest.js +110 -0
  182. package/dist/model/UpdateTopUpAddress.js +141 -0
  183. package/dist/model/UtxoFeeBasePrice.js +0 -1
  184. package/dist/model/UtxoFeeRate.js +2 -2
  185. package/dist/model/WalletInfoEventData.js +13 -3
  186. package/dist/model/WebhookEvent.js +2 -2
  187. package/dist/model/WebhookEventData.js +123 -13
  188. package/dist/model/WebhookEventDataType.js +12 -2
  189. package/dist/model/WebhookEventLog.js +2 -2
  190. package/dist/model/WebhookEventType.js +35 -0
  191. package/docs/Account.md +14 -0
  192. package/docs/AcquiringType.md +12 -0
  193. package/docs/AddressTransferDestination.md +2 -2
  194. package/docs/AddressesEventData.md +5 -1
  195. package/docs/ApprovalDetail.md +14 -0
  196. package/docs/ApprovalResult.md +14 -0
  197. package/docs/ApprovalShowInfo.md +13 -0
  198. package/docs/ApprovalTemplate.md +11 -0
  199. package/docs/ApprovalTransactionResult.md +14 -0
  200. package/docs/ApprovalUserDetail.md +18 -0
  201. package/docs/AutoFuelType.md +2 -0
  202. package/docs/BalanceUpdateInfo.md +13 -0
  203. package/docs/BalanceUpdateInfoEventData.md +49 -0
  204. package/docs/BankAccount.md +2 -2
  205. package/docs/ChainsEventData.md +5 -1
  206. package/docs/CreateMerchantRequest.md +1 -0
  207. package/docs/CreatePaymentOrderRequest.md +5 -4
  208. package/docs/CreateRefundRequest.md +5 -5
  209. package/docs/CreateSettlement.md +7 -9
  210. package/docs/CreateSettlementRequestRequest.md +3 -0
  211. package/docs/CryptoAddress.md +5 -5
  212. package/docs/CustodialWeb3TransferSource.md +1 -1
  213. package/docs/EstimateContractCallFeeParams.md +1 -1
  214. package/docs/EstimateFeeParams.md +1 -1
  215. package/docs/EstimatedEvmEip1559Fee.md +1 -1
  216. package/docs/EstimatedEvmLegacyFee.md +1 -1
  217. package/docs/EstimatedFILFee.md +13 -0
  218. package/docs/EstimatedFILFeeSlow.md +12 -0
  219. package/docs/EstimatedFee.md +4 -4
  220. package/docs/EstimatedFixedFee.md +1 -1
  221. package/docs/EstimatedSOLFee.md +13 -0
  222. package/docs/EstimatedSOLFeeSlow.md +12 -0
  223. package/docs/EstimatedUtxoFee.md +1 -1
  224. package/docs/EvmEip1559FeeRate.md +1 -1
  225. package/docs/EvmLegacyFeeRate.md +1 -1
  226. package/docs/ExchangePermissionToken201Response.md +4 -4
  227. package/docs/ExchangePermissionTokenRequest.md +1 -1
  228. package/docs/FILBase.md +9 -0
  229. package/docs/FILPrice.md +11 -0
  230. package/docs/FeeRate.md +1 -1
  231. package/docs/FeeStationApi.md +1 -1
  232. package/docs/FeeType.md +4 -0
  233. package/docs/FixedFeeRate.md +1 -1
  234. package/docs/GetExchangeRate200Response.md +1 -1
  235. package/docs/GetMaxTransferableValueWithFeeModelRequest.md +12 -0
  236. package/docs/GraphQLError.md +11 -0
  237. package/docs/GraphQLErrorLocationsInner.md +10 -0
  238. package/docs/GraphQLRequest.md +11 -0
  239. package/docs/GraphQLResponse.md +10 -0
  240. package/docs/ListTopUpPayers200Response.md +10 -0
  241. package/docs/ListTopUpPayers200ResponseDataInner.md +14 -0
  242. package/docs/MPCVaultEventData.md +5 -1
  243. package/docs/MaxTransferableValue.md +1 -1
  244. package/docs/Merchant.md +3 -2
  245. package/docs/MpcTransferSource.md +1 -1
  246. package/docs/OAuthApi.md +8 -8
  247. package/docs/Order.md +4 -3
  248. package/docs/OrganizationsApi.md +55 -0
  249. package/docs/PayerAccount.md +14 -0
  250. package/docs/PaymentApi.md +230 -6
  251. package/docs/PaymentOrderEventData.md +9 -4
  252. package/docs/PaymentRefundEventData.md +12 -5
  253. package/docs/PaymentSettlementEvent.md +8 -4
  254. package/docs/RefreshPermissionTokenRequest.md +1 -1
  255. package/docs/Refund.md +7 -4
  256. package/docs/RefundStatus.md +2 -0
  257. package/docs/RoleDetail.md +11 -0
  258. package/docs/SOLBase.md +10 -0
  259. package/docs/SOLComputeUnit.md +10 -0
  260. package/docs/Settlement.md +3 -3
  261. package/docs/SettlementDetail.md +7 -6
  262. package/docs/SettlementInfo.md +3 -2
  263. package/docs/SuspendedTokenEventData.md +46 -0
  264. package/docs/SuspendedTokenOperationType.md +12 -0
  265. package/docs/SwapActivity.md +2 -0
  266. package/docs/SwapActivityDetail.md +3 -0
  267. package/docs/SwapActivitySigners.md +11 -0
  268. package/docs/SwapQuote.md +3 -2
  269. package/docs/SwapSingingStatus.md +16 -0
  270. package/docs/TSSRequestWebhookEventData.md +5 -1
  271. package/docs/TokenListingEventData.md +5 -1
  272. package/docs/TokenizationActivityInfo.md +18 -0
  273. package/docs/TokenizationActivityStatus.md +14 -0
  274. package/docs/TokenizationAddressPermission.md +11 -0
  275. package/docs/TokenizationAllowlistActivationParams.md +10 -0
  276. package/docs/TokenizationAllowlistActivationRequest.md +12 -0
  277. package/docs/TokenizationAllowlistAddressNote.md +11 -0
  278. package/docs/TokenizationAppInitiator.md +9 -0
  279. package/docs/TokenizationBlocklistAddressNote.md +11 -0
  280. package/docs/TokenizationBurnEstimateFeeParams.md +12 -0
  281. package/docs/TokenizationBurnTokenParams.md +10 -0
  282. package/docs/TokenizationBurnTokenParamsBurnsInner.md +10 -0
  283. package/docs/TokenizationBurnTokenRequest.md +12 -0
  284. package/docs/TokenizationContractCallEstimateFeeParams.md +12 -0
  285. package/docs/TokenizationContractCallParams.md +10 -0
  286. package/docs/TokenizationContractCallParamsData.md +11 -0
  287. package/docs/TokenizationContractCallRequest.md +12 -0
  288. package/docs/TokenizationContractCallType.md +10 -0
  289. package/docs/TokenizationERC20TokenParams.md +14 -0
  290. package/docs/TokenizationEstimateFeeRequest.md +9 -0
  291. package/docs/TokenizationEstimateFeeRequestOperationParams.md +19 -0
  292. package/docs/TokenizationEvmContractCallParams.md +11 -0
  293. package/docs/TokenizationHoldingInfo.md +13 -0
  294. package/docs/TokenizationIssueEstimateFeeParams.md +12 -0
  295. package/docs/TokenizationIssueTokenParams.md +11 -0
  296. package/docs/TokenizationIssueTokenParamsTokenParams.md +14 -0
  297. package/docs/TokenizationIssuedTokenRequest.md +13 -0
  298. package/docs/TokenizationListActivitiesResponse.md +10 -0
  299. package/docs/TokenizationListEnabledChainsResponse.md +10 -0
  300. package/docs/TokenizationListHoldingsResponse.md +10 -0
  301. package/docs/TokenizationListTokenInfoResponse.md +10 -0
  302. package/docs/TokenizationMintEstimateFeeParams.md +12 -0
  303. package/docs/TokenizationMintTokenParams.md +10 -0
  304. package/docs/TokenizationMintTokenParamsMintsInner.md +10 -0
  305. package/docs/TokenizationMintTokenRequest.md +12 -0
  306. package/docs/TokenizationMpcOperationSource.md +11 -0
  307. package/docs/TokenizationOperationResponse.md +9 -0
  308. package/docs/TokenizationOperationSourceType.md +12 -0
  309. package/docs/TokenizationOperationType.md +26 -0
  310. package/docs/TokenizationPauseEstimateFeeParams.md +11 -0
  311. package/docs/TokenizationPauseTokenParams.md +9 -0
  312. package/docs/TokenizationPauseTokenRequest.md +11 -0
  313. package/docs/TokenizationStatus.md +16 -0
  314. package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +12 -0
  315. package/docs/TokenizationTokenDetailInfo.md +19 -0
  316. package/docs/TokenizationTokenInfo.md +18 -0
  317. package/docs/TokenizationTokenOperationSource.md +11 -0
  318. package/docs/TokenizationTokenPermission.md +12 -0
  319. package/docs/TokenizationTokenPermissionParams.md +15 -0
  320. package/docs/TokenizationTokenPermissionType.md +22 -0
  321. package/docs/TokenizationTokenPermissionsResponse.md +10 -0
  322. package/docs/TokenizationTokenStandard.md +10 -0
  323. package/docs/TokenizationUnpauseEstimateFeeParams.md +11 -0
  324. package/docs/TokenizationUnpauseTokenParams.md +9 -0
  325. package/docs/TokenizationUnpauseTokenRequest.md +11 -0
  326. package/docs/TokenizationUpdateAddressAction.md +12 -0
  327. package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +13 -0
  328. package/docs/TokenizationUpdateAllowlistAddressesParams.md +11 -0
  329. package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +10 -0
  330. package/docs/TokenizationUpdateAllowlistAddressesRequest.md +13 -0
  331. package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +13 -0
  332. package/docs/TokenizationUpdateBlocklistAddressesParams.md +11 -0
  333. package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +10 -0
  334. package/docs/TokenizationUpdateBlocklistAddressesRequest.md +13 -0
  335. package/docs/TokenizationWeb3OperationSource.md +11 -0
  336. package/docs/TokensEventData.md +5 -1
  337. package/docs/TopUpAddress.md +18 -0
  338. package/docs/TransactionCoboCategory.md +8 -0
  339. package/docs/TransactionDestination.md +2 -2
  340. package/docs/TransactionEvmCalldataInfo.md +1 -1
  341. package/docs/TransactionEvmEip1559Fee.md +2 -2
  342. package/docs/TransactionEvmLegacyFee.md +2 -2
  343. package/docs/TransactionFILFee.md +16 -0
  344. package/docs/TransactionFee.md +10 -3
  345. package/docs/TransactionFixedFee.md +2 -2
  346. package/docs/TransactionRbfSource.md +1 -1
  347. package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
  348. package/docs/TransactionRequestEvmLegacyFee.md +1 -1
  349. package/docs/TransactionRequestFILFee.md +13 -0
  350. package/docs/TransactionRequestFee.md +6 -2
  351. package/docs/TransactionRequestFixedFee.md +1 -1
  352. package/docs/TransactionRequestSOLFee.md +12 -0
  353. package/docs/TransactionRequestUtxoFee.md +1 -1
  354. package/docs/TransactionSOLFee.md +16 -0
  355. package/docs/TransactionSubStatus.md +2 -0
  356. package/docs/TransactionTransferToAddressDestination.md +2 -2
  357. package/docs/TransactionTransferToWalletDestination.md +1 -1
  358. package/docs/TransactionUtxoFee.md +2 -2
  359. package/docs/TransactionWebhookEventData.md +5 -1
  360. package/docs/TransactionsApi.md +1 -107
  361. package/docs/TransferDestination.md +2 -2
  362. package/docs/UpdateMerchantByIdRequest.md +1 -0
  363. package/docs/UpdateRefundByIdRequest.md +9 -0
  364. package/docs/UpdateTopUpAddress.md +11 -0
  365. package/docs/UtxoFeeRate.md +1 -1
  366. package/docs/WalletInfoEventData.md +5 -1
  367. package/docs/WalletsApi.md +58 -1
  368. package/docs/WebhookEvent.md +1 -1
  369. package/docs/WebhookEventData.md +18 -5
  370. package/docs/WebhookEventDataType.md +5 -1
  371. package/docs/WebhookEventLog.md +1 -1
  372. package/docs/WebhookEventType.md +14 -0
  373. package/package.json +1 -1
  374. package/docs/ListTransactionApprovalDetails200Response.md +0 -9
  375. package/docs/TransactionMessageSignBTCEIP191Destination.md +0 -10
@@ -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;
@@ -7,10 +7,12 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _SwapActivity = _interopRequireDefault(require("./SwapActivity"));
9
9
  var _SwapActivityApprovers = _interopRequireDefault(require("./SwapActivityApprovers"));
10
+ var _SwapActivitySigners = _interopRequireDefault(require("./SwapActivitySigners"));
10
11
  var _SwapActivityStatus = _interopRequireDefault(require("./SwapActivityStatus"));
11
12
  var _SwapActivityTimeline = _interopRequireDefault(require("./SwapActivityTimeline"));
12
13
  var _SwapType = _interopRequireDefault(require("./SwapType"));
13
14
  var _TransactionInitiatorType = _interopRequireDefault(require("./TransactionInitiatorType"));
15
+ var _TransactionRequestFee = _interopRequireDefault(require("./TransactionRequestFee"));
14
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
17
  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); }
16
18
  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; } } }; }
@@ -116,12 +118,21 @@ var SwapActivityDetail = /*#__PURE__*/function () {
116
118
  if (data.hasOwnProperty('updated_timestamp')) {
117
119
  obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
118
120
  }
121
+ if (data.hasOwnProperty('network_fee')) {
122
+ obj['network_fee'] = _TransactionRequestFee["default"].constructFromObject(data['network_fee']);
123
+ }
124
+ if (data.hasOwnProperty('destination_address')) {
125
+ obj['destination_address'] = _ApiClient["default"].convertToType(data['destination_address'], 'String');
126
+ }
119
127
  if (data.hasOwnProperty('timeline')) {
120
128
  obj['timeline'] = _ApiClient["default"].convertToType(data['timeline'], [_SwapActivityTimeline["default"]]);
121
129
  }
122
130
  if (data.hasOwnProperty('approvers')) {
123
131
  obj['approvers'] = _ApiClient["default"].convertToType(data['approvers'], [_SwapActivityApprovers["default"]]);
124
132
  }
133
+ if (data.hasOwnProperty('signers')) {
134
+ obj['signers'] = _ApiClient["default"].convertToType(data['signers'], [_SwapActivitySigners["default"]]);
135
+ }
125
136
  }
126
137
  return obj;
127
138
  }
@@ -178,6 +189,17 @@ var SwapActivityDetail = /*#__PURE__*/function () {
178
189
  if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
179
190
  throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
180
191
  }
192
+ // validate the optional field `network_fee`
193
+ if (data['network_fee']) {
194
+ // data not null
195
+ if (!!_TransactionRequestFee["default"].validateJSON) {
196
+ _TransactionRequestFee["default"].validateJSON(data['network_fee']);
197
+ }
198
+ }
199
+ // ensure the json data is a string
200
+ if (data['destination_address'] && !(typeof data['destination_address'] === 'string' || data['destination_address'] instanceof String)) {
201
+ throw new Error("Expected the field `destination_address` to be a primitive type in the JSON string but got " + data['destination_address']);
202
+ }
181
203
  if (data['timeline']) {
182
204
  // data not null
183
205
  // ensure the json data is an array
@@ -220,6 +242,27 @@ var SwapActivityDetail = /*#__PURE__*/function () {
220
242
  }
221
243
  ;
222
244
  }
245
+ if (data['signers']) {
246
+ // data not null
247
+ // ensure the json data is an array
248
+ if (!Array.isArray(data['signers'])) {
249
+ throw new Error("Expected the field `signers` to be an array in the JSON data but got " + data['signers']);
250
+ }
251
+ // validate the optional field `signers` (array)
252
+ var _iterator3 = _createForOfIteratorHelper(data['signers']),
253
+ _step3;
254
+ try {
255
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
256
+ var _item2 = _step3.value;
257
+ _SwapActivitySigners["default"].validateJSON(_item2);
258
+ }
259
+ } catch (err) {
260
+ _iterator3.e(err);
261
+ } finally {
262
+ _iterator3.f();
263
+ }
264
+ ;
265
+ }
223
266
  return true;
224
267
  }
225
268
  }]);
@@ -317,6 +360,17 @@ SwapActivityDetail.prototype['created_timestamp'] = undefined;
317
360
  */
318
361
  SwapActivityDetail.prototype['updated_timestamp'] = undefined;
319
362
 
363
+ /**
364
+ * @member {module:model/TransactionRequestFee} network_fee
365
+ */
366
+ SwapActivityDetail.prototype['network_fee'] = undefined;
367
+
368
+ /**
369
+ * the destination address of web3/mpc wallets.
370
+ * @member {String} destination_address
371
+ */
372
+ SwapActivityDetail.prototype['destination_address'] = undefined;
373
+
320
374
  /**
321
375
  * @member {Array.<module:model/SwapActivityTimeline>} timeline
322
376
  */
@@ -327,6 +381,11 @@ SwapActivityDetail.prototype['timeline'] = undefined;
327
381
  */
328
382
  SwapActivityDetail.prototype['approvers'] = undefined;
329
383
 
384
+ /**
385
+ * @member {Array.<module:model/SwapActivitySigners>} signers
386
+ */
387
+ SwapActivityDetail.prototype['signers'] = undefined;
388
+
330
389
  // Implement SwapActivity interface:
331
390
  /**
332
391
  * The unique identifier of the swap activity.
@@ -405,4 +464,13 @@ _SwapActivity["default"].prototype['created_timestamp'] = undefined;
405
464
  * @member {Number} updated_timestamp
406
465
  */
407
466
  _SwapActivity["default"].prototype['updated_timestamp'] = undefined;
467
+ /**
468
+ * @member {module:model/TransactionRequestFee} network_fee
469
+ */
470
+ _SwapActivity["default"].prototype['network_fee'] = undefined;
471
+ /**
472
+ * the destination address of web3/mpc wallets.
473
+ * @member {String} destination_address
474
+ */
475
+ _SwapActivity["default"].prototype['destination_address'] = undefined;
408
476
  var _default = exports["default"] = SwapActivityDetail;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _SwapSingingStatus = _interopRequireDefault(require("./SwapSingingStatus"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
12
+ 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); } }
13
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), 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
+ * The SwapActivitySigners model module.
27
+ * @module model/SwapActivitySigners
28
+ */
29
+ var SwapActivitySigners = /*#__PURE__*/function () {
30
+ /**
31
+ * Constructs a new <code>SwapActivitySigners</code>.
32
+ * The signer data for swap activity.
33
+ * @alias module:model/SwapActivitySigners
34
+ */
35
+ function SwapActivitySigners() {
36
+ _classCallCheck(this, SwapActivitySigners);
37
+ SwapActivitySigners.initialize(this);
38
+ }
39
+
40
+ /**
41
+ * Initializes the fields of this object.
42
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
43
+ * Only for internal use.
44
+ */
45
+ return _createClass(SwapActivitySigners, null, [{
46
+ key: "initialize",
47
+ value: function initialize(obj) {}
48
+
49
+ /**
50
+ * Constructs a <code>SwapActivitySigners</code> from a plain JavaScript object, optionally creating a new instance.
51
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
52
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
53
+ * @param {module:model/SwapActivitySigners} obj Optional instance to populate.
54
+ * @return {module:model/SwapActivitySigners} The populated <code>SwapActivitySigners</code> instance.
55
+ */
56
+ }, {
57
+ key: "constructFromObject",
58
+ value: function constructFromObject(data, obj) {
59
+ if (data) {
60
+ obj = obj || new SwapActivitySigners();
61
+ if (data.hasOwnProperty('signer')) {
62
+ obj['signer'] = _ApiClient["default"].convertToType(data['signer'], 'String');
63
+ }
64
+ if (data.hasOwnProperty('status')) {
65
+ obj['status'] = _SwapSingingStatus["default"].constructFromObject(data['status']);
66
+ }
67
+ if (data.hasOwnProperty('failed_reason')) {
68
+ obj['failed_reason'] = _ApiClient["default"].convertToType(data['failed_reason'], 'String');
69
+ }
70
+ }
71
+ return obj;
72
+ }
73
+
74
+ /**
75
+ * Validates the JSON data with respect to <code>SwapActivitySigners</code>.
76
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
77
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SwapActivitySigners</code>.
78
+ */
79
+ }, {
80
+ key: "validateJSON",
81
+ value: function validateJSON(data) {
82
+ // ensure the json data is a string
83
+ if (data['signer'] && !(typeof data['signer'] === 'string' || data['signer'] instanceof String)) {
84
+ throw new Error("Expected the field `signer` to be a primitive type in the JSON string but got " + data['signer']);
85
+ }
86
+ // ensure the json data is a string
87
+ if (data['failed_reason'] && !(typeof data['failed_reason'] === 'string' || data['failed_reason'] instanceof String)) {
88
+ throw new Error("Expected the field `failed_reason` to be a primitive type in the JSON string but got " + data['failed_reason']);
89
+ }
90
+ return true;
91
+ }
92
+ }]);
93
+ }();
94
+ /**
95
+ * The signer name.
96
+ * @member {String} signer
97
+ */
98
+ SwapActivitySigners.prototype['signer'] = undefined;
99
+
100
+ /**
101
+ * @member {module:model/SwapSingingStatus} status
102
+ */
103
+ SwapActivitySigners.prototype['status'] = undefined;
104
+
105
+ /**
106
+ * Failed reason of signing process.
107
+ * @member {String} failed_reason
108
+ */
109
+ SwapActivitySigners.prototype['failed_reason'] = undefined;
110
+ var _default = exports["default"] = SwapActivitySigners;
@@ -37,8 +37,8 @@ var SwapQuote = /*#__PURE__*/function () {
37
37
  * @param pay_amount {String} The amount of tokens to pay.
38
38
  * @param receive_token_id {String} The token ID to receive.
39
39
  * @param receive_amount {String} The amount of tokens to receive.
40
- * @param fee_token_id {String} The fee token ID.
41
- * @param fee_amount {String} The amount of tokens to pay for fee.
40
+ * @param fee_token_id {String} The token ID for the service fee.
41
+ * @param fee_amount {String} The amount of tokens for the service fee.
42
42
  * @param quote_expired_timestamp {Number} The time when the quote will expire, in Unix timestamp format, measured in milliseconds.
43
43
  */
44
44
  function SwapQuote(quote_id, pay_token_id, pay_amount, receive_token_id, receive_amount, fee_token_id, fee_amount, quote_expired_timestamp) {
@@ -97,6 +97,9 @@ var SwapQuote = /*#__PURE__*/function () {
97
97
  if (data.hasOwnProperty('fee_amount')) {
98
98
  obj['fee_amount'] = _ApiClient["default"].convertToType(data['fee_amount'], 'String');
99
99
  }
100
+ if (data.hasOwnProperty('estimated_network_fee_amount')) {
101
+ obj['estimated_network_fee_amount'] = _ApiClient["default"].convertToType(data['estimated_network_fee_amount'], 'String');
102
+ }
100
103
  if (data.hasOwnProperty('min_receive_amount')) {
101
104
  obj['min_receive_amount'] = _ApiClient["default"].convertToType(data['min_receive_amount'], 'String');
102
105
  }
@@ -162,6 +165,10 @@ var SwapQuote = /*#__PURE__*/function () {
162
165
  throw new Error("Expected the field `fee_amount` to be a primitive type in the JSON string but got " + data['fee_amount']);
163
166
  }
164
167
  // ensure the json data is a string
168
+ if (data['estimated_network_fee_amount'] && !(typeof data['estimated_network_fee_amount'] === 'string' || data['estimated_network_fee_amount'] instanceof String)) {
169
+ throw new Error("Expected the field `estimated_network_fee_amount` to be a primitive type in the JSON string but got " + data['estimated_network_fee_amount']);
170
+ }
171
+ // ensure the json data is a string
165
172
  if (data['min_receive_amount'] && !(typeof data['min_receive_amount'] === 'string' || data['min_receive_amount'] instanceof String)) {
166
173
  throw new Error("Expected the field `min_receive_amount` to be a primitive type in the JSON string but got " + data['min_receive_amount']);
167
174
  }
@@ -206,17 +213,23 @@ SwapQuote.prototype['receive_token_id'] = undefined;
206
213
  SwapQuote.prototype['receive_amount'] = undefined;
207
214
 
208
215
  /**
209
- * The fee token ID.
216
+ * The token ID for the service fee.
210
217
  * @member {String} fee_token_id
211
218
  */
212
219
  SwapQuote.prototype['fee_token_id'] = undefined;
213
220
 
214
221
  /**
215
- * The amount of tokens to pay for fee.
222
+ * The amount of tokens for the service fee.
216
223
  * @member {String} fee_amount
217
224
  */
218
225
  SwapQuote.prototype['fee_amount'] = undefined;
219
226
 
227
+ /**
228
+ * The estimated amount of tokens for the network fee.
229
+ * @member {String} estimated_network_fee_amount
230
+ */
231
+ SwapQuote.prototype['estimated_network_fee_amount'] = undefined;
232
+
220
233
  /**
221
234
  * The minimum amount of tokens to receive if the pay amount is specified.
222
235
  * @member {String} min_receive_amount