@cobo/cobo-waas2 1.28.0 → 1.30.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 +88 -16
- package/dist/ApiClient.js +1 -1
- package/dist/api/AutoSweepApi.js +2 -2
- package/dist/api/ComplianceApi.js +144 -4
- package/dist/api/FeeStationApi.js +2 -2
- package/dist/api/GraphQLApi.js +85 -0
- package/dist/api/PaymentApi.js +1161 -154
- package/dist/api/StakingsApi.js +2 -2
- package/dist/api/SwapsApi.js +3 -0
- package/dist/api/TransactionsApi.js +6 -6
- package/dist/api/WalletsApi.js +18 -18
- package/dist/index.js +357 -28
- package/dist/model/AddressRiskLevel.js +71 -0
- package/dist/model/AddressesEventData.js +13 -3
- package/dist/model/{AllocationRecord.js → AllocationItem.js} +38 -35
- package/dist/model/{AllocationRequest.js → AllocationParam.js} +29 -26
- package/dist/model/BalanceUpdateInfoEventData.js +13 -3
- package/dist/model/BatchAllocation.js +12 -12
- package/dist/model/BatchAllocationDetail.js +15 -17
- package/dist/model/BridgingFee.js +3 -3
- package/dist/model/ChainsEventData.js +13 -3
- package/dist/model/CommissionFee.js +2 -2
- package/dist/model/ComplianceDispositionUpdateEventData.js +13 -3
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +346 -0
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +13 -3
- package/dist/model/ContractCallParams.js +3 -3
- package/dist/model/CounterpartyWalletAddressDetail.js +2 -2
- package/dist/model/CreateBatchAllocationRequest.js +19 -19
- package/dist/model/CreateBulkSendRequest.js +167 -0
- package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +153 -0
- package/dist/model/CreateCounterpartyEntry201Response.js +143 -0
- package/dist/model/CreateCounterpartyEntryRequest.js +141 -0
- package/dist/model/CreateDestinationEntry201Response.js +172 -0
- package/dist/model/CreateDestinationEntryRequest.js +172 -0
- package/dist/model/CreateKyaScreeningsBody.js +129 -0
- package/dist/model/CreateMerchantRequest.js +1 -1
- package/dist/model/CreatePaymentOrderRequest.js +17 -15
- package/dist/model/CreatePayoutRequest.js +35 -28
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateReportRequest.js +156 -0
- package/dist/model/CreateTopUpAddresses.js +139 -0
- package/dist/model/CreateTopUpAddresses201Response.js +107 -0
- package/dist/model/CreateWalletAddress.js +2 -2
- package/dist/model/DeleteCounterpartyById200Response.js +110 -0
- package/dist/model/DeleteCounterpartyEntry200Response.js +110 -0
- package/dist/model/DeleteDestinationById200Response.js +110 -0
- package/dist/model/DeleteDestinationEntry200Response.js +110 -0
- package/dist/model/EntryType.js +61 -0
- package/dist/model/GetCounterpartyEntry200Response.js +90 -0
- package/dist/model/GetDestinationEntry200Response.js +106 -0
- package/dist/model/{ListPayoutItems200Response.js → GetReports200Response.js} +22 -22
- package/dist/model/KyaRiskAssessment.js +151 -0
- package/dist/model/KyaRiskDetail.js +126 -0
- package/dist/model/KyaRiskLevel.js +66 -0
- package/dist/model/KyaScreeningRequest.js +154 -0
- package/dist/model/KyaScreeningResult.js +222 -0
- package/dist/model/KyaScreeningResultRiskAssessment.js +171 -0
- package/dist/model/KyaScreeningStatus.js +71 -0
- package/dist/model/KyaScreeningsEventData.js +174 -0
- package/dist/model/LinkDisplayInfo.js +1 -1
- package/dist/model/{ListAllocations200Response.js → ListAllocationItems200Response.js} +22 -22
- package/dist/model/ListBulkSendItems200Response.js +123 -0
- package/dist/model/ListCounterpartyEntries200Response.js +123 -0
- package/dist/model/ListDestinationEntries200Response.js +153 -0
- package/dist/model/ListKyaScreenings200Response.js +145 -0
- package/dist/model/MPCVaultEventData.js +13 -3
- package/dist/model/MerchantBalance.js +4 -4
- package/dist/model/Order.js +10 -10
- package/dist/model/OrderLinkBusinessInfo.js +22 -16
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +2 -4
- package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +4 -4
- package/dist/model/PaymentAddressUpdateEventData.js +13 -3
- package/dist/model/PaymentAllocationAmount.js +2 -2
- package/dist/model/PaymentBulkSend.js +182 -0
- package/dist/model/PaymentBulkSendEvent.js +359 -0
- package/dist/model/PaymentBulkSendExecutionMode.js +61 -0
- package/dist/model/PaymentBulkSendItem.js +190 -0
- package/dist/model/{PaymentPayoutItemStatus.js → PaymentBulkSendItemStatus.js} +11 -11
- package/dist/model/PaymentBulkSendItemValidationStatus.js +66 -0
- package/dist/model/PaymentBulkSendStatus.js +81 -0
- package/dist/model/PaymentEstimateFeeRequest.js +13 -0
- package/dist/model/PaymentFeeType.js +15 -0
- package/dist/model/PaymentOrderEventData.js +31 -21
- package/dist/model/PaymentPayout.js +64 -46
- package/dist/model/PaymentPayoutDetail.js +166 -52
- package/dist/model/PaymentPayoutEvent.js +152 -80
- package/dist/model/PaymentPayoutItem.js +9 -166
- package/dist/model/PaymentPayoutParam.js +6 -46
- package/dist/model/PaymentPayoutRecipientInfo.js +126 -0
- package/dist/model/PaymentPayoutStatus.js +9 -4
- package/dist/model/PaymentRefundEventData.js +13 -3
- package/dist/model/PaymentSettlementEvent.js +13 -3
- package/dist/model/PaymentTransactionEventData.js +13 -3
- package/dist/model/PspBalance.js +4 -4
- package/dist/model/RefundLinkBusinessInfo.js +1 -1
- package/dist/model/Report.js +209 -0
- package/dist/model/ReportExportFormat.js +66 -0
- package/dist/model/ReportStatus.js +61 -0
- package/dist/model/ReportType.js +121 -0
- package/dist/model/SuspendedTokenEventData.js +13 -3
- package/dist/model/TSSRequestWebhookEventData.js +13 -3
- package/dist/model/TokenListingEventData.js +13 -3
- package/dist/model/TokensEventData.js +13 -3
- package/dist/model/TransactionCoboCategory.js +5 -0
- package/dist/model/TransactionExtraType.js +5 -0
- package/dist/model/TransactionWalletConnectInfo.js +146 -0
- package/dist/model/TransactionWebhookEventData.js +13 -3
- package/dist/model/TransferParams.js +2 -2
- package/dist/model/UpdateCounterpartyRequest.js +160 -0
- package/dist/model/UpdateDestinationEntry200Response.js +90 -0
- package/dist/model/UpdateDestinationEntryRequest.js +135 -0
- package/dist/model/UpdateDestinationRequest.js +173 -0
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/WalletAddress.js +20 -2
- package/dist/model/WalletInfoEventData.js +13 -3
- package/dist/model/WebhookEventData.js +121 -28
- package/dist/model/WebhookEventDataType.js +12 -2
- package/dist/model/WebhookEventType.js +15 -0
- package/docs/AddressRiskLevel.md +16 -0
- package/docs/AddressesEventData.md +5 -1
- package/docs/AllocationItem.md +15 -0
- package/docs/AllocationParam.md +13 -0
- package/docs/AutoSweepApi.md +1 -1
- package/docs/BalanceUpdateInfoEventData.md +5 -1
- package/docs/BatchAllocation.md +2 -2
- package/docs/BatchAllocationDetail.md +1 -1
- package/docs/BridgingFee.md +2 -2
- package/docs/ChainsEventData.md +5 -1
- package/docs/CommissionFee.md +1 -1
- package/docs/ComplianceApi.md +163 -0
- package/docs/ComplianceDispositionUpdateEventData.md +5 -1
- package/docs/ComplianceKyaScreeningsUpdateEventData.md +64 -0
- package/docs/ComplianceKytScreeningsUpdateEventData.md +5 -1
- package/docs/ContractCallParams.md +2 -2
- package/docs/CounterpartyWalletAddressDetail.md +1 -1
- package/docs/CreateBatchAllocationRequest.md +2 -2
- package/docs/CreateBulkSendRequest.md +12 -0
- package/docs/CreateBulkSendRequestPayoutParamsInner.md +12 -0
- package/docs/CreateCounterpartyEntry201Response.md +10 -0
- package/docs/CreateCounterpartyEntryRequest.md +10 -0
- package/docs/CreateDestinationEntry201Response.md +11 -0
- package/docs/CreateDestinationEntryRequest.md +11 -0
- package/docs/CreateKyaScreeningsBody.md +9 -0
- package/docs/CreateMerchantRequest.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +11 -11
- package/docs/CreatePayoutRequest.md +4 -4
- package/docs/CreateRefundRequest.md +2 -2
- package/docs/CreateReportRequest.md +13 -0
- package/docs/CreateTopUpAddresses.md +11 -0
- package/docs/CreateTopUpAddresses201Response.md +9 -0
- package/docs/CreateWalletAddress.md +1 -1
- package/docs/DeleteCounterpartyById200Response.md +9 -0
- package/docs/DeleteCounterpartyEntry200Response.md +9 -0
- package/docs/DeleteDestinationById200Response.md +9 -0
- package/docs/DeleteDestinationEntry200Response.md +9 -0
- package/docs/EntryType.md +12 -0
- package/docs/FeeStationApi.md +1 -1
- package/docs/GetCounterpartyEntry200Response.md +9 -0
- package/docs/GetDestinationEntry200Response.md +10 -0
- package/docs/{ListAllocations200Response.md → GetReports200Response.md} +2 -2
- package/docs/GraphQLApi.md +61 -0
- package/docs/KyaRiskAssessment.md +11 -0
- package/docs/KyaRiskDetail.md +10 -0
- package/docs/KyaRiskLevel.md +14 -0
- package/docs/KyaScreeningRequest.md +12 -0
- package/docs/KyaScreeningResult.md +17 -0
- package/docs/KyaScreeningResultRiskAssessment.md +11 -0
- package/docs/KyaScreeningStatus.md +16 -0
- package/docs/KyaScreeningsEventData.md +14 -0
- package/docs/LinkDisplayInfo.md +1 -1
- package/docs/{ListPayoutItems200Response.md → ListAllocationItems200Response.md} +2 -2
- package/docs/ListBulkSendItems200Response.md +10 -0
- package/docs/ListCounterpartyEntries200Response.md +10 -0
- package/docs/ListDestinationEntries200Response.md +11 -0
- package/docs/ListKyaScreenings200Response.md +10 -0
- package/docs/MPCVaultEventData.md +5 -1
- package/docs/MerchantBalance.md +4 -4
- package/docs/Order.md +8 -8
- package/docs/OrderLinkBusinessInfo.md +11 -11
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
- package/docs/OrderLinkBusinessInfoPayableAmountsInner.md +2 -2
- package/docs/PaymentAddressUpdateEventData.md +5 -1
- package/docs/PaymentAllocationAmount.md +1 -1
- package/docs/PaymentApi.md +1296 -198
- package/docs/PaymentBulkSend.md +15 -0
- package/docs/PaymentBulkSendEvent.md +65 -0
- package/docs/PaymentBulkSendExecutionMode.md +12 -0
- package/docs/PaymentBulkSendItem.md +15 -0
- package/docs/{PaymentPayoutItemStatus.md → PaymentBulkSendItemStatus.md} +3 -3
- package/docs/PaymentBulkSendItemValidationStatus.md +14 -0
- package/docs/PaymentBulkSendStatus.md +20 -0
- package/docs/PaymentEstimateFeeRequest.md +1 -0
- package/docs/PaymentFeeType.md +6 -0
- package/docs/PaymentOrderEventData.md +13 -9
- package/docs/PaymentPayout.md +8 -7
- package/docs/PaymentPayoutDetail.md +10 -8
- package/docs/PaymentPayoutEvent.md +15 -9
- package/docs/PaymentPayoutItem.md +2 -13
- package/docs/PaymentPayoutParam.md +1 -4
- package/docs/PaymentPayoutRecipientInfo.md +12 -0
- package/docs/PaymentPayoutStatus.md +4 -2
- package/docs/PaymentRefundEventData.md +5 -1
- package/docs/PaymentSettlementEvent.md +5 -1
- package/docs/PaymentTransactionEventData.md +5 -1
- package/docs/PspBalance.md +4 -4
- package/docs/RefundLinkBusinessInfo.md +1 -1
- package/docs/Report.md +17 -0
- package/docs/ReportExportFormat.md +14 -0
- package/docs/ReportStatus.md +12 -0
- package/docs/ReportType.md +36 -0
- package/docs/StakingsApi.md +1 -1
- package/docs/SuspendedTokenEventData.md +5 -1
- package/docs/SwapsApi.md +2 -0
- package/docs/TSSRequestWebhookEventData.md +5 -1
- package/docs/TokenListingEventData.md +5 -1
- package/docs/TokensEventData.md +5 -1
- package/docs/TransactionCoboCategory.md +2 -0
- package/docs/TransactionExtraType.md +2 -0
- package/docs/TransactionWalletConnectInfo.md +12 -0
- package/docs/TransactionWebhookEventData.md +5 -1
- package/docs/TransactionsApi.md +3 -3
- package/docs/TransferParams.md +1 -1
- package/docs/UpdateCounterpartyRequest.md +13 -0
- package/docs/UpdateDestinationEntry200Response.md +9 -0
- package/docs/UpdateDestinationEntryRequest.md +11 -0
- package/docs/UpdateDestinationRequest.md +14 -0
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/WalletAddress.md +3 -1
- package/docs/WalletInfoEventData.md +5 -1
- package/docs/WalletsApi.md +9 -9
- package/docs/WebhookEventData.md +28 -18
- package/docs/WebhookEventDataType.md +5 -1
- package/docs/WebhookEventType.md +6 -0
- package/package.json +1 -1
- package/dist/model/PaymentPayoutItemDetail.js +0 -298
- package/docs/AllocationRecord.md +0 -15
- package/docs/AllocationRequest.md +0 -13
- package/docs/PaymentPayoutItemDetail.md +0 -22
|
@@ -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 _AllocationItem = _interopRequireDefault(require("./AllocationItem"));
|
|
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; } } }; }
|
|
@@ -35,11 +35,10 @@ var BatchAllocationDetail = /*#__PURE__*/function () {
|
|
|
35
35
|
* @alias module:model/BatchAllocationDetail
|
|
36
36
|
* @param batch_allocation_id {String} The batch allocation ID generated by Cobo.
|
|
37
37
|
* @param request_id {String} The request ID provided by you when creating the batch allocation.
|
|
38
|
-
* @param allocation_records {Array.<module:model/AllocationRecord>}
|
|
39
38
|
*/
|
|
40
|
-
function BatchAllocationDetail(batch_allocation_id, request_id
|
|
39
|
+
function BatchAllocationDetail(batch_allocation_id, request_id) {
|
|
41
40
|
_classCallCheck(this, BatchAllocationDetail);
|
|
42
|
-
BatchAllocationDetail.initialize(this, batch_allocation_id, request_id
|
|
41
|
+
BatchAllocationDetail.initialize(this, batch_allocation_id, request_id);
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
/**
|
|
@@ -49,10 +48,9 @@ var BatchAllocationDetail = /*#__PURE__*/function () {
|
|
|
49
48
|
*/
|
|
50
49
|
return _createClass(BatchAllocationDetail, null, [{
|
|
51
50
|
key: "initialize",
|
|
52
|
-
value: function initialize(obj, batch_allocation_id, request_id
|
|
51
|
+
value: function initialize(obj, batch_allocation_id, request_id) {
|
|
53
52
|
obj['batch_allocation_id'] = batch_allocation_id;
|
|
54
53
|
obj['request_id'] = request_id;
|
|
55
|
-
obj['allocation_records'] = allocation_records;
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
/**
|
|
@@ -73,8 +71,8 @@ var BatchAllocationDetail = /*#__PURE__*/function () {
|
|
|
73
71
|
if (data.hasOwnProperty('request_id')) {
|
|
74
72
|
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
75
73
|
}
|
|
76
|
-
if (data.hasOwnProperty('
|
|
77
|
-
obj['
|
|
74
|
+
if (data.hasOwnProperty('allocation_items')) {
|
|
75
|
+
obj['allocation_items'] = _ApiClient["default"].convertToType(data['allocation_items'], [_AllocationItem["default"]]);
|
|
78
76
|
}
|
|
79
77
|
if (data.hasOwnProperty('initiator')) {
|
|
80
78
|
obj['initiator'] = _ApiClient["default"].convertToType(data['initiator'], 'String');
|
|
@@ -120,19 +118,19 @@ var BatchAllocationDetail = /*#__PURE__*/function () {
|
|
|
120
118
|
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
121
119
|
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
122
120
|
}
|
|
123
|
-
if (data['
|
|
121
|
+
if (data['allocation_items']) {
|
|
124
122
|
// data not null
|
|
125
123
|
// ensure the json data is an array
|
|
126
|
-
if (!Array.isArray(data['
|
|
127
|
-
throw new Error("Expected the field `
|
|
124
|
+
if (!Array.isArray(data['allocation_items'])) {
|
|
125
|
+
throw new Error("Expected the field `allocation_items` to be an array in the JSON data but got " + data['allocation_items']);
|
|
128
126
|
}
|
|
129
|
-
// validate the optional field `
|
|
130
|
-
var _iterator2 = _createForOfIteratorHelper(data['
|
|
127
|
+
// validate the optional field `allocation_items` (array)
|
|
128
|
+
var _iterator2 = _createForOfIteratorHelper(data['allocation_items']),
|
|
131
129
|
_step2;
|
|
132
130
|
try {
|
|
133
131
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
134
132
|
var item = _step2.value;
|
|
135
|
-
|
|
133
|
+
_AllocationItem["default"].validateJSON(item);
|
|
136
134
|
}
|
|
137
135
|
} catch (err) {
|
|
138
136
|
_iterator2.e(err);
|
|
@@ -149,7 +147,7 @@ var BatchAllocationDetail = /*#__PURE__*/function () {
|
|
|
149
147
|
}
|
|
150
148
|
}]);
|
|
151
149
|
}();
|
|
152
|
-
BatchAllocationDetail.RequiredProperties = ["batch_allocation_id", "request_id"
|
|
150
|
+
BatchAllocationDetail.RequiredProperties = ["batch_allocation_id", "request_id"];
|
|
153
151
|
|
|
154
152
|
/**
|
|
155
153
|
* The batch allocation ID generated by Cobo.
|
|
@@ -164,9 +162,9 @@ BatchAllocationDetail.prototype['batch_allocation_id'] = undefined;
|
|
|
164
162
|
BatchAllocationDetail.prototype['request_id'] = undefined;
|
|
165
163
|
|
|
166
164
|
/**
|
|
167
|
-
* @member {Array.<module:model/
|
|
165
|
+
* @member {Array.<module:model/AllocationItem>} allocation_items
|
|
168
166
|
*/
|
|
169
|
-
BatchAllocationDetail.prototype['
|
|
167
|
+
BatchAllocationDetail.prototype['allocation_items'] = undefined;
|
|
170
168
|
|
|
171
169
|
/**
|
|
172
170
|
* The initiator of this batch allocation, usually the user's API key.
|
|
@@ -32,7 +32,7 @@ var BridgingFee = /*#__PURE__*/function () {
|
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>BridgingFee</code>.
|
|
34
34
|
* @alias module:model/BridgingFee
|
|
35
|
-
* @param fee_amount {String} The fee charged for bridging tokens to another
|
|
35
|
+
* @param fee_amount {String} The fee charged for bridging tokens to another chain.
|
|
36
36
|
*/
|
|
37
37
|
function BridgingFee(fee_amount) {
|
|
38
38
|
_classCallCheck(this, BridgingFee);
|
|
@@ -117,7 +117,7 @@ var BridgingFee = /*#__PURE__*/function () {
|
|
|
117
117
|
BridgingFee.RequiredProperties = ["fee_amount"];
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* The fee charged for bridging tokens to another
|
|
120
|
+
* The fee charged for bridging tokens to another chain.
|
|
121
121
|
* @member {String} fee_amount
|
|
122
122
|
*/
|
|
123
123
|
BridgingFee.prototype['fee_amount'] = undefined;
|
|
@@ -129,7 +129,7 @@ BridgingFee.prototype['fee_amount'] = undefined;
|
|
|
129
129
|
BridgingFee.prototype['received_token_id'] = undefined;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
-
* The final amount of
|
|
132
|
+
* The final amount of the token received after bridging.
|
|
133
133
|
* @member {String} received_amount
|
|
134
134
|
*/
|
|
135
135
|
BridgingFee.prototype['received_amount'] = undefined;
|
|
@@ -37,7 +37,7 @@ var ChainsEventData = /*#__PURE__*/function () {
|
|
|
37
37
|
* Constructs a new <code>ChainsEventData</code>.
|
|
38
38
|
* @alias module:model/ChainsEventData
|
|
39
39
|
* @implements module:model/WebhookEventDataType
|
|
40
|
-
* @param data_type {module:model/ChainsEventData.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. - `PaymentPayout`: The payment payout 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.
|
|
40
|
+
* @param data_type {module:model/ChainsEventData.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. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
41
41
|
* @param chains {Array.<module:model/ChainInfo>} The enabled chains.
|
|
42
42
|
*/
|
|
43
43
|
function ChainsEventData(data_type, chains) {
|
|
@@ -146,7 +146,7 @@ var ChainsEventData = /*#__PURE__*/function () {
|
|
|
146
146
|
ChainsEventData.RequiredProperties = ["data_type", "chains"];
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
* 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. - `PaymentPayout`: The payment payout 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.
|
|
149
|
+
* 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. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
150
150
|
* @member {module:model/ChainsEventData.DataTypeEnum} data_type
|
|
151
151
|
*/
|
|
152
152
|
ChainsEventData.prototype['data_type'] = undefined;
|
|
@@ -169,7 +169,7 @@ ChainsEventData.prototype['wallet_subtypes'] = undefined;
|
|
|
169
169
|
|
|
170
170
|
// Implement WebhookEventDataType interface:
|
|
171
171
|
/**
|
|
172
|
-
* 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. - `PaymentPayout`: The payment payout 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.
|
|
172
|
+
* 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. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
173
173
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
174
174
|
*/
|
|
175
175
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -250,6 +250,11 @@ ChainsEventData['DataTypeEnum'] = {
|
|
|
250
250
|
* @const
|
|
251
251
|
*/
|
|
252
252
|
"PaymentPayout": "PaymentPayout",
|
|
253
|
+
/**
|
|
254
|
+
* value: "PaymentBulkSend"
|
|
255
|
+
* @const
|
|
256
|
+
*/
|
|
257
|
+
"PaymentBulkSend": "PaymentBulkSend",
|
|
253
258
|
/**
|
|
254
259
|
* value: "BalanceUpdateInfo"
|
|
255
260
|
* @const
|
|
@@ -270,6 +275,11 @@ ChainsEventData['DataTypeEnum'] = {
|
|
|
270
275
|
* @const
|
|
271
276
|
*/
|
|
272
277
|
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
278
|
+
/**
|
|
279
|
+
* value: "ComplianceKyaScreenings"
|
|
280
|
+
* @const
|
|
281
|
+
*/
|
|
282
|
+
"ComplianceKyaScreenings": "ComplianceKyaScreenings",
|
|
273
283
|
/**
|
|
274
284
|
* value: "unknown_default_open_api"
|
|
275
285
|
* @const
|
|
@@ -32,7 +32,7 @@ var CommissionFee = /*#__PURE__*/function () {
|
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>CommissionFee</code>.
|
|
34
34
|
* @alias module:model/CommissionFee
|
|
35
|
-
* @param fee_amount {String} The amount of the commission fee charged by Cobo for pay-ins and payouts, in USD.
|
|
35
|
+
* @param fee_amount {String} The amount of the commission fee charged by Cobo for operations such as pay-ins and payouts, in USD.
|
|
36
36
|
*/
|
|
37
37
|
function CommissionFee(fee_amount) {
|
|
38
38
|
_classCallCheck(this, CommissionFee);
|
|
@@ -103,7 +103,7 @@ var CommissionFee = /*#__PURE__*/function () {
|
|
|
103
103
|
CommissionFee.RequiredProperties = ["fee_amount"];
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* The amount of the commission fee charged by Cobo for pay-ins and payouts, in USD.
|
|
106
|
+
* The amount of the commission fee charged by Cobo for operations such as pay-ins and payouts, in USD.
|
|
107
107
|
* @member {String} fee_amount
|
|
108
108
|
*/
|
|
109
109
|
CommissionFee.prototype['fee_amount'] = undefined;
|
|
@@ -38,7 +38,7 @@ var ComplianceDispositionUpdateEventData = /*#__PURE__*/function () {
|
|
|
38
38
|
* @alias module:model/ComplianceDispositionUpdateEventData
|
|
39
39
|
* @implements module:model/WebhookEventDataType
|
|
40
40
|
* @implements module:model/DispositionEventData
|
|
41
|
-
* @param data_type {module:model/ComplianceDispositionUpdateEventData.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. - `PaymentPayout`: The payment payout 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.
|
|
41
|
+
* @param data_type {module:model/ComplianceDispositionUpdateEventData.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. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
42
42
|
* @param transaction_id {String} The transaction ID.
|
|
43
43
|
* @param disposition_type {module:model/DispositionType}
|
|
44
44
|
* @param disposition_status {module:model/DispositionStatus}
|
|
@@ -151,7 +151,7 @@ var ComplianceDispositionUpdateEventData = /*#__PURE__*/function () {
|
|
|
151
151
|
ComplianceDispositionUpdateEventData.RequiredProperties = ["data_type", "transaction_id", "disposition_type", "disposition_status", "updated_timestamp"];
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
|
-
* 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. - `PaymentPayout`: The payment payout 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.
|
|
154
|
+
* 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. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
155
155
|
* @member {module:model/ComplianceDispositionUpdateEventData.DataTypeEnum} data_type
|
|
156
156
|
*/
|
|
157
157
|
ComplianceDispositionUpdateEventData.prototype['data_type'] = undefined;
|
|
@@ -192,7 +192,7 @@ ComplianceDispositionUpdateEventData.prototype['updated_timestamp'] = undefined;
|
|
|
192
192
|
|
|
193
193
|
// Implement WebhookEventDataType interface:
|
|
194
194
|
/**
|
|
195
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout 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.
|
|
195
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
196
196
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
197
197
|
*/
|
|
198
198
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -302,6 +302,11 @@ ComplianceDispositionUpdateEventData['DataTypeEnum'] = {
|
|
|
302
302
|
* @const
|
|
303
303
|
*/
|
|
304
304
|
"PaymentPayout": "PaymentPayout",
|
|
305
|
+
/**
|
|
306
|
+
* value: "PaymentBulkSend"
|
|
307
|
+
* @const
|
|
308
|
+
*/
|
|
309
|
+
"PaymentBulkSend": "PaymentBulkSend",
|
|
305
310
|
/**
|
|
306
311
|
* value: "BalanceUpdateInfo"
|
|
307
312
|
* @const
|
|
@@ -322,6 +327,11 @@ ComplianceDispositionUpdateEventData['DataTypeEnum'] = {
|
|
|
322
327
|
* @const
|
|
323
328
|
*/
|
|
324
329
|
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
330
|
+
/**
|
|
331
|
+
* value: "ComplianceKyaScreenings"
|
|
332
|
+
* @const
|
|
333
|
+
*/
|
|
334
|
+
"ComplianceKyaScreenings": "ComplianceKyaScreenings",
|
|
325
335
|
/**
|
|
326
336
|
* value: "unknown_default_open_api"
|
|
327
337
|
* @const
|
|
@@ -0,0 +1,346 @@
|
|
|
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 _KyaScreeningStatus = _interopRequireDefault(require("./KyaScreeningStatus"));
|
|
9
|
+
var _KyaScreeningsEventData = _interopRequireDefault(require("./KyaScreeningsEventData"));
|
|
10
|
+
var _WebhookEventDataType = _interopRequireDefault(require("./WebhookEventDataType"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
+
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); }
|
|
13
|
+
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; } } }; }
|
|
14
|
+
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; } }
|
|
15
|
+
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; }
|
|
16
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
17
|
+
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); } }
|
|
18
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
|
+
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); } /**
|
|
21
|
+
* Cobo Wallet as a Service 2.0
|
|
22
|
+
*
|
|
23
|
+
* Contact: help@cobo.com
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The ComplianceKyaScreeningsUpdateEventData model module.
|
|
32
|
+
* @module model/ComplianceKyaScreeningsUpdateEventData
|
|
33
|
+
*/
|
|
34
|
+
var ComplianceKyaScreeningsUpdateEventData = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>ComplianceKyaScreeningsUpdateEventData</code>.
|
|
37
|
+
* @alias module:model/ComplianceKyaScreeningsUpdateEventData
|
|
38
|
+
* @implements module:model/WebhookEventDataType
|
|
39
|
+
* @implements module:model/KyaScreeningsEventData
|
|
40
|
+
* @param data_type {module:model/ComplianceKyaScreeningsUpdateEventData.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. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
41
|
+
* @param screening_id {String} The unique system-generated identifier for this screening request (UUID format, fixed 36 characters).
|
|
42
|
+
* @param address {String} The screened blockchain address.
|
|
43
|
+
* @param chain_id {String} The chain identifier.
|
|
44
|
+
* @param status {module:model/KyaScreeningStatus}
|
|
45
|
+
* @param created_timestamp {Number} The time when the screening request was created, in Unix timestamp format, measured in milliseconds.
|
|
46
|
+
* @param updated_timestamp {Number} The time when the screening status was updated, in Unix timestamp format, measured in milliseconds.
|
|
47
|
+
*/
|
|
48
|
+
function ComplianceKyaScreeningsUpdateEventData(data_type, screening_id, address, chain_id, status, created_timestamp, updated_timestamp) {
|
|
49
|
+
_classCallCheck(this, ComplianceKyaScreeningsUpdateEventData);
|
|
50
|
+
_WebhookEventDataType["default"].initialize(this, data_type);
|
|
51
|
+
_KyaScreeningsEventData["default"].initialize(this, screening_id, address, chain_id, status, created_timestamp, updated_timestamp);
|
|
52
|
+
ComplianceKyaScreeningsUpdateEventData.initialize(this, data_type, screening_id, address, chain_id, status, created_timestamp, updated_timestamp);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Initializes the fields of this object.
|
|
57
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
58
|
+
* Only for internal use.
|
|
59
|
+
*/
|
|
60
|
+
return _createClass(ComplianceKyaScreeningsUpdateEventData, null, [{
|
|
61
|
+
key: "initialize",
|
|
62
|
+
value: function initialize(obj, data_type, screening_id, address, chain_id, status, created_timestamp, updated_timestamp) {
|
|
63
|
+
obj['data_type'] = data_type;
|
|
64
|
+
obj['screening_id'] = screening_id;
|
|
65
|
+
obj['address'] = address;
|
|
66
|
+
obj['chain_id'] = chain_id;
|
|
67
|
+
obj['status'] = status;
|
|
68
|
+
obj['created_timestamp'] = created_timestamp;
|
|
69
|
+
obj['updated_timestamp'] = updated_timestamp;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Constructs a <code>ComplianceKyaScreeningsUpdateEventData</code> from a plain JavaScript object, optionally creating a new instance.
|
|
74
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
75
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
76
|
+
* @param {module:model/ComplianceKyaScreeningsUpdateEventData} obj Optional instance to populate.
|
|
77
|
+
* @return {module:model/ComplianceKyaScreeningsUpdateEventData} The populated <code>ComplianceKyaScreeningsUpdateEventData</code> instance.
|
|
78
|
+
*/
|
|
79
|
+
}, {
|
|
80
|
+
key: "constructFromObject",
|
|
81
|
+
value: function constructFromObject(data, obj) {
|
|
82
|
+
if (data) {
|
|
83
|
+
obj = obj || new ComplianceKyaScreeningsUpdateEventData();
|
|
84
|
+
_WebhookEventDataType["default"].constructFromObject(data, obj);
|
|
85
|
+
_KyaScreeningsEventData["default"].constructFromObject(data, obj);
|
|
86
|
+
if (data.hasOwnProperty('data_type')) {
|
|
87
|
+
obj['data_type'] = _ApiClient["default"].convertToType(data['data_type'], 'String');
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('screening_id')) {
|
|
90
|
+
obj['screening_id'] = _ApiClient["default"].convertToType(data['screening_id'], 'String');
|
|
91
|
+
}
|
|
92
|
+
if (data.hasOwnProperty('address')) {
|
|
93
|
+
obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
|
|
94
|
+
}
|
|
95
|
+
if (data.hasOwnProperty('chain_id')) {
|
|
96
|
+
obj['chain_id'] = _ApiClient["default"].convertToType(data['chain_id'], 'String');
|
|
97
|
+
}
|
|
98
|
+
if (data.hasOwnProperty('status')) {
|
|
99
|
+
obj['status'] = _KyaScreeningStatus["default"].constructFromObject(data['status']);
|
|
100
|
+
}
|
|
101
|
+
if (data.hasOwnProperty('created_timestamp')) {
|
|
102
|
+
obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
|
|
103
|
+
}
|
|
104
|
+
if (data.hasOwnProperty('updated_timestamp')) {
|
|
105
|
+
obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return obj;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Validates the JSON data with respect to <code>ComplianceKyaScreeningsUpdateEventData</code>.
|
|
113
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
114
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ComplianceKyaScreeningsUpdateEventData</code>.
|
|
115
|
+
*/
|
|
116
|
+
}, {
|
|
117
|
+
key: "validateJSON",
|
|
118
|
+
value: function validateJSON(data) {
|
|
119
|
+
// check to make sure all required properties are present in the JSON string
|
|
120
|
+
var _iterator = _createForOfIteratorHelper(ComplianceKyaScreeningsUpdateEventData.RequiredProperties),
|
|
121
|
+
_step;
|
|
122
|
+
try {
|
|
123
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
124
|
+
var property = _step.value;
|
|
125
|
+
if (!data.hasOwnProperty(property)) {
|
|
126
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
// ensure the json data is a string
|
|
130
|
+
} catch (err) {
|
|
131
|
+
_iterator.e(err);
|
|
132
|
+
} finally {
|
|
133
|
+
_iterator.f();
|
|
134
|
+
}
|
|
135
|
+
if (data['data_type'] && !(typeof data['data_type'] === 'string' || data['data_type'] instanceof String)) {
|
|
136
|
+
throw new Error("Expected the field `data_type` to be a primitive type in the JSON string but got " + data['data_type']);
|
|
137
|
+
}
|
|
138
|
+
// ensure the json data is a string
|
|
139
|
+
if (data['screening_id'] && !(typeof data['screening_id'] === 'string' || data['screening_id'] instanceof String)) {
|
|
140
|
+
throw new Error("Expected the field `screening_id` to be a primitive type in the JSON string but got " + data['screening_id']);
|
|
141
|
+
}
|
|
142
|
+
// ensure the json data is a string
|
|
143
|
+
if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
|
|
144
|
+
throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
|
|
145
|
+
}
|
|
146
|
+
// ensure the json data is a string
|
|
147
|
+
if (data['chain_id'] && !(typeof data['chain_id'] === 'string' || data['chain_id'] instanceof String)) {
|
|
148
|
+
throw new Error("Expected the field `chain_id` to be a primitive type in the JSON string but got " + data['chain_id']);
|
|
149
|
+
}
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
}]);
|
|
153
|
+
}();
|
|
154
|
+
ComplianceKyaScreeningsUpdateEventData.RequiredProperties = ["data_type", "screening_id", "address", "chain_id", "status", "created_timestamp", "updated_timestamp"];
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* 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. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
158
|
+
* @member {module:model/ComplianceKyaScreeningsUpdateEventData.DataTypeEnum} data_type
|
|
159
|
+
*/
|
|
160
|
+
ComplianceKyaScreeningsUpdateEventData.prototype['data_type'] = undefined;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The unique system-generated identifier for this screening request (UUID format, fixed 36 characters).
|
|
164
|
+
* @member {String} screening_id
|
|
165
|
+
*/
|
|
166
|
+
ComplianceKyaScreeningsUpdateEventData.prototype['screening_id'] = undefined;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* The screened blockchain address.
|
|
170
|
+
* @member {String} address
|
|
171
|
+
*/
|
|
172
|
+
ComplianceKyaScreeningsUpdateEventData.prototype['address'] = undefined;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The chain identifier.
|
|
176
|
+
* @member {String} chain_id
|
|
177
|
+
*/
|
|
178
|
+
ComplianceKyaScreeningsUpdateEventData.prototype['chain_id'] = undefined;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @member {module:model/KyaScreeningStatus} status
|
|
182
|
+
*/
|
|
183
|
+
ComplianceKyaScreeningsUpdateEventData.prototype['status'] = undefined;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The time when the screening request was created, in Unix timestamp format, measured in milliseconds.
|
|
187
|
+
* @member {Number} created_timestamp
|
|
188
|
+
*/
|
|
189
|
+
ComplianceKyaScreeningsUpdateEventData.prototype['created_timestamp'] = undefined;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The time when the screening status was updated, in Unix timestamp format, measured in milliseconds.
|
|
193
|
+
* @member {Number} updated_timestamp
|
|
194
|
+
*/
|
|
195
|
+
ComplianceKyaScreeningsUpdateEventData.prototype['updated_timestamp'] = undefined;
|
|
196
|
+
|
|
197
|
+
// Implement WebhookEventDataType interface:
|
|
198
|
+
/**
|
|
199
|
+
* 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. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
200
|
+
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
201
|
+
*/
|
|
202
|
+
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
203
|
+
// Implement KyaScreeningsEventData interface:
|
|
204
|
+
/**
|
|
205
|
+
* The unique system-generated identifier for this screening request (UUID format, fixed 36 characters).
|
|
206
|
+
* @member {String} screening_id
|
|
207
|
+
*/
|
|
208
|
+
_KyaScreeningsEventData["default"].prototype['screening_id'] = undefined;
|
|
209
|
+
/**
|
|
210
|
+
* The screened blockchain address.
|
|
211
|
+
* @member {String} address
|
|
212
|
+
*/
|
|
213
|
+
_KyaScreeningsEventData["default"].prototype['address'] = undefined;
|
|
214
|
+
/**
|
|
215
|
+
* The chain identifier.
|
|
216
|
+
* @member {String} chain_id
|
|
217
|
+
*/
|
|
218
|
+
_KyaScreeningsEventData["default"].prototype['chain_id'] = undefined;
|
|
219
|
+
/**
|
|
220
|
+
* @member {module:model/KyaScreeningStatus} status
|
|
221
|
+
*/
|
|
222
|
+
_KyaScreeningsEventData["default"].prototype['status'] = undefined;
|
|
223
|
+
/**
|
|
224
|
+
* The time when the screening request was created, in Unix timestamp format, measured in milliseconds.
|
|
225
|
+
* @member {Number} created_timestamp
|
|
226
|
+
*/
|
|
227
|
+
_KyaScreeningsEventData["default"].prototype['created_timestamp'] = undefined;
|
|
228
|
+
/**
|
|
229
|
+
* The time when the screening status was updated, in Unix timestamp format, measured in milliseconds.
|
|
230
|
+
* @member {Number} updated_timestamp
|
|
231
|
+
*/
|
|
232
|
+
_KyaScreeningsEventData["default"].prototype['updated_timestamp'] = undefined;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Allowed values for the <code>data_type</code> property.
|
|
236
|
+
* @enum {String}
|
|
237
|
+
* @readonly
|
|
238
|
+
*/
|
|
239
|
+
ComplianceKyaScreeningsUpdateEventData['DataTypeEnum'] = {
|
|
240
|
+
/**
|
|
241
|
+
* value: "Transaction"
|
|
242
|
+
* @const
|
|
243
|
+
*/
|
|
244
|
+
"Transaction": "Transaction",
|
|
245
|
+
/**
|
|
246
|
+
* value: "TSSRequest"
|
|
247
|
+
* @const
|
|
248
|
+
*/
|
|
249
|
+
"TSSRequest": "TSSRequest",
|
|
250
|
+
/**
|
|
251
|
+
* value: "Addresses"
|
|
252
|
+
* @const
|
|
253
|
+
*/
|
|
254
|
+
"Addresses": "Addresses",
|
|
255
|
+
/**
|
|
256
|
+
* value: "WalletInfo"
|
|
257
|
+
* @const
|
|
258
|
+
*/
|
|
259
|
+
"WalletInfo": "WalletInfo",
|
|
260
|
+
/**
|
|
261
|
+
* value: "MPCVault"
|
|
262
|
+
* @const
|
|
263
|
+
*/
|
|
264
|
+
"MPCVault": "MPCVault",
|
|
265
|
+
/**
|
|
266
|
+
* value: "Chains"
|
|
267
|
+
* @const
|
|
268
|
+
*/
|
|
269
|
+
"Chains": "Chains",
|
|
270
|
+
/**
|
|
271
|
+
* value: "Tokens"
|
|
272
|
+
* @const
|
|
273
|
+
*/
|
|
274
|
+
"Tokens": "Tokens",
|
|
275
|
+
/**
|
|
276
|
+
* value: "TokenListing"
|
|
277
|
+
* @const
|
|
278
|
+
*/
|
|
279
|
+
"TokenListing": "TokenListing",
|
|
280
|
+
/**
|
|
281
|
+
* value: "PaymentOrder"
|
|
282
|
+
* @const
|
|
283
|
+
*/
|
|
284
|
+
"PaymentOrder": "PaymentOrder",
|
|
285
|
+
/**
|
|
286
|
+
* value: "PaymentRefund"
|
|
287
|
+
* @const
|
|
288
|
+
*/
|
|
289
|
+
"PaymentRefund": "PaymentRefund",
|
|
290
|
+
/**
|
|
291
|
+
* value: "PaymentSettlement"
|
|
292
|
+
* @const
|
|
293
|
+
*/
|
|
294
|
+
"PaymentSettlement": "PaymentSettlement",
|
|
295
|
+
/**
|
|
296
|
+
* value: "PaymentTransaction"
|
|
297
|
+
* @const
|
|
298
|
+
*/
|
|
299
|
+
"PaymentTransaction": "PaymentTransaction",
|
|
300
|
+
/**
|
|
301
|
+
* value: "PaymentAddressUpdate"
|
|
302
|
+
* @const
|
|
303
|
+
*/
|
|
304
|
+
"PaymentAddressUpdate": "PaymentAddressUpdate",
|
|
305
|
+
/**
|
|
306
|
+
* value: "PaymentPayout"
|
|
307
|
+
* @const
|
|
308
|
+
*/
|
|
309
|
+
"PaymentPayout": "PaymentPayout",
|
|
310
|
+
/**
|
|
311
|
+
* value: "PaymentBulkSend"
|
|
312
|
+
* @const
|
|
313
|
+
*/
|
|
314
|
+
"PaymentBulkSend": "PaymentBulkSend",
|
|
315
|
+
/**
|
|
316
|
+
* value: "BalanceUpdateInfo"
|
|
317
|
+
* @const
|
|
318
|
+
*/
|
|
319
|
+
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
320
|
+
/**
|
|
321
|
+
* value: "SuspendedToken"
|
|
322
|
+
* @const
|
|
323
|
+
*/
|
|
324
|
+
"SuspendedToken": "SuspendedToken",
|
|
325
|
+
/**
|
|
326
|
+
* value: "ComplianceDisposition"
|
|
327
|
+
* @const
|
|
328
|
+
*/
|
|
329
|
+
"ComplianceDisposition": "ComplianceDisposition",
|
|
330
|
+
/**
|
|
331
|
+
* value: "ComplianceKytScreenings"
|
|
332
|
+
* @const
|
|
333
|
+
*/
|
|
334
|
+
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
335
|
+
/**
|
|
336
|
+
* value: "ComplianceKyaScreenings"
|
|
337
|
+
* @const
|
|
338
|
+
*/
|
|
339
|
+
"ComplianceKyaScreenings": "ComplianceKyaScreenings",
|
|
340
|
+
/**
|
|
341
|
+
* value: "unknown_default_open_api"
|
|
342
|
+
* @const
|
|
343
|
+
*/
|
|
344
|
+
"unknown_default_open_api": "unknown_default_open_api"
|
|
345
|
+
};
|
|
346
|
+
var _default = exports["default"] = ComplianceKyaScreeningsUpdateEventData;
|