@cobo/cobo-waas2 1.23.0 → 1.25.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.
- package/README.md +68 -6
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +6 -6
- package/dist/api/ComplianceApi.js +132 -2
- package/dist/api/DevelopersWebhooksApi.js +2 -2
- package/dist/api/FeeStationApi.js +47 -4
- package/dist/api/PaymentApi.js +246 -56
- package/dist/api/SwapsApi.js +374 -0
- package/dist/api/TransactionsApi.js +4 -4
- package/dist/index.js +336 -14
- package/dist/model/AddressInfo.js +13 -0
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/AddressesEventDataAllOfAddresses.js +18 -0
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BridgingFee.js +136 -0
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/CommissionFee.js +110 -0
- package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +305 -0
- package/dist/model/ContractCallDestination.js +48 -8
- package/dist/model/ContractCallDestinationType.js +5 -0
- package/dist/model/CreateMerchantRequest.js +15 -8
- package/dist/model/CreateOrderLinkRequest.js +129 -0
- package/dist/model/CreatePaymentOrderRequest.js +27 -1
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateSettlement.js +3 -29
- package/dist/model/CreateSettlementRequestRequest.js +39 -0
- package/dist/model/CreateSwapActivityRequest.js +193 -0
- package/dist/model/CustodialTransferDestination.js +1 -1
- package/dist/model/EstimateContractCallFeeParams.js +1 -1
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/EstimateTransferFeeParams.js +1 -1
- package/dist/model/EstimatedEvmEip1559Fee.js +1 -1
- package/dist/model/EstimatedEvmLegacyFee.js +1 -1
- package/dist/model/EstimatedFILFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +1 -1
- package/dist/model/EstimatedSOLFee.js +1 -1
- package/dist/model/EstimatedUtxoFee.js +1 -1
- package/dist/model/FeeStationCheckFeeStationUsage.js +186 -0
- package/dist/model/FeeStationCheckFeeStationUsageResponse.js +200 -0
- package/dist/model/FeeStationGasStationType.js +61 -0
- package/dist/model/FundsStatusType.js +111 -0
- package/dist/model/KytScreeningsDecisionsType.js +71 -0
- package/dist/model/KytScreeningsEventData.js +155 -0
- package/dist/model/KytScreeningsReviewType.js +61 -0
- package/dist/model/KytScreeningsTransaction.js +144 -0
- package/dist/model/KytScreeningsTransactionType.js +61 -0
- package/dist/model/Link.js +125 -0
- package/dist/model/LinkDisplayInfo.js +100 -0
- package/dist/model/ListSwapActivities200Response.js +123 -0
- package/dist/model/ListSwapEnabledTokens200Response.js +123 -0
- package/dist/model/ListTopUpPayerAccounts200Response.js +123 -0
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/Merchant.js +12 -3
- package/dist/model/MerchantBalance.js +3 -3
- package/dist/model/MessageSignDestination.js +8 -70
- package/dist/model/Order.js +13 -0
- package/dist/model/OrderLinkBusinessInfo.js +261 -0
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +125 -0
- package/dist/model/OtcFee.js +123 -0
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentEstimateFee.js +125 -0
- package/dist/model/PaymentEstimateFee201Response.js +108 -0
- package/dist/model/PaymentEstimateFeeRequest.js +137 -0
- package/dist/model/PaymentEstimatedFee.js +173 -0
- package/dist/model/PaymentFeeType.js +71 -0
- package/dist/model/PaymentOrderEventData.js +26 -3
- package/dist/model/PaymentRefundEventData.js +30 -5
- package/dist/model/PaymentSettlementEvent.js +70 -9
- package/dist/model/PaymentTransactionEventData.js +8 -3
- package/dist/model/PspBalance.js +3 -3
- package/dist/model/Refund.js +17 -1
- package/dist/model/ReviewStatusType.js +91 -0
- package/dist/model/SettleRequestStatus.js +5 -0
- package/dist/model/Settlement.js +45 -3
- package/dist/model/SettlementDetail.js +33 -1
- package/dist/model/SettlementInfo.js +7 -7
- package/dist/model/SolContractCallAddressLookupTableAccount.js +126 -0
- package/dist/model/SolContractCallDestination.js +30 -0
- package/dist/model/StellarContractCallContractParam.js +164 -0
- package/dist/model/StellarContractCallContractType.js +56 -0
- package/dist/model/StellarContractCallDestination.js +125 -0
- package/dist/model/StellarContractCallTrustLineOperationType.js +56 -0
- package/dist/model/StellarContractCallTrustLineParam.js +133 -0
- package/dist/model/SubmitKytResponse.js +122 -0
- package/dist/model/SubmitKytScreeningsDecisionsBody.js +122 -0
- package/dist/model/{RawMessageSignDestination.js → SubmitKytScreeningsReviewBody.js} +36 -36
- package/dist/model/SupportedToken.js +9 -0
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/SwapActivity.js +9 -9
- package/dist/model/SwapActivityApprovers.js +1 -1
- package/dist/model/SwapActivityDetail.js +34 -18
- package/dist/model/SwapActivitySigners.js +2 -2
- package/dist/model/SwapActivityTimeline.js +5 -5
- package/dist/model/SwapEstimateFee.js +147 -0
- package/dist/model/SwapQuote.js +18 -31
- package/dist/model/SwapReceivingTransaction.js +133 -0
- package/dist/model/SwapToken.js +9 -9
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/TransactionCoboCategory.js +5 -0
- package/dist/model/TransactionDestination.js +48 -8
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionEvmEip1559Fee.js +1 -1
- package/dist/model/TransactionEvmLegacyFee.js +1 -1
- package/dist/model/TransactionFILFee.js +1 -1
- package/dist/model/TransactionFixedFee.js +1 -1
- package/dist/model/TransactionFuelingInfo.js +13 -0
- package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
- package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
- package/dist/model/TransactionRequestFILFee.js +1 -1
- package/dist/model/TransactionRequestSOLFee.js +1 -1
- package/dist/model/TransactionRequestUtxoFee.js +1 -1
- package/dist/model/TransactionSOLFee.js +1 -1
- package/dist/model/TransactionSolContractAddressLookupTableAccount.js +126 -0
- package/dist/model/TransactionSolContractDestination.js +30 -0
- package/dist/model/TransactionStellarContractParam.js +164 -0
- package/dist/model/TransactionStellarContractType.js +56 -0
- package/dist/model/{BTCEIP191MessageSignDestination.js → TransactionStellarDestination.js} +38 -35
- package/dist/model/TransactionStellarTrustLineOperationType.js +56 -0
- package/dist/model/TransactionStellarTrustLineParam.js +133 -0
- package/dist/model/TransactionUtxoFee.js +1 -1
- package/dist/model/TransactionWebhookEventData.js +8 -3
- package/dist/model/UpdateBankAccountByIdRequest.js +108 -0
- package/dist/model/UpdateTopUpAddress.js +4 -6
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WalletSetup.js +66 -0
- package/dist/model/WebhookEventData.js +81 -11
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +10 -0
- package/docs/AddressBooksApi.md +3 -3
- package/docs/AddressInfo.md +1 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/AddressesEventDataAllOfAddresses.md +1 -0
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BridgingFee.md +11 -0
- package/docs/ChainsEventData.md +3 -1
- package/docs/CommissionFee.md +9 -0
- package/docs/ComplianceApi.md +158 -1
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKytScreeningsUpdateEventData.md +57 -0
- package/docs/ContractCallDestination.md +2 -0
- package/docs/ContractCallDestinationType.md +2 -0
- package/docs/CreateMerchantRequest.md +3 -2
- package/docs/CreateOrderLinkRequest.md +10 -0
- package/docs/CreatePaymentOrderRequest.md +3 -1
- package/docs/CreateRefundRequest.md +2 -2
- package/docs/CreateSettlement.md +2 -4
- package/docs/CreateSettlementRequestRequest.md +3 -0
- package/docs/CreateSwapActivityRequest.md +15 -0
- package/docs/DevelopersWebhooksApi.md +1 -1
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimateTransferFeeParams.md +1 -1
- package/docs/FeeStationApi.md +53 -0
- package/docs/FeeStationCheckFeeStationUsage.md +14 -0
- package/docs/FeeStationCheckFeeStationUsageResponse.md +16 -0
- package/docs/FeeStationGasStationType.md +12 -0
- package/docs/FundsStatusType.md +32 -0
- package/docs/KytScreeningsDecisionsType.md +16 -0
- package/docs/KytScreeningsEventData.md +13 -0
- package/docs/KytScreeningsReviewType.md +12 -0
- package/docs/KytScreeningsTransaction.md +12 -0
- package/docs/KytScreeningsTransactionType.md +12 -0
- package/docs/Link.md +10 -0
- package/docs/LinkDisplayInfo.md +10 -0
- package/docs/ListSwapActivities200Response.md +10 -0
- package/docs/ListSwapEnabledTokens200Response.md +10 -0
- package/docs/ListTopUpPayerAccounts200Response.md +10 -0
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/Merchant.md +3 -2
- package/docs/MerchantBalance.md +3 -3
- package/docs/MessageSignDestination.md +0 -1
- package/docs/Order.md +1 -0
- package/docs/OrderLinkBusinessInfo.md +19 -0
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +10 -0
- package/docs/OtcFee.md +10 -0
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentApi.md +253 -25
- package/docs/PaymentEstimateFee.md +10 -0
- package/docs/PaymentEstimateFee201Response.md +9 -0
- package/docs/PaymentEstimateFeeRequest.md +10 -0
- package/docs/PaymentEstimatedFee.md +13 -0
- package/docs/PaymentFeeType.md +16 -0
- package/docs/PaymentOrderEventData.md +4 -1
- package/docs/PaymentRefundEventData.md +5 -2
- package/docs/PaymentSettlementEvent.md +9 -4
- package/docs/PaymentTransactionEventData.md +3 -1
- package/docs/PspBalance.md +3 -3
- package/docs/Refund.md +2 -1
- package/docs/ReviewStatusType.md +24 -0
- package/docs/SettleRequestStatus.md +2 -0
- package/docs/Settlement.md +6 -3
- package/docs/SettlementDetail.md +3 -1
- package/docs/SettlementInfo.md +6 -6
- package/docs/SolContractCallAddressLookupTableAccount.md +10 -0
- package/docs/SolContractCallDestination.md +1 -0
- package/docs/StellarContractCallContractParam.md +11 -0
- package/docs/StellarContractCallContractType.md +10 -0
- package/docs/StellarContractCallDestination.md +10 -0
- package/docs/StellarContractCallTrustLineOperationType.md +10 -0
- package/docs/StellarContractCallTrustLineParam.md +11 -0
- package/docs/SubmitKytResponse.md +10 -0
- package/docs/SubmitKytScreeningsDecisionsBody.md +10 -0
- package/docs/SubmitKytScreeningsReviewBody.md +10 -0
- package/docs/SupportedToken.md +1 -0
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/SwapActivity.md +9 -9
- package/docs/SwapActivityDetail.md +10 -9
- package/docs/SwapActivitySigners.md +1 -1
- package/docs/SwapActivityTimeline.md +3 -3
- package/docs/SwapEstimateFee.md +12 -0
- package/docs/SwapQuote.md +10 -11
- package/docs/SwapReceivingTransaction.md +11 -0
- package/docs/SwapToken.md +6 -6
- package/docs/SwapsApi.md +356 -0
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionCoboCategory.md +2 -0
- package/docs/TransactionDestination.md +2 -0
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionFuelingInfo.md +1 -0
- package/docs/TransactionSolContractAddressLookupTableAccount.md +10 -0
- package/docs/TransactionSolContractDestination.md +1 -0
- package/docs/TransactionStellarContractParam.md +11 -0
- package/docs/TransactionStellarContractType.md +10 -0
- package/docs/TransactionStellarDestination.md +10 -0
- package/docs/TransactionStellarTrustLineOperationType.md +10 -0
- package/docs/TransactionStellarTrustLineParam.md +11 -0
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/TransactionsApi.md +2 -2
- package/docs/UpdateBankAccountByIdRequest.md +9 -0
- package/docs/UpdateTopUpAddress.md +1 -1
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WalletSetup.md +14 -0
- package/docs/WebhookEventData.md +12 -3
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +4 -0
- package/package.json +1 -1
- package/docs/BTCEIP191MessageSignDestination.md +0 -10
- package/docs/RawMessageSignDestination.md +0 -10
|
@@ -97,6 +97,12 @@ var CreatePaymentOrderRequest = /*#__PURE__*/function () {
|
|
|
97
97
|
if (data.hasOwnProperty('use_dedicated_address')) {
|
|
98
98
|
obj['use_dedicated_address'] = _ApiClient["default"].convertToType(data['use_dedicated_address'], 'Boolean');
|
|
99
99
|
}
|
|
100
|
+
if (data.hasOwnProperty('custom_exchange_rate')) {
|
|
101
|
+
obj['custom_exchange_rate'] = _ApiClient["default"].convertToType(data['custom_exchange_rate'], 'String');
|
|
102
|
+
}
|
|
103
|
+
if (data.hasOwnProperty('amount_tolerance')) {
|
|
104
|
+
obj['amount_tolerance'] = _ApiClient["default"].convertToType(data['amount_tolerance'], 'String');
|
|
105
|
+
}
|
|
100
106
|
}
|
|
101
107
|
return obj;
|
|
102
108
|
}
|
|
@@ -152,6 +158,14 @@ var CreatePaymentOrderRequest = /*#__PURE__*/function () {
|
|
|
152
158
|
if (data['psp_order_code'] && !(typeof data['psp_order_code'] === 'string' || data['psp_order_code'] instanceof String)) {
|
|
153
159
|
throw new Error("Expected the field `psp_order_code` to be a primitive type in the JSON string but got " + data['psp_order_code']);
|
|
154
160
|
}
|
|
161
|
+
// ensure the json data is a string
|
|
162
|
+
if (data['custom_exchange_rate'] && !(typeof data['custom_exchange_rate'] === 'string' || data['custom_exchange_rate'] instanceof String)) {
|
|
163
|
+
throw new Error("Expected the field `custom_exchange_rate` to be a primitive type in the JSON string but got " + data['custom_exchange_rate']);
|
|
164
|
+
}
|
|
165
|
+
// ensure the json data is a string
|
|
166
|
+
if (data['amount_tolerance'] && !(typeof data['amount_tolerance'] === 'string' || data['amount_tolerance'] instanceof String)) {
|
|
167
|
+
throw new Error("Expected the field `amount_tolerance` to be a primitive type in the JSON string but got " + data['amount_tolerance']);
|
|
168
|
+
}
|
|
155
169
|
return true;
|
|
156
170
|
}
|
|
157
171
|
}]);
|
|
@@ -209,8 +223,20 @@ CreatePaymentOrderRequest.prototype['psp_order_code'] = undefined;
|
|
|
209
223
|
CreatePaymentOrderRequest.prototype['expired_in'] = 1800;
|
|
210
224
|
|
|
211
225
|
/**
|
|
212
|
-
*
|
|
226
|
+
* This field has been deprecated.
|
|
213
227
|
* @member {Boolean} use_dedicated_address
|
|
214
228
|
*/
|
|
215
229
|
CreatePaymentOrderRequest.prototype['use_dedicated_address'] = undefined;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* 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.
|
|
233
|
+
* @member {String} custom_exchange_rate
|
|
234
|
+
*/
|
|
235
|
+
CreatePaymentOrderRequest.prototype['custom_exchange_rate'] = undefined;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Allowed amount deviation, precision to 1 decimal place.
|
|
239
|
+
* @member {String} amount_tolerance
|
|
240
|
+
*/
|
|
241
|
+
CreatePaymentOrderRequest.prototype['amount_tolerance'] = undefined;
|
|
216
242
|
var _default = exports["default"] = CreatePaymentOrderRequest;
|
|
@@ -206,13 +206,13 @@ CreateRefundRequest.prototype['refund_type'] = undefined;
|
|
|
206
206
|
CreateRefundRequest.prototype['order_id'] = undefined;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* Whether to charge developer fee to the merchant. - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee When enabled, ensure both `merchant_fee_amount` and `merchant_fee_token_id` are properly specified.
|
|
209
|
+
* 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.
|
|
210
210
|
* @member {Boolean} charge_merchant_fee
|
|
211
211
|
*/
|
|
212
212
|
CreateRefundRequest.prototype['charge_merchant_fee'] = undefined;
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
|
-
* The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`.
|
|
215
|
+
* 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
|
|
216
216
|
* @member {String} merchant_fee_amount
|
|
217
217
|
*/
|
|
218
218
|
CreateRefundRequest.prototype['merchant_fee_amount'] = undefined;
|
|
@@ -32,7 +32,7 @@ var CreateSettlement = /*#__PURE__*/function () {
|
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>CreateSettlement</code>.
|
|
34
34
|
* @alias module:model/CreateSettlement
|
|
35
|
-
* @param token_id {String} The ID of the cryptocurrency you want to settle. Specify this field when `payout_channel` is set to `Crypto`. Supported values:
|
|
35
|
+
* @param 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`
|
|
36
36
|
*/
|
|
37
37
|
function CreateSettlement(token_id) {
|
|
38
38
|
_classCallCheck(this, CreateSettlement);
|
|
@@ -68,15 +68,9 @@ var CreateSettlement = /*#__PURE__*/function () {
|
|
|
68
68
|
if (data.hasOwnProperty('token_id')) {
|
|
69
69
|
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty('currency')) {
|
|
72
|
-
obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
|
|
73
|
-
}
|
|
74
71
|
if (data.hasOwnProperty('amount')) {
|
|
75
72
|
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
|
|
76
73
|
}
|
|
77
|
-
if (data.hasOwnProperty('bank_account_id')) {
|
|
78
|
-
obj['bank_account_id'] = _ApiClient["default"].convertToType(data['bank_account_id'], 'String');
|
|
79
|
-
}
|
|
80
74
|
if (data.hasOwnProperty('crypto_address_id')) {
|
|
81
75
|
obj['crypto_address_id'] = _ApiClient["default"].convertToType(data['crypto_address_id'], 'String');
|
|
82
76
|
}
|
|
@@ -119,18 +113,10 @@ var CreateSettlement = /*#__PURE__*/function () {
|
|
|
119
113
|
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
120
114
|
}
|
|
121
115
|
// ensure the json data is a string
|
|
122
|
-
if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
|
|
123
|
-
throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
|
|
124
|
-
}
|
|
125
|
-
// ensure the json data is a string
|
|
126
116
|
if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
|
|
127
117
|
throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
|
|
128
118
|
}
|
|
129
119
|
// ensure the json data is a string
|
|
130
|
-
if (data['bank_account_id'] && !(typeof data['bank_account_id'] === 'string' || data['bank_account_id'] instanceof String)) {
|
|
131
|
-
throw new Error("Expected the field `bank_account_id` to be a primitive type in the JSON string but got " + data['bank_account_id']);
|
|
132
|
-
}
|
|
133
|
-
// ensure the json data is a string
|
|
134
120
|
if (data['crypto_address_id'] && !(typeof data['crypto_address_id'] === 'string' || data['crypto_address_id'] instanceof String)) {
|
|
135
121
|
throw new Error("Expected the field `crypto_address_id` to be a primitive type in the JSON string but got " + data['crypto_address_id']);
|
|
136
122
|
}
|
|
@@ -151,17 +137,11 @@ CreateSettlement.RequiredProperties = ["token_id"];
|
|
|
151
137
|
CreateSettlement.prototype['merchant_id'] = undefined;
|
|
152
138
|
|
|
153
139
|
/**
|
|
154
|
-
* The ID of the cryptocurrency you want to settle. Specify this field when `payout_channel` is set to `Crypto`. Supported values:
|
|
140
|
+
* 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`
|
|
155
141
|
* @member {String} token_id
|
|
156
142
|
*/
|
|
157
143
|
CreateSettlement.prototype['token_id'] = undefined;
|
|
158
144
|
|
|
159
|
-
/**
|
|
160
|
-
* The fiat currency for settling the cryptocurrency. Currently, only `USD` is supported. Specify this field when `payout_channel` is set to `OffRamp`.
|
|
161
|
-
* @member {String} currency
|
|
162
|
-
*/
|
|
163
|
-
CreateSettlement.prototype['currency'] = undefined;
|
|
164
|
-
|
|
165
145
|
/**
|
|
166
146
|
* 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.
|
|
167
147
|
* @member {String} amount
|
|
@@ -169,13 +149,7 @@ CreateSettlement.prototype['currency'] = undefined;
|
|
|
169
149
|
CreateSettlement.prototype['amount'] = undefined;
|
|
170
150
|
|
|
171
151
|
/**
|
|
172
|
-
* The ID of the
|
|
173
|
-
* @member {String} bank_account_id
|
|
174
|
-
*/
|
|
175
|
-
CreateSettlement.prototype['bank_account_id'] = undefined;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* The ID of the crypto address used for crypto withdrawal. Specify this field when `payout_channel` is set to `Crypto`. Call [List all crypto addresses](/v2/api-references/payments/list-all-crypto-addresses) to retrieve registered crypto addresses.
|
|
152
|
+
* 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.
|
|
179
153
|
* @member {String} crypto_address_id
|
|
180
154
|
*/
|
|
181
155
|
CreateSettlement.prototype['crypto_address_id'] = undefined;
|
|
@@ -83,6 +83,15 @@ var CreateSettlementRequestRequest = /*#__PURE__*/function () {
|
|
|
83
83
|
if (data.hasOwnProperty('settlements')) {
|
|
84
84
|
obj['settlements'] = _ApiClient["default"].convertToType(data['settlements'], [_CreateSettlement["default"]]);
|
|
85
85
|
}
|
|
86
|
+
if (data.hasOwnProperty('bank_account_id')) {
|
|
87
|
+
obj['bank_account_id'] = _ApiClient["default"].convertToType(data['bank_account_id'], 'String');
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('currency')) {
|
|
90
|
+
obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
|
|
91
|
+
}
|
|
92
|
+
if (data.hasOwnProperty('remark')) {
|
|
93
|
+
obj['remark'] = _ApiClient["default"].convertToType(data['remark'], 'String');
|
|
94
|
+
}
|
|
86
95
|
}
|
|
87
96
|
return obj;
|
|
88
97
|
}
|
|
@@ -135,6 +144,18 @@ var CreateSettlementRequestRequest = /*#__PURE__*/function () {
|
|
|
135
144
|
}
|
|
136
145
|
;
|
|
137
146
|
}
|
|
147
|
+
// ensure the json data is a string
|
|
148
|
+
if (data['bank_account_id'] && !(typeof data['bank_account_id'] === 'string' || data['bank_account_id'] instanceof String)) {
|
|
149
|
+
throw new Error("Expected the field `bank_account_id` to be a primitive type in the JSON string but got " + data['bank_account_id']);
|
|
150
|
+
}
|
|
151
|
+
// ensure the json data is a string
|
|
152
|
+
if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
|
|
153
|
+
throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
|
|
154
|
+
}
|
|
155
|
+
// ensure the json data is a string
|
|
156
|
+
if (data['remark'] && !(typeof data['remark'] === 'string' || data['remark'] instanceof String)) {
|
|
157
|
+
throw new Error("Expected the field `remark` to be a primitive type in the JSON string but got " + data['remark']);
|
|
158
|
+
}
|
|
138
159
|
return true;
|
|
139
160
|
}
|
|
140
161
|
}]);
|
|
@@ -166,4 +187,22 @@ CreateSettlementRequestRequest.prototype['settlement_type'] = undefined;
|
|
|
166
187
|
* @member {Array.<module:model/CreateSettlement>} settlements
|
|
167
188
|
*/
|
|
168
189
|
CreateSettlementRequestRequest.prototype['settlements'] = undefined;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* 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.
|
|
193
|
+
* @member {String} bank_account_id
|
|
194
|
+
*/
|
|
195
|
+
CreateSettlementRequestRequest.prototype['bank_account_id'] = undefined;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The fiat currency to receive after off-ramping. Currently, only `USD` is supported. Specify this field when `payout_channel` is set to `OffRamp`.
|
|
199
|
+
* @member {String} currency
|
|
200
|
+
*/
|
|
201
|
+
CreateSettlementRequestRequest.prototype['currency'] = undefined;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The remark for the payout request.
|
|
205
|
+
* @member {String} remark
|
|
206
|
+
*/
|
|
207
|
+
CreateSettlementRequestRequest.prototype['remark'] = undefined;
|
|
169
208
|
var _default = exports["default"] = CreateSettlementRequestRequest;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _TransactionRequestFee = _interopRequireDefault(require("./TransactionRequestFee"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* Cobo Wallet as a Service 2.0
|
|
20
|
+
*
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The CreateSwapActivityRequest model module.
|
|
30
|
+
* @module model/CreateSwapActivityRequest
|
|
31
|
+
*/
|
|
32
|
+
var CreateSwapActivityRequest = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>CreateSwapActivityRequest</code>.
|
|
35
|
+
* @alias module:model/CreateSwapActivityRequest
|
|
36
|
+
* @param wallet_id {String} The ID of the wallet used to pay.
|
|
37
|
+
* @param quote_id {String} The unique identifier of the swap quote.
|
|
38
|
+
*/
|
|
39
|
+
function CreateSwapActivityRequest(wallet_id, quote_id) {
|
|
40
|
+
_classCallCheck(this, CreateSwapActivityRequest);
|
|
41
|
+
CreateSwapActivityRequest.initialize(this, wallet_id, quote_id);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(CreateSwapActivityRequest, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj, wallet_id, quote_id) {
|
|
52
|
+
obj['wallet_id'] = wallet_id;
|
|
53
|
+
obj['quote_id'] = quote_id;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>CreateSwapActivityRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/CreateSwapActivityRequest} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/CreateSwapActivityRequest} The populated <code>CreateSwapActivityRequest</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new CreateSwapActivityRequest();
|
|
68
|
+
if (data.hasOwnProperty('wallet_id')) {
|
|
69
|
+
obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('address')) {
|
|
72
|
+
obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('quote_id')) {
|
|
75
|
+
obj['quote_id'] = _ApiClient["default"].convertToType(data['quote_id'], 'String');
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('app_initiator')) {
|
|
78
|
+
obj['app_initiator'] = _ApiClient["default"].convertToType(data['app_initiator'], 'String');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('request_id')) {
|
|
81
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('receiver_address')) {
|
|
84
|
+
obj['receiver_address'] = _ApiClient["default"].convertToType(data['receiver_address'], 'String');
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('fee')) {
|
|
87
|
+
obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return obj;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Validates the JSON data with respect to <code>CreateSwapActivityRequest</code>.
|
|
95
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
96
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateSwapActivityRequest</code>.
|
|
97
|
+
*/
|
|
98
|
+
}, {
|
|
99
|
+
key: "validateJSON",
|
|
100
|
+
value: function validateJSON(data) {
|
|
101
|
+
// check to make sure all required properties are present in the JSON string
|
|
102
|
+
var _iterator = _createForOfIteratorHelper(CreateSwapActivityRequest.RequiredProperties),
|
|
103
|
+
_step;
|
|
104
|
+
try {
|
|
105
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
106
|
+
var property = _step.value;
|
|
107
|
+
if (!data.hasOwnProperty(property)) {
|
|
108
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
// ensure the json data is a string
|
|
112
|
+
} catch (err) {
|
|
113
|
+
_iterator.e(err);
|
|
114
|
+
} finally {
|
|
115
|
+
_iterator.f();
|
|
116
|
+
}
|
|
117
|
+
if (data['wallet_id'] && !(typeof data['wallet_id'] === 'string' || data['wallet_id'] instanceof String)) {
|
|
118
|
+
throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
|
|
119
|
+
}
|
|
120
|
+
// ensure the json data is a string
|
|
121
|
+
if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
|
|
122
|
+
throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
|
|
123
|
+
}
|
|
124
|
+
// ensure the json data is a string
|
|
125
|
+
if (data['quote_id'] && !(typeof data['quote_id'] === 'string' || data['quote_id'] instanceof String)) {
|
|
126
|
+
throw new Error("Expected the field `quote_id` to be a primitive type in the JSON string but got " + data['quote_id']);
|
|
127
|
+
}
|
|
128
|
+
// ensure the json data is a string
|
|
129
|
+
if (data['app_initiator'] && !(typeof data['app_initiator'] === 'string' || data['app_initiator'] instanceof String)) {
|
|
130
|
+
throw new Error("Expected the field `app_initiator` to be a primitive type in the JSON string but got " + data['app_initiator']);
|
|
131
|
+
}
|
|
132
|
+
// ensure the json data is a string
|
|
133
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
134
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
135
|
+
}
|
|
136
|
+
// ensure the json data is a string
|
|
137
|
+
if (data['receiver_address'] && !(typeof data['receiver_address'] === 'string' || data['receiver_address'] instanceof String)) {
|
|
138
|
+
throw new Error("Expected the field `receiver_address` to be a primitive type in the JSON string but got " + data['receiver_address']);
|
|
139
|
+
}
|
|
140
|
+
// validate the optional field `fee`
|
|
141
|
+
if (data['fee']) {
|
|
142
|
+
// data not null
|
|
143
|
+
if (!!_TransactionRequestFee["default"].validateJSON) {
|
|
144
|
+
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return true;
|
|
148
|
+
}
|
|
149
|
+
}]);
|
|
150
|
+
}();
|
|
151
|
+
CreateSwapActivityRequest.RequiredProperties = ["wallet_id", "quote_id"];
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The ID of the wallet used to pay.
|
|
155
|
+
* @member {String} wallet_id
|
|
156
|
+
*/
|
|
157
|
+
CreateSwapActivityRequest.prototype['wallet_id'] = undefined;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* The address of the wallet used to pay.
|
|
161
|
+
* @member {String} address
|
|
162
|
+
*/
|
|
163
|
+
CreateSwapActivityRequest.prototype['address'] = undefined;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The unique identifier of the swap quote.
|
|
167
|
+
* @member {String} quote_id
|
|
168
|
+
*/
|
|
169
|
+
CreateSwapActivityRequest.prototype['quote_id'] = undefined;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The initiator of the swap activity. It is optional and defaults to your API key if not specified.
|
|
173
|
+
* @member {String} app_initiator
|
|
174
|
+
*/
|
|
175
|
+
CreateSwapActivityRequest.prototype['app_initiator'] = undefined;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* The request ID of the swap activity.
|
|
179
|
+
* @member {String} request_id
|
|
180
|
+
*/
|
|
181
|
+
CreateSwapActivityRequest.prototype['request_id'] = undefined;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The destination address of the swap activity. This property is required only when the swap type is `Bridge` and the wallet is not a Custodial Wallet (Asset Wallet).
|
|
185
|
+
* @member {String} receiver_address
|
|
186
|
+
*/
|
|
187
|
+
CreateSwapActivityRequest.prototype['receiver_address'] = undefined;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @member {module:model/TransactionRequestFee} fee
|
|
191
|
+
*/
|
|
192
|
+
CreateSwapActivityRequest.prototype['fee'] = undefined;
|
|
193
|
+
var _default = exports["default"] = CreateSwapActivityRequest;
|
|
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
32
32
|
var CustodialTransferDestination = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
34
34
|
* Constructs a new <code>CustodialTransferDestination</code>.
|
|
35
|
-
* The information about the transaction destination type `CustodialWallet`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
|
|
35
|
+
* The information about the transaction destination type `CustodialWallet`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. **Note: This destination type is deprecated and should no longer be used. Please use `Address` instead.** Switch between the tabs to display the properties for different transaction destinations.
|
|
36
36
|
* @alias module:model/CustodialTransferDestination
|
|
37
37
|
* @param destination_type {module:model/TransferDestinationType}
|
|
38
38
|
* @param wallet_id {String} The wallet ID.
|
|
@@ -152,7 +152,7 @@ var EstimateContractCallFeeParams = /*#__PURE__*/function () {
|
|
|
152
152
|
EstimateContractCallFeeParams.RequiredProperties = ["request_type", "chain_id", "source"];
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
|
-
* The request ID that is used to track a transaction request.
|
|
155
|
+
* The request ID that is used to track a transaction request.
|
|
156
156
|
* @member {String} request_id
|
|
157
157
|
*/
|
|
158
158
|
EstimateContractCallFeeParams.prototype['request_id'] = undefined;
|
|
@@ -167,7 +167,7 @@ var EstimateFeeParams = /*#__PURE__*/function () {
|
|
|
167
167
|
}]);
|
|
168
168
|
}();
|
|
169
169
|
/**
|
|
170
|
-
* The request ID that is used to track a transaction request.
|
|
170
|
+
* The request ID that is used to track a transaction request.
|
|
171
171
|
* @member {String} request_id
|
|
172
172
|
*/
|
|
173
173
|
_EstimateFeeParams = EstimateFeeParams;
|
|
@@ -152,7 +152,7 @@ var EstimateTransferFeeParams = /*#__PURE__*/function () {
|
|
|
152
152
|
EstimateTransferFeeParams.RequiredProperties = ["request_type", "source", "token_id"];
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
|
-
* The request ID that is used to track a transaction request.
|
|
155
|
+
* The request ID that is used to track a transaction request.
|
|
156
156
|
* @member {String} request_id
|
|
157
157
|
*/
|
|
158
158
|
EstimateTransferFeeParams.prototype['request_id'] = undefined;
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var EstimatedEvmEip1559Fee = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>EstimatedEvmEip1559Fee</code>.
|
|
36
|
-
* The estimated transaction fee based on the EIP-1559 fee model.
|
|
36
|
+
* The estimated transaction fee based on the EIP-1559 fee model. For more details about the EIP-1559 fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models).
|
|
37
37
|
* @alias module:model/EstimatedEvmEip1559Fee
|
|
38
38
|
* @param fee_type {module:model/FeeType}
|
|
39
39
|
* @param token_id {String} The token used to pay the transaction fee.
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var EstimatedEvmLegacyFee = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>EstimatedEvmLegacyFee</code>.
|
|
36
|
-
* The estimated transaction fee based on the
|
|
36
|
+
* The estimated transaction fee based on the Legacy fee model. For more details about the Legacy fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models).
|
|
37
37
|
* @alias module:model/EstimatedEvmLegacyFee
|
|
38
38
|
* @param fee_type {module:model/FeeType}
|
|
39
39
|
* @param token_id {String} The token used to pay the transaction fee.
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var EstimatedFILFee = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>EstimatedFILFee</code>.
|
|
36
|
-
* The estimated transaction fee based on the
|
|
36
|
+
* The estimated transaction fee based on the FIL fee model. For more details about the FIL fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models).
|
|
37
37
|
* @alias module:model/EstimatedFILFee
|
|
38
38
|
* @param fee_type {module:model/FeeType}
|
|
39
39
|
* @param token_id {String} The token used to pay the transaction fee.
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var EstimatedFixedFee = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>EstimatedFixedFee</code>.
|
|
36
|
-
* The estimated transaction fee based on the fixed fee model.
|
|
36
|
+
* The estimated transaction fee based on the fixed fee model. For more details about the fixed fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models).
|
|
37
37
|
* @alias module:model/EstimatedFixedFee
|
|
38
38
|
* @implements module:model/FeeAmount
|
|
39
39
|
* @param fee_amount {String} The transaction fee that you need to pay for the transaction.
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var EstimatedSOLFee = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>EstimatedSOLFee</code>.
|
|
36
|
-
* The estimated transaction fee based on the
|
|
36
|
+
* The estimated transaction fee based on the SOL fee model. For more details about the SOL fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models).
|
|
37
37
|
* @alias module:model/EstimatedSOLFee
|
|
38
38
|
* @param fee_type {module:model/FeeType}
|
|
39
39
|
* @param token_id {String} The token used to pay the transaction fee.
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var EstimatedUtxoFee = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>EstimatedUtxoFee</code>.
|
|
36
|
-
* The estimated transaction fee for UTXO-based chains.
|
|
36
|
+
* The estimated transaction fee for UTXO-based chains. For more details about the UTXO fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models).
|
|
37
37
|
* @alias module:model/EstimatedUtxoFee
|
|
38
38
|
* @param fee_type {module:model/FeeType}
|
|
39
39
|
* @param token_id {String} The token used to pay the transaction fee.
|