@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
@@ -34,14 +34,13 @@ var CreateRefundRequest = /*#__PURE__*/function () {
34
34
  * Constructs a new <code>CreateRefundRequest</code>.
35
35
  * @alias module:model/CreateRefundRequest
36
36
  * @param request_id {String} The request ID that is used to track a refund request. The request ID is provided by you and must be unique.
37
- * @param payable_amount {String} The amount to refund in cryptocurrency.
38
- * @param to_address {String} The address where the refunded cryptocurrency will be sent.
37
+ * @param payable_amount {String} The amount to refund in cryptocurrency. The amount must be a positive integer with up to two decimal places.
39
38
  * @param token_id {String} The ID of the cryptocurrency used for refund. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
40
39
  * @param refund_type {module:model/RefundType}
41
40
  */
42
- function CreateRefundRequest(request_id, payable_amount, to_address, token_id, refund_type) {
41
+ function CreateRefundRequest(request_id, payable_amount, token_id, refund_type) {
43
42
  _classCallCheck(this, CreateRefundRequest);
44
- CreateRefundRequest.initialize(this, request_id, payable_amount, to_address, token_id, refund_type);
43
+ CreateRefundRequest.initialize(this, request_id, payable_amount, token_id, refund_type);
45
44
  }
46
45
 
47
46
  /**
@@ -51,10 +50,9 @@ var CreateRefundRequest = /*#__PURE__*/function () {
51
50
  */
52
51
  return _createClass(CreateRefundRequest, null, [{
53
52
  key: "initialize",
54
- value: function initialize(obj, request_id, payable_amount, to_address, token_id, refund_type) {
53
+ value: function initialize(obj, request_id, payable_amount, token_id, refund_type) {
55
54
  obj['request_id'] = request_id;
56
55
  obj['payable_amount'] = payable_amount;
57
- obj['to_address'] = to_address;
58
56
  obj['token_id'] = token_id;
59
57
  obj['refund_type'] = refund_type;
60
58
  }
@@ -164,7 +162,7 @@ var CreateRefundRequest = /*#__PURE__*/function () {
164
162
  }
165
163
  }]);
166
164
  }();
167
- CreateRefundRequest.RequiredProperties = ["request_id", "payable_amount", "to_address", "token_id", "refund_type"];
165
+ CreateRefundRequest.RequiredProperties = ["request_id", "payable_amount", "token_id", "refund_type"];
168
166
 
169
167
  /**
170
168
  * The request ID that is used to track a refund request. The request ID is provided by you and must be unique.
@@ -179,7 +177,7 @@ CreateRefundRequest.prototype['request_id'] = undefined;
179
177
  CreateRefundRequest.prototype['merchant_id'] = undefined;
180
178
 
181
179
  /**
182
- * The amount to refund in cryptocurrency.
180
+ * The amount to refund in cryptocurrency. The amount must be a positive integer with up to two decimal places.
183
181
  * @member {String} payable_amount
184
182
  */
185
183
  CreateRefundRequest.prototype['payable_amount'] = undefined;
@@ -208,19 +206,19 @@ CreateRefundRequest.prototype['refund_type'] = undefined;
208
206
  CreateRefundRequest.prototype['order_id'] = undefined;
209
207
 
210
208
  /**
211
- * Indicates whether the merchant should bear the transaction fee for the refund. If true, the fee will be deducted from merchant's account balance.
209
+ * Whether to charge developer fee to the merchant. - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee When enabled, ensure both `merchant_fee_amount` and `merchant_fee_token_id` are properly specified.
212
210
  * @member {Boolean} charge_merchant_fee
213
211
  */
214
212
  CreateRefundRequest.prototype['charge_merchant_fee'] = undefined;
215
213
 
216
214
  /**
217
- * The amount of the transaction fee that the merchant will bear for the refund. This is only applicable if `charge_merchant_fee` is set to true.
215
+ * The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. Required when `charge_merchant_fee` is `true`. Must be: - A positive integer with up to two decimal places. - Less than the refund amount
218
216
  * @member {String} merchant_fee_amount
219
217
  */
220
218
  CreateRefundRequest.prototype['merchant_fee_amount'] = undefined;
221
219
 
222
220
  /**
223
- * The ID of the cryptocurrency used for the transaction fee. This is only applicable if `charge_merchant_fee` is set to true.
221
+ * The ID of the cryptocurrency used for the developer fee. It must be the same as `token_id`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
224
222
  * @member {String} merchant_fee_token_id
225
223
  */
226
224
  CreateRefundRequest.prototype['merchant_fee_token_id'] = undefined;
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _PayoutChannel = _interopRequireDefault(require("./PayoutChannel"));
9
- var _SettlementType = _interopRequireDefault(require("./SettlementType"));
10
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
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); }
12
10
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -73,15 +71,9 @@ var CreateSettlement = /*#__PURE__*/function () {
73
71
  if (data.hasOwnProperty('bank_account_id')) {
74
72
  obj['bank_account_id'] = _ApiClient["default"].convertToType(data['bank_account_id'], 'String');
75
73
  }
76
- if (data.hasOwnProperty('settlement_type')) {
77
- obj['settlement_type'] = _SettlementType["default"].constructFromObject(data['settlement_type']);
78
- }
79
74
  if (data.hasOwnProperty('crypto_address_id')) {
80
75
  obj['crypto_address_id'] = _ApiClient["default"].convertToType(data['crypto_address_id'], 'String');
81
76
  }
82
- if (data.hasOwnProperty('payout_channel')) {
83
- obj['payout_channel'] = _PayoutChannel["default"].constructFromObject(data['payout_channel']);
84
- }
85
77
  if (data.hasOwnProperty('order_ids')) {
86
78
  obj['order_ids'] = _ApiClient["default"].convertToType(data['order_ids'], ['String']);
87
79
  }
@@ -130,54 +122,42 @@ var CreateSettlement = /*#__PURE__*/function () {
130
122
  }]);
131
123
  }();
132
124
  /**
133
- * The merchant ID.
125
+ * The merchant ID. Specify this field when `settlement_type` is set to `Merchant`.
134
126
  * @member {String} merchant_id
135
127
  */
136
128
  CreateSettlement.prototype['merchant_id'] = undefined;
137
129
 
138
130
  /**
139
- * The ID of the cryptocurrency you want to settle. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
131
+ * The ID of the cryptocurrency you want to settle. Specify this field when `payout_channel` is set to `Crypto`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
140
132
  * @member {String} token_id
141
133
  */
142
134
  CreateSettlement.prototype['token_id'] = undefined;
143
135
 
144
136
  /**
145
- * The fiat currency for settling the cryptocurrency. Currently, only `USD` is supported.
137
+ * The fiat currency for settling the cryptocurrency. Currently, only `USD` is supported. Specify this field when `payout_channel` is set to `OffRamp`.
146
138
  * @member {String} currency
147
- * @default 'USD'
148
139
  */
149
- CreateSettlement.prototype['currency'] = 'USD';
140
+ CreateSettlement.prototype['currency'] = undefined;
150
141
 
151
142
  /**
152
- * The settlement amount. - If `token_id` is specified, this represents the settlement amount in the specified cryptocurrency. - If `token_id` is not specified, this represents the settlement amount in the specified fiat currency.
143
+ * The settlement amount. When settling merchant balance from orders (`acquiring_type` is `Order` and `settlement_type` is `Merchant`), do not specify this field as the settlement amount will be automatically calculated based on the order amounts. - If `payout_channel` is set to `Crypto`, this represents the settlement amount in the specified cryptocurrency. - If `payout_channel` is set to `OffRamp`, this represents the settlement amount in the specified fiat currency.
153
144
  * @member {String} amount
154
145
  */
155
146
  CreateSettlement.prototype['amount'] = undefined;
156
147
 
157
148
  /**
158
- * The ID of the bank account where the settled funds will be deposited.
149
+ * The ID of the bank account where the settled funds will be deposited. This field is only applicable when `payout_channel` is set to `OffRamp`. Call [List all bank accounts](/v2/api-references/payment/list-all-bank-accounts) to retrieve the IDs of registered bank accounts.
159
150
  * @member {String} bank_account_id
160
151
  */
161
152
  CreateSettlement.prototype['bank_account_id'] = undefined;
162
153
 
163
154
  /**
164
- * @member {module:model/SettlementType} settlement_type
165
- */
166
- CreateSettlement.prototype['settlement_type'] = undefined;
167
-
168
- /**
169
- * The ID of the pre-approved crypto address used for Crypto settlements. - This field is only applicable when `payout_channel` is set to `Crypto`. - If `payout_channel` is `OffRamp`, this field will be ignored. - The value must refer to a valid address that has been pre-configured and approved for the given token.
155
+ * The ID of the crypto address used for crypto withdrawal. Specify this field when `payout_channel` is set to `Crypto`. Call [List all crypto addresses](/v2/api-references/payments/list-all-crypto-addresses) to retrieve registered crypto addresses.
170
156
  * @member {String} crypto_address_id
171
157
  */
172
158
  CreateSettlement.prototype['crypto_address_id'] = undefined;
173
159
 
174
160
  /**
175
- * @member {module:model/PayoutChannel} payout_channel
176
- */
177
- CreateSettlement.prototype['payout_channel'] = undefined;
178
-
179
- /**
180
- * A list of unique order IDs to be included in this settlement. - This field is only applicable when `settlement_type` is set to `Merchant`. - If provided, the settlement will only apply to the specified orders. - The settlement `amount` must exactly match the total eligible amount from these orders. - This ensures consistency between the declared amount and the actual order-level data being settled.
181
161
  * @member {Array.<String>} order_ids
182
162
  */
183
163
  CreateSettlement.prototype['order_ids'] = undefined;
@@ -5,7 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _AcquiringType = _interopRequireDefault(require("./AcquiringType"));
8
9
  var _CreateSettlement = _interopRequireDefault(require("./CreateSettlement"));
10
+ var _PayoutChannel = _interopRequireDefault(require("./PayoutChannel"));
11
+ var _SettlementType = _interopRequireDefault(require("./SettlementType"));
9
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
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); }
11
14
  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; } } }; }
@@ -68,6 +71,15 @@ var CreateSettlementRequestRequest = /*#__PURE__*/function () {
68
71
  if (data.hasOwnProperty('request_id')) {
69
72
  obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
70
73
  }
74
+ if (data.hasOwnProperty('acquiring_type')) {
75
+ obj['acquiring_type'] = _AcquiringType["default"].constructFromObject(data['acquiring_type']);
76
+ }
77
+ if (data.hasOwnProperty('payout_channel')) {
78
+ obj['payout_channel'] = _PayoutChannel["default"].constructFromObject(data['payout_channel']);
79
+ }
80
+ if (data.hasOwnProperty('settlement_type')) {
81
+ obj['settlement_type'] = _SettlementType["default"].constructFromObject(data['settlement_type']);
82
+ }
71
83
  if (data.hasOwnProperty('settlements')) {
72
84
  obj['settlements'] = _ApiClient["default"].convertToType(data['settlements'], [_CreateSettlement["default"]]);
73
85
  }
@@ -135,6 +147,21 @@ CreateSettlementRequestRequest.RequiredProperties = ["request_id", "settlements"
135
147
  */
136
148
  CreateSettlementRequestRequest.prototype['request_id'] = undefined;
137
149
 
150
+ /**
151
+ * @member {module:model/AcquiringType} acquiring_type
152
+ */
153
+ CreateSettlementRequestRequest.prototype['acquiring_type'] = undefined;
154
+
155
+ /**
156
+ * @member {module:model/PayoutChannel} payout_channel
157
+ */
158
+ CreateSettlementRequestRequest.prototype['payout_channel'] = undefined;
159
+
160
+ /**
161
+ * @member {module:model/SettlementType} settlement_type
162
+ */
163
+ CreateSettlementRequestRequest.prototype['settlement_type'] = undefined;
164
+
138
165
  /**
139
166
  * @member {Array.<module:model/CreateSettlement>} settlements
140
167
  */
@@ -33,8 +33,8 @@ var CryptoAddress = /*#__PURE__*/function () {
33
33
  * Constructs a new <code>CryptoAddress</code>.
34
34
  * @alias module:model/CryptoAddress
35
35
  * @param token_id {String} The token identifier (e.g., ETH_USDT, TRON_USDT) that this address is associated with.
36
- * @param address_id {String} Unique identifier for the pre-approved crypto address, used to reference the address securely in requests. This ID is returned by the system and should be used instead of the raw blockchain address in API calls.
37
- * @param address {String} The actual blockchain address to which funds will be transferred. This is for display purposes only; external clients should always use address_id to refer to the address in secure operations.
36
+ * @param address_id {String} A unique identifier for this crypto address, automatically generated by Cobo. Use this ID (not the raw blockchain address) when submitting a settlement request.
37
+ * @param address {String} The blockchain address in its native format. This is the actual destination address where funds will be sent. Note: When submitting a settlement request, use the address ID rather than this raw address.
38
38
  */
39
39
  function CryptoAddress(token_id, address_id, address) {
40
40
  _classCallCheck(this, CryptoAddress);
@@ -140,31 +140,31 @@ CryptoAddress.RequiredProperties = ["token_id", "address_id", "address"];
140
140
  CryptoAddress.prototype['token_id'] = undefined;
141
141
 
142
142
  /**
143
- * Unique identifier for the pre-approved crypto address, used to reference the address securely in requests. This ID is returned by the system and should be used instead of the raw blockchain address in API calls.
143
+ * A unique identifier for this crypto address, automatically generated by Cobo. Use this ID (not the raw blockchain address) when submitting a settlement request.
144
144
  * @member {String} address_id
145
145
  */
146
146
  CryptoAddress.prototype['address_id'] = undefined;
147
147
 
148
148
  /**
149
- * The actual blockchain address to which funds will be transferred. This is for display purposes only; external clients should always use address_id to refer to the address in secure operations.
149
+ * The blockchain address in its native format. This is the actual destination address where funds will be sent. Note: When submitting a settlement request, use the address ID rather than this raw address.
150
150
  * @member {String} address
151
151
  */
152
152
  CryptoAddress.prototype['address'] = undefined;
153
153
 
154
154
  /**
155
- * A human-readable label or alias for the crypto address, set by the merchant or platform operator. This field is optional and intended to help distinguish addresses by usage or purpose (e.g., \"Main Payout Wallet\", \"Cold Wallet\").
155
+ * A label to help identify the address's purpose.
156
156
  * @member {String} label
157
157
  */
158
158
  CryptoAddress.prototype['label'] = undefined;
159
159
 
160
160
  /**
161
- * The created time of the crypto address, represented as a UNIX timestamp in seconds.
161
+ * The creation time of the crypto address, represented as a UNIX timestamp in seconds.
162
162
  * @member {Number} created_timestamp
163
163
  */
164
164
  CryptoAddress.prototype['created_timestamp'] = undefined;
165
165
 
166
166
  /**
167
- * The updated time of the crypto address, represented as a UNIX timestamp in seconds.
167
+ * The last update time of the crypto address, represented as a UNIX timestamp in seconds.
168
168
  * @member {Number} updated_timestamp
169
169
  */
170
170
  CryptoAddress.prototype['updated_timestamp'] = undefined;
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  var CustodialTransferDestination = /*#__PURE__*/function () {
33
33
  /**
34
34
  * Constructs a new <code>CustodialTransferDestination</code>.
35
- * The information about the transaction destination type &#x60;CustodialWallet&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. An Custodial Wallet can only receive asset transfers from another Custodial Wallet by using Loop. Switch between the tabs to display the properties for different transaction destinations.
35
+ * The information about the transaction destination type &#x60;CustodialWallet&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. A Custodial Wallet (Asset Wallet) can only receive transfers from another Custodial Wallet (Asset Wallet) by using [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop). Switch between the tabs to display the properties for different transaction destinations.
36
36
  * @alias module:model/CustodialTransferDestination
37
37
  * @param destination_type {module:model/TransferDestinationType}
38
38
  * @param wallet_id {String} The wallet ID.
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  var CustodialWeb3TransferSource = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>CustodialWeb3TransferSource</code>.
36
- * The information about the transaction source types &#x60;Web3&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. You need to provide either the &#x60;address&#x60; or &#x60;included_utxos&#x60; property. If neither property is provided, the transfer will fail. Switch between the tabs to display the properties for different transaction sources.
36
+ * The information about the transaction source types &#x60;Web3&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. - For UTXO-based chains: both &#x60;address&#x60; and &#x60;included_utxos&#x60; are optional. If both &#x60;address&#x60; and &#x60;included_utxos&#x60; are provided, the UTXOs must belong to the specified address. If neither &#x60;address&#x60; nor &#x60;included_utxos&#x60; is provided, the system will select UTXOs from the wallet associated with &#x60;wallet_id&#x60;. - For account-based chains: You need to provide &#x60;address&#x60; otherwise the token transfer will fail. However, when estimating fees for a transfer, &#x60;address&#x60; is not required. Switch between the tabs to display the properties for different transaction sources.
37
37
  * @alias module:model/CustodialWeb3TransferSource
38
38
  * @param source_type {module:model/WalletSubtype}
39
39
  * @param wallet_id {String} The wallet ID.
@@ -177,7 +177,7 @@ CustodialWeb3TransferSource.prototype['source_type'] = undefined;
177
177
  CustodialWeb3TransferSource.prototype['wallet_id'] = undefined;
178
178
 
179
179
  /**
180
- * The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. When `included_utxos` is specified, only these specified UTXOs will be used for the transaction. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. It is recommended to specify no more than 100 included UTXOs to ensure optimal transaction processing. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail.
180
+ * Indicates the wallet address to be used as the source of funds. - For UTXO-based chains: both `address` and `included_utxos` are optional. If both `address` and `included_utxos` are provided, the UTXOs must belong to the specified address. If neither `address` nor `included_utxos` is provided, the system will select UTXOs from the wallet associated with `wallet_id`. For RBF transactions, please note the following: - If the original transaction did not specify `included_utxos`, the RBF transaction may omit `address`, `included_utxos`, or both. - If the original transaction specified `included_utxos`, the RBF transaction must specify either `address` or `included_utxos`, or both. - The `address` or `included_utxos` in the RBF transaction may differ from those in the original transaction. - For account-based chains: You need to provide `address` otherwise the token transfer will fail. However, when estimating fees for a transfer, `address` is not required.
181
181
  * @member {String} address
182
182
  */
183
183
  CustodialWeb3TransferSource.prototype['address'] = undefined;
@@ -38,7 +38,7 @@ var EstimateContractCallFeeParams = /*#__PURE__*/function () {
38
38
  * The information about a transaction that interacts with a smart contract
39
39
  * @alias module:model/EstimateContractCallFeeParams
40
40
  * @param request_type {module:model/EstimateFeeRequestType}
41
- * @param chain_id {String} The chain ID of the chain on which the smart contract is deployed. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
41
+ * @param chain_id {String} The chain ID of the chain on which the smart contract is issued. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
42
42
  * @param source {module:model/ContractCallSource}
43
43
  * @param destination {module:model/ContractCallDestination}
44
44
  */
@@ -165,7 +165,7 @@ EstimateContractCallFeeParams.prototype['request_id'] = undefined;
165
165
  EstimateContractCallFeeParams.prototype['request_type'] = undefined;
166
166
 
167
167
  /**
168
- * The chain ID of the chain on which the smart contract is deployed. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
168
+ * The chain ID of the chain on which the smart contract is issued. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
169
169
  * @member {String} chain_id
170
170
  */
171
171
  EstimateContractCallFeeParams.prototype['chain_id'] = undefined;
@@ -214,7 +214,7 @@ EstimateFeeParams.prototype['fee_type'] = undefined;
214
214
  EstimateFeeParams.prototype['replaced_transaction_id'] = undefined;
215
215
 
216
216
  /**
217
- * The chain ID of the chain on which the smart contract is deployed. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
217
+ * The chain ID of the chain on which the smart contract is issued. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
218
218
  * @member {String} chain_id
219
219
  */
220
220
  EstimateFeeParams.prototype['chain_id'] = undefined;
@@ -36,7 +36,7 @@ var EstimatedEvmEip1559Fee = /*#__PURE__*/function () {
36
36
  * The estimated transaction fee based on the EIP-1559 fee model.
37
37
  * @alias module:model/EstimatedEvmEip1559Fee
38
38
  * @param fee_type {module:model/FeeType}
39
- * @param token_id {String} The token ID of the transaction fee.
39
+ * @param token_id {String} The token used to pay the transaction fee.
40
40
  * @param recommended {module:model/EstimatedEvmEip1559FeeSlow}
41
41
  */
42
42
  function EstimatedEvmEip1559Fee(fee_type, token_id, recommended) {
@@ -148,7 +148,7 @@ EstimatedEvmEip1559Fee.RequiredProperties = ["fee_type", "token_id", "recommende
148
148
  EstimatedEvmEip1559Fee.prototype['fee_type'] = undefined;
149
149
 
150
150
  /**
151
- * The token ID of the transaction fee.
151
+ * The token used to pay the transaction fee.
152
152
  * @member {String} token_id
153
153
  */
154
154
  EstimatedEvmEip1559Fee.prototype['token_id'] = undefined;
@@ -36,7 +36,7 @@ var EstimatedEvmLegacyFee = /*#__PURE__*/function () {
36
36
  * The estimated transaction fee based on the legacy fee model.
37
37
  * @alias module:model/EstimatedEvmLegacyFee
38
38
  * @param fee_type {module:model/FeeType}
39
- * @param token_id {String} The token ID of the transaction fee.
39
+ * @param token_id {String} The token used to pay the transaction fee.
40
40
  * @param recommended {module:model/EstimatedEvmLegacyFeeSlow}
41
41
  */
42
42
  function EstimatedEvmLegacyFee(fee_type, token_id, recommended) {
@@ -148,7 +148,7 @@ EstimatedEvmLegacyFee.RequiredProperties = ["fee_type", "token_id", "recommended
148
148
  EstimatedEvmLegacyFee.prototype['fee_type'] = undefined;
149
149
 
150
150
  /**
151
- * The token ID of the transaction fee.
151
+ * The token used to pay the transaction fee.
152
152
  * @member {String} token_id
153
153
  */
154
154
  EstimatedEvmLegacyFee.prototype['token_id'] = undefined;
@@ -0,0 +1,170 @@
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 _EstimatedFILFeeSlow = _interopRequireDefault(require("./EstimatedFILFeeSlow"));
9
+ var _FeeType = _interopRequireDefault(require("./FeeType"));
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 EstimatedFILFee model module.
31
+ * @module model/EstimatedFILFee
32
+ */
33
+ var EstimatedFILFee = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>EstimatedFILFee</code>.
36
+ * The estimated transaction fee based on the fil fee model.
37
+ * @alias module:model/EstimatedFILFee
38
+ * @param fee_type {module:model/FeeType}
39
+ * @param token_id {String} The token used to pay the transaction fee.
40
+ * @param recommended {module:model/EstimatedFILFeeSlow}
41
+ */
42
+ function EstimatedFILFee(fee_type, token_id, recommended) {
43
+ _classCallCheck(this, EstimatedFILFee);
44
+ EstimatedFILFee.initialize(this, fee_type, token_id, recommended);
45
+ }
46
+
47
+ /**
48
+ * Initializes the fields of this object.
49
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
+ * Only for internal use.
51
+ */
52
+ return _createClass(EstimatedFILFee, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj, fee_type, token_id, recommended) {
55
+ obj['fee_type'] = fee_type;
56
+ obj['token_id'] = token_id;
57
+ obj['recommended'] = recommended;
58
+ }
59
+
60
+ /**
61
+ * Constructs a <code>EstimatedFILFee</code> from a plain JavaScript object, optionally creating a new instance.
62
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
63
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
64
+ * @param {module:model/EstimatedFILFee} obj Optional instance to populate.
65
+ * @return {module:model/EstimatedFILFee} The populated <code>EstimatedFILFee</code> instance.
66
+ */
67
+ }, {
68
+ key: "constructFromObject",
69
+ value: function constructFromObject(data, obj) {
70
+ if (data) {
71
+ obj = obj || new EstimatedFILFee();
72
+ if (data.hasOwnProperty('fee_type')) {
73
+ obj['fee_type'] = _FeeType["default"].constructFromObject(data['fee_type']);
74
+ }
75
+ if (data.hasOwnProperty('token_id')) {
76
+ obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
77
+ }
78
+ if (data.hasOwnProperty('slow')) {
79
+ obj['slow'] = _EstimatedFILFeeSlow["default"].constructFromObject(data['slow']);
80
+ }
81
+ if (data.hasOwnProperty('recommended')) {
82
+ obj['recommended'] = _EstimatedFILFeeSlow["default"].constructFromObject(data['recommended']);
83
+ }
84
+ if (data.hasOwnProperty('fast')) {
85
+ obj['fast'] = _EstimatedFILFeeSlow["default"].constructFromObject(data['fast']);
86
+ }
87
+ }
88
+ return obj;
89
+ }
90
+
91
+ /**
92
+ * Validates the JSON data with respect to <code>EstimatedFILFee</code>.
93
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
94
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>EstimatedFILFee</code>.
95
+ */
96
+ }, {
97
+ key: "validateJSON",
98
+ value: function validateJSON(data) {
99
+ // check to make sure all required properties are present in the JSON string
100
+ var _iterator = _createForOfIteratorHelper(EstimatedFILFee.RequiredProperties),
101
+ _step;
102
+ try {
103
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
104
+ var property = _step.value;
105
+ if (!data.hasOwnProperty(property)) {
106
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
107
+ }
108
+ }
109
+ // ensure the json data is a string
110
+ } catch (err) {
111
+ _iterator.e(err);
112
+ } finally {
113
+ _iterator.f();
114
+ }
115
+ if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
116
+ throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
117
+ }
118
+ // validate the optional field `slow`
119
+ if (data['slow']) {
120
+ // data not null
121
+ if (!!_EstimatedFILFeeSlow["default"].validateJSON) {
122
+ _EstimatedFILFeeSlow["default"].validateJSON(data['slow']);
123
+ }
124
+ }
125
+ // validate the optional field `recommended`
126
+ if (data['recommended']) {
127
+ // data not null
128
+ if (!!_EstimatedFILFeeSlow["default"].validateJSON) {
129
+ _EstimatedFILFeeSlow["default"].validateJSON(data['recommended']);
130
+ }
131
+ }
132
+ // validate the optional field `fast`
133
+ if (data['fast']) {
134
+ // data not null
135
+ if (!!_EstimatedFILFeeSlow["default"].validateJSON) {
136
+ _EstimatedFILFeeSlow["default"].validateJSON(data['fast']);
137
+ }
138
+ }
139
+ return true;
140
+ }
141
+ }]);
142
+ }();
143
+ EstimatedFILFee.RequiredProperties = ["fee_type", "token_id", "recommended"];
144
+
145
+ /**
146
+ * @member {module:model/FeeType} fee_type
147
+ */
148
+ EstimatedFILFee.prototype['fee_type'] = undefined;
149
+
150
+ /**
151
+ * The token used to pay the transaction fee.
152
+ * @member {String} token_id
153
+ */
154
+ EstimatedFILFee.prototype['token_id'] = undefined;
155
+
156
+ /**
157
+ * @member {module:model/EstimatedFILFeeSlow} slow
158
+ */
159
+ EstimatedFILFee.prototype['slow'] = undefined;
160
+
161
+ /**
162
+ * @member {module:model/EstimatedFILFeeSlow} recommended
163
+ */
164
+ EstimatedFILFee.prototype['recommended'] = undefined;
165
+
166
+ /**
167
+ * @member {module:model/EstimatedFILFeeSlow} fast
168
+ */
169
+ EstimatedFILFee.prototype['fast'] = undefined;
170
+ var _default = exports["default"] = EstimatedFILFee;