@cobo/cobo-waas2 1.20.0 → 1.21.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 +9 -3
- package/dist/ApiClient.js +11 -2
- package/dist/api/PaymentApi.js +167 -18
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/api/WalletsApi.js +2 -2
- package/dist/crypto/ApiSigner.js +5 -1
- package/dist/index.js +21 -0
- package/dist/model/AddressesEventData.js +3 -3
- package/dist/model/BalanceUpdateInfoEventData.js +3 -3
- package/dist/model/ChainsEventData.js +3 -3
- package/dist/model/CreateCryptoAddressRequest.js +138 -0
- package/dist/model/CreatePaymentOrderRequest.js +5 -5
- package/dist/model/CryptoAddress.js +12 -12
- package/dist/model/DeleteCryptoAddress201Response.js +110 -0
- package/dist/model/ForcedSweep.js +9 -9
- package/dist/model/ForcedSweepRequest.js +8 -9
- package/dist/model/ListSettlementDetails200Response.js +123 -0
- package/dist/model/MPCVaultEventData.js +3 -3
- package/dist/model/PaymentAddressUpdateEventData.js +13 -13
- package/dist/model/PaymentOrderEventData.js +3 -3
- package/dist/model/PaymentRefundEventData.js +3 -3
- package/dist/model/PaymentSettlementEvent.js +42 -3
- package/dist/model/PaymentTransactionEventData.js +6 -6
- package/dist/model/Settlement.js +27 -0
- package/dist/model/SettlementDetail.js +26 -0
- package/dist/model/SettlementInfo.js +7 -7
- package/dist/model/SuspendedTokenEventData.js +3 -3
- package/dist/model/TSSRequestWebhookEventData.js +3 -3
- package/dist/model/TokenListingEventData.js +3 -3
- package/dist/model/TokensEventData.js +3 -3
- package/dist/model/TopUpAddress.js +0 -1
- package/dist/model/TransactionWebhookEventData.js +3 -3
- package/dist/model/UpdateTopUpAddress.js +3 -3
- package/dist/model/WalletInfoEventData.js +3 -3
- package/dist/model/WebhookEventData.js +19 -7
- package/dist/model/WebhookEventDataType.js +2 -2
- package/docs/AddressesEventData.md +1 -1
- package/docs/BalanceUpdateInfoEventData.md +1 -1
- package/docs/ChainsEventData.md +1 -1
- package/docs/CreateCryptoAddressRequest.md +11 -0
- package/docs/CreatePaymentOrderRequest.md +3 -3
- package/docs/CryptoAddress.md +1 -1
- package/docs/DeleteCryptoAddress201Response.md +9 -0
- package/docs/ForcedSweep.md +7 -7
- package/docs/ForcedSweepRequest.md +4 -4
- package/docs/ListSettlementDetails200Response.md +10 -0
- package/docs/MPCVaultEventData.md +1 -1
- package/docs/PaymentAddressUpdateEventData.md +6 -6
- package/docs/PaymentApi.md +181 -12
- package/docs/PaymentOrderEventData.md +1 -1
- package/docs/PaymentRefundEventData.md +1 -1
- package/docs/PaymentSettlementEvent.md +4 -1
- package/docs/PaymentTransactionEventData.md +4 -4
- package/docs/Settlement.md +3 -0
- package/docs/SettlementDetail.md +2 -0
- package/docs/SettlementInfo.md +6 -6
- package/docs/SuspendedTokenEventData.md +1 -1
- package/docs/TSSRequestWebhookEventData.md +1 -1
- package/docs/TokenListingEventData.md +1 -1
- package/docs/TokensEventData.md +1 -1
- package/docs/TransactionWebhookEventData.md +1 -1
- package/docs/TransactionsApi.md +1 -1
- package/docs/UpdateTopUpAddress.md +1 -1
- package/docs/WalletInfoEventData.md +1 -1
- package/docs/WalletsApi.md +1 -1
- package/docs/WebhookEventData.md +9 -7
- package/docs/WebhookEventDataType.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](http
|
|
|
15
15
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
16
16
|
|
|
17
17
|
- API version: v2
|
|
18
|
-
- Package version: 1.
|
|
18
|
+
- Package version: 1.21.0
|
|
19
19
|
- Generator version: 7.6.0
|
|
20
20
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
21
21
|
For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
|
|
@@ -97,11 +97,13 @@ Class | Method | HTTP request | Description
|
|
|
97
97
|
*CoboWaas2.OAuthApi* | [**refreshToken**](docs/OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh Org Access Token
|
|
98
98
|
*CoboWaas2.OrganizationsApi* | [**getOrgInfo**](docs/OrganizationsApi.md#getOrgInfo) | **GET** /organizations/info | Get organization information
|
|
99
99
|
*CoboWaas2.PaymentApi* | [**cancelRefundById**](docs/PaymentApi.md#cancelRefundById) | **PUT** /payments/refunds/{refund_id}/cancel | Cancel refund order
|
|
100
|
-
*CoboWaas2.PaymentApi* | [**
|
|
100
|
+
*CoboWaas2.PaymentApi* | [**createCryptoAddress**](docs/PaymentApi.md#createCryptoAddress) | **POST** /payments/crypto_addresses | Create crypto address
|
|
101
|
+
*CoboWaas2.PaymentApi* | [**createForcedSweepRequest**](docs/PaymentApi.md#createForcedSweepRequest) | **POST** /payments/force_sweep_requests | Create forced sweep
|
|
101
102
|
*CoboWaas2.PaymentApi* | [**createMerchant**](docs/PaymentApi.md#createMerchant) | **POST** /payments/merchants | Create merchant
|
|
102
103
|
*CoboWaas2.PaymentApi* | [**createPaymentOrder**](docs/PaymentApi.md#createPaymentOrder) | **POST** /payments/orders | Create pay-in order
|
|
103
104
|
*CoboWaas2.PaymentApi* | [**createRefund**](docs/PaymentApi.md#createRefund) | **POST** /payments/refunds | Create refund order
|
|
104
105
|
*CoboWaas2.PaymentApi* | [**createSettlementRequest**](docs/PaymentApi.md#createSettlementRequest) | **POST** /payments/settlement_requests | Create settlement request
|
|
106
|
+
*CoboWaas2.PaymentApi* | [**deleteCryptoAddress**](docs/PaymentApi.md#deleteCryptoAddress) | **POST** /payments/crypto_addresses/{crypto_address_id}/delete | Delete crypto address
|
|
105
107
|
*CoboWaas2.PaymentApi* | [**getExchangeRate**](docs/PaymentApi.md#getExchangeRate) | **GET** /payments/exchange_rates/{token_id}/{currency} | Get exchange rate
|
|
106
108
|
*CoboWaas2.PaymentApi* | [**getPaymentOrderDetailById**](docs/PaymentApi.md#getPaymentOrderDetailById) | **GET** /payments/orders/{order_id} | Get pay-in order information
|
|
107
109
|
*CoboWaas2.PaymentApi* | [**getRefundDetailById**](docs/PaymentApi.md#getRefundDetailById) | **GET** /payments/refunds/{refund_id} | Get refund order information
|
|
@@ -111,10 +113,11 @@ Class | Method | HTTP request | Description
|
|
|
111
113
|
*CoboWaas2.PaymentApi* | [**getTopUpAddress**](docs/PaymentApi.md#getTopUpAddress) | **GET** /payments/topup/address | Get top-up address
|
|
112
114
|
*CoboWaas2.PaymentApi* | [**listBankAccounts**](docs/PaymentApi.md#listBankAccounts) | **GET** /payments/bank_accounts | List all bank accounts
|
|
113
115
|
*CoboWaas2.PaymentApi* | [**listCryptoAddresses**](docs/PaymentApi.md#listCryptoAddresses) | **GET** /payments/crypto_addresses | List crypto addresses
|
|
114
|
-
*CoboWaas2.PaymentApi* | [**listForcedSweepRequests**](docs/PaymentApi.md#listForcedSweepRequests) | **GET** /payments/force_sweep_requests | List
|
|
116
|
+
*CoboWaas2.PaymentApi* | [**listForcedSweepRequests**](docs/PaymentApi.md#listForcedSweepRequests) | **GET** /payments/force_sweep_requests | List forced sweeps
|
|
115
117
|
*CoboWaas2.PaymentApi* | [**listMerchants**](docs/PaymentApi.md#listMerchants) | **GET** /payments/merchants | List all merchants
|
|
116
118
|
*CoboWaas2.PaymentApi* | [**listPaymentOrders**](docs/PaymentApi.md#listPaymentOrders) | **GET** /payments/orders | List all pay-in orders
|
|
117
119
|
*CoboWaas2.PaymentApi* | [**listPaymentSupportedTokens**](docs/PaymentApi.md#listPaymentSupportedTokens) | **GET** /payments/supported_tokens | List all supported tokens
|
|
120
|
+
*CoboWaas2.PaymentApi* | [**listSettlementDetails**](docs/PaymentApi.md#listSettlementDetails) | **GET** /payments/settlement_details | List all settlement details
|
|
118
121
|
*CoboWaas2.PaymentApi* | [**listSettlementRequests**](docs/PaymentApi.md#listSettlementRequests) | **GET** /payments/settlement_requests | List all settlement requests
|
|
119
122
|
*CoboWaas2.PaymentApi* | [**listTopUpPayers**](docs/PaymentApi.md#listTopUpPayers) | **GET** /payments/topup/payers | List payers
|
|
120
123
|
*CoboWaas2.PaymentApi* | [**updateMerchantById**](docs/PaymentApi.md#updateMerchantById) | **PUT** /payments/merchants/{merchant_id} | Update merchant
|
|
@@ -320,6 +323,7 @@ Class | Method | HTTP request | Description
|
|
|
320
323
|
- [CoboWaas2.CreateBabylonStakingRegistrationRequest](docs/CreateBabylonStakingRegistrationRequest.md)
|
|
321
324
|
- [CoboWaas2.CreateClaimActivity](docs/CreateClaimActivity.md)
|
|
322
325
|
- [CoboWaas2.CreateClaimActivityRequest](docs/CreateClaimActivityRequest.md)
|
|
326
|
+
- [CoboWaas2.CreateCryptoAddressRequest](docs/CreateCryptoAddressRequest.md)
|
|
323
327
|
- [CoboWaas2.CreateCustodialWalletParams](docs/CreateCustodialWalletParams.md)
|
|
324
328
|
- [CoboWaas2.CreateExchangeWalletParams](docs/CreateExchangeWalletParams.md)
|
|
325
329
|
- [CoboWaas2.CreateKeyShareHolder](docs/CreateKeyShareHolder.md)
|
|
@@ -360,6 +364,7 @@ Class | Method | HTTP request | Description
|
|
|
360
364
|
- [CoboWaas2.CustodialWeb3ContractCallSource](docs/CustodialWeb3ContractCallSource.md)
|
|
361
365
|
- [CoboWaas2.CustodialWeb3MessageSignSource](docs/CustodialWeb3MessageSignSource.md)
|
|
362
366
|
- [CoboWaas2.CustodialWeb3TransferSource](docs/CustodialWeb3TransferSource.md)
|
|
367
|
+
- [CoboWaas2.DeleteCryptoAddress201Response](docs/DeleteCryptoAddress201Response.md)
|
|
363
368
|
- [CoboWaas2.DeleteGuardPubkey201Response](docs/DeleteGuardPubkey201Response.md)
|
|
364
369
|
- [CoboWaas2.DeleteKeyShareHolderGroupById201Response](docs/DeleteKeyShareHolderGroupById201Response.md)
|
|
365
370
|
- [CoboWaas2.DeleteWalletById201Response](docs/DeleteWalletById201Response.md)
|
|
@@ -462,6 +467,7 @@ Class | Method | HTTP request | Description
|
|
|
462
467
|
- [CoboWaas2.ListMpcProjects200Response](docs/ListMpcProjects200Response.md)
|
|
463
468
|
- [CoboWaas2.ListMpcVaults200Response](docs/ListMpcVaults200Response.md)
|
|
464
469
|
- [CoboWaas2.ListPaymentOrders200Response](docs/ListPaymentOrders200Response.md)
|
|
470
|
+
- [CoboWaas2.ListSettlementDetails200Response](docs/ListSettlementDetails200Response.md)
|
|
465
471
|
- [CoboWaas2.ListSettlementRequests200Response](docs/ListSettlementRequests200Response.md)
|
|
466
472
|
- [CoboWaas2.ListStakingActivities200Response](docs/ListStakingActivities200Response.md)
|
|
467
473
|
- [CoboWaas2.ListStakingPools200Response](docs/ListStakingPools200Response.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -52,6 +52,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
52
52
|
var privateKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
53
53
|
var curve_type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
|
|
54
54
|
var signer = arguments.length > 3 ? arguments[3] : undefined;
|
|
55
|
+
var is_debug = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
55
56
|
_classCallCheck(this, ApiClient);
|
|
56
57
|
/**
|
|
57
58
|
* The base URL against which to resolve every API call's (relative) path.
|
|
@@ -101,7 +102,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
101
102
|
* @default {}
|
|
102
103
|
*/
|
|
103
104
|
this.defaultHeaders = {
|
|
104
|
-
'User-Agent': 'cobo-waas2-js-sdk/1.
|
|
105
|
+
'User-Agent': 'cobo-waas2-js-sdk/1.21.0'
|
|
105
106
|
};
|
|
106
107
|
|
|
107
108
|
/**
|
|
@@ -143,6 +144,12 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
143
144
|
* Allow user to add superagent plugins
|
|
144
145
|
*/
|
|
145
146
|
this.plugins = null;
|
|
147
|
+
|
|
148
|
+
/*
|
|
149
|
+
* If set to true, the client will log debug information
|
|
150
|
+
* @default false
|
|
151
|
+
*/
|
|
152
|
+
this.isDebug = is_debug;
|
|
146
153
|
}
|
|
147
154
|
|
|
148
155
|
/***
|
|
@@ -494,7 +501,9 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
494
501
|
}).join('&');
|
|
495
502
|
var nonce = String(new Date().getTime());
|
|
496
503
|
var strToSign = [httpMethod, new URL(url).pathname, nonce, queryStr, bodyParam ? JSON.stringify(bodyParam) : ''].join('|');
|
|
497
|
-
|
|
504
|
+
if (this.isDebug) {
|
|
505
|
+
console.log("strToSign:", strToSign);
|
|
506
|
+
}
|
|
498
507
|
var hash2String = CryptoJS.SHA256(CryptoJS.SHA256(strToSign)).toString(CryptoJS.enc.Hex);
|
|
499
508
|
var headers = {
|
|
500
509
|
'BIZ-API-KEY': this.signer.getPublicKey(),
|
package/dist/api/PaymentApi.js
CHANGED
|
@@ -7,11 +7,13 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _AcquiringType = _interopRequireDefault(require("../model/AcquiringType"));
|
|
9
9
|
var _BankAccount = _interopRequireDefault(require("../model/BankAccount"));
|
|
10
|
+
var _CreateCryptoAddressRequest = _interopRequireDefault(require("../model/CreateCryptoAddressRequest"));
|
|
10
11
|
var _CreateMerchantRequest = _interopRequireDefault(require("../model/CreateMerchantRequest"));
|
|
11
12
|
var _CreatePaymentOrderRequest = _interopRequireDefault(require("../model/CreatePaymentOrderRequest"));
|
|
12
13
|
var _CreateRefundRequest = _interopRequireDefault(require("../model/CreateRefundRequest"));
|
|
13
14
|
var _CreateSettlementRequestRequest = _interopRequireDefault(require("../model/CreateSettlementRequestRequest"));
|
|
14
15
|
var _CryptoAddress = _interopRequireDefault(require("../model/CryptoAddress"));
|
|
16
|
+
var _DeleteCryptoAddress201Response = _interopRequireDefault(require("../model/DeleteCryptoAddress201Response"));
|
|
15
17
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
16
18
|
var _ForcedSweep = _interopRequireDefault(require("../model/ForcedSweep"));
|
|
17
19
|
var _ForcedSweepRequest = _interopRequireDefault(require("../model/ForcedSweepRequest"));
|
|
@@ -21,6 +23,7 @@ var _GetSettlementInfoByIds200Response = _interopRequireDefault(require("../mode
|
|
|
21
23
|
var _ListForcedSweepRequests200Response = _interopRequireDefault(require("../model/ListForcedSweepRequests200Response"));
|
|
22
24
|
var _ListMerchants200Response = _interopRequireDefault(require("../model/ListMerchants200Response"));
|
|
23
25
|
var _ListPaymentOrders200Response = _interopRequireDefault(require("../model/ListPaymentOrders200Response"));
|
|
26
|
+
var _ListSettlementDetails200Response = _interopRequireDefault(require("../model/ListSettlementDetails200Response"));
|
|
24
27
|
var _ListSettlementRequests200Response = _interopRequireDefault(require("../model/ListSettlementRequests200Response"));
|
|
25
28
|
var _ListTopUpPayers200Response = _interopRequireDefault(require("../model/ListTopUpPayers200Response"));
|
|
26
29
|
var _Merchant = _interopRequireDefault(require("../model/Merchant"));
|
|
@@ -111,10 +114,51 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
111
114
|
}
|
|
112
115
|
|
|
113
116
|
/**
|
|
114
|
-
* Create
|
|
115
|
-
*
|
|
117
|
+
* Create crypto address
|
|
118
|
+
* Create a new cryptocurrency address for receiving payouts or transfers. The address must match the specified `token_id`'s blockchain. Optionally, a label can be provided to help categorize the address internally.
|
|
116
119
|
* @param {Object} opts Optional parameters
|
|
117
|
-
* @param {module:model/
|
|
120
|
+
* @param {module:model/CreateCryptoAddressRequest} [CreateCryptoAddressRequest] The request body to create a crypto address.
|
|
121
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CryptoAddress} and HTTP response
|
|
122
|
+
*/
|
|
123
|
+
}, {
|
|
124
|
+
key: "createCryptoAddressWithHttpInfo",
|
|
125
|
+
value: function createCryptoAddressWithHttpInfo(opts) {
|
|
126
|
+
opts = opts || {};
|
|
127
|
+
var postBody = opts['CreateCryptoAddressRequest'];
|
|
128
|
+
if (postBody && postBody.toJSON) {
|
|
129
|
+
postBody = postBody.toJSON();
|
|
130
|
+
}
|
|
131
|
+
var pathParams = {};
|
|
132
|
+
var queryParams = {};
|
|
133
|
+
var headerParams = {};
|
|
134
|
+
var formParams = {};
|
|
135
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
136
|
+
var contentTypes = ['application/json'];
|
|
137
|
+
var accepts = ['application/json'];
|
|
138
|
+
var returnType = _CryptoAddress["default"];
|
|
139
|
+
return this.apiClient.callApi('/payments/crypto_addresses', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Create crypto address
|
|
144
|
+
* Create a new cryptocurrency address for receiving payouts or transfers. The address must match the specified `token_id`'s blockchain. Optionally, a label can be provided to help categorize the address internally.
|
|
145
|
+
* @param {Object} opts Optional parameters
|
|
146
|
+
* @param {module:model/CreateCryptoAddressRequest} opts.CreateCryptoAddressRequest The request body to create a crypto address.
|
|
147
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CryptoAddress}
|
|
148
|
+
*/
|
|
149
|
+
}, {
|
|
150
|
+
key: "createCryptoAddress",
|
|
151
|
+
value: function createCryptoAddress(opts) {
|
|
152
|
+
return this.createCryptoAddressWithHttpInfo(opts).then(function (response_and_data) {
|
|
153
|
+
return response_and_data.data;
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Create forced sweep
|
|
159
|
+
* This operation creates a forced sweep to transfer funds from addresses within a specified wallet to its designated sweep-to address.
|
|
160
|
+
* @param {Object} opts Optional parameters
|
|
161
|
+
* @param {module:model/ForcedSweepRequest} [ForcedSweepRequest] The request body for forced sweep.
|
|
118
162
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ForcedSweep} and HTTP response
|
|
119
163
|
*/
|
|
120
164
|
}, {
|
|
@@ -137,10 +181,10 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
137
181
|
}
|
|
138
182
|
|
|
139
183
|
/**
|
|
140
|
-
* Create
|
|
141
|
-
* This operation creates a
|
|
184
|
+
* Create forced sweep
|
|
185
|
+
* This operation creates a forced sweep to transfer funds from addresses within a specified wallet to its designated sweep-to address.
|
|
142
186
|
* @param {Object} opts Optional parameters
|
|
143
|
-
* @param {module:model/ForcedSweepRequest} opts.ForcedSweepRequest The request body
|
|
187
|
+
* @param {module:model/ForcedSweepRequest} opts.ForcedSweepRequest The request body for forced sweep.
|
|
144
188
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ForcedSweep}
|
|
145
189
|
*/
|
|
146
190
|
}, {
|
|
@@ -315,6 +359,50 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
315
359
|
});
|
|
316
360
|
}
|
|
317
361
|
|
|
362
|
+
/**
|
|
363
|
+
* Delete crypto address
|
|
364
|
+
* This operation deletes a crypto address.
|
|
365
|
+
* @param {String} crypto_address_id The crypto address ID.
|
|
366
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCryptoAddress201Response} and HTTP response
|
|
367
|
+
*/
|
|
368
|
+
}, {
|
|
369
|
+
key: "deleteCryptoAddressWithHttpInfo",
|
|
370
|
+
value: function deleteCryptoAddressWithHttpInfo(crypto_address_id) {
|
|
371
|
+
var postBody = null;
|
|
372
|
+
if (postBody && postBody.toJSON) {
|
|
373
|
+
postBody = postBody.toJSON();
|
|
374
|
+
}
|
|
375
|
+
// verify the required parameter 'crypto_address_id' is set
|
|
376
|
+
if (crypto_address_id === undefined || crypto_address_id === null) {
|
|
377
|
+
throw new Error("Missing the required parameter 'crypto_address_id' when calling deleteCryptoAddress");
|
|
378
|
+
}
|
|
379
|
+
var pathParams = {
|
|
380
|
+
'crypto_address_id': crypto_address_id
|
|
381
|
+
};
|
|
382
|
+
var queryParams = {};
|
|
383
|
+
var headerParams = {};
|
|
384
|
+
var formParams = {};
|
|
385
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
386
|
+
var contentTypes = [];
|
|
387
|
+
var accepts = ['application/json'];
|
|
388
|
+
var returnType = _DeleteCryptoAddress201Response["default"];
|
|
389
|
+
return this.apiClient.callApi('/payments/crypto_addresses/{crypto_address_id}/delete', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Delete crypto address
|
|
394
|
+
* This operation deletes a crypto address.
|
|
395
|
+
* @param {String} crypto_address_id The crypto address ID.
|
|
396
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCryptoAddress201Response}
|
|
397
|
+
*/
|
|
398
|
+
}, {
|
|
399
|
+
key: "deleteCryptoAddress",
|
|
400
|
+
value: function deleteCryptoAddress(crypto_address_id) {
|
|
401
|
+
return this.deleteCryptoAddressWithHttpInfo(crypto_address_id).then(function (response_and_data) {
|
|
402
|
+
return response_and_data.data;
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
|
|
318
406
|
/**
|
|
319
407
|
* Get exchange rate
|
|
320
408
|
* This operation retrieves the current exchange rate between a specified currency pair.
|
|
@@ -463,6 +551,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
463
551
|
* @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.
|
|
464
552
|
* @param {String} [merchant_id] The merchant ID.
|
|
465
553
|
* @param {String} [request_id] The request ID.
|
|
554
|
+
* @param {String} [statuses] A list of statuses of order, refund or settle request.
|
|
466
555
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRefunds200Response} and HTTP response
|
|
467
556
|
*/
|
|
468
557
|
}, {
|
|
@@ -479,7 +568,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
479
568
|
'before': opts['before'],
|
|
480
569
|
'after': opts['after'],
|
|
481
570
|
'merchant_id': opts['merchant_id'],
|
|
482
|
-
'request_id': opts['request_id']
|
|
571
|
+
'request_id': opts['request_id'],
|
|
572
|
+
'statuses': opts['statuses']
|
|
483
573
|
};
|
|
484
574
|
var headerParams = {};
|
|
485
575
|
var formParams = {};
|
|
@@ -499,6 +589,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
499
589
|
* @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.
|
|
500
590
|
* @param {String} opts.merchant_id The merchant ID.
|
|
501
591
|
* @param {String} opts.request_id The request ID.
|
|
592
|
+
* @param {String} opts.statuses A list of statuses of order, refund or settle request.
|
|
502
593
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRefunds200Response}
|
|
503
594
|
*/
|
|
504
595
|
}, {
|
|
@@ -555,7 +646,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
555
646
|
|
|
556
647
|
/**
|
|
557
648
|
* Get withdrawable balances
|
|
558
|
-
* This operation retrieves the
|
|
649
|
+
* This operation retrieves the balances of specified merchants or the developer.
|
|
559
650
|
* @param {Object} opts Optional parameters
|
|
560
651
|
* @param {String} [merchant_ids] A list of merchant IDs to query.
|
|
561
652
|
* @param {String} [currency = 'USD')] The currency for the operation. Currently, only `USD` is supported.
|
|
@@ -587,7 +678,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
587
678
|
|
|
588
679
|
/**
|
|
589
680
|
* Get withdrawable balances
|
|
590
|
-
* This operation retrieves the
|
|
681
|
+
* This operation retrieves the balances of specified merchants or the developer.
|
|
591
682
|
* @param {Object} opts Optional parameters
|
|
592
683
|
* @param {String} opts.merchant_ids A list of merchant IDs to query.
|
|
593
684
|
* @param {String} opts.currency The currency for the operation. Currently, only `USD` is supported. (default to 'USD')
|
|
@@ -740,8 +831,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
740
831
|
}
|
|
741
832
|
|
|
742
833
|
/**
|
|
743
|
-
* List
|
|
744
|
-
* This operation retrieves the information of
|
|
834
|
+
* List forced sweeps
|
|
835
|
+
* This operation retrieves the information of all forced sweeps.
|
|
745
836
|
* @param {Object} opts Optional parameters
|
|
746
837
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
747
838
|
* @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.
|
|
@@ -774,8 +865,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
774
865
|
}
|
|
775
866
|
|
|
776
867
|
/**
|
|
777
|
-
* List
|
|
778
|
-
* This operation retrieves the information of
|
|
868
|
+
* List forced sweeps
|
|
869
|
+
* This operation retrieves the information of all forced sweeps.
|
|
779
870
|
* @param {Object} opts Optional parameters
|
|
780
871
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
781
872
|
* @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.
|
|
@@ -855,6 +946,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
855
946
|
* @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.
|
|
856
947
|
* @param {String} [merchant_id] The merchant ID.
|
|
857
948
|
* @param {String} [psp_order_id] A unique reference code assigned by the developer to identify this order in their system.
|
|
949
|
+
* @param {String} [statuses] A list of statuses of order, refund or settle request.
|
|
858
950
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPaymentOrders200Response} and HTTP response
|
|
859
951
|
*/
|
|
860
952
|
}, {
|
|
@@ -871,7 +963,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
871
963
|
'before': opts['before'],
|
|
872
964
|
'after': opts['after'],
|
|
873
965
|
'merchant_id': opts['merchant_id'],
|
|
874
|
-
'psp_order_id': opts['psp_order_id']
|
|
966
|
+
'psp_order_id': opts['psp_order_id'],
|
|
967
|
+
'statuses': opts['statuses']
|
|
875
968
|
};
|
|
876
969
|
var headerParams = {};
|
|
877
970
|
var formParams = {};
|
|
@@ -891,6 +984,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
891
984
|
* @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.
|
|
892
985
|
* @param {String} opts.merchant_id The merchant ID.
|
|
893
986
|
* @param {String} opts.psp_order_id A unique reference code assigned by the developer to identify this order in their system.
|
|
987
|
+
* @param {String} opts.statuses A list of statuses of order, refund or settle request.
|
|
894
988
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPaymentOrders200Response}
|
|
895
989
|
*/
|
|
896
990
|
}, {
|
|
@@ -937,6 +1031,61 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
937
1031
|
});
|
|
938
1032
|
}
|
|
939
1033
|
|
|
1034
|
+
/**
|
|
1035
|
+
* List all settlement details
|
|
1036
|
+
* This operation retrieves the information of all settlement details. You can filter the result by merchant ID or status.
|
|
1037
|
+
* @param {Object} opts Optional parameters
|
|
1038
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
1039
|
+
* @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.
|
|
1040
|
+
* @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.
|
|
1041
|
+
* @param {String} [merchant_id] The merchant ID.
|
|
1042
|
+
* @param {String} [statuses] A list of statuses of order, refund or settle request.
|
|
1043
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListSettlementDetails200Response} and HTTP response
|
|
1044
|
+
*/
|
|
1045
|
+
}, {
|
|
1046
|
+
key: "listSettlementDetailsWithHttpInfo",
|
|
1047
|
+
value: function listSettlementDetailsWithHttpInfo(opts) {
|
|
1048
|
+
opts = opts || {};
|
|
1049
|
+
var postBody = null;
|
|
1050
|
+
if (postBody && postBody.toJSON) {
|
|
1051
|
+
postBody = postBody.toJSON();
|
|
1052
|
+
}
|
|
1053
|
+
var pathParams = {};
|
|
1054
|
+
var queryParams = {
|
|
1055
|
+
'limit': opts['limit'],
|
|
1056
|
+
'before': opts['before'],
|
|
1057
|
+
'after': opts['after'],
|
|
1058
|
+
'merchant_id': opts['merchant_id'],
|
|
1059
|
+
'statuses': opts['statuses']
|
|
1060
|
+
};
|
|
1061
|
+
var headerParams = {};
|
|
1062
|
+
var formParams = {};
|
|
1063
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1064
|
+
var contentTypes = [];
|
|
1065
|
+
var accepts = ['application/json'];
|
|
1066
|
+
var returnType = _ListSettlementDetails200Response["default"];
|
|
1067
|
+
return this.apiClient.callApi('/payments/settlement_details', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* List all settlement details
|
|
1072
|
+
* This operation retrieves the information of all settlement details. You can filter the result by merchant ID or status.
|
|
1073
|
+
* @param {Object} opts Optional parameters
|
|
1074
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
1075
|
+
* @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.
|
|
1076
|
+
* @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.
|
|
1077
|
+
* @param {String} opts.merchant_id The merchant ID.
|
|
1078
|
+
* @param {String} opts.statuses A list of statuses of order, refund or settle request.
|
|
1079
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSettlementDetails200Response}
|
|
1080
|
+
*/
|
|
1081
|
+
}, {
|
|
1082
|
+
key: "listSettlementDetails",
|
|
1083
|
+
value: function listSettlementDetails(opts) {
|
|
1084
|
+
return this.listSettlementDetailsWithHttpInfo(opts).then(function (response_and_data) {
|
|
1085
|
+
return response_and_data.data;
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1088
|
+
|
|
940
1089
|
/**
|
|
941
1090
|
* List all settlement requests
|
|
942
1091
|
* This operation retrieves the information of all settlement requests.
|
|
@@ -1197,9 +1346,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1197
1346
|
|
|
1198
1347
|
/**
|
|
1199
1348
|
* Update top-up address
|
|
1200
|
-
*
|
|
1349
|
+
* This operation updates the dedicated top-up address assigned to a specific payer under a merchant on a specified chain.
|
|
1201
1350
|
* @param {Object} opts Optional parameters
|
|
1202
|
-
* @param {module:model/UpdateTopUpAddress} [UpdateTopUpAddress] The request body to update top
|
|
1351
|
+
* @param {module:model/UpdateTopUpAddress} [UpdateTopUpAddress] The request body to update top-up address.
|
|
1203
1352
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TopUpAddress} and HTTP response
|
|
1204
1353
|
*/
|
|
1205
1354
|
}, {
|
|
@@ -1223,9 +1372,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1223
1372
|
|
|
1224
1373
|
/**
|
|
1225
1374
|
* Update top-up address
|
|
1226
|
-
*
|
|
1375
|
+
* This operation updates the dedicated top-up address assigned to a specific payer under a merchant on a specified chain.
|
|
1227
1376
|
* @param {Object} opts Optional parameters
|
|
1228
|
-
* @param {module:model/UpdateTopUpAddress} opts.UpdateTopUpAddress The request body to update top
|
|
1377
|
+
* @param {module:model/UpdateTopUpAddress} opts.UpdateTopUpAddress The request body to update top-up address.
|
|
1229
1378
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TopUpAddress}
|
|
1230
1379
|
*/
|
|
1231
1380
|
}, {
|
|
@@ -648,7 +648,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
648
648
|
|
|
649
649
|
/**
|
|
650
650
|
* Resend transaction
|
|
651
|
-
* 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).
|
|
651
|
+
* 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>
|
|
652
652
|
* @param {String} transaction_id The transaction ID.
|
|
653
653
|
* @param {Object} opts Optional parameters
|
|
654
654
|
* @param {module:model/TransactionResend} [TransactionResend] The request body to resend transactions
|
|
@@ -681,7 +681,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
681
681
|
|
|
682
682
|
/**
|
|
683
683
|
* Resend transaction
|
|
684
|
-
* 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).
|
|
684
|
+
* 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>
|
|
685
685
|
* @param {String} transaction_id The transaction ID.
|
|
686
686
|
* @param {Object} opts Optional parameters
|
|
687
687
|
* @param {module:model/TransactionResend} opts.TransactionResend The request body to resend transactions
|
package/dist/api/WalletsApi.js
CHANGED
|
@@ -497,7 +497,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
497
497
|
|
|
498
498
|
/**
|
|
499
499
|
* Get maximum transferable value
|
|
500
|
-
* This operation retrieves the maximum amount that you can transfer from a wallet or a specified wallet address, along with the corresponding transaction fee. You must specify `to_address` in your query because it affects the transaction fee. <Note>This operation is applicable to Custodial Wallets and MPC Wallets only.</Note>
|
|
500
|
+
* <Warning>This operation is planned for deprecation. We recommend using [Estimate maximum transferable value](https://www.cobo.com/developers/v2/api-references/wallets/estimate-maximum-transferable-value) instead.</Warning> This operation retrieves the maximum amount that you can transfer from a wallet or a specified wallet address, along with the corresponding transaction fee. You must specify `to_address` in your query because it affects the transaction fee. <Note>This operation is applicable to Custodial Wallets and MPC Wallets only.</Note>
|
|
501
501
|
* @param {String} wallet_id The wallet ID.
|
|
502
502
|
* @param {String} token_id The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
|
|
503
503
|
* @param {String} fee_rate The fee rate in sats/vByte or gas price in wei.
|
|
@@ -550,7 +550,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
550
550
|
|
|
551
551
|
/**
|
|
552
552
|
* Get maximum transferable value
|
|
553
|
-
* This operation retrieves the maximum amount that you can transfer from a wallet or a specified wallet address, along with the corresponding transaction fee. You must specify `to_address` in your query because it affects the transaction fee. <Note>This operation is applicable to Custodial Wallets and MPC Wallets only.</Note>
|
|
553
|
+
* <Warning>This operation is planned for deprecation. We recommend using [Estimate maximum transferable value](https://www.cobo.com/developers/v2/api-references/wallets/estimate-maximum-transferable-value) instead.</Warning> This operation retrieves the maximum amount that you can transfer from a wallet or a specified wallet address, along with the corresponding transaction fee. You must specify `to_address` in your query because it affects the transaction fee. <Note>This operation is applicable to Custodial Wallets and MPC Wallets only.</Note>
|
|
554
554
|
* @param {String} wallet_id The wallet ID.
|
|
555
555
|
* @param {String} token_id The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
|
|
556
556
|
* @param {String} fee_rate The fee rate in sats/vByte or gas price in wei.
|
package/dist/crypto/ApiSigner.js
CHANGED
|
@@ -15,15 +15,19 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
15
15
|
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); }
|
|
16
16
|
var ApiSigner = exports["default"] = /*#__PURE__*/function () {
|
|
17
17
|
function ApiSigner(privateKey) {
|
|
18
|
+
var isDebug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
18
19
|
_classCallCheck(this, ApiSigner);
|
|
19
20
|
this.privateKey = privateKey;
|
|
21
|
+
this.isDebug = isDebug;
|
|
20
22
|
}
|
|
21
23
|
return _createClass(ApiSigner, [{
|
|
22
24
|
key: "generateHeaders",
|
|
23
25
|
value: function generateHeaders(path, method, body, queryString) {
|
|
24
26
|
var nonce = String(new Date().getTime());
|
|
25
27
|
var strToSign = [method, path, nonce, queryString, body ? JSON.stringify(body) : ''].join('|');
|
|
26
|
-
|
|
28
|
+
if (this.isDebug) {
|
|
29
|
+
console.log("strToSign:", strToSign);
|
|
30
|
+
}
|
|
27
31
|
var hash2String = CryptoJS.SHA256(CryptoJS.SHA256(strToSign)).toString(CryptoJS.enc.Hex);
|
|
28
32
|
return {
|
|
29
33
|
'BIZ-API-KEY': this.getPublicKey(this.privateKey),
|
package/dist/index.js
CHANGED
|
@@ -597,6 +597,12 @@ Object.defineProperty(exports, "CreateClaimActivityRequest", {
|
|
|
597
597
|
return _CreateClaimActivityRequest["default"];
|
|
598
598
|
}
|
|
599
599
|
});
|
|
600
|
+
Object.defineProperty(exports, "CreateCryptoAddressRequest", {
|
|
601
|
+
enumerable: true,
|
|
602
|
+
get: function get() {
|
|
603
|
+
return _CreateCryptoAddressRequest["default"];
|
|
604
|
+
}
|
|
605
|
+
});
|
|
600
606
|
Object.defineProperty(exports, "CreateCustodialWalletParams", {
|
|
601
607
|
enumerable: true,
|
|
602
608
|
get: function get() {
|
|
@@ -837,6 +843,12 @@ Object.defineProperty(exports, "CustodialWeb3TransferSource", {
|
|
|
837
843
|
return _CustodialWeb3TransferSource["default"];
|
|
838
844
|
}
|
|
839
845
|
});
|
|
846
|
+
Object.defineProperty(exports, "DeleteCryptoAddress201Response", {
|
|
847
|
+
enumerable: true,
|
|
848
|
+
get: function get() {
|
|
849
|
+
return _DeleteCryptoAddress201Response["default"];
|
|
850
|
+
}
|
|
851
|
+
});
|
|
840
852
|
Object.defineProperty(exports, "DeleteGuardPubkey201Response", {
|
|
841
853
|
enumerable: true,
|
|
842
854
|
get: function get() {
|
|
@@ -1479,6 +1491,12 @@ Object.defineProperty(exports, "ListPaymentOrders200Response", {
|
|
|
1479
1491
|
return _ListPaymentOrders200Response["default"];
|
|
1480
1492
|
}
|
|
1481
1493
|
});
|
|
1494
|
+
Object.defineProperty(exports, "ListSettlementDetails200Response", {
|
|
1495
|
+
enumerable: true,
|
|
1496
|
+
get: function get() {
|
|
1497
|
+
return _ListSettlementDetails200Response["default"];
|
|
1498
|
+
}
|
|
1499
|
+
});
|
|
1482
1500
|
Object.defineProperty(exports, "ListSettlementRequests200Response", {
|
|
1483
1501
|
enumerable: true,
|
|
1484
1502
|
get: function get() {
|
|
@@ -3955,6 +3973,7 @@ var _CreateBabylonStakingRegistration201Response = _interopRequireDefault(requir
|
|
|
3955
3973
|
var _CreateBabylonStakingRegistrationRequest = _interopRequireDefault(require("./model/CreateBabylonStakingRegistrationRequest"));
|
|
3956
3974
|
var _CreateClaimActivity = _interopRequireDefault(require("./model/CreateClaimActivity"));
|
|
3957
3975
|
var _CreateClaimActivityRequest = _interopRequireDefault(require("./model/CreateClaimActivityRequest"));
|
|
3976
|
+
var _CreateCryptoAddressRequest = _interopRequireDefault(require("./model/CreateCryptoAddressRequest"));
|
|
3958
3977
|
var _CreateCustodialWalletParams = _interopRequireDefault(require("./model/CreateCustodialWalletParams"));
|
|
3959
3978
|
var _CreateExchangeWalletParams = _interopRequireDefault(require("./model/CreateExchangeWalletParams"));
|
|
3960
3979
|
var _CreateKeyShareHolder = _interopRequireDefault(require("./model/CreateKeyShareHolder"));
|
|
@@ -3995,6 +4014,7 @@ var _CustodialWalletInfo = _interopRequireDefault(require("./model/CustodialWall
|
|
|
3995
4014
|
var _CustodialWeb3ContractCallSource = _interopRequireDefault(require("./model/CustodialWeb3ContractCallSource"));
|
|
3996
4015
|
var _CustodialWeb3MessageSignSource = _interopRequireDefault(require("./model/CustodialWeb3MessageSignSource"));
|
|
3997
4016
|
var _CustodialWeb3TransferSource = _interopRequireDefault(require("./model/CustodialWeb3TransferSource"));
|
|
4017
|
+
var _DeleteCryptoAddress201Response = _interopRequireDefault(require("./model/DeleteCryptoAddress201Response"));
|
|
3998
4018
|
var _DeleteGuardPubkey201Response = _interopRequireDefault(require("./model/DeleteGuardPubkey201Response"));
|
|
3999
4019
|
var _DeleteKeyShareHolderGroupById201Response = _interopRequireDefault(require("./model/DeleteKeyShareHolderGroupById201Response"));
|
|
4000
4020
|
var _DeleteWalletById201Response = _interopRequireDefault(require("./model/DeleteWalletById201Response"));
|
|
@@ -4097,6 +4117,7 @@ var _ListMerchants200Response = _interopRequireDefault(require("./model/ListMerc
|
|
|
4097
4117
|
var _ListMpcProjects200Response = _interopRequireDefault(require("./model/ListMpcProjects200Response"));
|
|
4098
4118
|
var _ListMpcVaults200Response = _interopRequireDefault(require("./model/ListMpcVaults200Response"));
|
|
4099
4119
|
var _ListPaymentOrders200Response = _interopRequireDefault(require("./model/ListPaymentOrders200Response"));
|
|
4120
|
+
var _ListSettlementDetails200Response = _interopRequireDefault(require("./model/ListSettlementDetails200Response"));
|
|
4100
4121
|
var _ListSettlementRequests200Response = _interopRequireDefault(require("./model/ListSettlementRequests200Response"));
|
|
4101
4122
|
var _ListStakingActivities200Response = _interopRequireDefault(require("./model/ListStakingActivities200Response"));
|
|
4102
4123
|
var _ListStakingPools200Response = _interopRequireDefault(require("./model/ListStakingPools200Response"));
|
|
@@ -35,7 +35,7 @@ var AddressesEventData = /*#__PURE__*/function () {
|
|
|
35
35
|
* Constructs a new <code>AddressesEventData</code>.
|
|
36
36
|
* @alias module:model/AddressesEventData
|
|
37
37
|
* @implements module:model/WebhookEventDataType
|
|
38
|
-
* @param data_type {module:model/AddressesEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The
|
|
38
|
+
* @param data_type {module:model/AddressesEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
39
39
|
*/
|
|
40
40
|
function AddressesEventData(data_type) {
|
|
41
41
|
_classCallCheck(this, AddressesEventData);
|
|
@@ -132,7 +132,7 @@ var AddressesEventData = /*#__PURE__*/function () {
|
|
|
132
132
|
AddressesEventData.RequiredProperties = ["data_type"];
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The
|
|
135
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
136
136
|
* @member {module:model/AddressesEventData.DataTypeEnum} data_type
|
|
137
137
|
*/
|
|
138
138
|
AddressesEventData.prototype['data_type'] = undefined;
|
|
@@ -145,7 +145,7 @@ AddressesEventData.prototype['addresses'] = undefined;
|
|
|
145
145
|
|
|
146
146
|
// Implement WebhookEventDataType interface:
|
|
147
147
|
/**
|
|
148
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The
|
|
148
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
149
149
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
150
150
|
*/
|
|
151
151
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -37,7 +37,7 @@ var BalanceUpdateInfoEventData = /*#__PURE__*/function () {
|
|
|
37
37
|
* @alias module:model/BalanceUpdateInfoEventData
|
|
38
38
|
* @implements module:model/WebhookEventDataType
|
|
39
39
|
* @implements module:model/BalanceUpdateInfo
|
|
40
|
-
* @param data_type {module:model/BalanceUpdateInfoEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The
|
|
40
|
+
* @param data_type {module:model/BalanceUpdateInfoEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
41
41
|
* @param token_id {String} The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
|
|
42
42
|
* @param address {String} The wallet address.
|
|
43
43
|
* @param wallet_uuid {String} The wallet ID.
|
|
@@ -156,7 +156,7 @@ var BalanceUpdateInfoEventData = /*#__PURE__*/function () {
|
|
|
156
156
|
BalanceUpdateInfoEventData.RequiredProperties = ["data_type", "token_id", "address", "wallet_uuid", "updated_timestamp", "balance"];
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The
|
|
159
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
160
160
|
* @member {module:model/BalanceUpdateInfoEventData.DataTypeEnum} data_type
|
|
161
161
|
*/
|
|
162
162
|
BalanceUpdateInfoEventData.prototype['data_type'] = undefined;
|
|
@@ -192,7 +192,7 @@ BalanceUpdateInfoEventData.prototype['balance'] = undefined;
|
|
|
192
192
|
|
|
193
193
|
// Implement WebhookEventDataType interface:
|
|
194
194
|
/**
|
|
195
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The
|
|
195
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
196
196
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
197
197
|
*/
|
|
198
198
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|