@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
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* Cobo Wallet as a Service 2.0
|
|
19
|
+
*
|
|
20
|
+
* Contact: help@cobo.com
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* The SubmitKytResponse model module.
|
|
29
|
+
* @module model/SubmitKytResponse
|
|
30
|
+
*/
|
|
31
|
+
var SubmitKytResponse = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>SubmitKytResponse</code>.
|
|
34
|
+
* The response for a request to submit a KYT review result.
|
|
35
|
+
* @alias module:model/SubmitKytResponse
|
|
36
|
+
* @param transaction_id {String} The UUID of the transaction being processed for KYT screening.
|
|
37
|
+
* @param submitted {Boolean} Indicates whether the KYT review result was successfully submitted.
|
|
38
|
+
*/
|
|
39
|
+
function SubmitKytResponse(transaction_id, submitted) {
|
|
40
|
+
_classCallCheck(this, SubmitKytResponse);
|
|
41
|
+
SubmitKytResponse.initialize(this, transaction_id, submitted);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(SubmitKytResponse, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj, transaction_id, submitted) {
|
|
52
|
+
obj['transaction_id'] = transaction_id;
|
|
53
|
+
obj['submitted'] = submitted;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>SubmitKytResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/SubmitKytResponse} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/SubmitKytResponse} The populated <code>SubmitKytResponse</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new SubmitKytResponse();
|
|
68
|
+
if (data.hasOwnProperty('transaction_id')) {
|
|
69
|
+
obj['transaction_id'] = _ApiClient["default"].convertToType(data['transaction_id'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('submitted')) {
|
|
72
|
+
obj['submitted'] = _ApiClient["default"].convertToType(data['submitted'], 'Boolean');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Validates the JSON data with respect to <code>SubmitKytResponse</code>.
|
|
80
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SubmitKytResponse</code>.
|
|
82
|
+
*/
|
|
83
|
+
}, {
|
|
84
|
+
key: "validateJSON",
|
|
85
|
+
value: function validateJSON(data) {
|
|
86
|
+
// check to make sure all required properties are present in the JSON string
|
|
87
|
+
var _iterator = _createForOfIteratorHelper(SubmitKytResponse.RequiredProperties),
|
|
88
|
+
_step;
|
|
89
|
+
try {
|
|
90
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
91
|
+
var property = _step.value;
|
|
92
|
+
if (!data.hasOwnProperty(property)) {
|
|
93
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
// ensure the json data is a string
|
|
97
|
+
} catch (err) {
|
|
98
|
+
_iterator.e(err);
|
|
99
|
+
} finally {
|
|
100
|
+
_iterator.f();
|
|
101
|
+
}
|
|
102
|
+
if (data['transaction_id'] && !(typeof data['transaction_id'] === 'string' || data['transaction_id'] instanceof String)) {
|
|
103
|
+
throw new Error("Expected the field `transaction_id` to be a primitive type in the JSON string but got " + data['transaction_id']);
|
|
104
|
+
}
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
}]);
|
|
108
|
+
}();
|
|
109
|
+
SubmitKytResponse.RequiredProperties = ["transaction_id", "submitted"];
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The UUID of the transaction being processed for KYT screening.
|
|
113
|
+
* @member {String} transaction_id
|
|
114
|
+
*/
|
|
115
|
+
SubmitKytResponse.prototype['transaction_id'] = undefined;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Indicates whether the KYT review result was successfully submitted.
|
|
119
|
+
* @member {Boolean} submitted
|
|
120
|
+
*/
|
|
121
|
+
SubmitKytResponse.prototype['submitted'] = undefined;
|
|
122
|
+
var _default = exports["default"] = SubmitKytResponse;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _KytScreeningsDecisionsType = _interopRequireDefault(require("./KytScreeningsDecisionsType"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* Cobo Wallet as a Service 2.0
|
|
20
|
+
*
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The SubmitKytScreeningsDecisionsBody model module.
|
|
30
|
+
* @module model/SubmitKytScreeningsDecisionsBody
|
|
31
|
+
*/
|
|
32
|
+
var SubmitKytScreeningsDecisionsBody = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>SubmitKytScreeningsDecisionsBody</code>.
|
|
35
|
+
* The KYT screening decision submission containing the transaction ID and the screening decision based on an external compliance review.
|
|
36
|
+
* @alias module:model/SubmitKytScreeningsDecisionsBody
|
|
37
|
+
* @param transaction_id {String} The UUID of the transaction for KYT result submission. This identifies the specific transaction that the external KYT result applies to.
|
|
38
|
+
* @param result {module:model/KytScreeningsDecisionsType}
|
|
39
|
+
*/
|
|
40
|
+
function SubmitKytScreeningsDecisionsBody(transaction_id, result) {
|
|
41
|
+
_classCallCheck(this, SubmitKytScreeningsDecisionsBody);
|
|
42
|
+
SubmitKytScreeningsDecisionsBody.initialize(this, transaction_id, result);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(SubmitKytScreeningsDecisionsBody, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, transaction_id, result) {
|
|
53
|
+
obj['transaction_id'] = transaction_id;
|
|
54
|
+
obj['result'] = result;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Constructs a <code>SubmitKytScreeningsDecisionsBody</code> from a plain JavaScript object, optionally creating a new instance.
|
|
59
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
60
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
61
|
+
* @param {module:model/SubmitKytScreeningsDecisionsBody} obj Optional instance to populate.
|
|
62
|
+
* @return {module:model/SubmitKytScreeningsDecisionsBody} The populated <code>SubmitKytScreeningsDecisionsBody</code> instance.
|
|
63
|
+
*/
|
|
64
|
+
}, {
|
|
65
|
+
key: "constructFromObject",
|
|
66
|
+
value: function constructFromObject(data, obj) {
|
|
67
|
+
if (data) {
|
|
68
|
+
obj = obj || new SubmitKytScreeningsDecisionsBody();
|
|
69
|
+
if (data.hasOwnProperty('transaction_id')) {
|
|
70
|
+
obj['transaction_id'] = _ApiClient["default"].convertToType(data['transaction_id'], 'String');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('result')) {
|
|
73
|
+
obj['result'] = _KytScreeningsDecisionsType["default"].constructFromObject(data['result']);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return obj;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Validates the JSON data with respect to <code>SubmitKytScreeningsDecisionsBody</code>.
|
|
81
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
82
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SubmitKytScreeningsDecisionsBody</code>.
|
|
83
|
+
*/
|
|
84
|
+
}, {
|
|
85
|
+
key: "validateJSON",
|
|
86
|
+
value: function validateJSON(data) {
|
|
87
|
+
// check to make sure all required properties are present in the JSON string
|
|
88
|
+
var _iterator = _createForOfIteratorHelper(SubmitKytScreeningsDecisionsBody.RequiredProperties),
|
|
89
|
+
_step;
|
|
90
|
+
try {
|
|
91
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
92
|
+
var property = _step.value;
|
|
93
|
+
if (!data.hasOwnProperty(property)) {
|
|
94
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
// ensure the json data is a string
|
|
98
|
+
} catch (err) {
|
|
99
|
+
_iterator.e(err);
|
|
100
|
+
} finally {
|
|
101
|
+
_iterator.f();
|
|
102
|
+
}
|
|
103
|
+
if (data['transaction_id'] && !(typeof data['transaction_id'] === 'string' || data['transaction_id'] instanceof String)) {
|
|
104
|
+
throw new Error("Expected the field `transaction_id` to be a primitive type in the JSON string but got " + data['transaction_id']);
|
|
105
|
+
}
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
}]);
|
|
109
|
+
}();
|
|
110
|
+
SubmitKytScreeningsDecisionsBody.RequiredProperties = ["transaction_id", "result"];
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The UUID of the transaction for KYT result submission. This identifies the specific transaction that the external KYT result applies to.
|
|
114
|
+
* @member {String} transaction_id
|
|
115
|
+
*/
|
|
116
|
+
SubmitKytScreeningsDecisionsBody.prototype['transaction_id'] = undefined;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @member {module:model/KytScreeningsDecisionsType} result
|
|
120
|
+
*/
|
|
121
|
+
SubmitKytScreeningsDecisionsBody.prototype['result'] = undefined;
|
|
122
|
+
var _default = exports["default"] = SubmitKytScreeningsDecisionsBody;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
8
|
+
var _KytScreeningsReviewType = _interopRequireDefault(require("./KytScreeningsReviewType"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
10
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
11
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -26,20 +26,20 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
|
-
* The
|
|
30
|
-
* @module model/
|
|
29
|
+
* The SubmitKytScreeningsReviewBody model module.
|
|
30
|
+
* @module model/SubmitKytScreeningsReviewBody
|
|
31
31
|
*/
|
|
32
|
-
var
|
|
32
|
+
var SubmitKytScreeningsReviewBody = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
34
|
-
* Constructs a new <code>
|
|
35
|
-
* The information about
|
|
36
|
-
* @alias module:model/
|
|
37
|
-
* @param
|
|
38
|
-
* @param
|
|
34
|
+
* Constructs a new <code>SubmitKytScreeningsReviewBody</code>.
|
|
35
|
+
* The information about submitting a manual KYT review result for KYT screening cases that require human analysis.
|
|
36
|
+
* @alias module:model/SubmitKytScreeningsReviewBody
|
|
37
|
+
* @param transaction_id {String} The UUID of the transaction that requires a manual KYT review.
|
|
38
|
+
* @param result {module:model/KytScreeningsReviewType}
|
|
39
39
|
*/
|
|
40
|
-
function
|
|
41
|
-
_classCallCheck(this,
|
|
42
|
-
|
|
40
|
+
function SubmitKytScreeningsReviewBody(transaction_id, result) {
|
|
41
|
+
_classCallCheck(this, SubmitKytScreeningsReviewBody);
|
|
42
|
+
SubmitKytScreeningsReviewBody.initialize(this, transaction_id, result);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -47,45 +47,45 @@ var RawMessageSignDestination = /*#__PURE__*/function () {
|
|
|
47
47
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
48
|
* Only for internal use.
|
|
49
49
|
*/
|
|
50
|
-
return _createClass(
|
|
50
|
+
return _createClass(SubmitKytScreeningsReviewBody, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
|
-
value: function initialize(obj,
|
|
53
|
-
obj['
|
|
54
|
-
obj['
|
|
52
|
+
value: function initialize(obj, transaction_id, result) {
|
|
53
|
+
obj['transaction_id'] = transaction_id;
|
|
54
|
+
obj['result'] = result;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
* Constructs a <code>
|
|
58
|
+
* Constructs a <code>SubmitKytScreeningsReviewBody</code> from a plain JavaScript object, optionally creating a new instance.
|
|
59
59
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
60
60
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
61
|
-
* @param {module:model/
|
|
62
|
-
* @return {module:model/
|
|
61
|
+
* @param {module:model/SubmitKytScreeningsReviewBody} obj Optional instance to populate.
|
|
62
|
+
* @return {module:model/SubmitKytScreeningsReviewBody} The populated <code>SubmitKytScreeningsReviewBody</code> instance.
|
|
63
63
|
*/
|
|
64
64
|
}, {
|
|
65
65
|
key: "constructFromObject",
|
|
66
66
|
value: function constructFromObject(data, obj) {
|
|
67
67
|
if (data) {
|
|
68
|
-
obj = obj || new
|
|
69
|
-
if (data.hasOwnProperty('
|
|
70
|
-
obj['
|
|
68
|
+
obj = obj || new SubmitKytScreeningsReviewBody();
|
|
69
|
+
if (data.hasOwnProperty('transaction_id')) {
|
|
70
|
+
obj['transaction_id'] = _ApiClient["default"].convertToType(data['transaction_id'], 'String');
|
|
71
71
|
}
|
|
72
|
-
if (data.hasOwnProperty('
|
|
73
|
-
obj['
|
|
72
|
+
if (data.hasOwnProperty('result')) {
|
|
73
|
+
obj['result'] = _KytScreeningsReviewType["default"].constructFromObject(data['result']);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
return obj;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* Validates the JSON data with respect to <code>
|
|
80
|
+
* Validates the JSON data with respect to <code>SubmitKytScreeningsReviewBody</code>.
|
|
81
81
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
82
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
82
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SubmitKytScreeningsReviewBody</code>.
|
|
83
83
|
*/
|
|
84
84
|
}, {
|
|
85
85
|
key: "validateJSON",
|
|
86
86
|
value: function validateJSON(data) {
|
|
87
87
|
// check to make sure all required properties are present in the JSON string
|
|
88
|
-
var _iterator = _createForOfIteratorHelper(
|
|
88
|
+
var _iterator = _createForOfIteratorHelper(SubmitKytScreeningsReviewBody.RequiredProperties),
|
|
89
89
|
_step;
|
|
90
90
|
try {
|
|
91
91
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -100,23 +100,23 @@ var RawMessageSignDestination = /*#__PURE__*/function () {
|
|
|
100
100
|
} finally {
|
|
101
101
|
_iterator.f();
|
|
102
102
|
}
|
|
103
|
-
if (data['
|
|
104
|
-
throw new Error("Expected the field `
|
|
103
|
+
if (data['transaction_id'] && !(typeof data['transaction_id'] === 'string' || data['transaction_id'] instanceof String)) {
|
|
104
|
+
throw new Error("Expected the field `transaction_id` to be a primitive type in the JSON string but got " + data['transaction_id']);
|
|
105
105
|
}
|
|
106
106
|
return true;
|
|
107
107
|
}
|
|
108
108
|
}]);
|
|
109
109
|
}();
|
|
110
|
-
|
|
110
|
+
SubmitKytScreeningsReviewBody.RequiredProperties = ["transaction_id", "result"];
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
113
|
+
* The UUID of the transaction that requires a manual KYT review.
|
|
114
|
+
* @member {String} transaction_id
|
|
114
115
|
*/
|
|
115
|
-
|
|
116
|
+
SubmitKytScreeningsReviewBody.prototype['transaction_id'] = undefined;
|
|
116
117
|
|
|
117
118
|
/**
|
|
118
|
-
*
|
|
119
|
-
* @member {String} msg_hash
|
|
119
|
+
* @member {module:model/KytScreeningsReviewType} result
|
|
120
120
|
*/
|
|
121
|
-
|
|
122
|
-
var _default = exports["default"] =
|
|
121
|
+
SubmitKytScreeningsReviewBody.prototype['result'] = undefined;
|
|
122
|
+
var _default = exports["default"] = SubmitKytScreeningsReviewBody;
|
|
@@ -101,6 +101,9 @@ var SupportedToken = /*#__PURE__*/function () {
|
|
|
101
101
|
if (data.hasOwnProperty('token_icon_url')) {
|
|
102
102
|
obj['token_icon_url'] = _ApiClient["default"].convertToType(data['token_icon_url'], 'String');
|
|
103
103
|
}
|
|
104
|
+
if (data.hasOwnProperty('can_off_ramp')) {
|
|
105
|
+
obj['can_off_ramp'] = _ApiClient["default"].convertToType(data['can_off_ramp'], 'Boolean');
|
|
106
|
+
}
|
|
104
107
|
}
|
|
105
108
|
return obj;
|
|
106
109
|
}
|
|
@@ -219,4 +222,10 @@ SupportedToken.prototype['chain_icon_url'] = undefined;
|
|
|
219
222
|
* @member {String} token_icon_url
|
|
220
223
|
*/
|
|
221
224
|
SupportedToken.prototype['token_icon_url'] = undefined;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Whether the token is supported by the off-ramp service.
|
|
228
|
+
* @member {Boolean} can_off_ramp
|
|
229
|
+
*/
|
|
230
|
+
SupportedToken.prototype['can_off_ramp'] = undefined;
|
|
222
231
|
var _default = exports["default"] = SupportedToken;
|
|
@@ -35,7 +35,7 @@ var SuspendedTokenEventData = /*#__PURE__*/function () {
|
|
|
35
35
|
* Constructs a new <code>SuspendedTokenEventData</code>.
|
|
36
36
|
* @alias module:model/SuspendedTokenEventData
|
|
37
37
|
* @implements module:model/WebhookEventDataType
|
|
38
|
-
* @param data_type {module:model/SuspendedTokenEventData.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.
|
|
38
|
+
* @param data_type {module:model/SuspendedTokenEventData.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.
|
|
39
39
|
* @param token_ids {String} A list of token IDs, separated by comma.
|
|
40
40
|
* @param operation_type {module:model/SuspendedTokenOperationType}
|
|
41
41
|
*/
|
|
@@ -122,7 +122,7 @@ var SuspendedTokenEventData = /*#__PURE__*/function () {
|
|
|
122
122
|
SuspendedTokenEventData.RequiredProperties = ["data_type", "token_ids", "operation_type"];
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* 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.
|
|
125
|
+
* 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.
|
|
126
126
|
* @member {module:model/SuspendedTokenEventData.DataTypeEnum} data_type
|
|
127
127
|
*/
|
|
128
128
|
SuspendedTokenEventData.prototype['data_type'] = undefined;
|
|
@@ -140,7 +140,7 @@ SuspendedTokenEventData.prototype['operation_type'] = undefined;
|
|
|
140
140
|
|
|
141
141
|
// Implement WebhookEventDataType interface:
|
|
142
142
|
/**
|
|
143
|
-
* 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.
|
|
143
|
+
* 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.
|
|
144
144
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
145
145
|
*/
|
|
146
146
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -231,6 +231,11 @@ SuspendedTokenEventData['DataTypeEnum'] = {
|
|
|
231
231
|
* @const
|
|
232
232
|
*/
|
|
233
233
|
"ComplianceDisposition": "ComplianceDisposition",
|
|
234
|
+
/**
|
|
235
|
+
* value: "ComplianceKytScreenings"
|
|
236
|
+
* @const
|
|
237
|
+
*/
|
|
238
|
+
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
234
239
|
/**
|
|
235
240
|
* value: "unknown_default_open_api"
|
|
236
241
|
* @const
|
|
@@ -202,49 +202,49 @@ SwapActivity.prototype['swap_type'] = undefined;
|
|
|
202
202
|
SwapActivity.prototype['status'] = undefined;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
* The request
|
|
205
|
+
* The request ID of the swap transaction.
|
|
206
206
|
* @member {String} request_id
|
|
207
207
|
*/
|
|
208
208
|
SwapActivity.prototype['request_id'] = undefined;
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
|
-
* The
|
|
211
|
+
* The ID of the wallet used to pay.
|
|
212
212
|
* @member {String} wallet_id
|
|
213
213
|
*/
|
|
214
214
|
SwapActivity.prototype['wallet_id'] = undefined;
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
|
-
* The token
|
|
217
|
+
* The ID of the token to pay.
|
|
218
218
|
* @member {String} pay_token_id
|
|
219
219
|
*/
|
|
220
220
|
SwapActivity.prototype['pay_token_id'] = undefined;
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
|
-
* The token
|
|
223
|
+
* The ID of the token to receive.
|
|
224
224
|
* @member {String} receive_token_id
|
|
225
225
|
*/
|
|
226
226
|
SwapActivity.prototype['receive_token_id'] = undefined;
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
|
-
* The amount of
|
|
229
|
+
* The amount of the token to pay.
|
|
230
230
|
* @member {String} pay_amount
|
|
231
231
|
*/
|
|
232
232
|
SwapActivity.prototype['pay_amount'] = undefined;
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
|
-
* The amount of
|
|
235
|
+
* The amount of the token to receive.
|
|
236
236
|
* @member {String} receive_amount
|
|
237
237
|
*/
|
|
238
238
|
SwapActivity.prototype['receive_amount'] = undefined;
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
|
-
* The
|
|
241
|
+
* The ID of the token used for paying the service fee.
|
|
242
242
|
* @member {String} fee_token_id
|
|
243
243
|
*/
|
|
244
244
|
SwapActivity.prototype['fee_token_id'] = undefined;
|
|
245
245
|
|
|
246
246
|
/**
|
|
247
|
-
* The amount of fee.
|
|
247
|
+
* The amount of the service fee.
|
|
248
248
|
* @member {String} fee_amount
|
|
249
249
|
*/
|
|
250
250
|
SwapActivity.prototype['fee_amount'] = undefined;
|
|
@@ -284,7 +284,7 @@ SwapActivity.prototype['updated_timestamp'] = undefined;
|
|
|
284
284
|
SwapActivity.prototype['network_fee'] = undefined;
|
|
285
285
|
|
|
286
286
|
/**
|
|
287
|
-
*
|
|
287
|
+
* The address of an MPC Wallet or Web3 Wallet that receives the swapped or bridged assets.
|
|
288
288
|
* @member {String} destination_address
|
|
289
289
|
*/
|
|
290
290
|
SwapActivity.prototype['destination_address'] = undefined;
|
|
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
32
32
|
var SwapActivityApprovers = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
34
34
|
* Constructs a new <code>SwapActivityApprovers</code>.
|
|
35
|
-
* The
|
|
35
|
+
* The approver information of the swap activity.
|
|
36
36
|
* @alias module:model/SwapActivityApprovers
|
|
37
37
|
* @param name {String} The approver name of the swap activity.
|
|
38
38
|
* @param status {module:model/SwapApproversStatus}
|