@cobo/cobo-waas2 1.27.0 → 1.29.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 +96 -7
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +2 -2
- package/dist/api/AutoSweepApi.js +4 -4
- package/dist/api/ComplianceApi.js +144 -4
- package/dist/api/FeeStationApi.js +2 -2
- package/dist/api/OAuthApi.js +4 -4
- package/dist/api/PaymentApi.js +1453 -123
- package/dist/api/StakingsApi.js +44 -2
- package/dist/api/SwapsApi.js +2 -2
- package/dist/api/TransactionsApi.js +10 -10
- package/dist/api/WalletsApi.js +14 -14
- package/dist/index.js +399 -0
- package/dist/model/AddressRiskLevel.js +71 -0
- package/dist/model/AddressesEventData.js +13 -3
- package/dist/model/AllocationRecord.js +196 -0
- package/dist/model/AllocationRequest.js +170 -0
- package/dist/model/BabylonCreateStakingExpansion.js +157 -0
- package/dist/model/BabylonStakeExtra.js +26 -0
- package/dist/model/BabylonStakingRegistration.js +1 -1
- package/dist/model/BalanceUpdateInfoEventData.js +13 -3
- package/dist/model/BatchAllocation.js +190 -0
- package/dist/model/BatchAllocationDetail.js +188 -0
- package/dist/model/ChainsEventData.js +13 -3
- package/dist/model/CommissionFee.js +2 -2
- package/dist/model/ComplianceDispositionUpdateEventData.js +13 -3
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +341 -0
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +13 -3
- package/dist/model/ContractCallDestination.js +42 -8
- package/dist/model/ContractCallDestinationType.js +5 -0
- package/dist/model/ContractCallParams.js +2 -2
- package/dist/model/CosmosContractCallDestination.js +0 -13
- package/dist/model/CounterpartyWalletAddressDetail.js +2 -2
- package/dist/model/CreateBatchAllocationRequest.js +142 -0
- package/dist/model/CreateCounterpartyEntry201Response.js +143 -0
- package/dist/model/CreateCounterpartyEntryRequest.js +141 -0
- package/dist/model/CreateCustodialWalletParams.js +1 -1
- package/dist/model/CreateDestinationEntry201Response.js +172 -0
- package/dist/model/CreateDestinationEntryRequest.js +172 -0
- package/dist/model/CreateExchangeWalletParams.js +2 -2
- package/dist/model/CreateKyaScreeningsBody.js +129 -0
- package/dist/model/CreateMerchantRequest.js +1 -1
- package/dist/model/CreateMpcWalletParams.js +2 -2
- package/dist/model/CreatePaymentOrderRequest.js +115 -68
- package/dist/model/CreatePayoutRequest.js +192 -0
- package/dist/model/CreateRefundRequest.js +3 -3
- package/dist/model/CreateReportRequest.js +156 -0
- package/dist/model/CreateSafeWalletParams.js +1 -1
- package/dist/model/CreateSettlement.js +1 -1
- package/dist/model/CreateSettlementRequestRequest.js +1 -1
- package/dist/model/CreateSmartContractWalletParams.js +1 -1
- package/dist/model/CreateStakeActivityExtra.js +12 -0
- package/dist/model/CreateWalletAddress.js +2 -2
- package/dist/model/CreateWalletParams.js +1 -1
- package/dist/model/DeleteCounterpartyById200Response.js +110 -0
- package/dist/model/DeleteCounterpartyEntry200Response.js +110 -0
- package/dist/model/DeleteDestinationById200Response.js +110 -0
- package/dist/model/DeleteDestinationEntry200Response.js +110 -0
- package/dist/model/EntryType.js +61 -0
- package/dist/model/GetCounterpartyEntry200Response.js +90 -0
- package/dist/model/GetDestinationEntry200Response.js +106 -0
- package/dist/model/GetExchangeRate200Response.js +2 -2
- package/dist/model/GetReports200Response.js +123 -0
- package/dist/model/KyaRiskAssessment.js +151 -0
- package/dist/model/KyaRiskDetail.js +126 -0
- package/dist/model/KyaRiskLevel.js +66 -0
- package/dist/model/KyaScreeningRequest.js +154 -0
- package/dist/model/KyaScreeningResult.js +222 -0
- package/dist/model/KyaScreeningResultRiskAssessment.js +171 -0
- package/dist/model/KyaScreeningStatus.js +71 -0
- package/dist/model/KyaScreeningsEventData.js +174 -0
- package/dist/model/LinkDisplayInfo.js +13 -0
- package/dist/model/ListAllocations200Response.js +123 -0
- package/dist/model/ListBatchAllocations200Response.js +123 -0
- package/dist/model/ListCounterpartyEntries200Response.js +123 -0
- package/dist/model/ListDestinationEntries200Response.js +153 -0
- package/dist/model/ListKyaScreenings200Response.js +145 -0
- package/dist/model/ListPayoutItems200Response.js +123 -0
- package/dist/model/ListPayouts200Response.js +123 -0
- package/dist/model/MPCVaultEventData.js +13 -3
- package/dist/model/MerchantBalance.js +28 -2
- package/dist/model/Order.js +135 -102
- package/dist/model/OrderLinkBusinessInfo.js +150 -86
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +2 -4
- package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +125 -0
- package/dist/model/PaymentAddressUpdateEventData.js +13 -3
- package/dist/model/PaymentAllocationAmount.js +125 -0
- package/dist/model/PaymentOrderEventData.js +205 -147
- package/dist/model/PaymentPayout.js +250 -0
- package/dist/model/PaymentPayoutDetail.js +248 -0
- package/dist/model/PaymentPayoutEvent.js +438 -0
- package/dist/model/PaymentPayoutItem.js +299 -0
- package/dist/model/PaymentPayoutItemDetail.js +299 -0
- package/dist/model/PaymentPayoutItemStatus.js +76 -0
- package/dist/model/PaymentPayoutParam.js +166 -0
- package/dist/model/PaymentPayoutStatus.js +81 -0
- package/dist/model/PaymentRefundEventData.js +13 -3
- package/dist/model/PaymentSettlementEvent.js +13 -3
- package/dist/model/PaymentSourceType.js +61 -0
- package/dist/model/PaymentTransactionEventData.js +13 -3
- package/dist/model/PspBalance.js +28 -2
- package/dist/model/RefundLinkBusinessInfo.js +1 -1
- package/dist/model/Report.js +209 -0
- package/dist/model/ReportExportFormat.js +66 -0
- package/dist/model/ReportStatus.js +61 -0
- package/dist/model/ReportType.js +121 -0
- package/dist/model/Stakings.js +33 -6
- package/dist/model/SuspendedTokenEventData.js +13 -3
- package/dist/model/SwapActivity.js +1 -1
- package/dist/model/SwapActivityDetail.js +2 -2
- package/dist/model/SwapActivityTimeline.js +1 -1
- package/dist/model/TSSRequestWebhookEventData.js +13 -3
- package/dist/model/TokenListingEventData.js +13 -3
- package/dist/model/TokensEventData.js +13 -3
- package/dist/model/TransactionCosmosContractDestination.js +0 -13
- package/dist/model/TransactionWebhookEventData.js +13 -3
- package/dist/model/TransferParams.js +2 -2
- package/dist/model/UpdateCounterpartyRequest.js +160 -0
- package/dist/model/UpdateDestinationEntry200Response.js +90 -0
- package/dist/model/UpdateDestinationEntryRequest.js +135 -0
- package/dist/model/UpdateDestinationRequest.js +173 -0
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/WalletAddress.js +20 -2
- package/dist/model/WalletInfoEventData.js +13 -3
- package/dist/model/WebhookEventData.js +145 -47
- package/dist/model/WebhookEventDataType.js +12 -2
- package/dist/model/WebhookEventType.js +15 -0
- package/docs/AddressBooksApi.md +1 -1
- package/docs/AddressRiskLevel.md +16 -0
- package/docs/AddressesEventData.md +5 -1
- package/docs/AllocationRecord.md +15 -0
- package/docs/AllocationRequest.md +13 -0
- package/docs/AutoSweepApi.md +2 -2
- package/docs/BabylonCreateStakingExpansion.md +12 -0
- package/docs/BabylonStakeExtra.md +2 -0
- package/docs/BalanceUpdateInfoEventData.md +5 -1
- package/docs/BatchAllocation.md +14 -0
- package/docs/BatchAllocationDetail.md +14 -0
- package/docs/ChainsEventData.md +5 -1
- package/docs/CommissionFee.md +1 -1
- package/docs/ComplianceApi.md +163 -0
- package/docs/ComplianceDispositionUpdateEventData.md +5 -1
- package/docs/ComplianceKyaScreeningsUpdateEventData.md +62 -0
- package/docs/ComplianceKytScreeningsUpdateEventData.md +5 -1
- package/docs/ContractCallDestination.md +1 -0
- package/docs/ContractCallDestinationType.md +2 -0
- package/docs/ContractCallParams.md +1 -1
- package/docs/CosmosContractCallDestination.md +0 -1
- package/docs/CounterpartyWalletAddressDetail.md +1 -1
- package/docs/CreateBatchAllocationRequest.md +10 -0
- package/docs/CreateCounterpartyEntry201Response.md +10 -0
- package/docs/CreateCounterpartyEntryRequest.md +10 -0
- package/docs/CreateCustodialWalletParams.md +1 -1
- package/docs/CreateDestinationEntry201Response.md +11 -0
- package/docs/CreateDestinationEntryRequest.md +11 -0
- package/docs/CreateExchangeWalletParams.md +1 -1
- package/docs/CreateKyaScreeningsBody.md +9 -0
- package/docs/CreateMerchantRequest.md +1 -1
- package/docs/CreateMpcWalletParams.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +15 -11
- package/docs/CreatePayoutRequest.md +14 -0
- package/docs/CreateRefundRequest.md +3 -3
- package/docs/CreateReportRequest.md +13 -0
- package/docs/CreateSafeWalletParams.md +1 -1
- package/docs/CreateSettlement.md +1 -1
- package/docs/CreateSettlementRequestRequest.md +1 -1
- package/docs/CreateSmartContractWalletParams.md +1 -1
- package/docs/CreateStakeActivityExtra.md +2 -0
- package/docs/CreateWalletAddress.md +1 -1
- package/docs/CreateWalletParams.md +1 -1
- package/docs/DeleteCounterpartyById200Response.md +9 -0
- package/docs/DeleteCounterpartyEntry200Response.md +9 -0
- package/docs/DeleteDestinationById200Response.md +9 -0
- package/docs/DeleteDestinationEntry200Response.md +9 -0
- package/docs/EntryType.md +12 -0
- package/docs/FeeStationApi.md +1 -1
- package/docs/GetCounterpartyEntry200Response.md +9 -0
- package/docs/GetDestinationEntry200Response.md +10 -0
- package/docs/GetExchangeRate200Response.md +1 -1
- package/docs/GetReports200Response.md +10 -0
- package/docs/KyaRiskAssessment.md +11 -0
- package/docs/KyaRiskDetail.md +10 -0
- package/docs/KyaRiskLevel.md +14 -0
- package/docs/KyaScreeningRequest.md +12 -0
- package/docs/KyaScreeningResult.md +17 -0
- package/docs/KyaScreeningResultRiskAssessment.md +11 -0
- package/docs/KyaScreeningStatus.md +16 -0
- package/docs/KyaScreeningsEventData.md +14 -0
- package/docs/LinkDisplayInfo.md +1 -0
- package/docs/ListAllocations200Response.md +10 -0
- package/docs/ListBatchAllocations200Response.md +10 -0
- package/docs/ListCounterpartyEntries200Response.md +10 -0
- package/docs/ListDestinationEntries200Response.md +11 -0
- package/docs/ListKyaScreenings200Response.md +10 -0
- package/docs/ListPayoutItems200Response.md +10 -0
- package/docs/ListPayouts200Response.md +10 -0
- package/docs/MPCVaultEventData.md +5 -1
- package/docs/MerchantBalance.md +4 -2
- package/docs/OAuthApi.md +2 -2
- package/docs/Order.md +16 -13
- package/docs/OrderLinkBusinessInfo.md +11 -7
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
- package/docs/OrderLinkBusinessInfoPayableAmountsInner.md +10 -0
- package/docs/PaymentAddressUpdateEventData.md +5 -1
- package/docs/PaymentAllocationAmount.md +10 -0
- package/docs/PaymentApi.md +1737 -287
- package/docs/PaymentOrderEventData.md +21 -14
- package/docs/PaymentPayout.md +19 -0
- package/docs/PaymentPayoutDetail.md +19 -0
- package/docs/PaymentPayoutEvent.md +67 -0
- package/docs/PaymentPayoutItem.md +22 -0
- package/docs/PaymentPayoutItemDetail.md +22 -0
- package/docs/PaymentPayoutItemStatus.md +18 -0
- package/docs/PaymentPayoutParam.md +13 -0
- package/docs/PaymentPayoutStatus.md +20 -0
- package/docs/PaymentRefundEventData.md +5 -1
- package/docs/PaymentSettlementEvent.md +5 -1
- package/docs/PaymentSourceType.md +12 -0
- package/docs/PaymentTransactionEventData.md +5 -1
- package/docs/PspBalance.md +4 -2
- package/docs/RefundLinkBusinessInfo.md +1 -1
- package/docs/Report.md +17 -0
- package/docs/ReportExportFormat.md +14 -0
- package/docs/ReportStatus.md +12 -0
- package/docs/ReportType.md +36 -0
- package/docs/Stakings.md +2 -1
- package/docs/StakingsApi.md +54 -1
- package/docs/SuspendedTokenEventData.md +5 -1
- package/docs/SwapActivity.md +1 -1
- package/docs/SwapActivityDetail.md +1 -1
- package/docs/SwapActivityTimeline.md +1 -1
- package/docs/SwapsApi.md +1 -1
- package/docs/TSSRequestWebhookEventData.md +5 -1
- package/docs/TokenListingEventData.md +5 -1
- package/docs/TokensEventData.md +5 -1
- package/docs/TransactionCosmosContractDestination.md +0 -1
- package/docs/TransactionWebhookEventData.md +5 -1
- package/docs/TransactionsApi.md +5 -5
- package/docs/TransferParams.md +1 -1
- package/docs/UpdateCounterpartyRequest.md +13 -0
- package/docs/UpdateDestinationEntry200Response.md +9 -0
- package/docs/UpdateDestinationEntryRequest.md +11 -0
- package/docs/UpdateDestinationRequest.md +14 -0
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/WalletAddress.md +3 -1
- package/docs/WalletInfoEventData.md +5 -1
- package/docs/WalletsApi.md +7 -7
- package/docs/WebhookEventData.md +27 -16
- package/docs/WebhookEventDataType.md +5 -1
- package/docs/WebhookEventType.md +6 -0
- package/package.json +1 -1
|
@@ -5,11 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _CreateKyaScreeningsBody = _interopRequireDefault(require("../model/CreateKyaScreeningsBody"));
|
|
8
9
|
var _DispositionQueryResponse = _interopRequireDefault(require("../model/DispositionQueryResponse"));
|
|
9
10
|
var _DispositionResponse = _interopRequireDefault(require("../model/DispositionResponse"));
|
|
10
11
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
11
12
|
var _IsolateDisposition = _interopRequireDefault(require("../model/IsolateDisposition"));
|
|
13
|
+
var _KyaScreeningResult = _interopRequireDefault(require("../model/KyaScreeningResult"));
|
|
12
14
|
var _KytScreeningsTransaction = _interopRequireDefault(require("../model/KytScreeningsTransaction"));
|
|
15
|
+
var _ListKyaScreenings200Response = _interopRequireDefault(require("../model/ListKyaScreenings200Response"));
|
|
13
16
|
var _RefundDisposition = _interopRequireDefault(require("../model/RefundDisposition"));
|
|
14
17
|
var _SubmitKytResponse = _interopRequireDefault(require("../model/SubmitKytResponse"));
|
|
15
18
|
var _SubmitKytScreeningsDecisionsBody = _interopRequireDefault(require("../model/SubmitKytScreeningsDecisionsBody"));
|
|
@@ -49,12 +52,53 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
/**
|
|
52
|
-
*
|
|
53
|
-
* This operation
|
|
54
|
-
* @param {
|
|
55
|
-
* @
|
|
55
|
+
* Create KYA address screening requests
|
|
56
|
+
* This operation submits up to 50 address screening requests in one request to assess address compliance and risk levels. <Note>This endpoint supports cross-chain address screening with independent idempotency for each address, enabling flexible error handling and partial retries.</Note>
|
|
57
|
+
* @param {Object} opts Optional parameters
|
|
58
|
+
* @param {module:model/CreateKyaScreeningsBody} [CreateKyaScreeningsBody] The request body to create KYA address screening requests.
|
|
59
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/KyaScreeningResult>} and HTTP response
|
|
56
60
|
*/
|
|
57
61
|
return _createClass(ComplianceApi, [{
|
|
62
|
+
key: "createKyaScreeningsWithHttpInfo",
|
|
63
|
+
value: function createKyaScreeningsWithHttpInfo(opts) {
|
|
64
|
+
opts = opts || {};
|
|
65
|
+
var postBody = opts['CreateKyaScreeningsBody'];
|
|
66
|
+
if (postBody && postBody.toJSON) {
|
|
67
|
+
postBody = postBody.toJSON();
|
|
68
|
+
}
|
|
69
|
+
var pathParams = {};
|
|
70
|
+
var queryParams = {};
|
|
71
|
+
var headerParams = {};
|
|
72
|
+
var formParams = {};
|
|
73
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
74
|
+
var contentTypes = ['application/json'];
|
|
75
|
+
var accepts = ['application/json'];
|
|
76
|
+
var returnType = [_KyaScreeningResult["default"]];
|
|
77
|
+
return this.apiClient.callApi('/compliance/kya/screenings', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Create KYA address screening requests
|
|
82
|
+
* This operation submits up to 50 address screening requests in one request to assess address compliance and risk levels. <Note>This endpoint supports cross-chain address screening with independent idempotency for each address, enabling flexible error handling and partial retries.</Note>
|
|
83
|
+
* @param {Object} opts Optional parameters
|
|
84
|
+
* @param {module:model/CreateKyaScreeningsBody} opts.CreateKyaScreeningsBody The request body to create KYA address screening requests.
|
|
85
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/KyaScreeningResult>}
|
|
86
|
+
*/
|
|
87
|
+
}, {
|
|
88
|
+
key: "createKyaScreenings",
|
|
89
|
+
value: function createKyaScreenings(opts) {
|
|
90
|
+
return this.createKyaScreeningsWithHttpInfo(opts).then(function (response_and_data) {
|
|
91
|
+
return response_and_data.data;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Get disposition status
|
|
97
|
+
* This operation retrieves the current status of a disposition request for a specific transaction. You can use this endpoint to check the status of any disposition operation (Refund, Isolate, or Unfreeze) that has been initiated for a transaction. The response includes the disposition type, current status, and the disposition transaction ID if applicable. <Note>Use this endpoint to monitor the progress of disposition operations and verify their completion.</Note>
|
|
98
|
+
* @param {String} transaction_id The unique identifier (UUID) of the transaction to retrieve KYT screening status information for.
|
|
99
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DispositionQueryResponse} and HTTP response
|
|
100
|
+
*/
|
|
101
|
+
}, {
|
|
58
102
|
key: "getDispositionStatusWithHttpInfo",
|
|
59
103
|
value: function getDispositionStatusWithHttpInfo(transaction_id) {
|
|
60
104
|
var postBody = null;
|
|
@@ -92,6 +136,50 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
92
136
|
});
|
|
93
137
|
}
|
|
94
138
|
|
|
139
|
+
/**
|
|
140
|
+
* Get KYA address screening result
|
|
141
|
+
* This operation retrieves a specific address screening result by `screening_id`, including risk assessment information. <Info>This endpoint returns the full screening details including risk level, summary, and detailed risk category exposures.</Info>
|
|
142
|
+
* @param {String} screening_id The unique identifier (UUID) of the address screening request.
|
|
143
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KyaScreeningResult} and HTTP response
|
|
144
|
+
*/
|
|
145
|
+
}, {
|
|
146
|
+
key: "getKyaScreeningWithHttpInfo",
|
|
147
|
+
value: function getKyaScreeningWithHttpInfo(screening_id) {
|
|
148
|
+
var postBody = null;
|
|
149
|
+
if (postBody && postBody.toJSON) {
|
|
150
|
+
postBody = postBody.toJSON();
|
|
151
|
+
}
|
|
152
|
+
// verify the required parameter 'screening_id' is set
|
|
153
|
+
if (screening_id === undefined || screening_id === null) {
|
|
154
|
+
throw new Error("Missing the required parameter 'screening_id' when calling getKyaScreening");
|
|
155
|
+
}
|
|
156
|
+
var pathParams = {
|
|
157
|
+
'screening_id': screening_id
|
|
158
|
+
};
|
|
159
|
+
var queryParams = {};
|
|
160
|
+
var headerParams = {};
|
|
161
|
+
var formParams = {};
|
|
162
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
163
|
+
var contentTypes = [];
|
|
164
|
+
var accepts = ['application/json'];
|
|
165
|
+
var returnType = _KyaScreeningResult["default"];
|
|
166
|
+
return this.apiClient.callApi('/compliance/kya/screenings/{screening_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Get KYA address screening result
|
|
171
|
+
* This operation retrieves a specific address screening result by `screening_id`, including risk assessment information. <Info>This endpoint returns the full screening details including risk level, summary, and detailed risk category exposures.</Info>
|
|
172
|
+
* @param {String} screening_id The unique identifier (UUID) of the address screening request.
|
|
173
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KyaScreeningResult}
|
|
174
|
+
*/
|
|
175
|
+
}, {
|
|
176
|
+
key: "getKyaScreening",
|
|
177
|
+
value: function getKyaScreening(screening_id) {
|
|
178
|
+
return this.getKyaScreeningWithHttpInfo(screening_id).then(function (response_and_data) {
|
|
179
|
+
return response_and_data.data;
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
|
|
95
183
|
/**
|
|
96
184
|
* Get KYT screening status
|
|
97
185
|
* This operation retrieves the current KYT (Know Your Transaction) screening status, including review status and fund disposition status, for a specific transaction. Use this endpoint to monitor the real-time screening progress for transactions processed through the KYT compliance system. <Note>This endpoint provides comprehensive compliance monitoring capabilities to help maintain AML (Anti-Money Laundering) regulatory compliance and audit trail requirements.</Note>
|
|
@@ -177,6 +265,58 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
177
265
|
});
|
|
178
266
|
}
|
|
179
267
|
|
|
268
|
+
/**
|
|
269
|
+
* List KYA address screening results
|
|
270
|
+
* This operation retrieves the results of specified screening requests with pagination support. You can filter specific screening requests using screening_ids (up to 50 IDs). <Note>For larger result sets (exceeding 50 screening results), use pagination parameters (limit, before, after) to page through results.</Note>
|
|
271
|
+
* @param {Object} opts Optional parameters
|
|
272
|
+
* @param {String} [screening_ids] A comma-separated list of screening request IDs to filter specific screening results. Maximum 50 IDs allowed to ensure URL length stays within standard web server limits (typically 8KB). Each ID must be in standard UUID format (36 characters fixed length). Example: `f47ac10b-58cc-4372-a567-0e02b2c3d479,a1b2c3d4-e5f6-4321-8765-fedcba987654`
|
|
273
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
274
|
+
* @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.
|
|
275
|
+
* @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.
|
|
276
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListKyaScreenings200Response} and HTTP response
|
|
277
|
+
*/
|
|
278
|
+
}, {
|
|
279
|
+
key: "listKyaScreeningsWithHttpInfo",
|
|
280
|
+
value: function listKyaScreeningsWithHttpInfo(opts) {
|
|
281
|
+
opts = opts || {};
|
|
282
|
+
var postBody = null;
|
|
283
|
+
if (postBody && postBody.toJSON) {
|
|
284
|
+
postBody = postBody.toJSON();
|
|
285
|
+
}
|
|
286
|
+
var pathParams = {};
|
|
287
|
+
var queryParams = {
|
|
288
|
+
'screening_ids': opts['screening_ids'],
|
|
289
|
+
'limit': opts['limit'],
|
|
290
|
+
'before': opts['before'],
|
|
291
|
+
'after': opts['after']
|
|
292
|
+
};
|
|
293
|
+
var headerParams = {};
|
|
294
|
+
var formParams = {};
|
|
295
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
296
|
+
var contentTypes = [];
|
|
297
|
+
var accepts = ['application/json'];
|
|
298
|
+
var returnType = _ListKyaScreenings200Response["default"];
|
|
299
|
+
return this.apiClient.callApi('/compliance/kya/screenings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* List KYA address screening results
|
|
304
|
+
* This operation retrieves the results of specified screening requests with pagination support. You can filter specific screening requests using screening_ids (up to 50 IDs). <Note>For larger result sets (exceeding 50 screening results), use pagination parameters (limit, before, after) to page through results.</Note>
|
|
305
|
+
* @param {Object} opts Optional parameters
|
|
306
|
+
* @param {String} opts.screening_ids A comma-separated list of screening request IDs to filter specific screening results. Maximum 50 IDs allowed to ensure URL length stays within standard web server limits (typically 8KB). Each ID must be in standard UUID format (36 characters fixed length). Example: `f47ac10b-58cc-4372-a567-0e02b2c3d479,a1b2c3d4-e5f6-4321-8765-fedcba987654`
|
|
307
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
308
|
+
* @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.
|
|
309
|
+
* @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.
|
|
310
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListKyaScreenings200Response}
|
|
311
|
+
*/
|
|
312
|
+
}, {
|
|
313
|
+
key: "listKyaScreenings",
|
|
314
|
+
value: function listKyaScreenings(opts) {
|
|
315
|
+
return this.listKyaScreeningsWithHttpInfo(opts).then(function (response_and_data) {
|
|
316
|
+
return response_and_data.data;
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
|
|
180
320
|
/**
|
|
181
321
|
* Refund funds
|
|
182
322
|
* This operation creates a request to refund funds for a specific transaction. The funds will be sent to the specified destination address. You need to specify the transaction ID to be refunded and the destination address. Optional parameters include custom categories for tracking purposes. <Note>The refund will initiate a withdrawal transaction from the compliance-managed address to the specified destination.</Note>
|
|
@@ -51,7 +51,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
51
51
|
* Check Fee Station usage
|
|
52
52
|
* This operation evaluates Fee Station usage for the current transaction. It determines whether Fee station can be used, checks if the Fee Station balance is sufficient, and returns a breakdown of the amounts involved, including any portion that must be covered by the user or sponsored in USD stablecoin.
|
|
53
53
|
* @param {Object} opts Optional parameters
|
|
54
|
-
* @param {module:model/FeeStationCheckFeeStationUsage} [FeeStationCheckFeeStationUsage] The
|
|
54
|
+
* @param {module:model/FeeStationCheckFeeStationUsage} [FeeStationCheckFeeStationUsage] The request body for evaluating Fee Station usage.
|
|
55
55
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FeeStationCheckFeeStationUsageResponse} and HTTP response
|
|
56
56
|
*/
|
|
57
57
|
return _createClass(FeeStationApi, [{
|
|
@@ -77,7 +77,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
77
77
|
* Check Fee Station usage
|
|
78
78
|
* This operation evaluates Fee Station usage for the current transaction. It determines whether Fee station can be used, checks if the Fee Station balance is sufficient, and returns a breakdown of the amounts involved, including any portion that must be covered by the user or sponsored in USD stablecoin.
|
|
79
79
|
* @param {Object} opts Optional parameters
|
|
80
|
-
* @param {module:model/FeeStationCheckFeeStationUsage} opts.FeeStationCheckFeeStationUsage The
|
|
80
|
+
* @param {module:model/FeeStationCheckFeeStationUsage} opts.FeeStationCheckFeeStationUsage The request body for evaluating Fee Station usage.
|
|
81
81
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FeeStationCheckFeeStationUsageResponse}
|
|
82
82
|
*/
|
|
83
83
|
}, {
|
package/dist/api/OAuthApi.js
CHANGED
|
@@ -48,7 +48,7 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Get Access Token
|
|
51
|
-
* This operation acquires an Access Token and a Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
|
|
51
|
+
* <Warning>This operation has been deprecated.</Warning> This operation acquires an Access Token and a Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
|
|
52
52
|
* @param {module:model/ExchangePermissionTokenRequest} ExchangePermissionTokenRequest The request body to acquire an Access Token.
|
|
53
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExchangePermissionToken201Response} and HTTP response
|
|
54
54
|
*/
|
|
@@ -76,7 +76,7 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* Get Access Token
|
|
79
|
-
* This operation acquires an Access Token and a Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
|
|
79
|
+
* <Warning>This operation has been deprecated.</Warning> This operation acquires an Access Token and a Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
|
|
80
80
|
* @param {module:model/ExchangePermissionTokenRequest} ExchangePermissionTokenRequest The request body to acquire an Access Token.
|
|
81
81
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExchangePermissionToken201Response}
|
|
82
82
|
*/
|
|
@@ -148,7 +148,7 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* Refresh Access Token
|
|
151
|
-
* This operation refreshes the Access Token and Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call this operation to get a new Access Token and Refresh Token.
|
|
151
|
+
* <Warning>This operation has been deprecated.</Warning> This operation refreshes the Access Token and Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call this operation to get a new Access Token and Refresh Token.
|
|
152
152
|
* @param {module:model/RefreshPermissionTokenRequest} RefreshPermissionTokenRequest The request body to refresh the Access Token and the Refresh Token.
|
|
153
153
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExchangePermissionToken201Response} and HTTP response
|
|
154
154
|
*/
|
|
@@ -176,7 +176,7 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* Refresh Access Token
|
|
179
|
-
* This operation refreshes the Access Token and Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call this operation to get a new Access Token and Refresh Token.
|
|
179
|
+
* <Warning>This operation has been deprecated.</Warning> This operation refreshes the Access Token and Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call this operation to get a new Access Token and Refresh Token.
|
|
180
180
|
* @param {module:model/RefreshPermissionTokenRequest} RefreshPermissionTokenRequest The request body to refresh the Access Token and the Refresh Token.
|
|
181
181
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExchangePermissionToken201Response}
|
|
182
182
|
*/
|