@cobo/cobo-waas2 1.22.0 → 1.24.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 (285) hide show
  1. package/README.md +81 -17
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +200 -21
  4. package/dist/api/AutoSweepApi.js +26 -26
  5. package/dist/api/ComplianceApi.js +214 -0
  6. package/dist/api/FeeStationApi.js +47 -4
  7. package/dist/api/PaymentApi.js +204 -57
  8. package/dist/api/SwapsApi.js +374 -0
  9. package/dist/api/TokenizationApi.js +2 -2
  10. package/dist/api/TransactionsApi.js +18 -18
  11. package/dist/api/WalletsApi.js +4 -4
  12. package/dist/api/WalletsMPCWalletsApi.js +2 -2
  13. package/dist/index.js +329 -21
  14. package/dist/model/AddressBook.js +12 -12
  15. package/dist/model/AddressInfo.js +13 -0
  16. package/dist/model/AddressesEventData.js +8 -3
  17. package/dist/model/AddressesEventDataAllOfAddresses.js +18 -0
  18. package/dist/model/ApprovalDetail.js +4 -4
  19. package/dist/model/ApprovalResult.js +6 -11
  20. package/dist/model/ApprovalTemplate.js +4 -4
  21. package/dist/model/ApprovalTransactionResult.js +8 -8
  22. package/dist/model/ApprovalUserDetail.js +95 -24
  23. package/dist/model/AutoSweepTask.js +9 -9
  24. package/dist/model/BalanceUpdateInfoEventData.js +8 -3
  25. package/dist/model/BridgingFee.js +136 -0
  26. package/dist/model/ChainInfo.js +14 -1
  27. package/dist/model/ChainsEventData.js +8 -3
  28. package/dist/model/CommissionFee.js +110 -0
  29. package/dist/model/ComplianceDispositionUpdateEventData.js +321 -0
  30. package/dist/model/ContractCallDestination.js +48 -8
  31. package/dist/model/ContractCallDestinationType.js +5 -0
  32. package/dist/model/CreateAddressBookParam.js +165 -0
  33. package/dist/model/CreateAddressBooks201Response.js +107 -0
  34. package/dist/model/CreateAddressBooksParam.js +128 -0
  35. package/dist/model/CreateAutoSweepTask.js +5 -5
  36. package/dist/model/CreateCustodialWalletParams.js +1 -1
  37. package/dist/model/CreateExchangeWalletParams.js +2 -2
  38. package/dist/model/CreateMerchantRequest.js +14 -7
  39. package/dist/model/CreateMpcWalletParams.js +2 -2
  40. package/dist/model/CreatePaymentOrderRequest.js +17 -4
  41. package/dist/model/CreateRefundRequest.js +2 -2
  42. package/dist/model/CreateSafeWalletParams.js +1 -1
  43. package/dist/model/CreateSettlement.js +3 -3
  44. package/dist/model/CreateSettlementRequestRequest.js +39 -0
  45. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  46. package/dist/model/CreateSwapActivityRequest.js +193 -0
  47. package/dist/model/CreateSweepToAddress.js +1 -1
  48. package/dist/model/CreateWalletParams.js +1 -1
  49. package/dist/model/CustodialTransferDestination.js +1 -1
  50. package/dist/model/DeleteAddressBookById201Response.js +106 -0
  51. package/dist/model/DispositionEventData.js +170 -0
  52. package/dist/model/DispositionQueryResponse.js +146 -0
  53. package/dist/model/DispositionResponse.js +122 -0
  54. package/dist/model/DispositionStatus.js +116 -0
  55. package/dist/model/DispositionType.js +66 -0
  56. package/dist/model/EstimateContractCallFeeParams.js +1 -1
  57. package/dist/model/EstimateFeeParams.js +1 -1
  58. package/dist/model/EstimateTransferFeeParams.js +1 -1
  59. package/dist/model/EstimatedEvmEip1559Fee.js +1 -1
  60. package/dist/model/EstimatedEvmLegacyFee.js +1 -1
  61. package/dist/model/EstimatedFILFee.js +1 -1
  62. package/dist/model/EstimatedFixedFee.js +1 -1
  63. package/dist/model/EstimatedSOLFee.js +1 -1
  64. package/dist/model/EstimatedUtxoFee.js +1 -1
  65. package/dist/model/FeeStationCheckFeeStationUsage.js +186 -0
  66. package/dist/model/FeeStationCheckFeeStationUsageResponse.js +200 -0
  67. package/dist/model/FeeStationGasStationType.js +61 -0
  68. package/dist/model/IsolateDisposition.js +167 -0
  69. package/dist/model/ListSwapActivities200Response.js +123 -0
  70. package/dist/model/ListSwapEnabledTokens200Response.js +123 -0
  71. package/dist/model/ListTopUpPayerAccounts200Response.js +123 -0
  72. package/dist/model/MPCVaultEventData.js +8 -3
  73. package/dist/model/Merchant.js +10 -1
  74. package/dist/model/MerchantBalance.js +7 -7
  75. package/dist/model/MessageSignDestination.js +8 -70
  76. package/dist/model/OrgInfo.js +9 -0
  77. package/dist/model/OtcFee.js +123 -0
  78. package/dist/model/PaymentAddressUpdateEventData.js +8 -3
  79. package/dist/model/PaymentEstimateFee.js +125 -0
  80. package/dist/model/PaymentEstimateFee201Response.js +107 -0
  81. package/dist/model/{RawMessageSignDestination.js → PaymentEstimateFeeRequest.js} +51 -37
  82. package/dist/model/PaymentEstimatedFee.js +173 -0
  83. package/dist/model/PaymentFeeType.js +71 -0
  84. package/dist/model/PaymentOrderEventData.js +8 -3
  85. package/dist/model/PaymentRefundEventData.js +30 -5
  86. package/dist/model/PaymentSettlementEvent.js +70 -9
  87. package/dist/model/PaymentTransactionEventData.js +8 -3
  88. package/dist/model/PaymentWalletBalance.js +6 -6
  89. package/dist/model/PspBalance.js +7 -7
  90. package/dist/model/ReceivedAmountPerAddress.js +5 -5
  91. package/dist/model/Refund.js +17 -1
  92. package/dist/model/RefundDisposition.js +167 -0
  93. package/dist/model/RoleDetail.js +41 -6
  94. package/dist/model/SettleRequestStatus.js +5 -0
  95. package/dist/model/Settlement.js +45 -3
  96. package/dist/model/SettlementDetail.js +33 -1
  97. package/dist/model/SettlementInfo.js +7 -7
  98. package/dist/model/SolContractCallAddressLookupTableAccount.js +126 -0
  99. package/dist/model/SolContractCallDestination.js +30 -0
  100. package/dist/model/StellarContractCallContractParam.js +164 -0
  101. package/dist/model/StellarContractCallContractType.js +56 -0
  102. package/dist/model/StellarContractCallDestination.js +125 -0
  103. package/dist/model/StellarContractCallTrustLineOperationType.js +56 -0
  104. package/dist/model/StellarContractCallTrustLineParam.js +133 -0
  105. package/dist/model/SupportedToken.js +9 -0
  106. package/dist/model/SuspendedTokenEventData.js +8 -3
  107. package/dist/model/SwapActivity.js +9 -9
  108. package/dist/model/SwapActivityApprovers.js +1 -1
  109. package/dist/model/SwapActivityDetail.js +34 -18
  110. package/dist/model/SwapActivitySigners.js +2 -2
  111. package/dist/model/SwapActivityTimeline.js +5 -5
  112. package/dist/model/SwapEstimateFee.js +147 -0
  113. package/dist/model/SwapQuote.js +18 -31
  114. package/dist/model/SwapReceivingTransaction.js +133 -0
  115. package/dist/model/SwapToken.js +9 -9
  116. package/dist/model/SweepToAddress.js +1 -1
  117. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  118. package/dist/model/TokenListingEventData.js +8 -3
  119. package/dist/model/TokensEventData.js +8 -3
  120. package/dist/model/TransactionCoboCategory.js +5 -0
  121. package/dist/model/TransactionDestination.js +48 -8
  122. package/dist/model/TransactionDestinationType.js +5 -0
  123. package/dist/model/TransactionEvmEip1559Fee.js +1 -1
  124. package/dist/model/TransactionEvmLegacyFee.js +1 -1
  125. package/dist/model/TransactionFILFee.js +1 -1
  126. package/dist/model/TransactionFixedFee.js +1 -1
  127. package/dist/model/TransactionFuelingInfo.js +13 -0
  128. package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
  129. package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
  130. package/dist/model/TransactionRequestFILFee.js +1 -1
  131. package/dist/model/TransactionRequestSOLFee.js +1 -1
  132. package/dist/model/TransactionRequestUtxoFee.js +1 -1
  133. package/dist/model/TransactionSOLFee.js +1 -1
  134. package/dist/model/TransactionSolContractAddressLookupTableAccount.js +126 -0
  135. package/dist/model/TransactionSolContractDestination.js +30 -0
  136. package/dist/model/TransactionStellarContractParam.js +164 -0
  137. package/dist/model/TransactionStellarContractType.js +56 -0
  138. package/dist/model/{BTCEIP191MessageSignDestination.js → TransactionStellarDestination.js} +38 -35
  139. package/dist/model/TransactionStellarTrustLineOperationType.js +56 -0
  140. package/dist/model/TransactionStellarTrustLineParam.js +133 -0
  141. package/dist/model/TransactionUtxoFee.js +1 -1
  142. package/dist/model/TransactionWebhookEventData.js +8 -3
  143. package/dist/model/UnfreezeDisposition.js +111 -0
  144. package/dist/model/UpdateAddressBookParam.js +150 -0
  145. package/dist/model/UpdateBankAccountByIdRequest.js +108 -0
  146. package/dist/model/UpdateMerchantByIdRequest.js +1 -1
  147. package/dist/model/UpdateTopUpAddress.js +4 -6
  148. package/dist/model/WalletInfoEventData.js +8 -3
  149. package/dist/model/WalletSetup.js +66 -0
  150. package/dist/model/WebhookEventData.js +81 -11
  151. package/dist/model/WebhookEventDataType.js +7 -2
  152. package/dist/model/WebhookEventType.js +5 -0
  153. package/docs/AddressBook.md +7 -7
  154. package/docs/AddressBooksApi.md +218 -8
  155. package/docs/AddressInfo.md +1 -0
  156. package/docs/AddressesEventData.md +3 -1
  157. package/docs/AddressesEventDataAllOfAddresses.md +1 -0
  158. package/docs/ApprovalDetail.md +3 -3
  159. package/docs/ApprovalResult.md +3 -5
  160. package/docs/ApprovalTemplate.md +3 -3
  161. package/docs/ApprovalTransactionResult.md +4 -4
  162. package/docs/ApprovalUserDetail.md +15 -9
  163. package/docs/AutoSweepApi.md +18 -18
  164. package/docs/AutoSweepTask.md +5 -5
  165. package/docs/BalanceUpdateInfoEventData.md +3 -1
  166. package/docs/BridgingFee.md +11 -0
  167. package/docs/ChainInfo.md +2 -1
  168. package/docs/ChainsEventData.md +3 -1
  169. package/docs/CommissionFee.md +9 -0
  170. package/docs/ComplianceApi.md +218 -0
  171. package/docs/ComplianceDispositionUpdateEventData.md +56 -0
  172. package/docs/ContractCallDestination.md +2 -0
  173. package/docs/ContractCallDestinationType.md +2 -0
  174. package/docs/CreateAddressBookParam.md +13 -0
  175. package/docs/CreateAddressBooks201Response.md +9 -0
  176. package/docs/CreateAddressBooksParam.md +9 -0
  177. package/docs/CreateAutoSweepTask.md +2 -2
  178. package/docs/CreateCustodialWalletParams.md +1 -1
  179. package/docs/CreateExchangeWalletParams.md +1 -1
  180. package/docs/CreateMerchantRequest.md +3 -2
  181. package/docs/CreateMpcWalletParams.md +1 -1
  182. package/docs/CreatePaymentOrderRequest.md +4 -3
  183. package/docs/CreateRefundRequest.md +1 -1
  184. package/docs/CreateSafeWalletParams.md +1 -1
  185. package/docs/CreateSettlement.md +3 -3
  186. package/docs/CreateSettlementRequestRequest.md +3 -0
  187. package/docs/CreateSmartContractWalletParams.md +1 -1
  188. package/docs/CreateSwapActivityRequest.md +15 -0
  189. package/docs/CreateWalletParams.md +1 -1
  190. package/docs/DeleteAddressBookById201Response.md +9 -0
  191. package/docs/DispositionEventData.md +14 -0
  192. package/docs/DispositionQueryResponse.md +12 -0
  193. package/docs/DispositionResponse.md +10 -0
  194. package/docs/DispositionStatus.md +34 -0
  195. package/docs/DispositionType.md +14 -0
  196. package/docs/EstimateContractCallFeeParams.md +1 -1
  197. package/docs/EstimateFeeParams.md +1 -1
  198. package/docs/EstimateTransferFeeParams.md +1 -1
  199. package/docs/FeeStationApi.md +53 -0
  200. package/docs/FeeStationCheckFeeStationUsage.md +14 -0
  201. package/docs/FeeStationCheckFeeStationUsageResponse.md +16 -0
  202. package/docs/FeeStationGasStationType.md +12 -0
  203. package/docs/IsolateDisposition.md +13 -0
  204. package/docs/ListSwapActivities200Response.md +10 -0
  205. package/docs/ListSwapEnabledTokens200Response.md +10 -0
  206. package/docs/ListTopUpPayerAccounts200Response.md +10 -0
  207. package/docs/MPCVaultEventData.md +3 -1
  208. package/docs/Merchant.md +2 -1
  209. package/docs/MerchantBalance.md +6 -6
  210. package/docs/MessageSignDestination.md +0 -1
  211. package/docs/OrgInfo.md +1 -0
  212. package/docs/OtcFee.md +10 -0
  213. package/docs/PaymentAddressUpdateEventData.md +3 -1
  214. package/docs/PaymentApi.md +203 -28
  215. package/docs/PaymentEstimateFee.md +10 -0
  216. package/docs/PaymentEstimateFee201Response.md +9 -0
  217. package/docs/PaymentEstimateFeeRequest.md +10 -0
  218. package/docs/PaymentEstimatedFee.md +13 -0
  219. package/docs/PaymentFeeType.md +16 -0
  220. package/docs/PaymentOrderEventData.md +3 -1
  221. package/docs/PaymentRefundEventData.md +5 -2
  222. package/docs/PaymentSettlementEvent.md +9 -4
  223. package/docs/PaymentTransactionEventData.md +3 -1
  224. package/docs/PaymentWalletBalance.md +5 -5
  225. package/docs/PspBalance.md +6 -6
  226. package/docs/ReceivedAmountPerAddress.md +2 -2
  227. package/docs/Refund.md +2 -1
  228. package/docs/RefundDisposition.md +13 -0
  229. package/docs/RoleDetail.md +4 -1
  230. package/docs/SettleRequestStatus.md +2 -0
  231. package/docs/Settlement.md +6 -3
  232. package/docs/SettlementDetail.md +3 -1
  233. package/docs/SettlementInfo.md +6 -6
  234. package/docs/SolContractCallAddressLookupTableAccount.md +10 -0
  235. package/docs/SolContractCallDestination.md +1 -0
  236. package/docs/StellarContractCallContractParam.md +11 -0
  237. package/docs/StellarContractCallContractType.md +10 -0
  238. package/docs/StellarContractCallDestination.md +10 -0
  239. package/docs/StellarContractCallTrustLineOperationType.md +10 -0
  240. package/docs/StellarContractCallTrustLineParam.md +11 -0
  241. package/docs/SupportedToken.md +1 -0
  242. package/docs/SuspendedTokenEventData.md +3 -1
  243. package/docs/SwapActivity.md +9 -9
  244. package/docs/SwapActivityDetail.md +10 -9
  245. package/docs/SwapActivitySigners.md +1 -1
  246. package/docs/SwapActivityTimeline.md +3 -3
  247. package/docs/SwapEstimateFee.md +12 -0
  248. package/docs/SwapQuote.md +10 -11
  249. package/docs/SwapReceivingTransaction.md +11 -0
  250. package/docs/SwapToken.md +6 -6
  251. package/docs/SwapsApi.md +356 -0
  252. package/docs/TSSRequestWebhookEventData.md +3 -1
  253. package/docs/TokenListingEventData.md +3 -1
  254. package/docs/TokenizationApi.md +2 -2
  255. package/docs/TokensEventData.md +3 -1
  256. package/docs/TransactionCoboCategory.md +2 -0
  257. package/docs/TransactionDestination.md +2 -0
  258. package/docs/TransactionDestinationType.md +2 -0
  259. package/docs/TransactionFuelingInfo.md +1 -0
  260. package/docs/TransactionSolContractAddressLookupTableAccount.md +10 -0
  261. package/docs/TransactionSolContractDestination.md +1 -0
  262. package/docs/TransactionStellarContractParam.md +11 -0
  263. package/docs/TransactionStellarContractType.md +10 -0
  264. package/docs/TransactionStellarDestination.md +10 -0
  265. package/docs/TransactionStellarTrustLineOperationType.md +10 -0
  266. package/docs/TransactionStellarTrustLineParam.md +11 -0
  267. package/docs/TransactionWebhookEventData.md +3 -1
  268. package/docs/TransactionsApi.md +11 -11
  269. package/docs/UnfreezeDisposition.md +9 -0
  270. package/docs/UpdateAddressBookParam.md +12 -0
  271. package/docs/UpdateBankAccountByIdRequest.md +9 -0
  272. package/docs/UpdateMerchantByIdRequest.md +1 -1
  273. package/docs/UpdateTopUpAddress.md +1 -1
  274. package/docs/WalletInfoEventData.md +3 -1
  275. package/docs/WalletSetup.md +14 -0
  276. package/docs/WalletsApi.md +2 -2
  277. package/docs/WalletsMPCWalletsApi.md +1 -1
  278. package/docs/WebhookEventData.md +12 -3
  279. package/docs/WebhookEventDataType.md +3 -1
  280. package/docs/WebhookEventType.md +2 -0
  281. package/package.json +1 -1
  282. package/dist/model/ApprovalShowInfo.js +0 -140
  283. package/docs/ApprovalShowInfo.md +0 -13
  284. package/docs/BTCEIP191MessageSignDestination.md +0 -10
  285. package/docs/RawMessageSignDestination.md +0 -10
@@ -14,9 +14,9 @@ Method | HTTP request | Description
14
14
  [**estimateFee**](TransactionsApi.md#estimateFee) | **POST** /transactions/estimate_fee | Estimate transaction fee
15
15
  [**getTransactionApprovalDetail**](TransactionsApi.md#getTransactionApprovalDetail) | **GET** /transactions/{transaction_id}/approval_detail | Get transaction approval details
16
16
  [**getTransactionById**](TransactionsApi.md#getTransactionById) | **GET** /transactions/{transaction_id} | Get transaction information
17
- [**listApprovalDetails**](TransactionsApi.md#listApprovalDetails) | **GET** /transactions/approval/details | List transaction approval details
17
+ [**listApprovalDetails**](TransactionsApi.md#listApprovalDetails) | **GET** /transactions/approval/details | List approval details
18
18
  [**listTransactionApprovalDetails**](TransactionsApi.md#listTransactionApprovalDetails) | **GET** /transactions/approval_details | List transaction approval details
19
- [**listTransactionTemplates**](TransactionsApi.md#listTransactionTemplates) | **GET** /transactions/templates | list transaction templates
19
+ [**listTransactionTemplates**](TransactionsApi.md#listTransactionTemplates) | **GET** /transactions/templates | List transaction templates
20
20
  [**listTransactions**](TransactionsApi.md#listTransactions) | **GET** /transactions | List all transactions
21
21
  [**resendTransactionById**](TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
22
22
  [**signAndBroadcastTransactionById**](TransactionsApi.md#signAndBroadcastTransactionById) | **POST** /transactions/{transaction_id}/sign_and_broadcast | Sign and broadcast transaction
@@ -186,7 +186,7 @@ Name | Type | Description | Notes
186
186
 
187
187
  Call smart contract
188
188
 
189
- This operation creates a transaction to interact with a smart contract on the blockchain. You need to provide details such as the source address, destination address, and the calldata. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>Currently, this operation only applies to the transactions from Custodial Wallets (Web3 Wallets), MPC Wallets, or Smart Contract Wallets on the blockchains that have a similar architecture to Ethereum.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
189
+ This operation creates a transaction to interact with a smart contract on the blockchain. You need to provide details such as the source address, destination address, and the calldata. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>Currently, this operation only applies to transactions from Custodial Wallets (Web3 Wallets), MPC Wallets, or Smart Contract Wallets on EVM-compatible chains and Solana. Solana v0 transactions are not supported.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
190
190
 
191
191
  ### Example
192
192
 
@@ -238,7 +238,7 @@ Name | Type | Description | Notes
238
238
 
239
239
  Sign message
240
240
 
241
- This operation creates a transaction to sign the provided message using cryptographic techniques. In some scenarios, you want to sign a message for identity authentication or transaction approval. You need to provide details such as the source address, destination address, and the message to be signed. A transaction request for tracking is returned upon successful operation. You can get the signature result by calling [Get transaction information](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information). <Note>This operation only applies to transactions from MPC Wallets.</Note>
241
+ This operation creates a transaction to sign the provided message using cryptographic techniques. In some scenarios, you want to sign a message for identity authentication or transaction approval. You need to provide details such as the source address, destination address, and the message to be signed. A transaction request for tracking is returned upon successful operation. You can get the signature result by calling [Get transaction information](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information). <Note> This operation only supports message signing transactions from the following wallets and chains: - MPC Wallets: BTC, EVM-compatible chains, and Cosmos. - Web3 Wallets: EVM-compatible chains. </Note>
242
242
 
243
243
  ### Example
244
244
 
@@ -546,9 +546,9 @@ Name | Type | Description | Notes
546
546
 
547
547
  > [ApprovalDetail] listApprovalDetails(opts)
548
548
 
549
- List transaction approval details
549
+ List approval details
550
550
 
551
- This operation retrieves detailed approval information for a specified transaction.
551
+ This operation retrieves comprehensive approval information for transactions, including approval status, reviewer details, signatures, and approval history. You can filter the results by transaction IDs, Cobo IDs, or request IDs. This operation is commonly used to monitor approval progress and identify delays in multi-signature workflows.
552
552
 
553
553
  ### Example
554
554
 
@@ -656,9 +656,9 @@ Name | Type | Description | Notes
656
656
 
657
657
  > [ApprovalTemplate] listTransactionTemplates(template_key, opts)
658
658
 
659
- list transaction templates
659
+ List transaction templates
660
660
 
661
- This operation retrieves transaction templates based on the specified transaction type and template version. The response includes a list of templates that can be used for creating transactions approval message.
661
+ This operation retrieves approval templates based on the specified template key and template version. These templates define the content used to generate approval messages displayed to users, including messages for transaction approvals and other approval workflows.
662
662
 
663
663
  ### Example
664
664
 
@@ -689,8 +689,8 @@ apiInstance.listTransactionTemplates(template_key, opts).then((data) => {
689
689
 
690
690
  Name | Type | Description | Notes
691
691
  ------------- | ------------- | ------------- | -------------
692
- **template_key** | **String**| The key of the transaction template to be used for creating a transaction approval message. |
693
- **template_version** | **String**| The version of the template used for the transaction approval. | [optional]
692
+ **template_key** | **String**| Key of the transaction template used to create an approval message. |
693
+ **template_version** | **String**| Version of the template. | [optional]
694
694
 
695
695
  ### Return type
696
696
 
@@ -774,7 +774,7 @@ Name | Type | Description | Notes
774
774
  **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). | [optional]
775
775
  **wallet_type** | [**WalletType**](.md)| The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction) | [optional]
776
776
  **wallet_subtype** | [**WalletSubtype**](.md)| The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet}) | [optional]
777
- **project_id** | **String**| The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). | [optional]
777
+ **project_id** | **String**| (This parameter is only applicable to User-Controlled Wallets.) The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). | [optional]
778
778
  **min_created_timestamp** | **Number**| The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time. If not provided, the default value is 90 days before the current time. This default value is subject to change. | [optional]
779
779
  **max_created_timestamp** | **Number**| The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time. If not provided, the default value is the current time. This default value is subject to change. | [optional]
780
780
  **limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
@@ -0,0 +1,9 @@
1
+ # CoboWaas2.UnfreezeDisposition
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **transaction_id** | **String** | The UUID of the transaction whose funds are to be unfrozen. |
8
+
9
+
@@ -0,0 +1,12 @@
1
+ # CoboWaas2.UpdateAddressBookParam
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **chain_ids** | **[String]** | A list of chain IDs. |
8
+ **memo** | **String** | Optional memo or tag required by some chains. | [optional]
9
+ **label** | **String** | A user-defined label for the address. | [optional]
10
+ **email** | **String** | Email of the address owner. | [optional]
11
+
12
+
@@ -0,0 +1,9 @@
1
+ # CoboWaas2.UpdateBankAccountByIdRequest
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **info** | **{String: Object}** | JSON-formatted bank account details. The object should include the following fields: - beneficiary_name: Name of the account holder - beneficiary_address: Address of the account holder - account_number: Bank account number - bank_name: Name of the bank - bank_address: Address of the bank - iban: (Optional) International Bank Account Number - swift_or_bic: SWIFT or BIC code of the bank |
8
+
9
+
@@ -5,6 +5,6 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **name** | **String** | The merchant name. | [optional]
8
- **developer_fee_rate** | **String** | The developer fee rate applied to this merchant. Expressed as a string in decimal format where \"0.1\" represents 10%. This fee is deducted from the payment amount and only applies to top-up transactions. | [optional]
8
+ **developer_fee_rate** | **String** | The developer fee rate applied to this merchant. Expressed as a string in decimal format where \"0.1\" represents 10%. This fee is deducted from the payment amount and only applies to top-up transactions. If you are a merchant (directly serving the payer), you do not need to configure the developer fee rate. | [optional]
9
9
 
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **merchant_id** | **String** | The merchant ID. |
7
+ **merchant_id** | **String** | The merchant ID. | [optional]
8
8
  **token_id** | **String** | The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT` |
9
9
  **custom_payer_id** | **String** | A unique identifier assigned by the developer to track and identify individual payers in their system. |
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. |
7
+ **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. |
8
8
  **wallet** | [**WalletInfo**](WalletInfo.md) | | [optional]
9
9
 
10
10
 
@@ -42,6 +42,8 @@ Name | Type | Description | Notes
42
42
 
43
43
  * `SuspendedToken` (value: `"SuspendedToken"`)
44
44
 
45
+ * `ComplianceDisposition` (value: `"ComplianceDisposition"`)
46
+
45
47
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
46
48
 
47
49
 
@@ -0,0 +1,14 @@
1
+ # CoboWaas2.WalletSetup
2
+
3
+ ## Enum
4
+
5
+
6
+ * `Default` (value: `"Default"`)
7
+
8
+ * `Shared` (value: `"Shared"`)
9
+
10
+ * `Separate` (value: `"Separate"`)
11
+
12
+ * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
13
+
14
+
@@ -834,7 +834,7 @@ Name | Type | Description | Notes
834
834
 
835
835
  List wallet addresses
836
836
 
837
- This operation retrieves a list of addresses within a specified wallet.
837
+ This operation retrieves a list of addresses within a specified wallet. <Note> For Web3 Wallets, Asset Wallets, and MPC Wallets, addresses created on one EVM chain automatically work on all other supported EVM chains. Currently, query results for EVM chain addresses differ between interfaces: - API: Query results are limited by chain_id, so only addresses from that specific chain are returned. - Cobo Portal: Displays addresses from all supported EVM chains, so the number of addresses may be larger than the API results. </Note>
838
838
 
839
839
  ### Example
840
840
 
@@ -1428,7 +1428,7 @@ Name | Type | Description | Notes
1428
1428
  ------------- | ------------- | ------------- | -------------
1429
1429
  **wallet_type** | [**WalletType**](.md)| The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction) | [optional]
1430
1430
  **wallet_subtype** | [**WalletSubtype**](.md)| The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet}) | [optional]
1431
- **project_id** | **String**| The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). | [optional]
1431
+ **project_id** | **String**| (This parameter is only applicable to User-Controlled Wallets.) The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). | [optional]
1432
1432
  **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). | [optional]
1433
1433
  **limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
1434
1434
  **before** | **String**| A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response. | [optional]
@@ -862,7 +862,7 @@ apiInstance.listMpcVaults(vault_type, opts).then((data) => {
862
862
  Name | Type | Description | Notes
863
863
  ------------- | ------------- | ------------- | -------------
864
864
  **vault_type** | [**MPCVaultType**](.md)| The vault type. Possible values include: - `Org-Controlled`: This vault is a collection of [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#organization-controlled-wallets). - `User-Controlled`: This vault is a collection of [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#user-controlled-wallets). |
865
- **project_id** | **String**| The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). | [optional]
865
+ **project_id** | **String**| (This parameter is only applicable to User-Controlled Wallets.) The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). | [optional]
866
866
  **limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
867
867
  **before** | **String**| A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response. | [optional]
868
868
  **after** | **String**| A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response. | [optional]
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. |
7
+ **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. |
8
8
  **transaction_id** | **String** | The transaction ID. |
9
9
  **cobo_id** | **String** | The Cobo ID, which can be used to track a transaction. | [optional]
10
10
  **request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. |
@@ -35,7 +35,7 @@ Name | Type | Description | Notes
35
35
  **extra** | **[String]** | A list of JSON-encoded strings containing structured, business-specific extra information for the transaction. Each item corresponds to a specific data type, indicated by the `extra_type` field in the JSON object (for example, \"BabylonBusinessInfo\", \"BtcAddressInfo\"). | [optional]
36
36
  **fueling_info** | [**TransactionFuelingInfo**](TransactionFuelingInfo.md) | | [optional]
37
37
  **created_timestamp** | **Number** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. |
38
- **updated_timestamp** | **Number** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. |
38
+ **updated_timestamp** | **Number** | The time when the disposition was updated, in Unix timestamp format, measured in milliseconds. |
39
39
  **tss_request_id** | **String** | The TSS request ID. | [optional]
40
40
  **source_key_share_holder_group** | [**SourceGroup**](SourceGroup.md) | | [optional]
41
41
  **target_key_share_holder_group_id** | **String** | The target key share holder group ID. | [optional]
@@ -62,7 +62,7 @@ Name | Type | Description | Notes
62
62
  **merchant_id** | **String** | The merchant ID. | [optional]
63
63
  **payable_amount** | **String** | The cryptocurrency amount to be paid for this order. |
64
64
  **receive_address** | **String** | The recipient wallet address to be used for the payment transaction. |
65
- **currency** | **String** | The fiat currency of the order. |
65
+ **currency** | **String** | The fiat currency for the settlement request. |
66
66
  **order_amount** | **String** | The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). |
67
67
  **fee_amount** | **String** | The developer fee for the order in fiat currency. It is added to the base amount (`order_amount`) to determine the final charge. |
68
68
  **exchange_rate** | **String** | The exchange rate between a currency pair. Expressed as the amount of fiat currency per one unit of cryptocurrency. For example, if the cryptocurrency is USDT and the fiat currency is USD, a rate of \"0.99\" means 1 USDT = 0.99 USD. |
@@ -79,16 +79,23 @@ Name | Type | Description | Notes
79
79
  **charge_merchant_fee** | **Boolean** | Whether to charge developer fee to the merchant for the refund. - `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. | [optional]
80
80
  **merchant_fee_amount** | **String** | The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. This is only applicable if `charge_merchant_fee` is set to `true`. | [optional]
81
81
  **merchant_fee_token_id** | **String** | The ID of the cryptocurrency used for the developer fee. This is only applicable if `charge_merchant_fee` is set to true. | [optional]
82
+ **commission_fee** | [**CommissionFee**](CommissionFee.md) | | [optional]
82
83
  **settlement_request_id** | **String** | The settlement request ID generated by Cobo. |
83
84
  **settlements** | [**[SettlementDetail]**](SettlementDetail.md) | |
84
85
  **acquiring_type** | [**AcquiringType**](AcquiringType.md) | |
85
86
  **payout_channel** | [**PayoutChannel**](PayoutChannel.md) | | [optional]
86
87
  **settlement_type** | [**SettlementType**](SettlementType.md) | | [optional]
88
+ **received_amount_fiat** | **String** | The received fiat amount of this settlement request. | [optional]
89
+ **bank_account** | [**BankAccount**](BankAccount.md) | | [optional]
87
90
  **payer_id** | **String** | A unique identifier assigned by Cobo to track and identify individual payers. |
88
91
  **custom_payer_id** | **String** | A unique identifier assigned by the developer to track and identify individual payers in their system. |
89
92
  **chain** | **String** | The chain ID. |
90
93
  **previous_address** | **String** | The previous top-up address that was assigned to the payer. |
91
94
  **updated_address** | **String** | The new top-up address that has been assigned to the payer. |
95
+ **disposition_type** | [**DispositionType**](DispositionType.md) | |
96
+ **disposition_status** | [**DispositionStatus**](DispositionStatus.md) | |
97
+ **destination_address** | **String** | The blockchain address to receive the refunded/isolated funds. | [optional]
98
+ **disposition_amount** | **String** | The amount to be refunded/isolated from the original transaction, specified as a numeric string. This value cannot exceed the total amount of the original transaction. | [optional]
92
99
 
93
100
 
94
101
 
@@ -125,6 +132,8 @@ Name | Type | Description | Notes
125
132
 
126
133
  * `SuspendedToken` (value: `"SuspendedToken"`)
127
134
 
135
+ * `ComplianceDisposition` (value: `"ComplianceDisposition"`)
136
+
128
137
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
129
138
 
130
139
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. |
7
+ **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. |
8
8
 
9
9
 
10
10
 
@@ -41,6 +41,8 @@ Name | Type | Description | Notes
41
41
 
42
42
  * `SuspendedToken` (value: `"SuspendedToken"`)
43
43
 
44
+ * `ComplianceDisposition` (value: `"ComplianceDisposition"`)
45
+
44
46
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
45
47
 
46
48
 
@@ -69,6 +69,8 @@
69
69
 
70
70
  * `payment.address.updated` (value: `"payment.address.updated"`)
71
71
 
72
+ * `compliance.disposition.status.updated` (value: `"compliance.disposition.status.updated"`)
73
+
72
74
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
73
75
 
74
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobo/cobo-waas2",
3
- "version": "1.22.0",
3
+ "version": "1.24.0",
4
4
  "description": "The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobo's WaaS API offering. It enables you to access Cobo's full suite of crypto wallet technologies with powerful and flexible access controls. By encapsulating complex security protocols and streamlining blockchain interactions, this API allows you to concentrate on your core business activities without worrying about the safety of your assets. The WaaS 2.0 API presents the following key features: - A unified API for Cobo's [all four wallet types](https://manuals.cobo.com/en/portal/introduction#an-all-in-one-wallet-platform) - Support for 80+ chains and 3000+ tokens - A comprehensive selection of webhook events - Flexible usage models for MPC Wallets, including [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction) and [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction) - Programmatic control of smart contract wallets such as Safe{Wallet} with fine-grained access controls - Seamlessly transfer funds across multiple exchanges, including Binance, OKX, Bybit, Deribit, and more For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction). ",
5
5
  "license": "GPL 2.0",
6
6
  "main": "dist/index.js",
@@ -1,140 +0,0 @@
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 _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
- 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); } /**
15
- * Cobo Wallet as a Service 2.0
16
- *
17
- * Contact: help@cobo.com
18
- *
19
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20
- * https://openapi-generator.tech
21
- * Do not edit the class manually.
22
- *
23
- */
24
- /**
25
- * The ApprovalShowInfo model module.
26
- * @module model/ApprovalShowInfo
27
- */
28
- var ApprovalShowInfo = /*#__PURE__*/function () {
29
- /**
30
- * Constructs a new <code>ApprovalShowInfo</code>.
31
- * Extra information for transaction approval details.
32
- * @alias module:model/ApprovalShowInfo
33
- */
34
- function ApprovalShowInfo() {
35
- _classCallCheck(this, ApprovalShowInfo);
36
- ApprovalShowInfo.initialize(this);
37
- }
38
-
39
- /**
40
- * Initializes the fields of this object.
41
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
42
- * Only for internal use.
43
- */
44
- return _createClass(ApprovalShowInfo, null, [{
45
- key: "initialize",
46
- value: function initialize(obj) {}
47
-
48
- /**
49
- * Constructs a <code>ApprovalShowInfo</code> from a plain JavaScript object, optionally creating a new instance.
50
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
51
- * @param {Object} data The plain JavaScript object bearing properties of interest.
52
- * @param {module:model/ApprovalShowInfo} obj Optional instance to populate.
53
- * @return {module:model/ApprovalShowInfo} The populated <code>ApprovalShowInfo</code> instance.
54
- */
55
- }, {
56
- key: "constructFromObject",
57
- value: function constructFromObject(data, obj) {
58
- if (data) {
59
- obj = obj || new ApprovalShowInfo();
60
- if (data.hasOwnProperty('org_name')) {
61
- obj['org_name'] = _ApiClient["default"].convertToType(data['org_name'], 'String');
62
- }
63
- if (data.hasOwnProperty('wallet_name')) {
64
- obj['wallet_name'] = _ApiClient["default"].convertToType(data['wallet_name'], 'String');
65
- }
66
- if (data.hasOwnProperty('environment')) {
67
- obj['environment'] = _ApiClient["default"].convertToType(data['environment'], 'String');
68
- }
69
- if (data.hasOwnProperty('from_address_label')) {
70
- obj['from_address_label'] = _ApiClient["default"].convertToType(data['from_address_label'], 'String');
71
- }
72
- if (data.hasOwnProperty('to_address_label')) {
73
- obj['to_address_label'] = _ApiClient["default"].convertToType(data['to_address_label'], 'String');
74
- }
75
- }
76
- return obj;
77
- }
78
-
79
- /**
80
- * Validates the JSON data with respect to <code>ApprovalShowInfo</code>.
81
- * @param {Object} data The plain JavaScript object bearing properties of interest.
82
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ApprovalShowInfo</code>.
83
- */
84
- }, {
85
- key: "validateJSON",
86
- value: function validateJSON(data) {
87
- // ensure the json data is a string
88
- if (data['org_name'] && !(typeof data['org_name'] === 'string' || data['org_name'] instanceof String)) {
89
- throw new Error("Expected the field `org_name` to be a primitive type in the JSON string but got " + data['org_name']);
90
- }
91
- // ensure the json data is a string
92
- if (data['wallet_name'] && !(typeof data['wallet_name'] === 'string' || data['wallet_name'] instanceof String)) {
93
- throw new Error("Expected the field `wallet_name` to be a primitive type in the JSON string but got " + data['wallet_name']);
94
- }
95
- // ensure the json data is a string
96
- if (data['environment'] && !(typeof data['environment'] === 'string' || data['environment'] instanceof String)) {
97
- throw new Error("Expected the field `environment` to be a primitive type in the JSON string but got " + data['environment']);
98
- }
99
- // ensure the json data is a string
100
- if (data['from_address_label'] && !(typeof data['from_address_label'] === 'string' || data['from_address_label'] instanceof String)) {
101
- throw new Error("Expected the field `from_address_label` to be a primitive type in the JSON string but got " + data['from_address_label']);
102
- }
103
- // ensure the json data is a string
104
- if (data['to_address_label'] && !(typeof data['to_address_label'] === 'string' || data['to_address_label'] instanceof String)) {
105
- throw new Error("Expected the field `to_address_label` to be a primitive type in the JSON string but got " + data['to_address_label']);
106
- }
107
- return true;
108
- }
109
- }]);
110
- }();
111
- /**
112
- * The name of the organization that the transaction belongs to.
113
- * @member {String} org_name
114
- */
115
- ApprovalShowInfo.prototype['org_name'] = undefined;
116
-
117
- /**
118
- * The name of the wallet that the transaction belongs to.
119
- * @member {String} wallet_name
120
- */
121
- ApprovalShowInfo.prototype['wallet_name'] = undefined;
122
-
123
- /**
124
- * The environment in which the transaction is processed.
125
- * @member {String} environment
126
- */
127
- ApprovalShowInfo.prototype['environment'] = undefined;
128
-
129
- /**
130
- * The label of the address from which the transaction is initiated.
131
- * @member {String} from_address_label
132
- */
133
- ApprovalShowInfo.prototype['from_address_label'] = undefined;
134
-
135
- /**
136
- * The label of the address to which the transaction is sent.
137
- * @member {String} to_address_label
138
- */
139
- ApprovalShowInfo.prototype['to_address_label'] = undefined;
140
- var _default = exports["default"] = ApprovalShowInfo;
@@ -1,13 +0,0 @@
1
- # CoboWaas2.ApprovalShowInfo
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **org_name** | **String** | The name of the organization that the transaction belongs to. | [optional]
8
- **wallet_name** | **String** | The name of the wallet that the transaction belongs to. | [optional]
9
- **environment** | **String** | The environment in which the transaction is processed. | [optional]
10
- **from_address_label** | **String** | The label of the address from which the transaction is initiated. | [optional]
11
- **to_address_label** | **String** | The label of the address to which the transaction is sent. | [optional]
12
-
13
-
@@ -1,10 +0,0 @@
1
- # CoboWaas2.BTCEIP191MessageSignDestination
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **destination_type** | [**MessageSignDestinationType**](MessageSignDestinationType.md) | |
8
- **message** | **String** | The raw data of the message to be signed, encoded in Base64 format. |
9
-
10
-
@@ -1,10 +0,0 @@
1
- # CoboWaas2.RawMessageSignDestination
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **destination_type** | [**MessageSignDestinationType**](MessageSignDestinationType.md) | |
8
- **msg_hash** | **String** | Message hash to be signed, in hexadecimal format. |
9
-
10
-