@cobo/cobo-waas2 1.27.0 → 1.28.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 (165) hide show
  1. package/README.md +33 -1
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +2 -2
  4. package/dist/api/AutoSweepApi.js +4 -4
  5. package/dist/api/OAuthApi.js +4 -4
  6. package/dist/api/PaymentApi.js +491 -36
  7. package/dist/api/StakingsApi.js +44 -2
  8. package/dist/api/SwapsApi.js +2 -2
  9. package/dist/api/TransactionsApi.js +6 -6
  10. package/dist/api/WalletsApi.js +14 -14
  11. package/dist/index.js +154 -0
  12. package/dist/model/AddressesEventData.js +8 -3
  13. package/dist/model/AllocationRecord.js +193 -0
  14. package/dist/model/AllocationRequest.js +167 -0
  15. package/dist/model/BabylonCreateStakingExpansion.js +157 -0
  16. package/dist/model/BabylonStakeExtra.js +26 -0
  17. package/dist/model/BabylonStakingRegistration.js +1 -1
  18. package/dist/model/BalanceUpdateInfoEventData.js +8 -3
  19. package/dist/model/BatchAllocation.js +190 -0
  20. package/dist/model/BatchAllocationDetail.js +188 -0
  21. package/dist/model/ChainsEventData.js +8 -3
  22. package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
  23. package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
  24. package/dist/model/ContractCallDestination.js +42 -8
  25. package/dist/model/ContractCallDestinationType.js +5 -0
  26. package/dist/model/CosmosContractCallDestination.js +0 -13
  27. package/dist/model/CreateBatchAllocationRequest.js +142 -0
  28. package/dist/model/CreateCustodialWalletParams.js +1 -1
  29. package/dist/model/CreateExchangeWalletParams.js +2 -2
  30. package/dist/model/CreateMerchantRequest.js +1 -1
  31. package/dist/model/CreateMpcWalletParams.js +2 -2
  32. package/dist/model/CreatePaymentOrderRequest.js +115 -68
  33. package/dist/model/CreatePayoutRequest.js +192 -0
  34. package/dist/model/CreateRefundRequest.js +3 -3
  35. package/dist/model/CreateSafeWalletParams.js +1 -1
  36. package/dist/model/CreateSettlement.js +1 -1
  37. package/dist/model/CreateSettlementRequestRequest.js +1 -1
  38. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  39. package/dist/model/CreateStakeActivityExtra.js +12 -0
  40. package/dist/model/CreateWalletParams.js +1 -1
  41. package/dist/model/GetExchangeRate200Response.js +2 -2
  42. package/dist/model/LinkDisplayInfo.js +13 -0
  43. package/dist/model/ListAllocations200Response.js +123 -0
  44. package/dist/model/ListBatchAllocations200Response.js +123 -0
  45. package/dist/model/ListPayoutItems200Response.js +123 -0
  46. package/dist/model/ListPayouts200Response.js +123 -0
  47. package/dist/model/MPCVaultEventData.js +8 -3
  48. package/dist/model/MerchantBalance.js +28 -2
  49. package/dist/model/Order.js +135 -102
  50. package/dist/model/OrderLinkBusinessInfo.js +151 -87
  51. package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +4 -4
  52. package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +125 -0
  53. package/dist/model/PaymentAddressUpdateEventData.js +8 -3
  54. package/dist/model/PaymentAllocationAmount.js +125 -0
  55. package/dist/model/PaymentOrderEventData.js +198 -145
  56. package/dist/model/PaymentPayout.js +250 -0
  57. package/dist/model/PaymentPayoutDetail.js +248 -0
  58. package/dist/model/PaymentPayoutEvent.js +433 -0
  59. package/dist/model/PaymentPayoutItem.js +298 -0
  60. package/dist/model/PaymentPayoutItemDetail.js +298 -0
  61. package/dist/model/PaymentPayoutItemStatus.js +76 -0
  62. package/dist/model/PaymentPayoutParam.js +165 -0
  63. package/dist/model/PaymentPayoutStatus.js +81 -0
  64. package/dist/model/PaymentRefundEventData.js +8 -3
  65. package/dist/model/PaymentSettlementEvent.js +8 -3
  66. package/dist/model/PaymentSourceType.js +61 -0
  67. package/dist/model/PaymentTransactionEventData.js +8 -3
  68. package/dist/model/PspBalance.js +28 -2
  69. package/dist/model/RefundLinkBusinessInfo.js +1 -1
  70. package/dist/model/Stakings.js +33 -6
  71. package/dist/model/SuspendedTokenEventData.js +8 -3
  72. package/dist/model/SwapActivity.js +1 -1
  73. package/dist/model/SwapActivityDetail.js +2 -2
  74. package/dist/model/SwapActivityTimeline.js +1 -1
  75. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  76. package/dist/model/TokenListingEventData.js +8 -3
  77. package/dist/model/TokensEventData.js +8 -3
  78. package/dist/model/TransactionCosmosContractDestination.js +0 -13
  79. package/dist/model/TransactionWebhookEventData.js +8 -3
  80. package/dist/model/UpdateMerchantByIdRequest.js +1 -1
  81. package/dist/model/WalletInfoEventData.js +8 -3
  82. package/dist/model/WebhookEventData.js +106 -42
  83. package/dist/model/WebhookEventDataType.js +7 -2
  84. package/dist/model/WebhookEventType.js +10 -0
  85. package/docs/AddressBooksApi.md +1 -1
  86. package/docs/AddressesEventData.md +3 -1
  87. package/docs/AllocationRecord.md +15 -0
  88. package/docs/AllocationRequest.md +13 -0
  89. package/docs/AutoSweepApi.md +2 -2
  90. package/docs/BabylonCreateStakingExpansion.md +12 -0
  91. package/docs/BabylonStakeExtra.md +2 -0
  92. package/docs/BalanceUpdateInfoEventData.md +3 -1
  93. package/docs/BatchAllocation.md +14 -0
  94. package/docs/BatchAllocationDetail.md +14 -0
  95. package/docs/ChainsEventData.md +3 -1
  96. package/docs/ComplianceDispositionUpdateEventData.md +3 -1
  97. package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
  98. package/docs/ContractCallDestination.md +1 -0
  99. package/docs/ContractCallDestinationType.md +2 -0
  100. package/docs/CosmosContractCallDestination.md +0 -1
  101. package/docs/CreateBatchAllocationRequest.md +10 -0
  102. package/docs/CreateCustodialWalletParams.md +1 -1
  103. package/docs/CreateExchangeWalletParams.md +1 -1
  104. package/docs/CreateMerchantRequest.md +1 -1
  105. package/docs/CreateMpcWalletParams.md +1 -1
  106. package/docs/CreatePaymentOrderRequest.md +15 -11
  107. package/docs/CreatePayoutRequest.md +14 -0
  108. package/docs/CreateRefundRequest.md +3 -3
  109. package/docs/CreateSafeWalletParams.md +1 -1
  110. package/docs/CreateSettlement.md +1 -1
  111. package/docs/CreateSettlementRequestRequest.md +1 -1
  112. package/docs/CreateSmartContractWalletParams.md +1 -1
  113. package/docs/CreateStakeActivityExtra.md +2 -0
  114. package/docs/CreateWalletParams.md +1 -1
  115. package/docs/GetExchangeRate200Response.md +1 -1
  116. package/docs/LinkDisplayInfo.md +1 -0
  117. package/docs/ListAllocations200Response.md +10 -0
  118. package/docs/ListBatchAllocations200Response.md +10 -0
  119. package/docs/ListPayoutItems200Response.md +10 -0
  120. package/docs/ListPayouts200Response.md +10 -0
  121. package/docs/MPCVaultEventData.md +3 -1
  122. package/docs/MerchantBalance.md +4 -2
  123. package/docs/OAuthApi.md +2 -2
  124. package/docs/Order.md +16 -13
  125. package/docs/OrderLinkBusinessInfo.md +11 -7
  126. package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
  127. package/docs/OrderLinkBusinessInfoPayableAmountsInner.md +10 -0
  128. package/docs/PaymentAddressUpdateEventData.md +3 -1
  129. package/docs/PaymentAllocationAmount.md +10 -0
  130. package/docs/PaymentApi.md +527 -20
  131. package/docs/PaymentOrderEventData.md +19 -14
  132. package/docs/PaymentPayout.md +19 -0
  133. package/docs/PaymentPayoutDetail.md +19 -0
  134. package/docs/PaymentPayoutEvent.md +65 -0
  135. package/docs/PaymentPayoutItem.md +22 -0
  136. package/docs/PaymentPayoutItemDetail.md +22 -0
  137. package/docs/PaymentPayoutItemStatus.md +18 -0
  138. package/docs/PaymentPayoutParam.md +13 -0
  139. package/docs/PaymentPayoutStatus.md +20 -0
  140. package/docs/PaymentRefundEventData.md +3 -1
  141. package/docs/PaymentSettlementEvent.md +3 -1
  142. package/docs/PaymentSourceType.md +12 -0
  143. package/docs/PaymentTransactionEventData.md +3 -1
  144. package/docs/PspBalance.md +4 -2
  145. package/docs/RefundLinkBusinessInfo.md +1 -1
  146. package/docs/Stakings.md +2 -1
  147. package/docs/StakingsApi.md +54 -1
  148. package/docs/SuspendedTokenEventData.md +3 -1
  149. package/docs/SwapActivity.md +1 -1
  150. package/docs/SwapActivityDetail.md +1 -1
  151. package/docs/SwapActivityTimeline.md +1 -1
  152. package/docs/SwapsApi.md +1 -1
  153. package/docs/TSSRequestWebhookEventData.md +3 -1
  154. package/docs/TokenListingEventData.md +3 -1
  155. package/docs/TokensEventData.md +3 -1
  156. package/docs/TransactionCosmosContractDestination.md +0 -1
  157. package/docs/TransactionWebhookEventData.md +3 -1
  158. package/docs/TransactionsApi.md +3 -3
  159. package/docs/UpdateMerchantByIdRequest.md +1 -1
  160. package/docs/WalletInfoEventData.md +3 -1
  161. package/docs/WalletsApi.md +7 -7
  162. package/docs/WebhookEventData.md +21 -13
  163. package/docs/WebhookEventDataType.md +3 -1
  164. package/docs/WebhookEventType.md +4 -0
  165. package/package.json +1 -1
@@ -11,6 +11,8 @@
11
11
 
12
12
  * `TRON_Contract` (value: `"TRON_Contract"`)
13
13
 
14
+ * `COSMOS_Contract` (value: `"COSMOS_Contract"`)
15
+
14
16
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
15
17
 
16
18
 
@@ -6,6 +6,5 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **destination_type** | [**ContractCallDestinationType**](ContractCallDestinationType.md) | |
8
8
  **cosmos_messages** | [**[CosmosContractCallMessage]**](CosmosContractCallMessage.md) | |
9
- **value** | **String** | The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`. | [optional]
10
9
 
11
10
 
@@ -0,0 +1,10 @@
1
+ # CoboWaas2.CreateBatchAllocationRequest
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **request_id** | **String** | The request ID that is used to track a allocation request. The request ID is provided by you and must be unique. |
8
+ **allocation_requests** | [**[AllocationRequest]**](AllocationRequest.md) | |
9
+
10
+
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
7
7
  **name** | **String** | The wallet name. |
8
8
  **wallet_type** | [**WalletType**](WalletType.md) | |
9
9
  **wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
10
- **enable_auto_sweep** | **Boolean** | Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Web3 Wallets. | [optional]
10
+ **enable_auto_sweep** | **Boolean** | Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Custodial Wallets (Web3 Wallets). | [optional]
11
11
 
12
12
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **name** | **String** | The wallet name. |
8
8
  **wallet_type** | [**WalletType**](WalletType.md) | |
9
9
  **wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
10
- **enable_auto_sweep** | **Boolean** | Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Web3 Wallets. | [optional]
10
+ **enable_auto_sweep** | **Boolean** | Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Custodial Wallets (Web3 Wallets). | [optional]
11
11
  **exchange_id** | [**ExchangeId**](ExchangeId.md) | |
12
12
  **apikey** | **String** | The API key of your exchange account. |
13
13
  **secret** | **String** | The API secret of your exchange account. |
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **name** | **String** | The merchant name. |
8
8
  **wallet_id** | **String** | This field has been deprecated. | [optional]
9
- **developer_fee_rate** | **String** | The developer fee rate applied to this merchant. Must be a valid float between 0 and 1 (inclusive), with up to 4 decimal places. For more information on developer fee rate, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances). | [optional]
9
+ **developer_fee_rate** | **String** | The developer fee rate applied to this merchant. Must be a valid float between 0 and 1 (inclusive), with up to 4 decimal places. For more information on developer fee rate, please refer to [Funds allocation and balances](https://www.cobo.com/payments/en/guides/amounts-and-balances). | [optional]
10
10
  **wallet_setup** | [**WalletSetup**](WalletSetup.md) | | [optional]
11
11
 
12
12
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **name** | **String** | The wallet name. |
8
8
  **wallet_type** | [**WalletType**](WalletType.md) | |
9
9
  **wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
10
- **enable_auto_sweep** | **Boolean** | Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Web3 Wallets. | [optional]
10
+ **enable_auto_sweep** | **Boolean** | Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Custodial Wallets (Web3 Wallets). | [optional]
11
11
  **vault_id** | **String** | The ID of the owning vault. You can call [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults) to retrieve all vault IDs under your organization. |
12
12
 
13
13
 
@@ -4,16 +4,20 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **merchant_id** | **String** | The merchant ID. This ID is assigned by Cobo when you create the merchant. |
8
- **token_id** | **String** | The ID of the cryptocurrency used for payment. Supported values: - 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
- **currency** | **String** | The fiat currency for the base order amount and the developer fee. If left empty, both `order_amount` and `fee_amount` will be denominated in the cryptocurrency specified by `token_id` Currently, only `USD` is supported. | [optional] [default to '']
10
- **order_amount** | **String** | The base amount of the order, excluding the developer fee (specified in `fee_amount`). The denomination of the amount depends on if `currency` is specified: - If `currency` is specified, the amount is in the currency specified by `currency`, e.g. \"USD\". - If `currency` is not specified, the amount is in the cryptocurrency specified by `token_id`, e.g. \"ETH_USDT\". Values must be greater than `0` and contain two decimal places. |
11
- **fee_amount** | **String** | The developer fee for the order. - **When to set:** If you are a merchant serving payers directly, set this field to `0`. Developer fees are only relevant for platforms like payment service providers (PSPs) that charge fees to their downstream merchants. For details, see [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances). - **Denomination:** The denomination of `fee_amount` depends on the presence of `currency`: - If `currency` is set, the amount is denominated in that currency (e.g., \"USD\"). - If `currency` is not set, the amount is denominated in the cryptocurrency specified by `token_id` (e.g., \"ETH_USDT\"). - **Calculation:** The developer fee is added to the base order amount (`order_amount`) to determine the final amount charged to the customer. For example: - Base amount (`order_amount`): \"100.00\" - Developer fee (`fee_amount`): \"2.00\" - **Total charged:** \"102.00\" - **Formatting:** The value can contain up to two decimal places. |
12
- **merchant_order_code** | **String** | A unique reference code assigned by the merchant to identify this order in their system. The code should have a maximum length of 128 characters. | [optional]
13
- **psp_order_code** | **String** | A unique reference code assigned by you as a developer to identify this order in your system. This code must be unique across all orders in your system. The code should have a maximum length of 128 characters. |
14
- **expired_in** | **Number** | The number of seconds until the pay-in order expires, counted from when the request is sent. For example, if set to `1800`, the order will expire in 30 minutes. Must be greater than zero and cannot exceed 3 hours (10800 seconds). After expiration: - The order status becomes final and cannot be changed - The `received_token_amount` field will no longer be updated - Funds received after expiration will be categorized as late payments and can only be settled from the developer balance. - A late payment will trigger a `transactionLate` webhook event. | [optional] [default to 1800]
15
- **use_dedicated_address** | **Boolean** | This field has been deprecated. | [optional]
16
- **custom_exchange_rate** | **String** | A custom exchange rate that defines how much fiat currency equals 1 unit of cryptocurrency. If not provided, the system's default exchange rate will be used. For example, if the fiat currency is USD and the cryptocurrency is USDT, setting `custom_exchange_rate` to `\"0.99\"` means that 1 USDT will be valued at 0.99 USD. | [optional]
17
- **amount_tolerance** | **String** | The maximum allowed deviation from the payable amount in the case of underpayment, specified as a positive value with up to one decimal place. If you provide more than one decimal place, an error will occur. When the actual received amount is within this deviation (inclusive) of the payable amount, the order status will be set to `Completed` rather than `Underpaid`. | [optional]
7
+ **merchant_id** | **String** | The merchant ID. |
8
+ **merchant_order_code** | **String** | A unique reference code assigned by the merchant to identify this order in their system. | [optional]
9
+ **psp_order_code** | **String** | A unique reference code assigned by the developer to identify this order in their system. |
10
+ **pricing_currency** | **String** | The ID of the cryptocurrency used for payment. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT` | [optional]
11
+ **pricing_amount** | **String** | The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). Values must be greater than `0` and contain two decimal places. | [optional]
12
+ **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. For example, if order_amount is \"100.00\" and fee_amount is \"2.00\", the customer will be charged \"102.00\" in total, with \"100.00\" being settled to the merchant and \"2.00\" settled to the developer. Values must be greater than 0 and contain two decimal places. |
13
+ **payable_currency** | **String** | The ID of the cryptocurrency used for payment. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT` | [optional]
14
+ **payable_amount** | **String** | The actual payable amount of the order in the cryptocurrency. | [optional]
15
+ **expired_in** | **Number** | The pay-in order will expire after approximately a certain number of seconds: - The order status becomes final and cannot be changed - The `received_token_amount` field will no longer be updated - Funds received after expiration will be categorized as late payments and can only be settled from the developer balance. - A late payment will trigger a `transactionLate` webhook event. | [optional]
16
+ **amount_tolerance** | **String** | Allowed amount deviation, precision to 1 decimal place. | [optional]
17
+ **currency** | **String** | The fiat currency of the order. | [optional] [default to '']
18
+ **order_amount** | **String** | The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). Values must be greater than `0` and contain two decimal places. | [optional]
19
+ **token_id** | **String** | The ID of the cryptocurrency used for payment. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT` | [optional]
20
+ **use_dedicated_address** | **Boolean** | Indicates whether to allocate a dedicated address for this order. If false, a shared address from the address pool will be used. | [optional]
21
+ **custom_exchange_rate** | **String** | A custom exchange rate specified by the merchant. - Only effective when `currency` is `\"USD\"`. - Expressed as the amount of USD per 1 unit of the specified cryptocurrency. - If not provided, the system will use the default internal rate. Example: If the cryptocurrency is USDT and `custom_exchange_rate` = `\"0.99\"`, it means 1 USDT = 0.99 USD. | [optional]
18
22
 
19
23
 
@@ -0,0 +1,14 @@
1
+ # CoboWaas2.CreatePayoutRequest
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **request_id** | **String** | The request ID that is used to track a settlement request. The request ID is provided by you and must be unique. |
8
+ **payout_channel** | [**PayoutChannel**](PayoutChannel.md) | |
9
+ **payout_params** | [**[PaymentPayoutParam]**](PaymentPayoutParam.md) | |
10
+ **bank_account_id** | **String** | | Only used in OffRamp payout channel. The ID of the bank account where the settled funds will be deposited. | [optional]
11
+ **currency** | **String** | The fiat currency for the create payouts. | [optional]
12
+ **remark** | **String** | The remark for the create payouts. | [optional]
13
+
14
+
@@ -11,8 +11,8 @@ Name | Type | Description | Notes
11
11
  **token_id** | **String** | The ID of the cryptocurrency used for refund. Supported values: - 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` |
12
12
  **refund_type** | [**RefundType**](RefundType.md) | |
13
13
  **order_id** | **String** | The ID of the original pay-in order associated with this refund. Use this to track refunds against specific payments. | [optional]
14
- **charge_merchant_fee** | **Boolean** | Whether to charge developer fee to the merchant. This field is only valid when `refund_type` is `Merchant`. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances). - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee When enabled, ensure both `merchant_fee_amount` and `merchant_fee_token_id` are properly specified. | [optional]
15
- **merchant_fee_amount** | **String** | The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. This field is only valid when `refund_type` is `Merchant`. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances). This field is required when `charge_merchant_fee` is `true`. Must be: - A positive integer with up to two decimal places. - Less than the refund amount | [optional]
16
- **merchant_fee_token_id** | **String** | The ID of the cryptocurrency used for the developer fee. It must be the same as `token_id`. Supported values: - 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` | [optional]
14
+ **charge_merchant_fee** | **Boolean** | Whether to charge developer fee to the merchant. This field is only valid when `refund_type` is `Merchant`. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/payments/en/guides/amounts-and-balances). - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee When enabled, ensure both `merchant_fee_amount` and `merchant_fee_token_id` are properly specified. | [optional]
15
+ **merchant_fee_amount** | **String** | The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. This field is only valid when `refund_type` is `Merchant`. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/payments/en/guides/amounts-and-balances). This field is required when `charge_merchant_fee` is `true`. Must be: - A positive integer with up to two decimal places. - Less than the refund amount | [optional]
16
+ **merchant_fee_token_id** | **String** | The ID of the cryptocurrency used for the transaction fee. This is only applicable if `charge_merchant_fee` is set to true. | [optional]
17
17
 
18
18
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **name** | **String** | The wallet name. |
8
8
  **wallet_type** | [**WalletType**](WalletType.md) | |
9
9
  **wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
10
- **enable_auto_sweep** | **Boolean** | Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Web3 Wallets. | [optional]
10
+ **enable_auto_sweep** | **Boolean** | Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Custodial Wallets (Web3 Wallets). | [optional]
11
11
  **chain_id** | **String** | The ID of the chain that the wallet operates on. |
12
12
  **smart_contract_wallet_type** | [**SmartContractWalletType**](SmartContractWalletType.md) | |
13
13
  **safe_address** | **String** | The address of the Smart Contract Wallet. If this is not provided, Cobo will create a new Safe{Wallet} and set up Cobo Safe for you. In that case, the `threshold` and `signers` properties are required. | [optional]
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **merchant_id** | **String** | The merchant ID. Specify this field when `settlement_type` is set to `Merchant`. | [optional]
8
8
  **token_id** | **String** | The ID of the cryptocurrency you want to settle. Specify this field when `payout_channel` is set to `Crypto`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_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
  **amount** | **String** | The amount of cryptocurrency to be settled. When settling merchant balance from orders (`acquiring_type` is `Order` and `settlement_type` is `Merchant`), do not specify this field as the amount will be automatically calculated based on the order amounts. | [optional]
10
- **crypto_address_id** | **String** | The ID of the crypto address used for crypto payouts. Specify this field when `payout_channel` is set to `Crypto`. Call [List crypto addresses](https://www.cobo.com/developers/v2/api-references/payment/list-crypto-addresses) to retrieve registered crypto addresses. | [optional]
10
+ **crypto_address_id** | **String** | The ID of the crypto address used for crypto payouts. Specify this field when `payout_channel` is set to `Crypto`. Call [List crypto addresses](https://www.cobo.com/payments/en/api-references/payment/list-crypto-addresses) to retrieve registered crypto addresses. | [optional]
11
11
  **crypto_address** | **String** | Only used in Crypto payout channel. The actual blockchain address to which funds will be transferred. If enable destination whitelist, this address must be associated with a destination. | [optional]
12
12
  **order_ids** | **[String]** | | [optional]
13
13
 
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
9
9
  **payout_channel** | [**PayoutChannel**](PayoutChannel.md) | | [optional]
10
10
  **settlement_type** | [**SettlementType**](SettlementType.md) | | [optional]
11
11
  **settlements** | [**[CreateSettlement]**](CreateSettlement.md) | |
12
- **bank_account_id** | **String** | The ID of the bank account where the funds will be deposited. You can call [List all bank accounts](https://www.cobo.com/developers/v2/api-references/payment/list-all-bank-accounts) to retrieve the IDs of registered bank accounts. This field is only applicable for off-ramp. | [optional]
12
+ **bank_account_id** | **String** | The ID of the bank account where the funds will be deposited. You can call [List all bank accounts](https://www.cobo.com/payments/en/api-references/payment/list-all-bank-accounts) to retrieve the IDs of registered bank accounts. This field is only applicable for off-ramp. | [optional]
13
13
  **currency** | **String** | The fiat currency to receive after off-ramping. Currently, only `USD` is supported. Specify this field when `payout_channel` is set to `OffRamp`. | [optional]
14
14
  **remark** | **String** | The remark for the payout request. | [optional]
15
15
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **name** | **String** | The wallet name. |
8
8
  **wallet_type** | [**WalletType**](WalletType.md) | |
9
9
  **wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
10
- **enable_auto_sweep** | **Boolean** | Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Web3 Wallets. | [optional]
10
+ **enable_auto_sweep** | **Boolean** | Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Custodial Wallets (Web3 Wallets). | [optional]
11
11
  **chain_id** | **String** | The ID of the chain that the wallet operates on. |
12
12
  **smart_contract_wallet_type** | [**SmartContractWalletType**](SmartContractWalletType.md) | |
13
13
  **safe_address** | **String** | The address of the Smart Contract Wallet. If this is not provided, Cobo will create a new Safe{Wallet} and set up Cobo Safe for you. In that case, the `threshold` and `signers` properties are required. | [optional]
@@ -6,9 +6,11 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
8
8
  **finality_provider_public_key** | **String** | The public key of the finality provider. |
9
+ **finality_provider_public_keys** | **[String]** | The public keys of the finality providers, with each key corresponding to a BSN chain. | [optional]
9
10
  **stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. |
10
11
  **auto_broadcast** | **Boolean** | Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](https://www.cobo.com/developers/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
11
12
  **babylon_address** | [**StakingSource**](StakingSource.md) | | [optional]
13
+ **original_staking_id** | **String** | The original staking ID to expand. Only set this when you want to expand existing staking. | [optional]
12
14
  **provider_name** | **String** | The name of the provider. |
13
15
  **timelock** | **Number** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. |
14
16
  **change_address** | **String** | The change address on the Bitcoin chain. If not provided, the source wallet's address will be used as the change address. | [optional]
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **name** | **String** | The wallet name. |
8
8
  **wallet_type** | [**WalletType**](WalletType.md) | |
9
9
  **wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
10
- **enable_auto_sweep** | **Boolean** | Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Web3 Wallets. | [optional]
10
+ **enable_auto_sweep** | **Boolean** | Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Custodial Wallets (Web3 Wallets). | [optional]
11
11
  **vault_id** | **String** | The ID of the owning vault. You can call [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults) to retrieve all vault IDs under your organization. |
12
12
  **exchange_id** | [**ExchangeId**](ExchangeId.md) | |
13
13
  **apikey** | **String** | The API key of your exchange account. |
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **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}`. |
7
+ **token_id** | **String** | The token ID, which identifies the cryptocurrency. |
8
8
  **currency** | **String** | The fiat currency. |
9
9
  **rate** | **String** | The current exchange rate between the specified 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. |
10
10
 
@@ -6,5 +6,6 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **developer_name** | **String** | The brand name to display to end users on the page. This helps users identify who is providing the payment service. | [optional]
8
8
  **logo** | **String** | The URL of the logo image to display to end users on the page. | [optional]
9
+ **return_url** | **String** | The URL to redirect to after the operation completes. | [optional]
9
10
 
10
11
 
@@ -0,0 +1,10 @@
1
+ # CoboWaas2.ListAllocations200Response
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **data** | [**[AllocationRecord]**](AllocationRecord.md) | | [optional]
8
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # CoboWaas2.ListBatchAllocations200Response
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **data** | [**[BatchAllocation]**](BatchAllocation.md) | | [optional]
8
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # CoboWaas2.ListPayoutItems200Response
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **data** | [**[PaymentPayoutItem]**](PaymentPayoutItem.md) | | [optional]
8
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # CoboWaas2.ListPayouts200Response
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **data** | [**[PaymentPayout]**](PaymentPayout.md) | | [optional]
8
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
9
+
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. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings 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. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. |
8
8
  **vault_id** | **String** | The vault ID. | [optional]
9
9
  **project_id** | **String** | The project ID. | [optional]
10
10
  **name** | **String** | The vault name. | [optional]
@@ -43,6 +43,8 @@ Name | Type | Description | Notes
43
43
 
44
44
  * `PaymentAddressUpdate` (value: `"PaymentAddressUpdate"`)
45
45
 
46
+ * `PaymentPayout` (value: `"PaymentPayout"`)
47
+
46
48
  * `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
47
49
 
48
50
  * `SuspendedToken` (value: `"SuspendedToken"`)
@@ -9,8 +9,10 @@ Name | Type | Description | Notes
9
9
  **acquiring_type** | [**AcquiringType**](AcquiringType.md) | |
10
10
  **total_received_amount** | **String** | The total amount of the token that has been received by the merchant. | [optional]
11
11
  **settled_amount** | **String** | The total amount of the token that has been paid out from the merchant's balance. | [optional]
12
+ **payout_amount** | **String** | The merchant payout amount. | [optional]
12
13
  **refunded_amount** | **String** | The total amount of the token that has been refunded from the merchant's balance. | [optional]
13
- **total_balance** | **String** | The total balance of the token available for payout or refund for the merchant. `total_balance` = `total_received_amount` - `settled_amount` - `refunded_amount` For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances) | [optional]
14
- **available_balance** | **String** | This field has been deprecated. | [optional]
14
+ **total_balance** | **String** | The current balance of this token available to the merchant for payouts or refunds. `total_balance` = `total_received_amount` - `settled_amount` - `refunded_amount` For more information, please refer to [Funds allocation and balances](https://www.cobo.com/payments/en/guides/amounts-and-balances) | [optional]
15
+ **available_balance** | **String** | The merchant available balance. | [optional]
16
+ **locked_balance** | **String** | The merchant locked balance. | [optional]
15
17
 
16
18
 
package/docs/OAuthApi.md CHANGED
@@ -17,7 +17,7 @@ Method | HTTP request | Description
17
17
 
18
18
  Get Access Token
19
19
 
20
- This operation acquires an Access Token and a Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
20
+ <Warning>This operation has been deprecated.</Warning> This operation acquires an Access Token and a Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
21
21
 
22
22
  ### Example
23
23
 
@@ -121,7 +121,7 @@ Name | Type | Description | Notes
121
121
 
122
122
  Refresh Access Token
123
123
 
124
- This operation refreshes the Access Token and Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call this operation to get a new Access Token and Refresh Token.
124
+ <Warning>This operation has been deprecated.</Warning> This operation refreshes the Access Token and Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call this operation to get a new Access Token and Refresh Token.
125
125
 
126
126
  ### Example
127
127
 
package/docs/Order.md CHANGED
@@ -6,23 +6,26 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **order_id** | **String** | The order ID. |
8
8
  **merchant_id** | **String** | The merchant ID. | [optional]
9
- **token_id** | **String** | The ID of the cryptocurrency used for payment. Supported tokens: - 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` |
10
- **chain_id** | **String** | The ID of the blockchain network where the payment transaction should be made. Supported chains: - USDC: `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` - USDT: `TRON`, `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` |
11
- **payable_amount** | **String** | The cryptocurrency amount to be paid for this order. |
12
- **receive_address** | **String** | The recipient wallet address to be used for the payment transaction. |
13
- **currency** | **String** | The fiat currency of the order. |
14
- **order_amount** | **String** | The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). |
15
- **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. |
16
- **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. |
17
- **expired_at** | **Number** | The expiration time of the pay-in order, represented as a UNIX timestamp in seconds. | [optional]
18
9
  **merchant_order_code** | **String** | A unique reference code assigned by the merchant to identify this order in their system. | [optional]
19
10
  **psp_order_code** | **String** | A unique reference code assigned by the developer to identify this order in their system. |
11
+ **pricing_currency** | **String** | The fiat currency of the order. | [optional]
12
+ **pricing_amount** | **String** | The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). | [optional]
13
+ **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. |
14
+ **payable_currency** | **String** | The ID of the cryptocurrency used for payment. | [optional]
15
+ **chain_id** | **String** | The ID of the blockchain network where the payment transaction should be made. |
16
+ **payable_amount** | **String** | The cryptocurrency amount to be paid for this order. |
17
+ **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. |
18
+ **amount_tolerance** | **String** | Allowed amount deviation. | [optional]
19
+ **receive_address** | **String** | The recipient wallet address to be used for the payment transaction. |
20
20
  **status** | [**OrderStatus**](OrderStatus.md) | |
21
21
  **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). |
22
- **created_timestamp** | **Number** | The creation time of the order, represented as a UNIX timestamp in seconds. | [optional]
23
- **updated_timestamp** | **Number** | The last update time of the order, represented as a UNIX timestamp in seconds. | [optional]
24
- **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]
22
+ **expired_at** | **Number** | The expiration time of the pay-in order, represented as a UNIX timestamp in seconds. | [optional]
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]
26
+ **currency** | **String** | The fiat currency of the order. | [optional]
27
+ **order_amount** | **String** | The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). | [optional]
28
+ **token_id** | **String** | The ID of the cryptocurrency used for payment. | [optional]
25
29
  **settlement_status** | [**SettleStatus**](SettleStatus.md) | | [optional]
26
- **amount_tolerance** | **String** | The maximum allowed deviation from the payable amount in the case of underpayment, specified as a positive value with up to one decimal place. If you provide more than one decimal place, an error will occur. When the actual received amount is within this deviation (inclusive) of the payable amount, the order status will be set to `Completed` rather than `Underpaid`. | [optional]
27
30
 
28
31
 
@@ -4,16 +4,20 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **token_ids** | **[String]** | An array of token IDs representing the cryptocurrencies and chains available for payment. These options will be shown to users on the payment page for them to choose from. Supported token IDs 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` |
8
- **custom_exchange_rates** | [**[OrderLinkBusinessInfoCustomExchangeRatesInner]**](OrderLinkBusinessInfoCustomExchangeRatesInner.md) | A list of custom exchange rates defining how much one unit of a specific cryptocurrency (`token_id`) is valued in the selected fiat or crypto currency (`currency`). If this field is omitted, the system’s default exchange rates will apply. Each item specifies a `token_id` and its corresponding `exchange_rate`. For example, to treat 1 USDT (on Ethereum) as equivalent to 0.99 USD, provide: ```json { \"custom_exchange_rates\": [ { \"token_id\": \"ETH_USDT\", \"exchange_rate\": \"0.99\" } ], \"currency\": \"USD\" } ``` | [optional]
9
- **currency** | **String** | The currency in which both the order amount (`order_amount`) and the developer fee (`fee_amount`) are denominated. Only the following values are supported: `USD`, `USDT`, or `USDC`. |
10
- **fee_amount** | **String** | The developer fee for the order, denominated in the currency specified by `currency`. If you are a merchant directly serving payers, set this field to `0`. Developer fees are only relevant for platforms like payment service providers (PSPs) that charge fees to their downstream merchants. The developer fee is added to the base amount (`order_amount`) to determine the final charge. For example: - Base amount (`order_amount`): \"100.00\" - Developer fee (`fee_amount`): \"2.00\" - Total charged to customer: \"102.00\" Values can contain up to two decimal places. |
11
7
  **merchant_id** | **String** | The merchant ID. |
12
- **order_amount** | **String** | The base amount of the order, excluding the developer fee (specified in `fee_amount`), denominated in the currency specified by `currency`. Values must be greater than `0` and contain two decimal places. |
13
8
  **merchant_order_code** | **String** | A unique reference code assigned by the merchant to identify this order in their system. The code should have a maximum length of 128 characters. | [optional]
14
9
  **psp_order_code** | **String** | A unique reference code assigned by you as a developer to identify this order in your system. This code must be unique across all orders in your system. The code should have a maximum length of 128 characters. |
10
+ **pricing_currency** | **String** | The currency for the base order amount and the developer fee. Currently, only `USD`/`USDT`/`USDC` are supported. | [optional]
11
+ **pricing_amount** | **String** | The base amount of the order, excluding the developer fee (specified in `fee_amount`), in the currency specified by `currency`. If `currency` is not specified, the amount is in the cryptocurrency specified by `token_id`. Values must be greater than `0` and contain two decimal places. | [optional]
12
+ **fee_amount** | **String** | The developer fee for the order, in the currency specified by `currency`. If `currency` is not specified, the fee is in the cryptocurrency specified by `token_id`. If you are a merchant directly serving payers, set this field to `0`. Developer fees are only relevant for platforms like payment service providers (PSPs) that charge fees to their downstream merchants. The developer fee is added to the base amount (`order_amount`) to determine the final charge. For example: - Base amount (`order_amount`): \"100.00\" - Developer fee (`fee_amount`): \"2.00\" - Total charged to customer: \"102.00\" Values can contain up to two decimal places. |
13
+ **payable_currencies** | **[String]** | List of supported cryptocurrency token IDs for this payment. Each token ID must be from the supported values. | [optional]
14
+ **payable_amounts** | [**[OrderLinkBusinessInfoPayableAmountsInner]**](OrderLinkBusinessInfoPayableAmountsInner.md) | Optional list of payable amounts for different tokens. If provided, these amounts will be used instead of calculating the amounts based on the exchange rate. | [optional]
15
15
  **expired_in** | **Number** | The number of seconds until the pay-in order expires, counted from when the request is sent. For example, if set to `1800`, the order will expire in 30 minutes. Must be greater than zero and cannot exceed 3 hours (10800 seconds). After expiration: - The order status becomes final and cannot be changed - The `received_token_amount` field will no longer be updated - Funds received after expiration will be categorized as late payments and can only be settled from the developer balance. - A late payment will trigger a `transactionLate` webhook event. | [optional] [default to 1800]
16
- **use_dedicated_address** | **Boolean** | This field has been deprecated. | [optional]
17
- **amount_tolerance** | **String** | The maximum allowed deviation from the payable amount in the case of underpayment, specified as a positive value with up to one decimal place. If you provide more than one decimal place, an error will occur. When the actual received amount is within this deviation (inclusive) of the payable amount, the order status will be set to `Completed` rather than `Underpaid`. | [optional]
16
+ **amount_tolerance** | **String** | Allowed amount deviation, precision to 1 decimal place. | [optional]
17
+ **currency** | **String** | The currency for the base order amount and the developer fee. Currently, only `USD`/`USDT`/`USDC` are supported. | [optional]
18
+ **order_amount** | **String** | The base amount of the order, excluding the developer fee (specified in `fee_amount`), in the currency specified by `currency`. If `currency` is not specified, the amount is in the cryptocurrency specified by `token_id`. Values must be greater than `0` and contain two decimal places. | [optional]
19
+ **token_ids** | **[String]** | List of supported cryptocurrency token IDs for this payment. Each token ID must be from the supported values. | [optional]
20
+ **custom_exchange_rates** | [**[OrderLinkBusinessInfoCustomExchangeRatesInner]**](OrderLinkBusinessInfoCustomExchangeRatesInner.md) | Optional list of final exchange rates for different tokens. If provided, these rates will be used instead of real-time market rates. | [optional]
21
+ **use_dedicated_address** | **Boolean** | Whether to allocate a dedicated address for this order. - `true`: A dedicated address will be allocated for this order. - `false`: A shared address from the address pool will be used. | [optional]
18
22
 
19
23
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **token_id** | **String** | The token ID. |
8
- **exchange_rate** | **String** | The exchange rate to use for this token. |
7
+ **token_id** | **String** | The cryptocurrency token ID |
8
+ **exchange_rate** | **String** | The fixed exchange rate to use for this token |
9
9
 
10
10
 
@@ -0,0 +1,10 @@
1
+ # CoboWaas2.OrderLinkBusinessInfoPayableAmountsInner
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **token_id** | **String** | The cryptocurrency token ID |
8
+ **amount** | **String** | The actual payable amount of the order in the cryptocurrency. |
9
+
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. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings 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. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. |
8
8
  **custom_payer_id** | **String** | A unique identifier assigned by the developer to track and identify individual payers in their system. |
9
9
  **payer_id** | **String** | A unique identifier assigned by Cobo to track and identify individual payers. |
10
10
  **chain** | **String** | The chain ID. |
@@ -42,6 +42,8 @@ Name | Type | Description | Notes
42
42
 
43
43
  * `PaymentAddressUpdate` (value: `"PaymentAddressUpdate"`)
44
44
 
45
+ * `PaymentPayout` (value: `"PaymentPayout"`)
46
+
45
47
  * `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
46
48
 
47
49
  * `SuspendedToken` (value: `"SuspendedToken"`)
@@ -0,0 +1,10 @@
1
+ # CoboWaas2.PaymentAllocationAmount
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **token_id** | **String** | The ID of the cryptocurrency. |
8
+ **allocation_amount** | **String** | The allocation amount. |
9
+
10
+