@cobo/cobo-waas2 1.23.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -6
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +6 -6
- package/dist/api/ComplianceApi.js +132 -2
- package/dist/api/DevelopersWebhooksApi.js +2 -2
- package/dist/api/FeeStationApi.js +47 -4
- package/dist/api/PaymentApi.js +246 -56
- package/dist/api/SwapsApi.js +374 -0
- package/dist/api/TransactionsApi.js +4 -4
- package/dist/index.js +336 -14
- package/dist/model/AddressInfo.js +13 -0
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/AddressesEventDataAllOfAddresses.js +18 -0
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BridgingFee.js +136 -0
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/CommissionFee.js +110 -0
- package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +305 -0
- package/dist/model/ContractCallDestination.js +48 -8
- package/dist/model/ContractCallDestinationType.js +5 -0
- package/dist/model/CreateMerchantRequest.js +15 -8
- package/dist/model/CreateOrderLinkRequest.js +129 -0
- package/dist/model/CreatePaymentOrderRequest.js +27 -1
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateSettlement.js +3 -29
- package/dist/model/CreateSettlementRequestRequest.js +39 -0
- package/dist/model/CreateSwapActivityRequest.js +193 -0
- package/dist/model/CustodialTransferDestination.js +1 -1
- package/dist/model/EstimateContractCallFeeParams.js +1 -1
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/EstimateTransferFeeParams.js +1 -1
- package/dist/model/EstimatedEvmEip1559Fee.js +1 -1
- package/dist/model/EstimatedEvmLegacyFee.js +1 -1
- package/dist/model/EstimatedFILFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +1 -1
- package/dist/model/EstimatedSOLFee.js +1 -1
- package/dist/model/EstimatedUtxoFee.js +1 -1
- package/dist/model/FeeStationCheckFeeStationUsage.js +186 -0
- package/dist/model/FeeStationCheckFeeStationUsageResponse.js +200 -0
- package/dist/model/FeeStationGasStationType.js +61 -0
- package/dist/model/FundsStatusType.js +111 -0
- package/dist/model/KytScreeningsDecisionsType.js +71 -0
- package/dist/model/KytScreeningsEventData.js +155 -0
- package/dist/model/KytScreeningsReviewType.js +61 -0
- package/dist/model/KytScreeningsTransaction.js +144 -0
- package/dist/model/KytScreeningsTransactionType.js +61 -0
- package/dist/model/Link.js +125 -0
- package/dist/model/LinkDisplayInfo.js +100 -0
- package/dist/model/ListSwapActivities200Response.js +123 -0
- package/dist/model/ListSwapEnabledTokens200Response.js +123 -0
- package/dist/model/ListTopUpPayerAccounts200Response.js +123 -0
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/Merchant.js +12 -3
- package/dist/model/MerchantBalance.js +3 -3
- package/dist/model/MessageSignDestination.js +8 -70
- package/dist/model/Order.js +13 -0
- package/dist/model/OrderLinkBusinessInfo.js +261 -0
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +125 -0
- package/dist/model/OtcFee.js +123 -0
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentEstimateFee.js +125 -0
- package/dist/model/PaymentEstimateFee201Response.js +108 -0
- package/dist/model/PaymentEstimateFeeRequest.js +137 -0
- package/dist/model/PaymentEstimatedFee.js +173 -0
- package/dist/model/PaymentFeeType.js +71 -0
- package/dist/model/PaymentOrderEventData.js +26 -3
- package/dist/model/PaymentRefundEventData.js +30 -5
- package/dist/model/PaymentSettlementEvent.js +70 -9
- package/dist/model/PaymentTransactionEventData.js +8 -3
- package/dist/model/PspBalance.js +3 -3
- package/dist/model/Refund.js +17 -1
- package/dist/model/ReviewStatusType.js +91 -0
- package/dist/model/SettleRequestStatus.js +5 -0
- package/dist/model/Settlement.js +45 -3
- package/dist/model/SettlementDetail.js +33 -1
- package/dist/model/SettlementInfo.js +7 -7
- package/dist/model/SolContractCallAddressLookupTableAccount.js +126 -0
- package/dist/model/SolContractCallDestination.js +30 -0
- package/dist/model/StellarContractCallContractParam.js +164 -0
- package/dist/model/StellarContractCallContractType.js +56 -0
- package/dist/model/StellarContractCallDestination.js +125 -0
- package/dist/model/StellarContractCallTrustLineOperationType.js +56 -0
- package/dist/model/StellarContractCallTrustLineParam.js +133 -0
- package/dist/model/SubmitKytResponse.js +122 -0
- package/dist/model/SubmitKytScreeningsDecisionsBody.js +122 -0
- package/dist/model/{RawMessageSignDestination.js → SubmitKytScreeningsReviewBody.js} +36 -36
- package/dist/model/SupportedToken.js +9 -0
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/SwapActivity.js +9 -9
- package/dist/model/SwapActivityApprovers.js +1 -1
- package/dist/model/SwapActivityDetail.js +34 -18
- package/dist/model/SwapActivitySigners.js +2 -2
- package/dist/model/SwapActivityTimeline.js +5 -5
- package/dist/model/SwapEstimateFee.js +147 -0
- package/dist/model/SwapQuote.js +18 -31
- package/dist/model/SwapReceivingTransaction.js +133 -0
- package/dist/model/SwapToken.js +9 -9
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/TransactionCoboCategory.js +5 -0
- package/dist/model/TransactionDestination.js +48 -8
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionEvmEip1559Fee.js +1 -1
- package/dist/model/TransactionEvmLegacyFee.js +1 -1
- package/dist/model/TransactionFILFee.js +1 -1
- package/dist/model/TransactionFixedFee.js +1 -1
- package/dist/model/TransactionFuelingInfo.js +13 -0
- package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
- package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
- package/dist/model/TransactionRequestFILFee.js +1 -1
- package/dist/model/TransactionRequestSOLFee.js +1 -1
- package/dist/model/TransactionRequestUtxoFee.js +1 -1
- package/dist/model/TransactionSOLFee.js +1 -1
- package/dist/model/TransactionSolContractAddressLookupTableAccount.js +126 -0
- package/dist/model/TransactionSolContractDestination.js +30 -0
- package/dist/model/TransactionStellarContractParam.js +164 -0
- package/dist/model/TransactionStellarContractType.js +56 -0
- package/dist/model/{BTCEIP191MessageSignDestination.js → TransactionStellarDestination.js} +38 -35
- package/dist/model/TransactionStellarTrustLineOperationType.js +56 -0
- package/dist/model/TransactionStellarTrustLineParam.js +133 -0
- package/dist/model/TransactionUtxoFee.js +1 -1
- package/dist/model/TransactionWebhookEventData.js +8 -3
- package/dist/model/UpdateBankAccountByIdRequest.js +108 -0
- package/dist/model/UpdateTopUpAddress.js +4 -6
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WalletSetup.js +66 -0
- package/dist/model/WebhookEventData.js +81 -11
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +10 -0
- package/docs/AddressBooksApi.md +3 -3
- package/docs/AddressInfo.md +1 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/AddressesEventDataAllOfAddresses.md +1 -0
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BridgingFee.md +11 -0
- package/docs/ChainsEventData.md +3 -1
- package/docs/CommissionFee.md +9 -0
- package/docs/ComplianceApi.md +158 -1
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKytScreeningsUpdateEventData.md +57 -0
- package/docs/ContractCallDestination.md +2 -0
- package/docs/ContractCallDestinationType.md +2 -0
- package/docs/CreateMerchantRequest.md +3 -2
- package/docs/CreateOrderLinkRequest.md +10 -0
- package/docs/CreatePaymentOrderRequest.md +3 -1
- package/docs/CreateRefundRequest.md +2 -2
- package/docs/CreateSettlement.md +2 -4
- package/docs/CreateSettlementRequestRequest.md +3 -0
- package/docs/CreateSwapActivityRequest.md +15 -0
- package/docs/DevelopersWebhooksApi.md +1 -1
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimateTransferFeeParams.md +1 -1
- package/docs/FeeStationApi.md +53 -0
- package/docs/FeeStationCheckFeeStationUsage.md +14 -0
- package/docs/FeeStationCheckFeeStationUsageResponse.md +16 -0
- package/docs/FeeStationGasStationType.md +12 -0
- package/docs/FundsStatusType.md +32 -0
- package/docs/KytScreeningsDecisionsType.md +16 -0
- package/docs/KytScreeningsEventData.md +13 -0
- package/docs/KytScreeningsReviewType.md +12 -0
- package/docs/KytScreeningsTransaction.md +12 -0
- package/docs/KytScreeningsTransactionType.md +12 -0
- package/docs/Link.md +10 -0
- package/docs/LinkDisplayInfo.md +10 -0
- package/docs/ListSwapActivities200Response.md +10 -0
- package/docs/ListSwapEnabledTokens200Response.md +10 -0
- package/docs/ListTopUpPayerAccounts200Response.md +10 -0
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/Merchant.md +3 -2
- package/docs/MerchantBalance.md +3 -3
- package/docs/MessageSignDestination.md +0 -1
- package/docs/Order.md +1 -0
- package/docs/OrderLinkBusinessInfo.md +19 -0
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +10 -0
- package/docs/OtcFee.md +10 -0
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentApi.md +253 -25
- package/docs/PaymentEstimateFee.md +10 -0
- package/docs/PaymentEstimateFee201Response.md +9 -0
- package/docs/PaymentEstimateFeeRequest.md +10 -0
- package/docs/PaymentEstimatedFee.md +13 -0
- package/docs/PaymentFeeType.md +16 -0
- package/docs/PaymentOrderEventData.md +4 -1
- package/docs/PaymentRefundEventData.md +5 -2
- package/docs/PaymentSettlementEvent.md +9 -4
- package/docs/PaymentTransactionEventData.md +3 -1
- package/docs/PspBalance.md +3 -3
- package/docs/Refund.md +2 -1
- package/docs/ReviewStatusType.md +24 -0
- package/docs/SettleRequestStatus.md +2 -0
- package/docs/Settlement.md +6 -3
- package/docs/SettlementDetail.md +3 -1
- package/docs/SettlementInfo.md +6 -6
- package/docs/SolContractCallAddressLookupTableAccount.md +10 -0
- package/docs/SolContractCallDestination.md +1 -0
- package/docs/StellarContractCallContractParam.md +11 -0
- package/docs/StellarContractCallContractType.md +10 -0
- package/docs/StellarContractCallDestination.md +10 -0
- package/docs/StellarContractCallTrustLineOperationType.md +10 -0
- package/docs/StellarContractCallTrustLineParam.md +11 -0
- package/docs/SubmitKytResponse.md +10 -0
- package/docs/SubmitKytScreeningsDecisionsBody.md +10 -0
- package/docs/SubmitKytScreeningsReviewBody.md +10 -0
- package/docs/SupportedToken.md +1 -0
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/SwapActivity.md +9 -9
- package/docs/SwapActivityDetail.md +10 -9
- package/docs/SwapActivitySigners.md +1 -1
- package/docs/SwapActivityTimeline.md +3 -3
- package/docs/SwapEstimateFee.md +12 -0
- package/docs/SwapQuote.md +10 -11
- package/docs/SwapReceivingTransaction.md +11 -0
- package/docs/SwapToken.md +6 -6
- package/docs/SwapsApi.md +356 -0
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionCoboCategory.md +2 -0
- package/docs/TransactionDestination.md +2 -0
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionFuelingInfo.md +1 -0
- package/docs/TransactionSolContractAddressLookupTableAccount.md +10 -0
- package/docs/TransactionSolContractDestination.md +1 -0
- package/docs/TransactionStellarContractParam.md +11 -0
- package/docs/TransactionStellarContractType.md +10 -0
- package/docs/TransactionStellarDestination.md +10 -0
- package/docs/TransactionStellarTrustLineOperationType.md +10 -0
- package/docs/TransactionStellarTrustLineParam.md +11 -0
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/TransactionsApi.md +2 -2
- package/docs/UpdateBankAccountByIdRequest.md +9 -0
- package/docs/UpdateTopUpAddress.md +1 -1
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WalletSetup.md +14 -0
- package/docs/WebhookEventData.md +12 -3
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +4 -0
- package/package.json +1 -1
- package/docs/BTCEIP191MessageSignDestination.md +0 -10
- package/docs/RawMessageSignDestination.md +0 -10
|
@@ -10,11 +10,16 @@ var _AddressesEventData = _interopRequireDefault(require("./AddressesEventData")
|
|
|
10
10
|
var _AddressesEventDataAllOfAddresses = _interopRequireDefault(require("./AddressesEventDataAllOfAddresses"));
|
|
11
11
|
var _Balance = _interopRequireDefault(require("./Balance"));
|
|
12
12
|
var _BalanceUpdateInfoEventData = _interopRequireDefault(require("./BalanceUpdateInfoEventData"));
|
|
13
|
+
var _BankAccount = _interopRequireDefault(require("./BankAccount"));
|
|
13
14
|
var _ChainInfo = _interopRequireDefault(require("./ChainInfo"));
|
|
14
15
|
var _ChainsEventData = _interopRequireDefault(require("./ChainsEventData"));
|
|
16
|
+
var _CommissionFee = _interopRequireDefault(require("./CommissionFee"));
|
|
15
17
|
var _ComplianceDispositionUpdateEventData = _interopRequireDefault(require("./ComplianceDispositionUpdateEventData"));
|
|
18
|
+
var _ComplianceKytScreeningsUpdateEventData = _interopRequireDefault(require("./ComplianceKytScreeningsUpdateEventData"));
|
|
16
19
|
var _DispositionStatus = _interopRequireDefault(require("./DispositionStatus"));
|
|
17
20
|
var _DispositionType = _interopRequireDefault(require("./DispositionType"));
|
|
21
|
+
var _FundsStatusType = _interopRequireDefault(require("./FundsStatusType"));
|
|
22
|
+
var _KytScreeningsTransactionType = _interopRequireDefault(require("./KytScreeningsTransactionType"));
|
|
18
23
|
var _MPCVaultEventData = _interopRequireDefault(require("./MPCVaultEventData"));
|
|
19
24
|
var _PaymentAddressUpdateEventData = _interopRequireDefault(require("./PaymentAddressUpdateEventData"));
|
|
20
25
|
var _PaymentOrderEventData = _interopRequireDefault(require("./PaymentOrderEventData"));
|
|
@@ -24,6 +29,7 @@ var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction")
|
|
|
24
29
|
var _PaymentTransactionEventData = _interopRequireDefault(require("./PaymentTransactionEventData"));
|
|
25
30
|
var _PayoutChannel = _interopRequireDefault(require("./PayoutChannel"));
|
|
26
31
|
var _RefundType = _interopRequireDefault(require("./RefundType"));
|
|
32
|
+
var _ReviewStatusType = _interopRequireDefault(require("./ReviewStatusType"));
|
|
27
33
|
var _RootPubkey = _interopRequireDefault(require("./RootPubkey"));
|
|
28
34
|
var _SettleStatus = _interopRequireDefault(require("./SettleStatus"));
|
|
29
35
|
var _SettlementDetail = _interopRequireDefault(require("./SettlementDetail"));
|
|
@@ -78,7 +84,7 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
78
84
|
/**
|
|
79
85
|
* Constructs a new <code>WebhookEventData</code>.
|
|
80
86
|
* @alias module:model/WebhookEventData
|
|
81
|
-
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
|
|
87
|
+
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/ComplianceKytScreeningsUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
|
|
82
88
|
*/
|
|
83
89
|
function WebhookEventData() {
|
|
84
90
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
@@ -115,6 +121,10 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
115
121
|
this.actualInstance = _ComplianceDispositionUpdateEventData["default"].constructFromObject(instance);
|
|
116
122
|
match++;
|
|
117
123
|
break;
|
|
124
|
+
case "ComplianceKytScreenings":
|
|
125
|
+
this.actualInstance = _ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance);
|
|
126
|
+
match++;
|
|
127
|
+
break;
|
|
118
128
|
case "MPCVault":
|
|
119
129
|
this.actualInstance = _MPCVaultEventData["default"].constructFromObject(instance);
|
|
120
130
|
match++;
|
|
@@ -537,13 +547,36 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
537
547
|
// json data failed to deserialize into ComplianceDispositionUpdateEventData
|
|
538
548
|
errorMessages.push("Failed to construct ComplianceDispositionUpdateEventData: " + err);
|
|
539
549
|
}
|
|
550
|
+
try {
|
|
551
|
+
if (instance instanceof _ComplianceKytScreeningsUpdateEventData["default"]) {
|
|
552
|
+
this.actualInstance = instance;
|
|
553
|
+
} else if (!!_ComplianceKytScreeningsUpdateEventData["default"].validateJSON && _ComplianceKytScreeningsUpdateEventData["default"].validateJSON(instance)) {
|
|
554
|
+
// plain JS object
|
|
555
|
+
// create ComplianceKytScreeningsUpdateEventData from JS object
|
|
556
|
+
this.actualInstance = _ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance);
|
|
557
|
+
} else {
|
|
558
|
+
if (_ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance)) {
|
|
559
|
+
if (!!_ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance).toJSON) {
|
|
560
|
+
if (_ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance).toJSON()) {
|
|
561
|
+
this.actualInstance = _ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance);
|
|
562
|
+
}
|
|
563
|
+
} else {
|
|
564
|
+
this.actualInstance = _ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
match++;
|
|
569
|
+
} catch (err) {
|
|
570
|
+
// json data failed to deserialize into ComplianceKytScreeningsUpdateEventData
|
|
571
|
+
errorMessages.push("Failed to construct ComplianceKytScreeningsUpdateEventData: " + err);
|
|
572
|
+
}
|
|
540
573
|
|
|
541
574
|
// if (match > 1) {
|
|
542
|
-
// throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
|
|
575
|
+
// throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKytScreeningsUpdateEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
|
|
543
576
|
// } else
|
|
544
577
|
if (match === 0) {
|
|
545
578
|
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
546
|
-
// throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
|
|
579
|
+
// throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKytScreeningsUpdateEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
|
|
547
580
|
// errorMessages.join(", "));
|
|
548
581
|
return;
|
|
549
582
|
} else {// only 1 match
|
|
@@ -562,16 +595,16 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
562
595
|
key: "getActualInstance",
|
|
563
596
|
value:
|
|
564
597
|
/**
|
|
565
|
-
* Gets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
566
|
-
* @return {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
|
|
598
|
+
* Gets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>ComplianceKytScreeningsUpdateEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
599
|
+
* @return {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/ComplianceKytScreeningsUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
|
|
567
600
|
*/
|
|
568
601
|
function getActualInstance() {
|
|
569
602
|
return this.actualInstance;
|
|
570
603
|
}
|
|
571
604
|
|
|
572
605
|
/**
|
|
573
|
-
* Sets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
574
|
-
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
|
|
606
|
+
* Sets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>ComplianceKytScreeningsUpdateEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
607
|
+
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/ComplianceKytScreeningsUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
|
|
575
608
|
*/
|
|
576
609
|
}, {
|
|
577
610
|
key: "setActualInstance",
|
|
@@ -586,7 +619,7 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
586
619
|
}]);
|
|
587
620
|
}();
|
|
588
621
|
/**
|
|
589
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
622
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
590
623
|
* @member {module:model/WebhookEventData.DataTypeEnum} data_type
|
|
591
624
|
*/
|
|
592
625
|
_WebhookEventData = WebhookEventData;
|
|
@@ -769,7 +802,7 @@ WebhookEventData.prototype['fueling_info'] = undefined;
|
|
|
769
802
|
WebhookEventData.prototype['created_timestamp'] = undefined;
|
|
770
803
|
|
|
771
804
|
/**
|
|
772
|
-
* The time when the
|
|
805
|
+
* The time when the KYT screening information was updated, in Unix timestamp format, measured in milliseconds.
|
|
773
806
|
* @member {Number} updated_timestamp
|
|
774
807
|
*/
|
|
775
808
|
WebhookEventData.prototype['updated_timestamp'] = undefined;
|
|
@@ -922,7 +955,7 @@ WebhookEventData.prototype['payable_amount'] = undefined;
|
|
|
922
955
|
WebhookEventData.prototype['receive_address'] = undefined;
|
|
923
956
|
|
|
924
957
|
/**
|
|
925
|
-
* The fiat currency
|
|
958
|
+
* The fiat currency for the off-ramp.
|
|
926
959
|
* @member {String} currency
|
|
927
960
|
*/
|
|
928
961
|
WebhookEventData.prototype['currency'] = undefined;
|
|
@@ -980,6 +1013,12 @@ WebhookEventData.prototype['transactions'] = undefined;
|
|
|
980
1013
|
*/
|
|
981
1014
|
WebhookEventData.prototype['settlement_status'] = undefined;
|
|
982
1015
|
|
|
1016
|
+
/**
|
|
1017
|
+
* Allowed amount deviation.
|
|
1018
|
+
* @member {String} amount_tolerance
|
|
1019
|
+
*/
|
|
1020
|
+
WebhookEventData.prototype['amount_tolerance'] = undefined;
|
|
1021
|
+
|
|
983
1022
|
/**
|
|
984
1023
|
* The refund order ID.
|
|
985
1024
|
* @member {String} refund_id
|
|
@@ -1021,6 +1060,11 @@ WebhookEventData.prototype['merchant_fee_amount'] = undefined;
|
|
|
1021
1060
|
*/
|
|
1022
1061
|
WebhookEventData.prototype['merchant_fee_token_id'] = undefined;
|
|
1023
1062
|
|
|
1063
|
+
/**
|
|
1064
|
+
* @member {module:model/CommissionFee} commission_fee
|
|
1065
|
+
*/
|
|
1066
|
+
WebhookEventData.prototype['commission_fee'] = undefined;
|
|
1067
|
+
|
|
1024
1068
|
/**
|
|
1025
1069
|
* The settlement request ID generated by Cobo.
|
|
1026
1070
|
* @member {String} settlement_request_id
|
|
@@ -1047,6 +1091,17 @@ WebhookEventData.prototype['payout_channel'] = undefined;
|
|
|
1047
1091
|
*/
|
|
1048
1092
|
WebhookEventData.prototype['settlement_type'] = undefined;
|
|
1049
1093
|
|
|
1094
|
+
/**
|
|
1095
|
+
* The estimated amount of the fiat currency to receive after off-ramping. This amount is subject to change due to bank transfer fees.
|
|
1096
|
+
* @member {String} received_amount_fiat
|
|
1097
|
+
*/
|
|
1098
|
+
WebhookEventData.prototype['received_amount_fiat'] = undefined;
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* @member {module:model/BankAccount} bank_account
|
|
1102
|
+
*/
|
|
1103
|
+
WebhookEventData.prototype['bank_account'] = undefined;
|
|
1104
|
+
|
|
1050
1105
|
/**
|
|
1051
1106
|
* A unique identifier assigned by Cobo to track and identify individual payers.
|
|
1052
1107
|
* @member {String} payer_id
|
|
@@ -1098,5 +1153,20 @@ WebhookEventData.prototype['destination_address'] = undefined;
|
|
|
1098
1153
|
* @member {String} disposition_amount
|
|
1099
1154
|
*/
|
|
1100
1155
|
WebhookEventData.prototype['disposition_amount'] = undefined;
|
|
1101
|
-
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* @member {module:model/KytScreeningsTransactionType} transaction_type
|
|
1159
|
+
*/
|
|
1160
|
+
WebhookEventData.prototype['transaction_type'] = undefined;
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* @member {module:model/ReviewStatusType} review_status
|
|
1164
|
+
*/
|
|
1165
|
+
WebhookEventData.prototype['review_status'] = undefined;
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* @member {module:model/FundsStatusType} funds_status
|
|
1169
|
+
*/
|
|
1170
|
+
WebhookEventData.prototype['funds_status'] = undefined;
|
|
1171
|
+
WebhookEventData.OneOf = ["AddressesEventData", "BalanceUpdateInfoEventData", "ChainsEventData", "ComplianceDispositionUpdateEventData", "ComplianceKytScreeningsUpdateEventData", "MPCVaultEventData", "PaymentAddressUpdateEventData", "PaymentOrderEventData", "PaymentRefundEventData", "PaymentSettlementEvent", "PaymentTransactionEventData", "SuspendedTokenEventData", "TSSRequestWebhookEventData", "TokenListingEventData", "TokensEventData", "TransactionWebhookEventData", "WalletInfoEventData"];
|
|
1102
1172
|
var _default = exports["default"] = WebhookEventData;
|
|
@@ -33,7 +33,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
|
|
|
33
33
|
* Constructs a new <code>WebhookEventDataType</code>.
|
|
34
34
|
* The data type of the event.
|
|
35
35
|
* @alias module:model/WebhookEventDataType
|
|
36
|
-
* @param data_type {module:model/WebhookEventDataType.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. - `ComplianceDisposition`: The compliance disposition event data.
|
|
36
|
+
* @param data_type {module:model/WebhookEventDataType.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. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
37
37
|
*/
|
|
38
38
|
function WebhookEventDataType(data_type) {
|
|
39
39
|
_classCallCheck(this, WebhookEventDataType);
|
|
@@ -104,7 +104,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
|
|
|
104
104
|
WebhookEventDataType.RequiredProperties = ["data_type"];
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
107
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
108
108
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
109
109
|
*/
|
|
110
110
|
WebhookEventDataType.prototype['data_type'] = undefined;
|
|
@@ -195,6 +195,11 @@ WebhookEventDataType['DataTypeEnum'] = {
|
|
|
195
195
|
* @const
|
|
196
196
|
*/
|
|
197
197
|
"ComplianceDisposition": "ComplianceDisposition",
|
|
198
|
+
/**
|
|
199
|
+
* value: "ComplianceKytScreenings"
|
|
200
|
+
* @const
|
|
201
|
+
*/
|
|
202
|
+
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
198
203
|
/**
|
|
199
204
|
* value: "unknown_default_open_api"
|
|
200
205
|
* @const
|
|
@@ -175,6 +175,11 @@ var WebhookEventType = exports["default"] = /*#__PURE__*/function () {
|
|
|
175
175
|
* @const
|
|
176
176
|
*/
|
|
177
177
|
_defineProperty(this, "payment.transaction.held", "payment.transaction.held");
|
|
178
|
+
/**
|
|
179
|
+
* value: "payment.transaction.failed"
|
|
180
|
+
* @const
|
|
181
|
+
*/
|
|
182
|
+
_defineProperty(this, "payment.transaction.failed", "payment.transaction.failed");
|
|
178
183
|
/**
|
|
179
184
|
* value: "payment.status.updated"
|
|
180
185
|
* @const
|
|
@@ -200,6 +205,11 @@ var WebhookEventType = exports["default"] = /*#__PURE__*/function () {
|
|
|
200
205
|
* @const
|
|
201
206
|
*/
|
|
202
207
|
_defineProperty(this, "compliance.disposition.status.updated", "compliance.disposition.status.updated");
|
|
208
|
+
/**
|
|
209
|
+
* value: "compliance.kyt.screenings.status.updated"
|
|
210
|
+
* @const
|
|
211
|
+
*/
|
|
212
|
+
_defineProperty(this, "compliance.kyt.screenings.status.updated", "compliance.kyt.screenings.status.updated");
|
|
203
213
|
/**
|
|
204
214
|
* value: "unknown_default_open_api"
|
|
205
215
|
* @const
|
package/docs/AddressBooksApi.md
CHANGED
|
@@ -18,7 +18,7 @@ Method | HTTP request | Description
|
|
|
18
18
|
|
|
19
19
|
Create Address Book entries
|
|
20
20
|
|
|
21
|
-
This operation adds new entries (records) to your Address Book.
|
|
21
|
+
This operation adds new entries (records) to your Address Book. <Note>This operation is available upon request. Please contact our [customer support](mailto:help@cobo.com) to enable it.</Note>
|
|
22
22
|
|
|
23
23
|
### Example
|
|
24
24
|
|
|
@@ -70,7 +70,7 @@ Name | Type | Description | Notes
|
|
|
70
70
|
|
|
71
71
|
Delete Address Book entry
|
|
72
72
|
|
|
73
|
-
This operation deletes a specified Address Book entry (record).
|
|
73
|
+
This operation deletes a specified Address Book entry (record). <Note>This operation is available upon request. Please contact our [customer support](mailto:help@cobo.com) to enable it.</Note>
|
|
74
74
|
|
|
75
75
|
### Example
|
|
76
76
|
|
|
@@ -232,7 +232,7 @@ Name | Type | Description | Notes
|
|
|
232
232
|
|
|
233
233
|
Update Address Book entry
|
|
234
234
|
|
|
235
|
-
This operation updates the information of a specified Address Book entry (record).
|
|
235
|
+
This operation updates the information of a specified Address Book entry (record). <Note>This operation is available upon request. Please contact our [customer support](mailto:help@cobo.com) to enable it.</Note>
|
|
236
236
|
|
|
237
237
|
### Example
|
|
238
238
|
|
package/docs/AddressInfo.md
CHANGED
|
@@ -14,5 +14,6 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**root_pubkey** | **String** | The root public key of the address. This property applies to MPC Wallets only. | [optional]
|
|
15
15
|
**taproot_script_tree_hash** | **String** | The information about the new address. | [optional]
|
|
16
16
|
**taproot_internal_address** | **String** | The Taproot address before tweaking. | [optional]
|
|
17
|
+
**stellar_trusted_token_ids** | **[String]** | The list of token IDs for which this address has already established trustlines on the Stellar network. | [optional]
|
|
17
18
|
|
|
18
19
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. |
|
|
7
|
+
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. |
|
|
8
8
|
**addresses** | [**[AddressesEventDataAllOfAddresses]**](AddressesEventDataAllOfAddresses.md) | A list of addresses. | [optional]
|
|
9
9
|
|
|
10
10
|
|
|
@@ -44,6 +44,8 @@ Name | Type | Description | Notes
|
|
|
44
44
|
|
|
45
45
|
* `ComplianceDisposition` (value: `"ComplianceDisposition"`)
|
|
46
46
|
|
|
47
|
+
* `ComplianceKytScreenings` (value: `"ComplianceKytScreenings"`)
|
|
48
|
+
|
|
47
49
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
48
50
|
|
|
49
51
|
|
|
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**root_pubkey** | **String** | The root public key of the address. This property applies to MPC Wallets only. | [optional]
|
|
15
15
|
**taproot_script_tree_hash** | **String** | The information about the new address. | [optional]
|
|
16
16
|
**taproot_internal_address** | **String** | The Taproot address before tweaking. | [optional]
|
|
17
|
+
**stellar_trusted_token_ids** | **[String]** | The list of token IDs for which this address has already established trustlines on the Stellar network. | [optional]
|
|
17
18
|
**wallet_id** | **String** | The wallet ID. |
|
|
18
19
|
|
|
19
20
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. |
|
|
7
|
+
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. |
|
|
8
8
|
**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). |
|
|
9
9
|
**address** | **String** | The wallet address. |
|
|
10
10
|
**wallet_uuid** | **String** | The wallet ID. |
|
|
@@ -48,6 +48,8 @@ Name | Type | Description | Notes
|
|
|
48
48
|
|
|
49
49
|
* `ComplianceDisposition` (value: `"ComplianceDisposition"`)
|
|
50
50
|
|
|
51
|
+
* `ComplianceKytScreenings` (value: `"ComplianceKytScreenings"`)
|
|
52
|
+
|
|
51
53
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
52
54
|
|
|
53
55
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.BridgingFee
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**fee_amount** | **String** | The fee charged for bridging tokens to another blockchain during an off-ramp operation. Bridging fees apply when tokens are on a blockchain not directly supported by the off-ramp service. |
|
|
8
|
+
**received_token_id** | **String** | The ID of the destination token received after bridging. | [optional]
|
|
9
|
+
**received_amount** | **String** | The final amount of destination tokens received after bridging. | [optional]
|
|
10
|
+
|
|
11
|
+
|
package/docs/ChainsEventData.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. |
|
|
7
|
+
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. |
|
|
8
8
|
**chains** | [**[ChainInfo]**](ChainInfo.md) | The enabled chains. |
|
|
9
9
|
**wallet_type** | [**WalletType**](WalletType.md) | | [optional]
|
|
10
10
|
**wallet_subtypes** | [**[WalletSubtype]**](WalletSubtype.md) | | [optional]
|
|
@@ -46,6 +46,8 @@ Name | Type | Description | Notes
|
|
|
46
46
|
|
|
47
47
|
* `ComplianceDisposition` (value: `"ComplianceDisposition"`)
|
|
48
48
|
|
|
49
|
+
* `ComplianceKytScreenings` (value: `"ComplianceKytScreenings"`)
|
|
50
|
+
|
|
49
51
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
50
52
|
|
|
51
53
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CoboWaas2.CommissionFee
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**fee_amount** | **String** | The amount of the commission fee charged by Cobo for pay-ins and payouts, in USD. |
|
|
8
|
+
|
|
9
|
+
|
package/docs/ComplianceApi.md
CHANGED
|
@@ -5,8 +5,11 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
7
|
[**getDispositionStatus**](ComplianceApi.md#getDispositionStatus) | **GET** /compliance/funds/disposition | Get disposition status
|
|
8
|
+
[**getKytScreeningStatus**](ComplianceApi.md#getKytScreeningStatus) | **GET** /compliance/kyt/screenings/status | Get KYT screening status
|
|
8
9
|
[**isolateFunds**](ComplianceApi.md#isolateFunds) | **POST** /compliance/funds/disposition/isolate | Isolate funds
|
|
9
10
|
[**refundFunds**](ComplianceApi.md#refundFunds) | **POST** /compliance/funds/disposition/refund | Refund funds
|
|
11
|
+
[**submitKytManualReview**](ComplianceApi.md#submitKytManualReview) | **POST** /compliance/kyt/screenings/manual_review | Submit KYT manual review result
|
|
12
|
+
[**submitKytScreeningDecisions**](ComplianceApi.md#submitKytScreeningDecisions) | **POST** /compliance/kyt/screenings/decisions | Submit KYT screening decision
|
|
10
13
|
[**unfreezeFunds**](ComplianceApi.md#unfreezeFunds) | **POST** /compliance/funds/disposition/unfreeze | Unfreeze frozen funds
|
|
11
14
|
|
|
12
15
|
|
|
@@ -45,7 +48,7 @@ apiInstance.getDispositionStatus(transaction_id).then((data) => {
|
|
|
45
48
|
|
|
46
49
|
Name | Type | Description | Notes
|
|
47
50
|
------------- | ------------- | ------------- | -------------
|
|
48
|
-
**transaction_id** | **String**| The UUID of the transaction to
|
|
51
|
+
**transaction_id** | **String**| The unique identifier (UUID) of the transaction to retrieve KYT screening status information for. |
|
|
49
52
|
|
|
50
53
|
### Return type
|
|
51
54
|
|
|
@@ -61,6 +64,56 @@ Name | Type | Description | Notes
|
|
|
61
64
|
- **Accept**: application/json
|
|
62
65
|
|
|
63
66
|
|
|
67
|
+
## getKytScreeningStatus
|
|
68
|
+
|
|
69
|
+
> KytScreeningsTransaction getKytScreeningStatus(transaction_id)
|
|
70
|
+
|
|
71
|
+
Get KYT screening status
|
|
72
|
+
|
|
73
|
+
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>
|
|
74
|
+
|
|
75
|
+
### Example
|
|
76
|
+
|
|
77
|
+
```javascript
|
|
78
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
79
|
+
// Initialize the API client
|
|
80
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
81
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
82
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
83
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
84
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
85
|
+
// Call the API
|
|
86
|
+
const apiInstance = new CoboWaas2.ComplianceApi();
|
|
87
|
+
const transaction_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
|
|
88
|
+
apiInstance.getKytScreeningStatus(transaction_id).then((data) => {
|
|
89
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
90
|
+
}, (error) => {
|
|
91
|
+
console.error(error);
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Parameters
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
Name | Type | Description | Notes
|
|
100
|
+
------------- | ------------- | ------------- | -------------
|
|
101
|
+
**transaction_id** | **String**| The unique identifier (UUID) of the transaction to retrieve KYT screening status information for. |
|
|
102
|
+
|
|
103
|
+
### Return type
|
|
104
|
+
|
|
105
|
+
[**KytScreeningsTransaction**](KytScreeningsTransaction.md)
|
|
106
|
+
|
|
107
|
+
### Authorization
|
|
108
|
+
|
|
109
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
110
|
+
|
|
111
|
+
### HTTP request headers
|
|
112
|
+
|
|
113
|
+
- **Content-Type**: Not defined
|
|
114
|
+
- **Accept**: application/json
|
|
115
|
+
|
|
116
|
+
|
|
64
117
|
## isolateFunds
|
|
65
118
|
|
|
66
119
|
> DispositionResponse isolateFunds(opts)
|
|
@@ -165,6 +218,110 @@ Name | Type | Description | Notes
|
|
|
165
218
|
- **Accept**: application/json
|
|
166
219
|
|
|
167
220
|
|
|
221
|
+
## submitKytManualReview
|
|
222
|
+
|
|
223
|
+
> SubmitKytResponse submitKytManualReview(opts)
|
|
224
|
+
|
|
225
|
+
Submit KYT manual review result
|
|
226
|
+
|
|
227
|
+
This operation submits a manual review result for a KYT (Know Your Transaction) screening case that requires human analysis. Use this endpoint when transactions flagged for manual review have been analyzed by compliance officers and require submission of review outcomes with detailed comments and justifications. This endpoint is specifically designed for submitting comprehensive manual review findings rather than automated screening decisions. <Note>Submitting a manual review result will update the KYT screening status and initiate appropriate compliance workflow actions based on the review outcome.</Note>
|
|
228
|
+
|
|
229
|
+
### Example
|
|
230
|
+
|
|
231
|
+
```javascript
|
|
232
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
233
|
+
// Initialize the API client
|
|
234
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
235
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
236
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
237
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
238
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
239
|
+
// Call the API
|
|
240
|
+
const apiInstance = new CoboWaas2.ComplianceApi();
|
|
241
|
+
const opts = {
|
|
242
|
+
'SubmitKytScreeningsReviewBody': new CoboWaas2.SubmitKytScreeningsReviewBody()
|
|
243
|
+
};
|
|
244
|
+
apiInstance.submitKytManualReview(opts).then((data) => {
|
|
245
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
246
|
+
}, (error) => {
|
|
247
|
+
console.error(error);
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
### Parameters
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
Name | Type | Description | Notes
|
|
256
|
+
------------- | ------------- | ------------- | -------------
|
|
257
|
+
**SubmitKytScreeningsReviewBody** | [**SubmitKytScreeningsReviewBody**](SubmitKytScreeningsReviewBody.md)| The request body to submit a manual review result for KYT screening case that requires human analysis. | [optional]
|
|
258
|
+
|
|
259
|
+
### Return type
|
|
260
|
+
|
|
261
|
+
[**SubmitKytResponse**](SubmitKytResponse.md)
|
|
262
|
+
|
|
263
|
+
### Authorization
|
|
264
|
+
|
|
265
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
266
|
+
|
|
267
|
+
### HTTP request headers
|
|
268
|
+
|
|
269
|
+
- **Content-Type**: application/json
|
|
270
|
+
- **Accept**: application/json
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
## submitKytScreeningDecisions
|
|
274
|
+
|
|
275
|
+
> SubmitKytResponse submitKytScreeningDecisions(opts)
|
|
276
|
+
|
|
277
|
+
Submit KYT screening decision
|
|
278
|
+
|
|
279
|
+
This operation submits a KYT (Know Your Transaction) screening decision for a specific transaction based on an external compliance review. Use this endpoint to provide a screening decision (Approval, ApprovalWithAlert, Rejection, or ManualReview) after completing the external KYT screening process. The submitted decision will be recorded for compliance audit purposes and regulatory reporting requirements. <Note>Submitting a screening decision will update the transaction's KYT status and may automatically trigger downstream compliance workflows or notifications depending on the decision type.</Note>
|
|
280
|
+
|
|
281
|
+
### Example
|
|
282
|
+
|
|
283
|
+
```javascript
|
|
284
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
285
|
+
// Initialize the API client
|
|
286
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
287
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
288
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
289
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
290
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
291
|
+
// Call the API
|
|
292
|
+
const apiInstance = new CoboWaas2.ComplianceApi();
|
|
293
|
+
const opts = {
|
|
294
|
+
'SubmitKytScreeningsDecisionsBody': new CoboWaas2.SubmitKytScreeningsDecisionsBody()
|
|
295
|
+
};
|
|
296
|
+
apiInstance.submitKytScreeningDecisions(opts).then((data) => {
|
|
297
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
298
|
+
}, (error) => {
|
|
299
|
+
console.error(error);
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
### Parameters
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
Name | Type | Description | Notes
|
|
308
|
+
------------- | ------------- | ------------- | -------------
|
|
309
|
+
**SubmitKytScreeningsDecisionsBody** | [**SubmitKytScreeningsDecisionsBody**](SubmitKytScreeningsDecisionsBody.md)| The request body to submit a KYT screening decision for a specific transaction based on external compliance review. | [optional]
|
|
310
|
+
|
|
311
|
+
### Return type
|
|
312
|
+
|
|
313
|
+
[**SubmitKytResponse**](SubmitKytResponse.md)
|
|
314
|
+
|
|
315
|
+
### Authorization
|
|
316
|
+
|
|
317
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
318
|
+
|
|
319
|
+
### HTTP request headers
|
|
320
|
+
|
|
321
|
+
- **Content-Type**: application/json
|
|
322
|
+
- **Accept**: application/json
|
|
323
|
+
|
|
324
|
+
|
|
168
325
|
## unfreezeFunds
|
|
169
326
|
|
|
170
327
|
> DispositionResponse unfreezeFunds(opts)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. |
|
|
7
|
+
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. |
|
|
8
8
|
**transaction_id** | **String** | The transaction ID. |
|
|
9
9
|
**disposition_type** | [**DispositionType**](DispositionType.md) | |
|
|
10
10
|
**disposition_status** | [**DispositionStatus**](DispositionStatus.md) | |
|
|
@@ -49,6 +49,8 @@ Name | Type | Description | Notes
|
|
|
49
49
|
|
|
50
50
|
* `ComplianceDisposition` (value: `"ComplianceDisposition"`)
|
|
51
51
|
|
|
52
|
+
* `ComplianceKytScreenings` (value: `"ComplianceKytScreenings"`)
|
|
53
|
+
|
|
52
54
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
53
55
|
|
|
54
56
|
|