@cobo/cobo-waas2 1.24.0 → 1.26.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 +45 -6
- package/dist/ApiClient.js +1 -1
- package/dist/api/AutoSweepApi.js +2 -2
- package/dist/api/ComplianceApi.js +132 -2
- package/dist/api/DevelopersWebhooksApi.js +2 -2
- package/dist/api/FeeStationApi.js +6 -6
- package/dist/api/PaymentApi.js +109 -24
- package/dist/api/TokenizationApi.js +122 -4
- package/dist/api/TransactionsApi.js +4 -4
- package/dist/index.js +217 -14
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/AutoFuelType.js +5 -0
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BridgingFee.js +4 -4
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/CommissionFee.js +2 -2
- package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +305 -0
- package/dist/model/CreateCryptoAddressRequest.js +1 -1
- package/dist/model/CreateMerchantRequest.js +2 -2
- package/dist/model/CreateOrderLinkRequest.js +129 -0
- package/dist/model/CreatePaymentOrderRequest.js +21 -8
- package/dist/model/CreateRefundLinkRequest.js +129 -0
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateSettlement.js +2 -28
- package/dist/model/CreateSettlementRequestRequest.js +3 -3
- package/dist/model/CustodialTransferDestination.js +1 -1
- package/dist/model/FeeStationCheckFeeStationUsage.js +28 -10
- package/dist/model/FeeStationCheckFeeStationUsageResponse.js +33 -20
- package/dist/model/FeeStationSponsorTransactionDescription.js +125 -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/MPCVaultEventData.js +8 -3
- package/dist/model/Merchant.js +3 -3
- package/dist/model/MerchantBalance.js +1 -1
- 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 +3 -3
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentEstimateFee.js +4 -4
- package/dist/model/PaymentEstimateFee201Response.js +1 -0
- package/dist/model/PaymentEstimateFeeRequest.js +2 -1
- package/dist/model/PaymentEstimatedFee.js +4 -4
- package/dist/model/PaymentOrderEventData.js +26 -3
- package/dist/model/PaymentRefundEventData.js +8 -3
- package/dist/model/PaymentSettlementEvent.js +12 -7
- package/dist/model/PaymentTransactionEventData.js +8 -3
- package/dist/model/PspBalance.js +1 -1
- package/dist/model/RefundLinkBusinessInfo.js +162 -0
- package/dist/model/RefundStatus.js +10 -0
- package/dist/model/ReviewStatusType.js +91 -0
- package/dist/model/Settlement.js +2 -2
- package/dist/model/SubmitKytResponse.js +122 -0
- package/dist/model/SubmitKytScreeningsDecisionsBody.js +122 -0
- package/dist/model/SubmitKytScreeningsReviewBody.js +122 -0
- package/dist/model/SupportedToken.js +1 -1
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/SwapQuote.js +18 -18
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokenizationERC20TokenParams.js +5 -5
- package/dist/model/{TokenizationTokenPermissionParams.js → TokenizationERC20TokenPermissionParams.js} +23 -23
- package/dist/model/TokenizationERC20WrappedTokenParams.js +177 -0
- package/dist/model/TokenizationERC20WrappedTokenPermissionParams.js +166 -0
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +38 -11
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +72 -10
- package/dist/model/TokenizationListPermissionsResponse.js +146 -0
- package/dist/model/TokenizationListPermissionsResponseDataInner.js +126 -0
- package/dist/model/TokenizationOperationType.js +5 -0
- package/dist/model/TokenizationPermissionAction.js +66 -0
- package/dist/model/TokenizationSOLWrappedTokenParams.js +177 -0
- package/dist/model/TokenizationSolWrappedTokenPermissionParams.js +127 -0
- package/dist/model/TokenizationTokenDetailInfo.js +51 -5
- package/dist/model/TokenizationTokenInfo.js +26 -4
- package/dist/model/TokenizationTokenPermissionType.js +5 -0
- package/dist/model/TokenizationTokenStandard.js +10 -0
- package/dist/model/{TokenizationTokenPermissionsResponse.js → TokenizationUpdateAddressPermissions.js} +51 -53
- package/dist/model/TokenizationUpdatePermissionsEstimateFeeParams.js +198 -0
- package/dist/model/TokenizationUpdatePermissionsParams.js +145 -0
- package/dist/model/TokenizationUpdatePermissionsRequest.js +213 -0
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/TransactionCoboCategory.js +35 -0
- package/dist/model/TransactionWebhookEventData.js +8 -3
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEventData.js +64 -12
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +10 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/AutoFuelType.md +2 -0
- package/docs/AutoSweepApi.md +2 -2
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BridgingFee.md +3 -3
- package/docs/ChainsEventData.md +3 -1
- package/docs/CommissionFee.md +1 -1
- package/docs/ComplianceApi.md +158 -1
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKytScreeningsUpdateEventData.md +57 -0
- package/docs/CreateCryptoAddressRequest.md +1 -1
- package/docs/CreateMerchantRequest.md +2 -2
- package/docs/CreateOrderLinkRequest.md +10 -0
- package/docs/CreatePaymentOrderRequest.md +6 -5
- package/docs/CreateRefundLinkRequest.md +10 -0
- package/docs/CreateRefundRequest.md +2 -2
- package/docs/CreateSettlement.md +1 -3
- package/docs/CreateSettlementRequestRequest.md +3 -3
- package/docs/DevelopersWebhooksApi.md +1 -1
- package/docs/FeeStationApi.md +4 -4
- package/docs/FeeStationCheckFeeStationUsage.md +4 -2
- package/docs/FeeStationCheckFeeStationUsageResponse.md +4 -3
- package/docs/FeeStationSponsorTransactionDescription.md +10 -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/MPCVaultEventData.md +3 -1
- package/docs/Merchant.md +2 -2
- package/docs/MerchantBalance.md +1 -1
- package/docs/Order.md +1 -0
- package/docs/OrderLinkBusinessInfo.md +19 -0
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +10 -0
- package/docs/OtcFee.md +2 -2
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentApi.md +118 -12
- package/docs/PaymentEstimateFee.md +2 -2
- package/docs/PaymentEstimateFee201Response.md +1 -1
- package/docs/PaymentEstimateFeeRequest.md +1 -1
- package/docs/PaymentEstimatedFee.md +2 -2
- package/docs/PaymentOrderEventData.md +4 -1
- package/docs/PaymentRefundEventData.md +3 -1
- package/docs/PaymentSettlementEvent.md +5 -3
- package/docs/PaymentTransactionEventData.md +3 -1
- package/docs/PspBalance.md +1 -1
- package/docs/RefundLinkBusinessInfo.md +13 -0
- package/docs/RefundStatus.md +4 -0
- package/docs/ReviewStatusType.md +24 -0
- package/docs/Settlement.md +2 -2
- package/docs/SubmitKytResponse.md +10 -0
- package/docs/SubmitKytScreeningsDecisionsBody.md +10 -0
- package/docs/SubmitKytScreeningsReviewBody.md +10 -0
- package/docs/SupportedToken.md +1 -1
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/SwapQuote.md +10 -10
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokenizationApi.md +120 -2
- package/docs/TokenizationERC20TokenParams.md +1 -1
- package/docs/{TokenizationTokenPermissionParams.md → TokenizationERC20TokenPermissionParams.md} +1 -1
- package/docs/TokenizationERC20WrappedTokenParams.md +14 -0
- package/docs/TokenizationERC20WrappedTokenPermissionParams.md +15 -0
- package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -1
- package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -1
- package/docs/TokenizationListPermissionsResponse.md +10 -0
- package/docs/TokenizationListPermissionsResponseDataInner.md +10 -0
- package/docs/TokenizationOperationType.md +2 -0
- package/docs/TokenizationPermissionAction.md +14 -0
- package/docs/TokenizationSOLWrappedTokenParams.md +14 -0
- package/docs/TokenizationSolWrappedTokenPermissionParams.md +12 -0
- package/docs/TokenizationTokenDetailInfo.md +3 -0
- package/docs/TokenizationTokenInfo.md +2 -0
- package/docs/TokenizationTokenPermissionType.md +2 -0
- package/docs/TokenizationTokenStandard.md +4 -0
- package/docs/TokenizationUpdateAddressPermissions.md +11 -0
- package/docs/TokenizationUpdatePermissionsEstimateFeeParams.md +13 -0
- package/docs/TokenizationUpdatePermissionsParams.md +10 -0
- package/docs/TokenizationUpdatePermissionsRequest.md +13 -0
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionCoboCategory.md +14 -0
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/TransactionsApi.md +2 -2
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WebhookEventData.md +10 -4
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +4 -0
- package/package.json +1 -1
- package/docs/TokenizationTokenPermissionsResponse.md +0 -10
package/dist/api/PaymentApi.js
CHANGED
|
@@ -9,7 +9,9 @@ var _AcquiringType = _interopRequireDefault(require("../model/AcquiringType"));
|
|
|
9
9
|
var _BankAccount = _interopRequireDefault(require("../model/BankAccount"));
|
|
10
10
|
var _CreateCryptoAddressRequest = _interopRequireDefault(require("../model/CreateCryptoAddressRequest"));
|
|
11
11
|
var _CreateMerchantRequest = _interopRequireDefault(require("../model/CreateMerchantRequest"));
|
|
12
|
+
var _CreateOrderLinkRequest = _interopRequireDefault(require("../model/CreateOrderLinkRequest"));
|
|
12
13
|
var _CreatePaymentOrderRequest = _interopRequireDefault(require("../model/CreatePaymentOrderRequest"));
|
|
14
|
+
var _CreateRefundLinkRequest = _interopRequireDefault(require("../model/CreateRefundLinkRequest"));
|
|
13
15
|
var _CreateRefundRequest = _interopRequireDefault(require("../model/CreateRefundRequest"));
|
|
14
16
|
var _CreateSettlementRequestRequest = _interopRequireDefault(require("../model/CreateSettlementRequestRequest"));
|
|
15
17
|
var _CryptoAddress = _interopRequireDefault(require("../model/CryptoAddress"));
|
|
@@ -20,6 +22,7 @@ var _ForcedSweepRequest = _interopRequireDefault(require("../model/ForcedSweepRe
|
|
|
20
22
|
var _GetExchangeRate200Response = _interopRequireDefault(require("../model/GetExchangeRate200Response"));
|
|
21
23
|
var _GetRefunds200Response = _interopRequireDefault(require("../model/GetRefunds200Response"));
|
|
22
24
|
var _GetSettlementInfoByIds200Response = _interopRequireDefault(require("../model/GetSettlementInfoByIds200Response"));
|
|
25
|
+
var _Link = _interopRequireDefault(require("../model/Link"));
|
|
23
26
|
var _ListForcedSweepRequests200Response = _interopRequireDefault(require("../model/ListForcedSweepRequests200Response"));
|
|
24
27
|
var _ListMerchantBalances200Response = _interopRequireDefault(require("../model/ListMerchantBalances200Response"));
|
|
25
28
|
var _ListMerchants200Response = _interopRequireDefault(require("../model/ListMerchants200Response"));
|
|
@@ -206,7 +209,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
206
209
|
|
|
207
210
|
/**
|
|
208
211
|
* Create merchant
|
|
209
|
-
* This operation creates a merchant
|
|
212
|
+
* This operation creates a merchant. Upon successful creation, a merchant ID is generated and returned along with the merchant's information. For more information on merchant creation, please refer to [Preparation](https://www.cobo.com/developers/v2/payments/preparation#create-merchant).
|
|
210
213
|
* @param {Object} opts Optional parameters
|
|
211
214
|
* @param {module:model/CreateMerchantRequest} [CreateMerchantRequest] The request body to create a merchant.
|
|
212
215
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Merchant} and HTTP response
|
|
@@ -232,7 +235,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
232
235
|
|
|
233
236
|
/**
|
|
234
237
|
* Create merchant
|
|
235
|
-
* This operation creates a merchant
|
|
238
|
+
* This operation creates a merchant. Upon successful creation, a merchant ID is generated and returned along with the merchant's information. For more information on merchant creation, please refer to [Preparation](https://www.cobo.com/developers/v2/payments/preparation#create-merchant).
|
|
236
239
|
* @param {Object} opts Optional parameters
|
|
237
240
|
* @param {module:model/CreateMerchantRequest} opts.CreateMerchantRequest The request body to create a merchant.
|
|
238
241
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Merchant}
|
|
@@ -245,6 +248,47 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
245
248
|
});
|
|
246
249
|
}
|
|
247
250
|
|
|
251
|
+
/**
|
|
252
|
+
* Create order link
|
|
253
|
+
* This operation generates a payment link for a pay-in order. The link directs users to a hosted payment page where they can complete their payment for the order. You can share the link directly with users or embed the payment page in your website or application using an iframe. For more details, see [Payment Link](https://www.cobo.com/developers/v2/payments/payment-link).
|
|
254
|
+
* @param {Object} opts Optional parameters
|
|
255
|
+
* @param {module:model/CreateOrderLinkRequest} [CreateOrderLinkRequest] The request body to create a payment link for a pay-in order.
|
|
256
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Link} and HTTP response
|
|
257
|
+
*/
|
|
258
|
+
}, {
|
|
259
|
+
key: "createOrderLinkWithHttpInfo",
|
|
260
|
+
value: function createOrderLinkWithHttpInfo(opts) {
|
|
261
|
+
opts = opts || {};
|
|
262
|
+
var postBody = opts['CreateOrderLinkRequest'];
|
|
263
|
+
if (postBody && postBody.toJSON) {
|
|
264
|
+
postBody = postBody.toJSON();
|
|
265
|
+
}
|
|
266
|
+
var pathParams = {};
|
|
267
|
+
var queryParams = {};
|
|
268
|
+
var headerParams = {};
|
|
269
|
+
var formParams = {};
|
|
270
|
+
var authNames = ['CoboAuth'];
|
|
271
|
+
var contentTypes = ['application/json'];
|
|
272
|
+
var accepts = ['application/json'];
|
|
273
|
+
var returnType = _Link["default"];
|
|
274
|
+
return this.apiClient.callApi('/payments/links/orders', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Create order link
|
|
279
|
+
* This operation generates a payment link for a pay-in order. The link directs users to a hosted payment page where they can complete their payment for the order. You can share the link directly with users or embed the payment page in your website or application using an iframe. For more details, see [Payment Link](https://www.cobo.com/developers/v2/payments/payment-link).
|
|
280
|
+
* @param {Object} opts Optional parameters
|
|
281
|
+
* @param {module:model/CreateOrderLinkRequest} opts.CreateOrderLinkRequest The request body to create a payment link for a pay-in order.
|
|
282
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Link}
|
|
283
|
+
*/
|
|
284
|
+
}, {
|
|
285
|
+
key: "createOrderLink",
|
|
286
|
+
value: function createOrderLink(opts) {
|
|
287
|
+
return this.createOrderLinkWithHttpInfo(opts).then(function (response_and_data) {
|
|
288
|
+
return response_and_data.data;
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
|
|
248
292
|
/**
|
|
249
293
|
* Create pay-in order
|
|
250
294
|
* This operation creates a pay-in order.
|
|
@@ -327,6 +371,47 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
327
371
|
});
|
|
328
372
|
}
|
|
329
373
|
|
|
374
|
+
/**
|
|
375
|
+
* Create refund link
|
|
376
|
+
* This operation creates a payment link for a refund.
|
|
377
|
+
* @param {Object} opts Optional parameters
|
|
378
|
+
* @param {module:model/CreateRefundLinkRequest} [CreateRefundLinkRequest] The request body to create a payment link for a refund.
|
|
379
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Link} and HTTP response
|
|
380
|
+
*/
|
|
381
|
+
}, {
|
|
382
|
+
key: "createRefundLinkWithHttpInfo",
|
|
383
|
+
value: function createRefundLinkWithHttpInfo(opts) {
|
|
384
|
+
opts = opts || {};
|
|
385
|
+
var postBody = opts['CreateRefundLinkRequest'];
|
|
386
|
+
if (postBody && postBody.toJSON) {
|
|
387
|
+
postBody = postBody.toJSON();
|
|
388
|
+
}
|
|
389
|
+
var pathParams = {};
|
|
390
|
+
var queryParams = {};
|
|
391
|
+
var headerParams = {};
|
|
392
|
+
var formParams = {};
|
|
393
|
+
var authNames = ['CoboAuth'];
|
|
394
|
+
var contentTypes = ['application/json'];
|
|
395
|
+
var accepts = ['application/json'];
|
|
396
|
+
var returnType = _Link["default"];
|
|
397
|
+
return this.apiClient.callApi('/payments/links/refunds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Create refund link
|
|
402
|
+
* This operation creates a payment link for a refund.
|
|
403
|
+
* @param {Object} opts Optional parameters
|
|
404
|
+
* @param {module:model/CreateRefundLinkRequest} opts.CreateRefundLinkRequest The request body to create a payment link for a refund.
|
|
405
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Link}
|
|
406
|
+
*/
|
|
407
|
+
}, {
|
|
408
|
+
key: "createRefundLink",
|
|
409
|
+
value: function createRefundLink(opts) {
|
|
410
|
+
return this.createRefundLinkWithHttpInfo(opts).then(function (response_and_data) {
|
|
411
|
+
return response_and_data.data;
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
|
|
330
415
|
/**
|
|
331
416
|
* Create settlement request
|
|
332
417
|
* This operation creates a settlement request to withdraw available balances.
|
|
@@ -370,7 +455,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
370
455
|
|
|
371
456
|
/**
|
|
372
457
|
* Delete crypto address
|
|
373
|
-
* This operation unregisters a crypto address from being used for crypto
|
|
458
|
+
* This operation unregisters a crypto address from being used for crypto payouts.
|
|
374
459
|
* @param {String} crypto_address_id The crypto address ID.
|
|
375
460
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCryptoAddress201Response} and HTTP response
|
|
376
461
|
*/
|
|
@@ -400,7 +485,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
400
485
|
|
|
401
486
|
/**
|
|
402
487
|
* Delete crypto address
|
|
403
|
-
* This operation unregisters a crypto address from being used for crypto
|
|
488
|
+
* This operation unregisters a crypto address from being used for crypto payouts.
|
|
404
489
|
* @param {String} crypto_address_id The crypto address ID.
|
|
405
490
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCryptoAddress201Response}
|
|
406
491
|
*/
|
|
@@ -414,7 +499,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
414
499
|
|
|
415
500
|
/**
|
|
416
501
|
* Get exchange rate
|
|
417
|
-
* This operation retrieves the current exchange rate between a specified currency pair.
|
|
502
|
+
* This operation retrieves the current exchange rate between a specified currency pair. The exchange rate is updated approximately every 10 minutes. <Note>This operation returns the exchange rate for reference only. The actual exchange rate may vary due to market fluctuations and other factors.</Note>
|
|
418
503
|
* @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
419
504
|
* @param {String} currency The fiat currency. Currently, only `USD` is supported.
|
|
420
505
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetExchangeRate200Response} and HTTP response
|
|
@@ -450,7 +535,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
450
535
|
|
|
451
536
|
/**
|
|
452
537
|
* Get exchange rate
|
|
453
|
-
* This operation retrieves the current exchange rate between a specified currency pair.
|
|
538
|
+
* This operation retrieves the current exchange rate between a specified currency pair. The exchange rate is updated approximately every 10 minutes. <Note>This operation returns the exchange rate for reference only. The actual exchange rate may vary due to market fluctuations and other factors.</Note>
|
|
454
539
|
* @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
455
540
|
* @param {String} currency The fiat currency. Currently, only `USD` is supported.
|
|
456
541
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetExchangeRate200Response}
|
|
@@ -566,7 +651,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
566
651
|
|
|
567
652
|
/**
|
|
568
653
|
* Get developer balance
|
|
569
|
-
* This operation retrieves the balance information for you as the developer. The balance information is grouped by token. For more information, please refer to [
|
|
654
|
+
* This operation retrieves the balance information for you as the developer. The balance information is grouped by token. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances).
|
|
570
655
|
* @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
571
656
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PspBalance} and HTTP response
|
|
572
657
|
*/
|
|
@@ -596,7 +681,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
596
681
|
|
|
597
682
|
/**
|
|
598
683
|
* Get developer balance
|
|
599
|
-
* This operation retrieves the balance information for you as the developer. The balance information is grouped by token. For more information, please refer to [
|
|
684
|
+
* This operation retrieves the balance information for you as the developer. The balance information is grouped by token. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances).
|
|
600
685
|
* @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
601
686
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PspBalance}
|
|
602
687
|
*/
|
|
@@ -830,9 +915,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
830
915
|
}
|
|
831
916
|
var pathParams = {};
|
|
832
917
|
var queryParams = {
|
|
833
|
-
'merchant_id': opts['merchant_id'],
|
|
834
918
|
'token_id': token_id,
|
|
835
|
-
'custom_payer_id': custom_payer_id
|
|
919
|
+
'custom_payer_id': custom_payer_id,
|
|
920
|
+
'merchant_id': opts['merchant_id']
|
|
836
921
|
};
|
|
837
922
|
var headerParams = {};
|
|
838
923
|
var formParams = {};
|
|
@@ -993,7 +1078,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
993
1078
|
|
|
994
1079
|
/**
|
|
995
1080
|
* List merchant balances
|
|
996
|
-
* This operation retrieves the balance information for specified merchants. The balance information is grouped by token and acquiring type. If you do not specify the `merchant_ids` parameter, the balance information for all merchants will be returned. For more information, please refer to [
|
|
1081
|
+
* This operation retrieves the balance information for specified merchants. The balance information is grouped by token and acquiring type. If you do not specify the `merchant_ids` parameter, the balance information for all merchants will be returned. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances).
|
|
997
1082
|
* @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
998
1083
|
* @param {module:model/AcquiringType} acquiring_type The payment acquisition type. - `Order`: Payers pay by fixed-amount orders. Ideal for specific purchases and one-time transactions. - `TopUp`: Account recharge flow where payers deposit funds to their dedicated top-up addresses. Ideal for flexible or usage-based payment models.
|
|
999
1084
|
* @param {Object} opts Optional parameters
|
|
@@ -1033,7 +1118,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1033
1118
|
|
|
1034
1119
|
/**
|
|
1035
1120
|
* List merchant balances
|
|
1036
|
-
* This operation retrieves the balance information for specified merchants. The balance information is grouped by token and acquiring type. If you do not specify the `merchant_ids` parameter, the balance information for all merchants will be returned. For more information, please refer to [
|
|
1121
|
+
* This operation retrieves the balance information for specified merchants. The balance information is grouped by token and acquiring type. If you do not specify the `merchant_ids` parameter, the balance information for all merchants will be returned. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances).
|
|
1037
1122
|
* @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
1038
1123
|
* @param {module:model/AcquiringType} acquiring_type The payment acquisition type. - `Order`: Payers pay by fixed-amount orders. Ideal for specific purchases and one-time transactions. - `TopUp`: Account recharge flow where payers deposit funds to their dedicated top-up addresses. Ideal for flexible or usage-based payment models.
|
|
1039
1124
|
* @param {Object} opts Optional parameters
|
|
@@ -1056,8 +1141,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1056
1141
|
* @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
1057
1142
|
* @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
|
|
1058
1143
|
* @param {String} [keyword] A search term used for fuzzy matching of merchant names.
|
|
1059
|
-
* @param {String} [wallet_id]
|
|
1060
|
-
* @param {module:model/WalletSetup} [wallet_setup]
|
|
1144
|
+
* @param {String} [wallet_id] This parameter has been deprecated.
|
|
1145
|
+
* @param {module:model/WalletSetup} [wallet_setup] The type of wallet setup for the merchant. Each wallet contains multiple cryptocurrency addresses that serve as the merchant’s receiving addresses. - `Shared`: Multiple merchants share the same wallet. The wallet’s addresses may be used to receive payments for multiple merchants simultaneously. - `Separate`: Create a dedicated wallet for the merchant to achieve complete fund isolation. All addresses in this wallet are only used to receive payments for this merchant. - `Default`: The default wallet automatically created by the system for the default merchant (the merchant that shares the same name as your organization).
|
|
1061
1146
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMerchants200Response} and HTTP response
|
|
1062
1147
|
*/
|
|
1063
1148
|
}, {
|
|
@@ -1094,8 +1179,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1094
1179
|
* @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
1095
1180
|
* @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
|
|
1096
1181
|
* @param {String} opts.keyword A search term used for fuzzy matching of merchant names.
|
|
1097
|
-
* @param {String} opts.wallet_id
|
|
1098
|
-
* @param {module:model/WalletSetup} opts.wallet_setup
|
|
1182
|
+
* @param {String} opts.wallet_id This parameter has been deprecated.
|
|
1183
|
+
* @param {module:model/WalletSetup} opts.wallet_setup The type of wallet setup for the merchant. Each wallet contains multiple cryptocurrency addresses that serve as the merchant’s receiving addresses. - `Shared`: Multiple merchants share the same wallet. The wallet’s addresses may be used to receive payments for multiple merchants simultaneously. - `Separate`: Create a dedicated wallet for the merchant to achieve complete fund isolation. All addresses in this wallet are only used to receive payments for this merchant. - `Default`: The default wallet automatically created by the system for the default merchant (the merchant that shares the same name as your organization).
|
|
1099
1184
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMerchants200Response}
|
|
1100
1185
|
*/
|
|
1101
1186
|
}, {
|
|
@@ -1468,10 +1553,10 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1468
1553
|
}
|
|
1469
1554
|
|
|
1470
1555
|
/**
|
|
1471
|
-
*
|
|
1472
|
-
* This operation
|
|
1556
|
+
* Estimate fees
|
|
1557
|
+
* This operation calculates fees for payment-related operations, including: - **Pay-in**: Fees for accepting payments - **Refunds**: Fees for refunding the payment - **Crypto payouts**: Fees for payouts in crypto - **Fiat off-ramp**: Fees for fiat currency transfers via off-ramp. The returned fees represent the charges that would apply if the operation were executed immediately. Note that actual fees may vary over time based on your usage volume and applicable fee rates.
|
|
1473
1558
|
* @param {Object} opts Optional parameters
|
|
1474
|
-
* @param {module:model/PaymentEstimateFeeRequest} [PaymentEstimateFeeRequest] The request body
|
|
1559
|
+
* @param {module:model/PaymentEstimateFeeRequest} [PaymentEstimateFeeRequest] The request body for fee estimation.
|
|
1475
1560
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentEstimateFee201Response} and HTTP response
|
|
1476
1561
|
*/
|
|
1477
1562
|
}, {
|
|
@@ -1494,10 +1579,10 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1494
1579
|
}
|
|
1495
1580
|
|
|
1496
1581
|
/**
|
|
1497
|
-
*
|
|
1498
|
-
* This operation
|
|
1582
|
+
* Estimate fees
|
|
1583
|
+
* This operation calculates fees for payment-related operations, including: - **Pay-in**: Fees for accepting payments - **Refunds**: Fees for refunding the payment - **Crypto payouts**: Fees for payouts in crypto - **Fiat off-ramp**: Fees for fiat currency transfers via off-ramp. The returned fees represent the charges that would apply if the operation were executed immediately. Note that actual fees may vary over time based on your usage volume and applicable fee rates.
|
|
1499
1584
|
* @param {Object} opts Optional parameters
|
|
1500
|
-
* @param {module:model/PaymentEstimateFeeRequest} opts.PaymentEstimateFeeRequest The request body
|
|
1585
|
+
* @param {module:model/PaymentEstimateFeeRequest} opts.PaymentEstimateFeeRequest The request body for fee estimation.
|
|
1501
1586
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentEstimateFee201Response}
|
|
1502
1587
|
*/
|
|
1503
1588
|
}, {
|
|
@@ -1706,7 +1791,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1706
1791
|
|
|
1707
1792
|
/**
|
|
1708
1793
|
* Update top-up address
|
|
1709
|
-
* This operation updates the dedicated top-up address assigned to a specific payer under a merchant on a specified chain.
|
|
1794
|
+
* This operation updates the dedicated top-up address assigned to a specific payer under a merchant on a specified chain. <Note> You can update the top-up address for a given payer a maximum of 10 times. If you exceed this limit, the API request will return an error. </Note>
|
|
1710
1795
|
* @param {Object} opts Optional parameters
|
|
1711
1796
|
* @param {module:model/UpdateTopUpAddress} [UpdateTopUpAddress] The request body to update top-up address.
|
|
1712
1797
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TopUpAddress} and HTTP response
|
|
@@ -1732,7 +1817,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1732
1817
|
|
|
1733
1818
|
/**
|
|
1734
1819
|
* Update top-up address
|
|
1735
|
-
* This operation updates the dedicated top-up address assigned to a specific payer under a merchant on a specified chain.
|
|
1820
|
+
* This operation updates the dedicated top-up address assigned to a specific payer under a merchant on a specified chain. <Note> You can update the top-up address for a given payer a maximum of 10 times. If you exceed this limit, the API request will return an error. </Note>
|
|
1736
1821
|
* @param {Object} opts Optional parameters
|
|
1737
1822
|
* @param {module:model/UpdateTopUpAddress} opts.UpdateTopUpAddress The request body to update top-up address.
|
|
1738
1823
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TopUpAddress}
|
|
@@ -20,6 +20,7 @@ var _TokenizationIssuedTokenRequest = _interopRequireDefault(require("../model/T
|
|
|
20
20
|
var _TokenizationListActivitiesResponse = _interopRequireDefault(require("../model/TokenizationListActivitiesResponse"));
|
|
21
21
|
var _TokenizationListEnabledChainsResponse = _interopRequireDefault(require("../model/TokenizationListEnabledChainsResponse"));
|
|
22
22
|
var _TokenizationListHoldingsResponse = _interopRequireDefault(require("../model/TokenizationListHoldingsResponse"));
|
|
23
|
+
var _TokenizationListPermissionsResponse = _interopRequireDefault(require("../model/TokenizationListPermissionsResponse"));
|
|
23
24
|
var _TokenizationListTokenInfoResponse = _interopRequireDefault(require("../model/TokenizationListTokenInfoResponse"));
|
|
24
25
|
var _TokenizationMintTokenRequest = _interopRequireDefault(require("../model/TokenizationMintTokenRequest"));
|
|
25
26
|
var _TokenizationOperationResponse = _interopRequireDefault(require("../model/TokenizationOperationResponse"));
|
|
@@ -31,6 +32,7 @@ var _TokenizationTokenStandard = _interopRequireDefault(require("../model/Tokeni
|
|
|
31
32
|
var _TokenizationUnpauseTokenRequest = _interopRequireDefault(require("../model/TokenizationUnpauseTokenRequest"));
|
|
32
33
|
var _TokenizationUpdateAllowlistAddressesRequest = _interopRequireDefault(require("../model/TokenizationUpdateAllowlistAddressesRequest"));
|
|
33
34
|
var _TokenizationUpdateBlocklistAddressesRequest = _interopRequireDefault(require("../model/TokenizationUpdateBlocklistAddressesRequest"));
|
|
35
|
+
var _TokenizationUpdatePermissionsRequest = _interopRequireDefault(require("../model/TokenizationUpdatePermissionsRequest"));
|
|
34
36
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
35
37
|
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); }
|
|
36
38
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -66,7 +68,7 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
66
68
|
|
|
67
69
|
/**
|
|
68
70
|
* Burn tokens
|
|
69
|
-
* This operation burns tokens from a specified address. Creates a burn transaction that will decrease the token supply.
|
|
71
|
+
* This operation burns tokens from a specified address. Creates a burn transaction that will decrease the token supply. **Note**: This operation is not supported for CoboERC20Wrapper and SOLWrapper tokens.
|
|
70
72
|
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
71
73
|
* @param {Object} opts Optional parameters
|
|
72
74
|
* @param {module:model/TokenizationBurnTokenRequest} [TokenizationBurnTokenRequest] The request body for burning tokens.
|
|
@@ -99,7 +101,7 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
99
101
|
|
|
100
102
|
/**
|
|
101
103
|
* Burn tokens
|
|
102
|
-
* This operation burns tokens from a specified address. Creates a burn transaction that will decrease the token supply.
|
|
104
|
+
* This operation burns tokens from a specified address. Creates a burn transaction that will decrease the token supply. **Note**: This operation is not supported for CoboERC20Wrapper and SOLWrapper tokens.
|
|
103
105
|
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
104
106
|
* @param {Object} opts Optional parameters
|
|
105
107
|
* @param {module:model/TokenizationBurnTokenRequest} opts.TokenizationBurnTokenRequest The request body for burning tokens.
|
|
@@ -628,10 +630,74 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
628
630
|
});
|
|
629
631
|
}
|
|
630
632
|
|
|
633
|
+
/**
|
|
634
|
+
* List token permissions
|
|
635
|
+
* This operation retrieves the permission settings for a tokenization contract.
|
|
636
|
+
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
637
|
+
* @param {Object} opts Optional parameters
|
|
638
|
+
* @param {String} [address] The address to query permissions for. If not provided, returns all addresses with permissions.
|
|
639
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
640
|
+
* @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
|
|
641
|
+
* @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
642
|
+
* @param {module:model/String} [direction = 'ASC')] The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order.
|
|
643
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenizationListPermissionsResponse} and HTTP response
|
|
644
|
+
*/
|
|
645
|
+
}, {
|
|
646
|
+
key: "listTokenizationPermissionsWithHttpInfo",
|
|
647
|
+
value: function listTokenizationPermissionsWithHttpInfo(token_id, opts) {
|
|
648
|
+
opts = opts || {};
|
|
649
|
+
var postBody = null;
|
|
650
|
+
if (postBody && postBody.toJSON) {
|
|
651
|
+
postBody = postBody.toJSON();
|
|
652
|
+
}
|
|
653
|
+
// verify the required parameter 'token_id' is set
|
|
654
|
+
if (token_id === undefined || token_id === null) {
|
|
655
|
+
throw new Error("Missing the required parameter 'token_id' when calling listTokenizationPermissions");
|
|
656
|
+
}
|
|
657
|
+
var pathParams = {
|
|
658
|
+
'token_id': token_id
|
|
659
|
+
};
|
|
660
|
+
var queryParams = {
|
|
661
|
+
'address': opts['address'],
|
|
662
|
+
'limit': opts['limit'],
|
|
663
|
+
'after': opts['after'],
|
|
664
|
+
'before': opts['before'],
|
|
665
|
+
'direction': opts['direction']
|
|
666
|
+
};
|
|
667
|
+
var headerParams = {};
|
|
668
|
+
var formParams = {};
|
|
669
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
670
|
+
var contentTypes = [];
|
|
671
|
+
var accepts = ['application/json'];
|
|
672
|
+
var returnType = _TokenizationListPermissionsResponse["default"];
|
|
673
|
+
return this.apiClient.callApi('/tokenization/tokens/{token_id}/permissions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* List token permissions
|
|
678
|
+
* This operation retrieves the permission settings for a tokenization contract.
|
|
679
|
+
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
680
|
+
* @param {Object} opts Optional parameters
|
|
681
|
+
* @param {String} opts.address The address to query permissions for. If not provided, returns all addresses with permissions.
|
|
682
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
683
|
+
* @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
|
|
684
|
+
* @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
685
|
+
* @param {module:model/String} opts.direction The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order. (default to 'ASC')
|
|
686
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenizationListPermissionsResponse}
|
|
687
|
+
*/
|
|
688
|
+
}, {
|
|
689
|
+
key: "listTokenizationPermissions",
|
|
690
|
+
value: function listTokenizationPermissions(token_id, opts) {
|
|
691
|
+
return this.listTokenizationPermissionsWithHttpInfo(token_id, opts).then(function (response_and_data) {
|
|
692
|
+
return response_and_data.data;
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
|
|
631
696
|
/**
|
|
632
697
|
* List supported chains for tokenization
|
|
633
698
|
* This operation retrieves a list of tokenization supported chains.
|
|
634
699
|
* @param {Object} opts Optional parameters
|
|
700
|
+
* @param {module:model/TokenizationTokenStandard} [token_standard] Filter by token standard.
|
|
635
701
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
636
702
|
* @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
|
|
637
703
|
* @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
@@ -647,6 +713,7 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
647
713
|
}
|
|
648
714
|
var pathParams = {};
|
|
649
715
|
var queryParams = {
|
|
716
|
+
'token_standard': opts['token_standard'],
|
|
650
717
|
'limit': opts['limit'],
|
|
651
718
|
'after': opts['after'],
|
|
652
719
|
'before': opts['before']
|
|
@@ -664,6 +731,7 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
664
731
|
* List supported chains for tokenization
|
|
665
732
|
* This operation retrieves a list of tokenization supported chains.
|
|
666
733
|
* @param {Object} opts Optional parameters
|
|
734
|
+
* @param {module:model/TokenizationTokenStandard} opts.token_standard Filter by token standard.
|
|
667
735
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
668
736
|
* @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
|
|
669
737
|
* @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
@@ -679,7 +747,7 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
679
747
|
|
|
680
748
|
/**
|
|
681
749
|
* Mint tokens
|
|
682
|
-
* This operation mints new tokens to a specified address. Creates a mint transaction that will increase the token supply.
|
|
750
|
+
* This operation mints new tokens to a specified address. Creates a mint transaction that will increase the token supply. **Note**: This operation is not supported for CoboERC20Wrapper and SOLWrapper tokens.
|
|
683
751
|
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
684
752
|
* @param {module:model/TokenizationMintTokenRequest} TokenizationMintTokenRequest The request body for minting tokens.
|
|
685
753
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenizationOperationResponse} and HTTP response
|
|
@@ -714,7 +782,7 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
714
782
|
|
|
715
783
|
/**
|
|
716
784
|
* Mint tokens
|
|
717
|
-
* This operation mints new tokens to a specified address. Creates a mint transaction that will increase the token supply.
|
|
785
|
+
* This operation mints new tokens to a specified address. Creates a mint transaction that will increase the token supply. **Note**: This operation is not supported for CoboERC20Wrapper and SOLWrapper tokens.
|
|
718
786
|
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
719
787
|
* @param {module:model/TokenizationMintTokenRequest} TokenizationMintTokenRequest The request body for minting tokens.
|
|
720
788
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenizationOperationResponse}
|
|
@@ -1020,5 +1088,55 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1020
1088
|
return response_and_data.data;
|
|
1021
1089
|
});
|
|
1022
1090
|
}
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* Update token permissions
|
|
1094
|
+
* This operation updates permission settings for a tokenization contract.
|
|
1095
|
+
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
1096
|
+
* @param {module:model/TokenizationUpdatePermissionsRequest} TokenizationUpdatePermissionsRequest The request body for managing permissions.
|
|
1097
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenizationOperationResponse} and HTTP response
|
|
1098
|
+
*/
|
|
1099
|
+
}, {
|
|
1100
|
+
key: "updateTokenizationPermissionsWithHttpInfo",
|
|
1101
|
+
value: function updateTokenizationPermissionsWithHttpInfo(token_id, TokenizationUpdatePermissionsRequest) {
|
|
1102
|
+
var postBody = TokenizationUpdatePermissionsRequest;
|
|
1103
|
+
if (postBody && postBody.toJSON) {
|
|
1104
|
+
postBody = postBody.toJSON();
|
|
1105
|
+
}
|
|
1106
|
+
// verify the required parameter 'token_id' is set
|
|
1107
|
+
if (token_id === undefined || token_id === null) {
|
|
1108
|
+
throw new Error("Missing the required parameter 'token_id' when calling updateTokenizationPermissions");
|
|
1109
|
+
}
|
|
1110
|
+
// verify the required parameter 'TokenizationUpdatePermissionsRequest' is set
|
|
1111
|
+
if (TokenizationUpdatePermissionsRequest === undefined || TokenizationUpdatePermissionsRequest === null) {
|
|
1112
|
+
throw new Error("Missing the required parameter 'TokenizationUpdatePermissionsRequest' when calling updateTokenizationPermissions");
|
|
1113
|
+
}
|
|
1114
|
+
var pathParams = {
|
|
1115
|
+
'token_id': token_id
|
|
1116
|
+
};
|
|
1117
|
+
var queryParams = {};
|
|
1118
|
+
var headerParams = {};
|
|
1119
|
+
var formParams = {};
|
|
1120
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1121
|
+
var contentTypes = ['application/json'];
|
|
1122
|
+
var accepts = ['application/json'];
|
|
1123
|
+
var returnType = _TokenizationOperationResponse["default"];
|
|
1124
|
+
return this.apiClient.callApi('/tokenization/tokens/{token_id}/permissions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* Update token permissions
|
|
1129
|
+
* This operation updates permission settings for a tokenization contract.
|
|
1130
|
+
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
1131
|
+
* @param {module:model/TokenizationUpdatePermissionsRequest} TokenizationUpdatePermissionsRequest The request body for managing permissions.
|
|
1132
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenizationOperationResponse}
|
|
1133
|
+
*/
|
|
1134
|
+
}, {
|
|
1135
|
+
key: "updateTokenizationPermissions",
|
|
1136
|
+
value: function updateTokenizationPermissions(token_id, TokenizationUpdatePermissionsRequest) {
|
|
1137
|
+
return this.updateTokenizationPermissionsWithHttpInfo(token_id, TokenizationUpdatePermissionsRequest).then(function (response_and_data) {
|
|
1138
|
+
return response_and_data.data;
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1023
1141
|
}]);
|
|
1024
1142
|
}();
|
|
@@ -203,7 +203,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* Call smart contract
|
|
206
|
-
* This operation creates a transaction to interact with a smart contract on the blockchain. You need to provide details such as the source address, destination address, and the calldata. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>Currently, this operation only applies to transactions from Custodial Wallets (Web3 Wallets), MPC Wallets, or Smart Contract Wallets on EVM-compatible chains and Solana
|
|
206
|
+
* This operation creates a transaction to interact with a smart contract on the blockchain. You need to provide details such as the source address, destination address, and the calldata. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>Currently, this operation only applies to transactions from Custodial Wallets (Web3 Wallets), MPC Wallets, or Smart Contract Wallets on EVM-compatible chains and Solana.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
|
|
207
207
|
* @param {Object} opts Optional parameters
|
|
208
208
|
* @param {module:model/ContractCallParams} [ContractCallParams] The request body for making a contract call.
|
|
209
209
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
|
|
@@ -229,7 +229,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
231
|
* Call smart contract
|
|
232
|
-
* This operation creates a transaction to interact with a smart contract on the blockchain. You need to provide details such as the source address, destination address, and the calldata. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>Currently, this operation only applies to transactions from Custodial Wallets (Web3 Wallets), MPC Wallets, or Smart Contract Wallets on EVM-compatible chains and Solana
|
|
232
|
+
* This operation creates a transaction to interact with a smart contract on the blockchain. You need to provide details such as the source address, destination address, and the calldata. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>Currently, this operation only applies to transactions from Custodial Wallets (Web3 Wallets), MPC Wallets, or Smart Contract Wallets on EVM-compatible chains and Solana.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
|
|
233
233
|
* @param {Object} opts Optional parameters
|
|
234
234
|
* @param {module:model/ContractCallParams} opts.ContractCallParams The request body for making a contract call.
|
|
235
235
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
|
|
@@ -749,7 +749,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
749
749
|
|
|
750
750
|
/**
|
|
751
751
|
* Resend transaction
|
|
752
|
-
* This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#resend-a-transaction). Resending a transaction is a high‑risk operation. Ensure that the original transaction has not been broadcast to the blockchain, has already expired, and will never be confirmed. Otherwise, the same transaction may be confirmed on‑chain twice. <Note>This operation only applies to transactions from MPC Wallets in the SOL token.</Note>
|
|
752
|
+
* <Note>Resending failed transactions is not supported on the Solana network.</Note> This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#resend-a-transaction). Resending a transaction is a high‑risk operation. Ensure that the original transaction has not been broadcast to the blockchain, has already expired, and will never be confirmed. Otherwise, the same transaction may be confirmed on‑chain twice. <Note>This operation only applies to transactions from MPC Wallets in the SOL token.</Note>
|
|
753
753
|
* @param {String} transaction_id The transaction ID.
|
|
754
754
|
* @param {Object} opts Optional parameters
|
|
755
755
|
* @param {module:model/TransactionResend} [TransactionResend] The request body to resend transactions
|
|
@@ -782,7 +782,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
782
782
|
|
|
783
783
|
/**
|
|
784
784
|
* Resend transaction
|
|
785
|
-
* This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#resend-a-transaction). Resending a transaction is a high‑risk operation. Ensure that the original transaction has not been broadcast to the blockchain, has already expired, and will never be confirmed. Otherwise, the same transaction may be confirmed on‑chain twice. <Note>This operation only applies to transactions from MPC Wallets in the SOL token.</Note>
|
|
785
|
+
* <Note>Resending failed transactions is not supported on the Solana network.</Note> This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#resend-a-transaction). Resending a transaction is a high‑risk operation. Ensure that the original transaction has not been broadcast to the blockchain, has already expired, and will never be confirmed. Otherwise, the same transaction may be confirmed on‑chain twice. <Note>This operation only applies to transactions from MPC Wallets in the SOL token.</Note>
|
|
786
786
|
* @param {String} transaction_id The transaction ID.
|
|
787
787
|
* @param {Object} opts Optional parameters
|
|
788
788
|
* @param {module:model/TransactionResend} opts.TransactionResend The request body to resend transactions
|