@cobo/cobo-waas2 1.17.0 → 1.18.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 (174) hide show
  1. package/README.md +36 -4
  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 -2
  8. package/dist/api/WalletsApi.js +5 -2
  9. package/dist/index.js +203 -7
  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 +8 -3
  14. package/dist/model/BalanceUpdateInfo.js +170 -0
  15. package/dist/model/BalanceUpdateInfoEventData.js +297 -0
  16. package/dist/model/BankAccount.js +2 -2
  17. package/dist/model/ChainsEventData.js +8 -3
  18. package/dist/model/CreateMerchantRequest.js +13 -0
  19. package/dist/model/CreatePaymentOrderRequest.js +10 -1
  20. package/dist/model/CreateRefundRequest.js +9 -11
  21. package/dist/model/CreateSettlement.js +8 -27
  22. package/dist/model/CreateSettlementRequestRequest.js +27 -0
  23. package/dist/model/CryptoAddress.js +7 -7
  24. package/dist/model/CustodialTransferDestination.js +1 -1
  25. package/dist/model/EstimateContractCallFeeParams.js +2 -2
  26. package/dist/model/EstimateFeeParams.js +1 -1
  27. package/dist/model/EstimatedFILFee.js +170 -0
  28. package/dist/model/EstimatedFILFeeSlow.js +186 -0
  29. package/dist/model/EstimatedFee.js +68 -12
  30. package/dist/model/EstimatedSOLFee.js +170 -0
  31. package/dist/model/EstimatedSOLFeeSlow.js +184 -0
  32. package/dist/model/ExchangePermissionToken201Response.js +4 -4
  33. package/dist/model/ExchangePermissionTokenRequest.js +2 -2
  34. package/dist/model/FILBase.js +88 -0
  35. package/dist/model/FILPrice.js +114 -0
  36. package/dist/model/FeeType.js +10 -0
  37. package/dist/model/GetExchangeRate200Response.js +2 -2
  38. package/dist/model/GraphQLError.js +135 -0
  39. package/dist/model/GraphQLErrorLocationsInner.js +92 -0
  40. package/dist/model/{TransactionMessageSignBTCEIP191Destination.js → GraphQLRequest.js} +49 -36
  41. package/dist/model/GraphQLResponse.js +119 -0
  42. package/dist/model/ListTopUpPayers200Response.js +123 -0
  43. package/dist/model/ListTopUpPayers200ResponseDataInner.js +189 -0
  44. package/dist/model/MPCVaultEventData.js +8 -3
  45. package/dist/model/Merchant.js +15 -2
  46. package/dist/model/Order.js +12 -3
  47. package/dist/model/PayerAccount.js +189 -0
  48. package/dist/model/PaymentOrderEventData.js +27 -9
  49. package/dist/model/PaymentRefundEventData.js +66 -11
  50. package/dist/model/PaymentSettlementEvent.js +14 -9
  51. package/dist/model/RefreshPermissionTokenRequest.js +2 -2
  52. package/dist/model/Refund.js +39 -4
  53. package/dist/model/RefundStatus.js +5 -0
  54. package/dist/model/SOLBase.js +101 -0
  55. package/dist/model/SOLComputeUnit.js +101 -0
  56. package/dist/model/Settlement.js +3 -3
  57. package/dist/model/SettlementDetail.js +15 -6
  58. package/dist/model/SettlementInfo.js +11 -2
  59. package/dist/model/SwapActivityDetail.js +30 -0
  60. package/dist/model/SwapActivitySigners.js +110 -0
  61. package/dist/model/SwapQuote.js +17 -4
  62. package/dist/model/SwapSingingStatus.js +71 -0
  63. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  64. package/dist/model/TokenListingEventData.js +8 -3
  65. package/dist/model/TokensEventData.js +8 -3
  66. package/dist/model/TopUpAddress.js +230 -0
  67. package/dist/model/TransactionCoboCategory.js +20 -0
  68. package/dist/model/TransactionDestination.js +10 -38
  69. package/dist/model/TransactionEvmCalldataInfo.js +1 -1
  70. package/dist/model/TransactionFILFee.js +229 -0
  71. package/dist/model/TransactionFee.js +107 -9
  72. package/dist/model/TransactionRequestFILFee.js +186 -0
  73. package/dist/model/TransactionRequestFee.js +89 -9
  74. package/dist/model/TransactionRequestSOLFee.js +168 -0
  75. package/dist/model/TransactionSOLFee.js +229 -0
  76. package/dist/model/TransactionTransferToAddressDestination.js +2 -2
  77. package/dist/model/TransactionTransferToWalletDestination.js +1 -1
  78. package/dist/model/TransactionWebhookEventData.js +8 -3
  79. package/dist/model/TransferDestination.js +2 -2
  80. package/dist/model/UpdateMerchantByIdRequest.js +13 -0
  81. package/dist/model/UpdateRefundByIdRequest.js +110 -0
  82. package/dist/model/UpdateTopUpAddress.js +141 -0
  83. package/dist/model/WalletInfoEventData.js +8 -3
  84. package/dist/model/WebhookEvent.js +2 -2
  85. package/dist/model/WebhookEventData.js +83 -13
  86. package/dist/model/WebhookEventDataType.js +7 -2
  87. package/dist/model/WebhookEventLog.js +2 -2
  88. package/dist/model/WebhookEventType.js +15 -0
  89. package/docs/Account.md +14 -0
  90. package/docs/AcquiringType.md +12 -0
  91. package/docs/AddressTransferDestination.md +2 -2
  92. package/docs/AddressesEventData.md +3 -1
  93. package/docs/BalanceUpdateInfo.md +13 -0
  94. package/docs/BalanceUpdateInfoEventData.md +47 -0
  95. package/docs/BankAccount.md +2 -2
  96. package/docs/ChainsEventData.md +3 -1
  97. package/docs/CreateMerchantRequest.md +1 -0
  98. package/docs/CreatePaymentOrderRequest.md +2 -1
  99. package/docs/CreateRefundRequest.md +5 -5
  100. package/docs/CreateSettlement.md +7 -9
  101. package/docs/CreateSettlementRequestRequest.md +3 -0
  102. package/docs/CryptoAddress.md +5 -5
  103. package/docs/EstimateContractCallFeeParams.md +1 -1
  104. package/docs/EstimateFeeParams.md +1 -1
  105. package/docs/EstimatedFILFee.md +13 -0
  106. package/docs/EstimatedFILFeeSlow.md +12 -0
  107. package/docs/EstimatedFee.md +3 -3
  108. package/docs/EstimatedSOLFee.md +13 -0
  109. package/docs/EstimatedSOLFeeSlow.md +12 -0
  110. package/docs/ExchangePermissionToken201Response.md +4 -4
  111. package/docs/ExchangePermissionTokenRequest.md +1 -1
  112. package/docs/FILBase.md +9 -0
  113. package/docs/FILPrice.md +11 -0
  114. package/docs/FeeStationApi.md +1 -1
  115. package/docs/FeeType.md +4 -0
  116. package/docs/GetExchangeRate200Response.md +1 -1
  117. package/docs/GraphQLError.md +11 -0
  118. package/docs/GraphQLErrorLocationsInner.md +10 -0
  119. package/docs/GraphQLRequest.md +11 -0
  120. package/docs/GraphQLResponse.md +10 -0
  121. package/docs/ListTopUpPayers200Response.md +10 -0
  122. package/docs/ListTopUpPayers200ResponseDataInner.md +14 -0
  123. package/docs/MPCVaultEventData.md +3 -1
  124. package/docs/Merchant.md +3 -2
  125. package/docs/OAuthApi.md +8 -8
  126. package/docs/Order.md +4 -3
  127. package/docs/OrganizationsApi.md +55 -0
  128. package/docs/PayerAccount.md +14 -0
  129. package/docs/PaymentApi.md +230 -6
  130. package/docs/PaymentOrderEventData.md +7 -4
  131. package/docs/PaymentRefundEventData.md +10 -5
  132. package/docs/PaymentSettlementEvent.md +6 -4
  133. package/docs/RefreshPermissionTokenRequest.md +1 -1
  134. package/docs/Refund.md +7 -4
  135. package/docs/RefundStatus.md +2 -0
  136. package/docs/SOLBase.md +10 -0
  137. package/docs/SOLComputeUnit.md +10 -0
  138. package/docs/Settlement.md +3 -3
  139. package/docs/SettlementDetail.md +7 -6
  140. package/docs/SettlementInfo.md +3 -2
  141. package/docs/SwapActivityDetail.md +1 -0
  142. package/docs/SwapActivitySigners.md +11 -0
  143. package/docs/SwapQuote.md +3 -2
  144. package/docs/SwapSingingStatus.md +16 -0
  145. package/docs/TSSRequestWebhookEventData.md +3 -1
  146. package/docs/TokenListingEventData.md +3 -1
  147. package/docs/TokensEventData.md +3 -1
  148. package/docs/TopUpAddress.md +18 -0
  149. package/docs/TransactionCoboCategory.md +8 -0
  150. package/docs/TransactionDestination.md +2 -2
  151. package/docs/TransactionEvmCalldataInfo.md +1 -1
  152. package/docs/TransactionFILFee.md +16 -0
  153. package/docs/TransactionFee.md +8 -1
  154. package/docs/TransactionRequestFILFee.md +13 -0
  155. package/docs/TransactionRequestFee.md +5 -1
  156. package/docs/TransactionRequestSOLFee.md +12 -0
  157. package/docs/TransactionSOLFee.md +16 -0
  158. package/docs/TransactionTransferToAddressDestination.md +2 -2
  159. package/docs/TransactionTransferToWalletDestination.md +1 -1
  160. package/docs/TransactionWebhookEventData.md +3 -1
  161. package/docs/TransactionsApi.md +1 -1
  162. package/docs/TransferDestination.md +2 -2
  163. package/docs/UpdateMerchantByIdRequest.md +1 -0
  164. package/docs/UpdateRefundByIdRequest.md +9 -0
  165. package/docs/UpdateTopUpAddress.md +11 -0
  166. package/docs/WalletInfoEventData.md +3 -1
  167. package/docs/WalletsApi.md +3 -1
  168. package/docs/WebhookEvent.md +1 -1
  169. package/docs/WebhookEventData.md +14 -5
  170. package/docs/WebhookEventDataType.md +3 -1
  171. package/docs/WebhookEventLog.md +1 -1
  172. package/docs/WebhookEventType.md +6 -0
  173. package/package.json +1 -1
  174. package/docs/TransactionMessageSignBTCEIP191Destination.md +0 -10
@@ -4,6 +4,7 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**cancelRefundById**](PaymentApi.md#cancelRefundById) | **PUT** /payments/refunds/{refund_id}/cancel | Cancel refund order
7
8
  [**createMerchant**](PaymentApi.md#createMerchant) | **POST** /payments/merchants | Create merchant
8
9
  [**createPaymentOrder**](PaymentApi.md#createPaymentOrder) | **POST** /payments/orders | Create pay-in order
9
10
  [**createRefund**](PaymentApi.md#createRefund) | **POST** /payments/refunds | Create refund order
@@ -14,17 +15,70 @@ Method | HTTP request | Description
14
15
  [**getRefunds**](PaymentApi.md#getRefunds) | **GET** /payments/refunds | List all refund orders
15
16
  [**getSettlementById**](PaymentApi.md#getSettlementById) | **GET** /payments/settlement_requests/{settlement_request_id} | Get settlement request information
16
17
  [**getSettlementInfoByIds**](PaymentApi.md#getSettlementInfoByIds) | **GET** /payments/settlement_info | Get withdrawable balances
18
+ [**getTopUpAddress**](PaymentApi.md#getTopUpAddress) | **GET** /payments/topup/address | Get top-up address
17
19
  [**listBankAccounts**](PaymentApi.md#listBankAccounts) | **GET** /payments/bank_accounts | List all bank accounts
18
20
  [**listCryptoAddresses**](PaymentApi.md#listCryptoAddresses) | **GET** /payments/crypto_addresses | List crypto addresses
19
21
  [**listMerchants**](PaymentApi.md#listMerchants) | **GET** /payments/merchants | List all merchants
20
22
  [**listPaymentOrders**](PaymentApi.md#listPaymentOrders) | **GET** /payments/orders | List all pay-in orders
21
23
  [**listPaymentSupportedTokens**](PaymentApi.md#listPaymentSupportedTokens) | **GET** /payments/supported_tokens | List all supported tokens
22
24
  [**listSettlementRequests**](PaymentApi.md#listSettlementRequests) | **GET** /payments/settlement_requests | List all settlement requests
25
+ [**listTopUpPayers**](PaymentApi.md#listTopUpPayers) | **GET** /payments/topup/payers | List payers
23
26
  [**updateMerchantById**](PaymentApi.md#updateMerchantById) | **PUT** /payments/merchants/{merchant_id} | Update merchant
24
27
  [**updatePaymentOrder**](PaymentApi.md#updatePaymentOrder) | **PUT** /payments/orders/{order_id} | Update pay-in order
28
+ [**updateRefundById**](PaymentApi.md#updateRefundById) | **PUT** /payments/refunds/{refund_id} | Update refund order information
25
29
 
26
30
 
27
31
 
32
+ ## cancelRefundById
33
+
34
+ > Refund cancelRefundById(refund_id)
35
+
36
+ Cancel refund order
37
+
38
+ This operation cancels a specified refund order.
39
+
40
+ ### Example
41
+
42
+ ```javascript
43
+ const CoboWaas2 = require('@cobo/cobo-waas2');
44
+ // Initialize the API client
45
+ const apiClient = CoboWaas2.ApiClient.instance
46
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
47
+ apiClient.setEnv(CoboWaas2.Env.DEV);
48
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
49
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
50
+ // Call the API
51
+ const apiInstance = new CoboWaas2.PaymentApi();
52
+ const refund_id = "R20250304-M1001-1001";
53
+ apiInstance.cancelRefundById(refund_id).then((data) => {
54
+ console.log('API called successfully. Returned data: ' + data);
55
+ }, (error) => {
56
+ console.error(error);
57
+ });
58
+
59
+ ```
60
+
61
+ ### Parameters
62
+
63
+
64
+ Name | Type | Description | Notes
65
+ ------------- | ------------- | ------------- | -------------
66
+ **refund_id** | **String**| The refund order ID. |
67
+
68
+ ### Return type
69
+
70
+ [**Refund**](Refund.md)
71
+
72
+ ### Authorization
73
+
74
+ [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
75
+
76
+ ### HTTP request headers
77
+
78
+ - **Content-Type**: Not defined
79
+ - **Accept**: application/json
80
+
81
+
28
82
  ## createMerchant
29
83
 
30
84
  > Merchant createMerchant(opts)
@@ -187,7 +241,7 @@ Name | Type | Description | Notes
187
241
 
188
242
  Create settlement request
189
243
 
190
- This operation creates a settlement request to withdraw available balances. You can include multiple merchants and cryptocurrencies in a single settlement request.
244
+ This operation creates a settlement request to withdraw available balances.
191
245
 
192
246
  ### Example
193
247
 
@@ -268,7 +322,7 @@ apiInstance.getExchangeRate(token_id, currency).then((data) => {
268
322
 
269
323
  Name | Type | Description | Notes
270
324
  ------------- | ------------- | ------------- | -------------
271
- **token_id** | **String**| The token ID, which identifies the cryptocurrency. Supported values: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDC&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; |
325
+ **token_id** | **String**| The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format &#x60;{CHAIN}_{TOKEN}&#x60;. Supported values include: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDC&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; |
272
326
  **currency** | **String**| The fiat currency. Currently, only &#x60;USD&#x60; is supported. | [default to &#39;USD&#39;]
273
327
 
274
328
  ### Return type
@@ -517,7 +571,8 @@ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
517
571
  const apiInstance = new CoboWaas2.PaymentApi();
518
572
  const opts = {
519
573
  'merchant_ids': "M1001,M1002,M1003",
520
- 'currency': "USD"
574
+ 'currency': "USD",
575
+ 'acquiring_type': new CoboWaas2.AcquiringType()
521
576
  };
522
577
  apiInstance.getSettlementInfoByIds(opts).then((data) => {
523
578
  console.log('API called successfully. Returned data: ' + data);
@@ -534,6 +589,7 @@ Name | Type | Description | Notes
534
589
  ------------- | ------------- | ------------- | -------------
535
590
  **merchant_ids** | **String**| A list of merchant IDs to query. | [optional]
536
591
  **currency** | **String**| The currency for the operation. Currently, only &#x60;USD&#x60; is supported. | [optional] [default to &#39;USD&#39;]
592
+ **acquiring_type** | [**AcquiringType**](.md)| | [optional]
537
593
 
538
594
  ### Return type
539
595
 
@@ -549,6 +605,60 @@ Name | Type | Description | Notes
549
605
  - **Accept**: application/json
550
606
 
551
607
 
608
+ ## getTopUpAddress
609
+
610
+ > TopUpAddress getTopUpAddress(merchant_id, token_id, custom_payer_id)
611
+
612
+ Get top-up address
613
+
614
+ This operation retrieves the information of the dedicated top-up address assigned to a specific payer under a merchant on a specified chain.
615
+
616
+ ### Example
617
+
618
+ ```javascript
619
+ const CoboWaas2 = require('@cobo/cobo-waas2');
620
+ // Initialize the API client
621
+ const apiClient = CoboWaas2.ApiClient.instance
622
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
623
+ apiClient.setEnv(CoboWaas2.Env.DEV);
624
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
625
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
626
+ // Call the API
627
+ const apiInstance = new CoboWaas2.PaymentApi();
628
+ const merchant_id = "M1001";
629
+ const token_id = "ETH_USDT";
630
+ const custom_payer_id = "payer_0001";
631
+ apiInstance.getTopUpAddress(merchant_id, token_id, custom_payer_id).then((data) => {
632
+ console.log('API called successfully. Returned data: ' + data);
633
+ }, (error) => {
634
+ console.error(error);
635
+ });
636
+
637
+ ```
638
+
639
+ ### Parameters
640
+
641
+
642
+ Name | Type | Description | Notes
643
+ ------------- | ------------- | ------------- | -------------
644
+ **merchant_id** | **String**| The merchant ID. |
645
+ **token_id** | **String**| The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format &#x60;{CHAIN}_{TOKEN}&#x60;. Supported values include: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDC&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; |
646
+ **custom_payer_id** | **String**| A unique identifier assigned by the developer to track and identify individual payers in their system. |
647
+
648
+ ### Return type
649
+
650
+ [**TopUpAddress**](TopUpAddress.md)
651
+
652
+ ### Authorization
653
+
654
+ [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
655
+
656
+ ### HTTP request headers
657
+
658
+ - **Content-Type**: Not defined
659
+ - **Accept**: application/json
660
+
661
+
552
662
  ## listBankAccounts
553
663
 
554
664
  > [BankAccount] listBankAccounts()
@@ -601,7 +711,7 @@ This endpoint does not need any parameter.
601
711
 
602
712
  List crypto addresses
603
713
 
604
- Retrieve a list of cryptocurrency addresses previously created for a given &#x60;token_id&#x60;.
714
+ This operation retrieves a list of crypto addresses registered for crypto withdrawal. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new crypto address.
605
715
 
606
716
  ### Example
607
717
 
@@ -631,7 +741,7 @@ apiInstance.listCryptoAddresses(opts).then((data) => {
631
741
 
632
742
  Name | Type | Description | Notes
633
743
  ------------- | ------------- | ------------- | -------------
634
- **token_id** | **String**| The token ID, which identifies the cryptocurrency. Supported values: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDC&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; | [optional]
744
+ **token_id** | **String**| The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format &#x60;{CHAIN}_{TOKEN}&#x60;. Supported values include: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDC&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; | [optional]
635
745
 
636
746
  ### Return type
637
747
 
@@ -751,7 +861,7 @@ Name | Type | Description | Notes
751
861
  **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]
752
862
  **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]
753
863
  **merchant_id** | **String**| The merchant ID. | [optional]
754
- **psp_order_id** | **String**| The PSP order ID. | [optional]
864
+ **psp_order_id** | **String**| A unique reference code assigned by the developer to identify this order in their system. | [optional]
755
865
 
756
866
  ### Return type
757
867
 
@@ -871,6 +981,66 @@ Name | Type | Description | Notes
871
981
  - **Accept**: application/json
872
982
 
873
983
 
984
+ ## listTopUpPayers
985
+
986
+ > ListTopUpPayers200Response listTopUpPayers(merchant_id, opts)
987
+
988
+ List payers
989
+
990
+ This operation retrieves the information of all payers under a merchant. You can filter the result by the payer ID.
991
+
992
+ ### Example
993
+
994
+ ```javascript
995
+ const CoboWaas2 = require('@cobo/cobo-waas2');
996
+ // Initialize the API client
997
+ const apiClient = CoboWaas2.ApiClient.instance
998
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
999
+ apiClient.setEnv(CoboWaas2.Env.DEV);
1000
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
1001
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
1002
+ // Call the API
1003
+ const apiInstance = new CoboWaas2.PaymentApi();
1004
+ const merchant_id = "M1001";
1005
+ const opts = {
1006
+ 'limit': 10,
1007
+ 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
1008
+ 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk",
1009
+ 'payer_id': "P20250619T0310056d7aa"
1010
+ };
1011
+ apiInstance.listTopUpPayers(merchant_id, opts).then((data) => {
1012
+ console.log('API called successfully. Returned data: ' + data);
1013
+ }, (error) => {
1014
+ console.error(error);
1015
+ });
1016
+
1017
+ ```
1018
+
1019
+ ### Parameters
1020
+
1021
+
1022
+ Name | Type | Description | Notes
1023
+ ------------- | ------------- | ------------- | -------------
1024
+ **merchant_id** | **String**| The merchant ID. |
1025
+ **limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
1026
+ **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]
1027
+ **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]
1028
+ **payer_id** | **String**| A unique identifier assigned by Cobo to track and identify individual payers. | [optional]
1029
+
1030
+ ### Return type
1031
+
1032
+ [**ListTopUpPayers200Response**](ListTopUpPayers200Response.md)
1033
+
1034
+ ### Authorization
1035
+
1036
+ [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
1037
+
1038
+ ### HTTP request headers
1039
+
1040
+ - **Content-Type**: Not defined
1041
+ - **Accept**: application/json
1042
+
1043
+
874
1044
  ## updateMerchantById
875
1045
 
876
1046
  > Merchant updateMerchantById(merchant_id, opts)
@@ -978,3 +1148,57 @@ Name | Type | Description | Notes
978
1148
  - **Content-Type**: application/json
979
1149
  - **Accept**: application/json
980
1150
 
1151
+
1152
+ ## updateRefundById
1153
+
1154
+ > Refund updateRefundById(refund_id, opts)
1155
+
1156
+ Update refund order information
1157
+
1158
+ This operation updates a specified refund order.
1159
+
1160
+ ### Example
1161
+
1162
+ ```javascript
1163
+ const CoboWaas2 = require('@cobo/cobo-waas2');
1164
+ // Initialize the API client
1165
+ const apiClient = CoboWaas2.ApiClient.instance
1166
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
1167
+ apiClient.setEnv(CoboWaas2.Env.DEV);
1168
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
1169
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
1170
+ // Call the API
1171
+ const apiInstance = new CoboWaas2.PaymentApi();
1172
+ const refund_id = "R20250304-M1001-1001";
1173
+ const opts = {
1174
+ 'UpdateRefundByIdRequest': new CoboWaas2.UpdateRefundByIdRequest()
1175
+ };
1176
+ apiInstance.updateRefundById(refund_id, opts).then((data) => {
1177
+ console.log('API called successfully. Returned data: ' + data);
1178
+ }, (error) => {
1179
+ console.error(error);
1180
+ });
1181
+
1182
+ ```
1183
+
1184
+ ### Parameters
1185
+
1186
+
1187
+ Name | Type | Description | Notes
1188
+ ------------- | ------------- | ------------- | -------------
1189
+ **refund_id** | **String**| The refund order ID. |
1190
+ **UpdateRefundByIdRequest** | [**UpdateRefundByIdRequest**](UpdateRefundByIdRequest.md)| The request body to update a refund order. | [optional]
1191
+
1192
+ ### Return type
1193
+
1194
+ [**Refund**](Refund.md)
1195
+
1196
+ ### Authorization
1197
+
1198
+ [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
1199
+
1200
+ ### HTTP request headers
1201
+
1202
+ - **Content-Type**: application/json
1203
+ - **Accept**: application/json
1204
+
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. |
7
+ **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;BalanceUpdateInfo&#x60;: The balance update event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. |
8
8
  **order_id** | **String** | The order ID. |
9
9
  **merchant_id** | **String** | The merchant ID. | [optional]
10
10
  **token_id** | **String** | The ID of the cryptocurrency used for payment. Supported tokens: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDC&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; |
@@ -20,9 +20,10 @@ Name | Type | Description | Notes
20
20
  **psp_order_code** | **String** | A unique reference code assigned by the developer to identify this order in their system. |
21
21
  **status** | [**OrderStatus**](OrderStatus.md) | |
22
22
  **received_token_amount** | **String** | The total cryptocurrency amount received for this order. Updates until the expiration time. Precision matches the token standard (e.g., 6 decimals for USDT). |
23
- **created_timestamp** | **Number** | The created time of the order, represented as a UNIX timestamp in seconds. | [optional]
24
- **updated_timestamp** | **Number** | The updated time of the order, represented as a UNIX timestamp in seconds. | [optional]
25
- **transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process. | [optional]
23
+ **created_timestamp** | **Number** | The creation time of the order, represented as a UNIX timestamp in seconds. | [optional]
24
+ **updated_timestamp** | **Number** | The last update time of the order, represented as a UNIX timestamp in seconds. | [optional]
25
+ **transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the pay-in process. | [optional]
26
+ **settlement_status** | [**SettleStatus**](SettleStatus.md) | | [optional]
26
27
 
27
28
 
28
29
 
@@ -45,6 +46,8 @@ Name | Type | Description | Notes
45
46
 
46
47
  * `TokenListing` (value: `"TokenListing"`)
47
48
 
49
+ * `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
50
+
48
51
  * `PaymentOrder` (value: `"PaymentOrder"`)
49
52
 
50
53
  * `PaymentRefund` (value: `"PaymentRefund"`)
@@ -4,10 +4,10 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. |
7
+ **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;BalanceUpdateInfo&#x60;: The balance update event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. |
8
8
  **request_id** | **String** | The request ID provided by you when creating the refund request. | [optional]
9
9
  **refund_id** | **String** | The refund order ID. |
10
- **order_id** | **String** | The order ID corresponding to this refund. | [optional]
10
+ **order_id** | **String** | The ID of the pay-in order corresponding to this refund. | [optional]
11
11
  **merchant_id** | **String** | The merchant ID. | [optional]
12
12
  **token_id** | **String** | The ID of the cryptocurrency used for refund. |
13
13
  **chain_id** | **String** | The ID of the blockchain network on which the refund transaction occurs. |
@@ -15,10 +15,13 @@ Name | Type | Description | Notes
15
15
  **to_address** | **String** | The recipient&#39;s wallet address where the refund will be sent. |
16
16
  **status** | [**RefundStatus**](RefundStatus.md) | |
17
17
  **refund_type** | [**RefundType**](RefundType.md) | | [optional]
18
- **created_timestamp** | **Number** | The created time of the refund order, represented as a UNIX timestamp in seconds. | [optional]
19
- **updated_timestamp** | **Number** | The updated time of the refund order, represented as a UNIX timestamp in seconds. | [optional]
20
- **initiator** | **String** | The initiator of this refund order, usually the user&#39;s API key. | [optional]
18
+ **created_timestamp** | **Number** | The creation time of the refund order, represented as a UNIX timestamp in seconds. | [optional]
19
+ **updated_timestamp** | **Number** | The last update time of the refund order, represented as a UNIX timestamp in seconds. | [optional]
20
+ **initiator** | **String** | The initiator of this settlement request. Can return either an API key or the Payment Management App&#39;s ID. - Format &#x60;api_key_&lt;API_KEY&gt;&#x60;: Indicates the settlement request was initiated via the Payment API using the API key. - Format &#x60;app_&lt;APP_ID&gt;&#x60;: Indicates the settlement request was initiated through the Payment Management App using the App ID. | [optional]
21
21
  **transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | An array of transactions associated with this refund order. Each transaction represents a separate blockchain operation related to the refund process. | [optional]
22
+ **charge_merchant_fee** | **Boolean** | Whether to charge developer fee to the merchant for the refund. - &#x60;true&#x60;: The fee amount (specified in &#x60;merchant_fee_amount&#x60;) will be deducted from the merchant&#39;s balance and added to the developer&#39;s balance - &#x60;false&#x60;: The merchant is not charged any developer fee. | [optional]
23
+ **merchant_fee_amount** | **String** | The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by &#x60;merchant_fee_token_id&#x60;. This is only applicable if &#x60;charge_merchant_fee&#x60; is set to &#x60;true&#x60;. | [optional]
24
+ **merchant_fee_token_id** | **String** | The ID of the cryptocurrency used for the developer fee. This is only applicable if &#x60;charge_merchant_fee&#x60; is set to true. | [optional]
22
25
 
23
26
 
24
27
 
@@ -41,6 +44,8 @@ Name | Type | Description | Notes
41
44
 
42
45
  * `TokenListing` (value: `"TokenListing"`)
43
46
 
47
+ * `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
48
+
44
49
  * `PaymentOrder` (value: `"PaymentOrder"`)
45
50
 
46
51
  * `PaymentRefund` (value: `"PaymentRefund"`)
@@ -4,14 +4,14 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. |
7
+ **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;BalanceUpdateInfo&#x60;: The balance update event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. |
8
8
  **settlement_request_id** | **String** | The settlement request ID generated by Cobo. |
9
9
  **request_id** | **String** | The request ID provided by you when creating the settlement request. |
10
10
  **status** | [**SettleRequestStatus**](SettleRequestStatus.md) | |
11
11
  **settlements** | [**[SettlementDetail]**](SettlementDetail.md) | |
12
- **created_timestamp** | **Number** | The created time of the settlement request, represented as a UNIX timestamp in seconds. | [optional]
13
- **updated_timestamp** | **Number** | The updated time of the settlement request, represented as a UNIX timestamp in seconds. | [optional]
14
- **initiator** | **String** | The initiator of this settlement request, usually the user&#39;s API key. | [optional]
12
+ **created_timestamp** | **Number** | The creation time of the settlement request, represented as a UNIX timestamp in seconds. | [optional]
13
+ **updated_timestamp** | **Number** | The last update time of the settlement request, represented as a UNIX timestamp in seconds. | [optional]
14
+ **initiator** | **String** | The initiator of this settlement request. Can return either an API key or the Payment Management App&#39;s ID. - Format &#x60;api_key_&lt;API_KEY&gt;&#x60;: Indicates the settlement request was initiated via the Payment API using the API key. - Format &#x60;app_&lt;APP_ID&gt;&#x60;: Indicates the settlement request was initiated through the Payment Management App using the App ID. | [optional]
15
15
 
16
16
 
17
17
 
@@ -34,6 +34,8 @@ Name | Type | Description | Notes
34
34
 
35
35
  * `TokenListing` (value: `"TokenListing"`)
36
36
 
37
+ * `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
38
+
37
39
  * `PaymentOrder` (value: `"PaymentOrder"`)
38
40
 
39
41
  * `PaymentRefund` (value: `"PaymentRefund"`)
@@ -4,6 +4,6 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **refresh_token** | **String** | The Refresh Token of the current Org Access Token. |
7
+ **refresh_token** | **String** | The Refresh Token of the current Access Token. |
8
8
 
9
9
 
package/docs/Refund.md CHANGED
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **request_id** | **String** | The request ID provided by you when creating the refund request. | [optional]
8
8
  **refund_id** | **String** | The refund order ID. |
9
- **order_id** | **String** | The order ID corresponding to this refund. | [optional]
9
+ **order_id** | **String** | The ID of the pay-in order corresponding to this refund. | [optional]
10
10
  **merchant_id** | **String** | The merchant ID. | [optional]
11
11
  **token_id** | **String** | The ID of the cryptocurrency used for refund. |
12
12
  **chain_id** | **String** | The ID of the blockchain network on which the refund transaction occurs. |
@@ -14,9 +14,12 @@ Name | Type | Description | Notes
14
14
  **to_address** | **String** | The recipient&#39;s wallet address where the refund will be sent. |
15
15
  **status** | [**RefundStatus**](RefundStatus.md) | |
16
16
  **refund_type** | [**RefundType**](RefundType.md) | | [optional]
17
- **created_timestamp** | **Number** | The created time of the refund order, represented as a UNIX timestamp in seconds. | [optional]
18
- **updated_timestamp** | **Number** | The updated time of the refund order, represented as a UNIX timestamp in seconds. | [optional]
19
- **initiator** | **String** | The initiator of this refund order, usually the user&#39;s API key. | [optional]
17
+ **created_timestamp** | **Number** | The creation time of the refund order, represented as a UNIX timestamp in seconds. | [optional]
18
+ **updated_timestamp** | **Number** | The last update time of the refund order, represented as a UNIX timestamp in seconds. | [optional]
19
+ **initiator** | **String** | The initiator of this settlement request. Can return either an API key or the Payment Management App&#39;s ID. - Format &#x60;api_key_&lt;API_KEY&gt;&#x60;: Indicates the settlement request was initiated via the Payment API using the API key. - Format &#x60;app_&lt;APP_ID&gt;&#x60;: Indicates the settlement request was initiated through the Payment Management App using the App ID. | [optional]
20
20
  **transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | An array of transactions associated with this refund order. Each transaction represents a separate blockchain operation related to the refund process. | [optional]
21
+ **charge_merchant_fee** | **Boolean** | Whether to charge developer fee to the merchant for the refund. - &#x60;true&#x60;: The fee amount (specified in &#x60;merchant_fee_amount&#x60;) will be deducted from the merchant&#39;s balance and added to the developer&#39;s balance - &#x60;false&#x60;: The merchant is not charged any developer fee. | [optional]
22
+ **merchant_fee_amount** | **String** | The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by &#x60;merchant_fee_token_id&#x60;. This is only applicable if &#x60;charge_merchant_fee&#x60; is set to &#x60;true&#x60;. | [optional]
23
+ **merchant_fee_token_id** | **String** | The ID of the cryptocurrency used for the developer fee. This is only applicable if &#x60;charge_merchant_fee&#x60; is set to true. | [optional]
21
24
 
22
25
 
@@ -13,6 +13,8 @@
13
13
 
14
14
  * `Failed` (value: `"Failed"`)
15
15
 
16
+ * `PendingConfirmation` (value: `"PendingConfirmation"`)
17
+
16
18
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
17
19
 
18
20
 
@@ -0,0 +1,10 @@
1
+ # CoboWaas2.SOLBase
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **base_fee** | **String** | The fundamental fee required for each transaction. It is charged to prevent spam transactions and network congestion, ensuring that only meaningful transactions consume network resources. | [optional]
8
+ **rent_amount** | **String** | The fee charged as rent for maintaining the state of accounts on the blockchain. This rent ensures accounts are stored on-chain over the long term and that there&#39;s sufficient balance to sustain the account state. | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # CoboWaas2.SOLComputeUnit
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **compute_unit_price** | **String** | The cost per compute unit. Transactions consume computational resources measured in compute units, and this price helps determine the cost of executing transactions, especially complex ones involving smart contracts. | [optional]
8
+ **compute_unit_limit** | **String** | The maximum number of compute units allowed for a transaction. This limits the resources any single transaction can consume, preventing excessive resource usage that could impact network performance negatively. | [optional]
9
+
10
+
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
8
8
  **request_id** | **String** | The request ID provided by you when creating the settlement request. |
9
9
  **status** | [**SettleRequestStatus**](SettleRequestStatus.md) | |
10
10
  **settlements** | [**[SettlementDetail]**](SettlementDetail.md) | |
11
- **created_timestamp** | **Number** | The created time of the settlement request, represented as a UNIX timestamp in seconds. | [optional]
12
- **updated_timestamp** | **Number** | The updated time of the settlement request, represented as a UNIX timestamp in seconds. | [optional]
13
- **initiator** | **String** | The initiator of this settlement request, usually the user&#39;s API key. | [optional]
11
+ **created_timestamp** | **Number** | The creation time of the settlement request, represented as a UNIX timestamp in seconds. | [optional]
12
+ **updated_timestamp** | **Number** | The last update time of the settlement request, represented as a UNIX timestamp in seconds. | [optional]
13
+ **initiator** | **String** | The initiator of this settlement request. Can return either an API key or the Payment Management App&#39;s ID. - Format &#x60;api_key_&lt;API_KEY&gt;&#x60;: Indicates the settlement request was initiated via the Payment API using the API key. - Format &#x60;app_&lt;APP_ID&gt;&#x60;: Indicates the settlement request was initiated through the Payment Management App using the App ID. | [optional]
14
14
 
15
15
 
@@ -7,15 +7,16 @@ Name | Type | Description | Notes
7
7
  **currency** | **String** | The fiat currency for the settlement. | [optional]
8
8
  **token_id** | **String** | The ID of the cryptocurrency settled. | [optional]
9
9
  **chain_id** | **String** | The ID of the blockchain network on which the settlement occurred. | [optional]
10
- **merchant_id** | **String** | The Merchant ID associated with this settlement. | [optional]
11
- **amount** | **String** | The settlement amount. - If &#x60;token_id&#x60; is specified, this represents the settlement amount in the specified cryptocurrency. - If &#x60;token_id&#x60; is not specified, this represents the settlement amount in the specified fiat currency. | [optional]
12
- **settled_amount** | **String** | The settled amount of this settlement detail. - If &#x60;token_id&#x60; is specified, this represents the actual settled amount in the specified cryptocurrency. - If &#x60;token_id&#x60; is not specified, this represents the actual settled amount in the specified fiat currency. | [optional]
10
+ **merchant_id** | **String** | The ID of the merchant associated with this settlement. | [optional]
11
+ **amount** | **String** | The settlement amount. - If &#x60;payout_channel&#x60; is set to &#x60;Crypto&#x60;, this represents the settlement amount in the specified cryptocurrency. - If &#x60;payout_channel&#x60; is set to &#x60;OffRamp&#x60;, this represents the settlement amount in the specified fiat currency. | [optional]
12
+ **settled_amount** | **String** | The settled amount of this settlement detail. - If &#x60;payout_channel&#x60; is set to &#x60;Crypto&#x60;, this represents the actual settled amount in the specified cryptocurrency. - If &#x60;payout_channel&#x60; is set to &#x60;OffRamp&#x60;, this represents the actual settled amount in the specified fiat currency. | [optional]
13
13
  **status** | [**SettleStatus**](SettleStatus.md) | | [optional]
14
14
  **bank_account** | [**BankAccount**](BankAccount.md) | | [optional]
15
15
  **transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | An array of transactions associated with this settlement request. Each transaction represents a separate blockchain operation related to the settlement process. | [optional]
16
- **created_timestamp** | **Number** | The created time of the settlement, represented as a UNIX timestamp in seconds. | [optional]
17
- **updated_timestamp** | **Number** | The updated time of the settlement, represented as a UNIX timestamp in seconds. | [optional]
18
- **crypto_address_id** | **String** | Unique identifier for the pre-approved crypto address, used to reference the address securely in requests. | [optional]
16
+ **created_timestamp** | **Number** | The creation time of the settlement, represented as a UNIX timestamp in seconds. | [optional]
17
+ **updated_timestamp** | **Number** | The last update time of the settlement, represented as a UNIX timestamp in seconds. | [optional]
18
+ **crypto_address_id** | **String** | The ID of the crypto address used for crypto withdrawal. | [optional]
19
19
  **payout_channel** | [**PayoutChannel**](PayoutChannel.md) | | [optional]
20
+ **acquiring_type** | [**AcquiringType**](AcquiringType.md) | | [optional]
20
21
 
21
22
 
@@ -11,7 +11,8 @@ Name | Type | Description | Notes
11
11
  **pending_amount** | **String** | The amount unavailable for settlement or refund, in the specified cryptocurrency. | [optional]
12
12
  **pending_currency_balance** | **String** | The amount unavailable for settlement or refund, in the specified fiat currency. | [optional]
13
13
  **settled_amount** | **String** | The amount already settled, in the specified cryptocurrency. | [optional]
14
- **created_timestamp** | **Number** | The created time of the settlement, represented as a UNIX timestamp in seconds. | [optional]
15
- **updated_timestamp** | **Number** | The updated time of the settlement, represented as a UNIX timestamp in seconds. | [optional]
14
+ **acquiring_type** | [**AcquiringType**](AcquiringType.md) | | [optional]
15
+ **created_timestamp** | **Number** | The creation time of the settlement, represented as a UNIX timestamp in seconds. | [optional]
16
+ **updated_timestamp** | **Number** | The last update time of the settlement, represented as a UNIX timestamp in seconds. | [optional]
16
17
 
17
18
 
@@ -22,5 +22,6 @@ Name | Type | Description | Notes
22
22
  **updated_timestamp** | **Number** | The time when the swap activity was last updated, in Unix timestamp format, measured in milliseconds. | [optional]
23
23
  **timeline** | [**[SwapActivityTimeline]**](SwapActivityTimeline.md) | | [optional]
24
24
  **approvers** | [**[SwapActivityApprovers]**](SwapActivityApprovers.md) | | [optional]
25
+ **signers** | [**[SwapActivitySigners]**](SwapActivitySigners.md) | | [optional]
25
26
 
26
27
 
@@ -0,0 +1,11 @@
1
+ # CoboWaas2.SwapActivitySigners
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **signer** | **String** | The signer name. | [optional]
8
+ **status** | [**SwapSingingStatus**](SwapSingingStatus.md) | | [optional]
9
+ **failed_reason** | **String** | Failed reason of signing process. | [optional]
10
+
11
+
package/docs/SwapQuote.md CHANGED
@@ -9,8 +9,9 @@ Name | Type | Description | Notes
9
9
  **pay_amount** | **String** | The amount of tokens to pay. |
10
10
  **receive_token_id** | **String** | The token ID to receive. |
11
11
  **receive_amount** | **String** | The amount of tokens to receive. |
12
- **fee_token_id** | **String** | The fee token ID. |
13
- **fee_amount** | **String** | The amount of tokens to pay for fee. |
12
+ **fee_token_id** | **String** | The token ID for the service fee. |
13
+ **fee_amount** | **String** | The amount of tokens for the service fee. |
14
+ **estimated_network_fee_amount** | **String** | The estimated amount of tokens for the network fee. | [optional]
14
15
  **min_receive_amount** | **String** | The minimum amount of tokens to receive if the pay amount is specified. | [optional]
15
16
  **max_pay_amount** | **String** | The maximum amount of tokens to pay if the receive amount is specified. | [optional]
16
17
  **quote_expired_timestamp** | **Number** | The time when the quote will expire, in Unix timestamp format, measured in milliseconds. |
@@ -0,0 +1,16 @@
1
+ # CoboWaas2.SwapSingingStatus
2
+
3
+ ## Enum
4
+
5
+
6
+ * `Pending` (value: `"Pending"`)
7
+
8
+ * `Signed` (value: `"Signed"`)
9
+
10
+ * `Timeout` (value: `"Timeout"`)
11
+
12
+ * `Rejected` (value: `"Rejected"`)
13
+
14
+ * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
15
+
16
+
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. |
7
+ **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;BalanceUpdateInfo&#x60;: The balance update event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. |
8
8
  **tss_request_id** | **String** | The TSS request ID. | [optional]
9
9
  **source_key_share_holder_group** | [**SourceGroup**](SourceGroup.md) | | [optional]
10
10
  **target_key_share_holder_group_id** | **String** | The target key share holder group ID. | [optional]
@@ -34,6 +34,8 @@ Name | Type | Description | Notes
34
34
 
35
35
  * `TokenListing` (value: `"TokenListing"`)
36
36
 
37
+ * `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
38
+
37
39
  * `PaymentOrder` (value: `"PaymentOrder"`)
38
40
 
39
41
  * `PaymentRefund` (value: `"PaymentRefund"`)