@cobo/cobo-waas2 1.24.0 → 1.26.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 +45 -6
- package/dist/ApiClient.js +1 -1
- package/dist/api/AutoSweepApi.js +2 -2
- package/dist/api/ComplianceApi.js +132 -2
- package/dist/api/DevelopersWebhooksApi.js +2 -2
- package/dist/api/FeeStationApi.js +6 -6
- package/dist/api/PaymentApi.js +109 -24
- package/dist/api/TokenizationApi.js +122 -4
- package/dist/api/TransactionsApi.js +4 -4
- package/dist/index.js +217 -14
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/AutoFuelType.js +5 -0
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BridgingFee.js +4 -4
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/CommissionFee.js +2 -2
- package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +305 -0
- package/dist/model/CreateCryptoAddressRequest.js +1 -1
- package/dist/model/CreateMerchantRequest.js +2 -2
- package/dist/model/CreateOrderLinkRequest.js +129 -0
- package/dist/model/CreatePaymentOrderRequest.js +21 -8
- package/dist/model/CreateRefundLinkRequest.js +129 -0
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateSettlement.js +2 -28
- package/dist/model/CreateSettlementRequestRequest.js +3 -3
- package/dist/model/CustodialTransferDestination.js +1 -1
- package/dist/model/FeeStationCheckFeeStationUsage.js +28 -10
- package/dist/model/FeeStationCheckFeeStationUsageResponse.js +33 -20
- package/dist/model/FeeStationSponsorTransactionDescription.js +125 -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/MPCVaultEventData.js +8 -3
- package/dist/model/Merchant.js +3 -3
- package/dist/model/MerchantBalance.js +1 -1
- 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 +3 -3
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentEstimateFee.js +4 -4
- package/dist/model/PaymentEstimateFee201Response.js +1 -0
- package/dist/model/PaymentEstimateFeeRequest.js +2 -1
- package/dist/model/PaymentEstimatedFee.js +4 -4
- package/dist/model/PaymentOrderEventData.js +26 -3
- package/dist/model/PaymentRefundEventData.js +8 -3
- package/dist/model/PaymentSettlementEvent.js +12 -7
- package/dist/model/PaymentTransactionEventData.js +8 -3
- package/dist/model/PspBalance.js +1 -1
- package/dist/model/RefundLinkBusinessInfo.js +162 -0
- package/dist/model/RefundStatus.js +10 -0
- package/dist/model/ReviewStatusType.js +91 -0
- package/dist/model/Settlement.js +2 -2
- package/dist/model/SubmitKytResponse.js +122 -0
- package/dist/model/SubmitKytScreeningsDecisionsBody.js +122 -0
- package/dist/model/SubmitKytScreeningsReviewBody.js +122 -0
- package/dist/model/SupportedToken.js +1 -1
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/SwapQuote.js +18 -18
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokenizationERC20TokenParams.js +5 -5
- package/dist/model/{TokenizationTokenPermissionParams.js → TokenizationERC20TokenPermissionParams.js} +23 -23
- package/dist/model/TokenizationERC20WrappedTokenParams.js +177 -0
- package/dist/model/TokenizationERC20WrappedTokenPermissionParams.js +166 -0
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +38 -11
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +72 -10
- package/dist/model/TokenizationListPermissionsResponse.js +146 -0
- package/dist/model/TokenizationListPermissionsResponseDataInner.js +126 -0
- package/dist/model/TokenizationOperationType.js +5 -0
- package/dist/model/TokenizationPermissionAction.js +66 -0
- package/dist/model/TokenizationSOLWrappedTokenParams.js +177 -0
- package/dist/model/TokenizationSolWrappedTokenPermissionParams.js +127 -0
- package/dist/model/TokenizationTokenDetailInfo.js +51 -5
- package/dist/model/TokenizationTokenInfo.js +26 -4
- package/dist/model/TokenizationTokenPermissionType.js +5 -0
- package/dist/model/TokenizationTokenStandard.js +10 -0
- package/dist/model/{TokenizationTokenPermissionsResponse.js → TokenizationUpdateAddressPermissions.js} +51 -53
- package/dist/model/TokenizationUpdatePermissionsEstimateFeeParams.js +198 -0
- package/dist/model/TokenizationUpdatePermissionsParams.js +145 -0
- package/dist/model/TokenizationUpdatePermissionsRequest.js +213 -0
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/TransactionCoboCategory.js +35 -0
- package/dist/model/TransactionWebhookEventData.js +8 -3
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEventData.js +64 -12
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +10 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/AutoFuelType.md +2 -0
- package/docs/AutoSweepApi.md +2 -2
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BridgingFee.md +3 -3
- package/docs/ChainsEventData.md +3 -1
- package/docs/CommissionFee.md +1 -1
- package/docs/ComplianceApi.md +158 -1
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKytScreeningsUpdateEventData.md +57 -0
- package/docs/CreateCryptoAddressRequest.md +1 -1
- package/docs/CreateMerchantRequest.md +2 -2
- package/docs/CreateOrderLinkRequest.md +10 -0
- package/docs/CreatePaymentOrderRequest.md +6 -5
- package/docs/CreateRefundLinkRequest.md +10 -0
- package/docs/CreateRefundRequest.md +2 -2
- package/docs/CreateSettlement.md +1 -3
- package/docs/CreateSettlementRequestRequest.md +3 -3
- package/docs/DevelopersWebhooksApi.md +1 -1
- package/docs/FeeStationApi.md +4 -4
- package/docs/FeeStationCheckFeeStationUsage.md +4 -2
- package/docs/FeeStationCheckFeeStationUsageResponse.md +4 -3
- package/docs/FeeStationSponsorTransactionDescription.md +10 -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/MPCVaultEventData.md +3 -1
- package/docs/Merchant.md +2 -2
- package/docs/MerchantBalance.md +1 -1
- package/docs/Order.md +1 -0
- package/docs/OrderLinkBusinessInfo.md +19 -0
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +10 -0
- package/docs/OtcFee.md +2 -2
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentApi.md +118 -12
- package/docs/PaymentEstimateFee.md +2 -2
- package/docs/PaymentEstimateFee201Response.md +1 -1
- package/docs/PaymentEstimateFeeRequest.md +1 -1
- package/docs/PaymentEstimatedFee.md +2 -2
- package/docs/PaymentOrderEventData.md +4 -1
- package/docs/PaymentRefundEventData.md +3 -1
- package/docs/PaymentSettlementEvent.md +5 -3
- package/docs/PaymentTransactionEventData.md +3 -1
- package/docs/PspBalance.md +1 -1
- package/docs/RefundLinkBusinessInfo.md +13 -0
- package/docs/RefundStatus.md +4 -0
- package/docs/ReviewStatusType.md +24 -0
- package/docs/Settlement.md +2 -2
- package/docs/SubmitKytResponse.md +10 -0
- package/docs/SubmitKytScreeningsDecisionsBody.md +10 -0
- package/docs/SubmitKytScreeningsReviewBody.md +10 -0
- package/docs/SupportedToken.md +1 -1
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/SwapQuote.md +10 -10
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokenizationApi.md +120 -2
- package/docs/TokenizationERC20TokenParams.md +1 -1
- package/docs/{TokenizationTokenPermissionParams.md → TokenizationERC20TokenPermissionParams.md} +1 -1
- package/docs/TokenizationERC20WrappedTokenParams.md +14 -0
- package/docs/TokenizationERC20WrappedTokenPermissionParams.md +15 -0
- package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -1
- package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -1
- package/docs/TokenizationListPermissionsResponse.md +10 -0
- package/docs/TokenizationListPermissionsResponseDataInner.md +10 -0
- package/docs/TokenizationOperationType.md +2 -0
- package/docs/TokenizationPermissionAction.md +14 -0
- package/docs/TokenizationSOLWrappedTokenParams.md +14 -0
- package/docs/TokenizationSolWrappedTokenPermissionParams.md +12 -0
- package/docs/TokenizationTokenDetailInfo.md +3 -0
- package/docs/TokenizationTokenInfo.md +2 -0
- package/docs/TokenizationTokenPermissionType.md +2 -0
- package/docs/TokenizationTokenStandard.md +4 -0
- package/docs/TokenizationUpdateAddressPermissions.md +11 -0
- package/docs/TokenizationUpdatePermissionsEstimateFeeParams.md +13 -0
- package/docs/TokenizationUpdatePermissionsParams.md +10 -0
- package/docs/TokenizationUpdatePermissionsRequest.md +13 -0
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionCoboCategory.md +14 -0
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/TransactionsApi.md +2 -2
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WebhookEventData.md +10 -4
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +4 -0
- package/package.json +1 -1
- package/docs/TokenizationTokenPermissionsResponse.md +0 -10
|
@@ -0,0 +1,213 @@
|
|
|
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 _TokenizationAppInitiator = _interopRequireDefault(require("./TokenizationAppInitiator"));
|
|
9
|
+
var _TokenizationTokenOperationSource = _interopRequireDefault(require("./TokenizationTokenOperationSource"));
|
|
10
|
+
var _TokenizationUpdateAddressPermissions = _interopRequireDefault(require("./TokenizationUpdateAddressPermissions"));
|
|
11
|
+
var _TokenizationUpdatePermissionsParams = _interopRequireDefault(require("./TokenizationUpdatePermissionsParams"));
|
|
12
|
+
var _TransactionRequestFee = _interopRequireDefault(require("./TransactionRequestFee"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
+
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); }
|
|
15
|
+
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; } } }; }
|
|
16
|
+
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; } }
|
|
17
|
+
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; }
|
|
18
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
19
|
+
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); } }
|
|
20
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
22
|
+
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); } /**
|
|
23
|
+
* Cobo Wallet as a Service 2.0
|
|
24
|
+
*
|
|
25
|
+
* Contact: help@cobo.com
|
|
26
|
+
*
|
|
27
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
28
|
+
* https://openapi-generator.tech
|
|
29
|
+
* Do not edit the class manually.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* The TokenizationUpdatePermissionsRequest model module.
|
|
34
|
+
* @module model/TokenizationUpdatePermissionsRequest
|
|
35
|
+
*/
|
|
36
|
+
var TokenizationUpdatePermissionsRequest = /*#__PURE__*/function () {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new <code>TokenizationUpdatePermissionsRequest</code>.
|
|
39
|
+
* @alias module:model/TokenizationUpdatePermissionsRequest
|
|
40
|
+
* @implements module:model/TokenizationUpdatePermissionsParams
|
|
41
|
+
* @implements module:model/TokenizationAppInitiator
|
|
42
|
+
* @param source {module:model/TokenizationTokenOperationSource}
|
|
43
|
+
* @param addresses {Array.<module:model/TokenizationUpdateAddressPermissions>}
|
|
44
|
+
* @param fee {module:model/TransactionRequestFee}
|
|
45
|
+
*/
|
|
46
|
+
function TokenizationUpdatePermissionsRequest(source, addresses, fee) {
|
|
47
|
+
_classCallCheck(this, TokenizationUpdatePermissionsRequest);
|
|
48
|
+
_TokenizationUpdatePermissionsParams["default"].initialize(this, source, addresses);
|
|
49
|
+
_TokenizationAppInitiator["default"].initialize(this);
|
|
50
|
+
TokenizationUpdatePermissionsRequest.initialize(this, source, addresses, fee);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Initializes the fields of this object.
|
|
55
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
56
|
+
* Only for internal use.
|
|
57
|
+
*/
|
|
58
|
+
return _createClass(TokenizationUpdatePermissionsRequest, null, [{
|
|
59
|
+
key: "initialize",
|
|
60
|
+
value: function initialize(obj, source, addresses, fee) {
|
|
61
|
+
obj['source'] = source;
|
|
62
|
+
obj['addresses'] = addresses;
|
|
63
|
+
obj['fee'] = fee;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Constructs a <code>TokenizationUpdatePermissionsRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
68
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
69
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
70
|
+
* @param {module:model/TokenizationUpdatePermissionsRequest} obj Optional instance to populate.
|
|
71
|
+
* @return {module:model/TokenizationUpdatePermissionsRequest} The populated <code>TokenizationUpdatePermissionsRequest</code> instance.
|
|
72
|
+
*/
|
|
73
|
+
}, {
|
|
74
|
+
key: "constructFromObject",
|
|
75
|
+
value: function constructFromObject(data, obj) {
|
|
76
|
+
if (data) {
|
|
77
|
+
obj = obj || new TokenizationUpdatePermissionsRequest();
|
|
78
|
+
_TokenizationUpdatePermissionsParams["default"].constructFromObject(data, obj);
|
|
79
|
+
_TokenizationAppInitiator["default"].constructFromObject(data, obj);
|
|
80
|
+
if (data.hasOwnProperty('source')) {
|
|
81
|
+
obj['source'] = _TokenizationTokenOperationSource["default"].constructFromObject(data['source']);
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('addresses')) {
|
|
84
|
+
obj['addresses'] = _ApiClient["default"].convertToType(data['addresses'], [_TokenizationUpdateAddressPermissions["default"]]);
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('app_initiator')) {
|
|
87
|
+
obj['app_initiator'] = _ApiClient["default"].convertToType(data['app_initiator'], 'String');
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('fee')) {
|
|
90
|
+
obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
|
|
91
|
+
}
|
|
92
|
+
if (data.hasOwnProperty('request_id')) {
|
|
93
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return obj;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Validates the JSON data with respect to <code>TokenizationUpdatePermissionsRequest</code>.
|
|
101
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
102
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TokenizationUpdatePermissionsRequest</code>.
|
|
103
|
+
*/
|
|
104
|
+
}, {
|
|
105
|
+
key: "validateJSON",
|
|
106
|
+
value: function validateJSON(data) {
|
|
107
|
+
// check to make sure all required properties are present in the JSON string
|
|
108
|
+
var _iterator = _createForOfIteratorHelper(TokenizationUpdatePermissionsRequest.RequiredProperties),
|
|
109
|
+
_step;
|
|
110
|
+
try {
|
|
111
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
112
|
+
var property = _step.value;
|
|
113
|
+
if (!data.hasOwnProperty(property)) {
|
|
114
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
// validate the optional field `source`
|
|
118
|
+
} catch (err) {
|
|
119
|
+
_iterator.e(err);
|
|
120
|
+
} finally {
|
|
121
|
+
_iterator.f();
|
|
122
|
+
}
|
|
123
|
+
if (data['source']) {
|
|
124
|
+
// data not null
|
|
125
|
+
if (!!_TokenizationTokenOperationSource["default"].validateJSON) {
|
|
126
|
+
_TokenizationTokenOperationSource["default"].validateJSON(data['source']);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (data['addresses']) {
|
|
130
|
+
// data not null
|
|
131
|
+
// ensure the json data is an array
|
|
132
|
+
if (!Array.isArray(data['addresses'])) {
|
|
133
|
+
throw new Error("Expected the field `addresses` to be an array in the JSON data but got " + data['addresses']);
|
|
134
|
+
}
|
|
135
|
+
// validate the optional field `addresses` (array)
|
|
136
|
+
var _iterator2 = _createForOfIteratorHelper(data['addresses']),
|
|
137
|
+
_step2;
|
|
138
|
+
try {
|
|
139
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
140
|
+
var item = _step2.value;
|
|
141
|
+
_TokenizationUpdateAddressPermissions["default"].validateJSON(item);
|
|
142
|
+
}
|
|
143
|
+
} catch (err) {
|
|
144
|
+
_iterator2.e(err);
|
|
145
|
+
} finally {
|
|
146
|
+
_iterator2.f();
|
|
147
|
+
}
|
|
148
|
+
;
|
|
149
|
+
}
|
|
150
|
+
// ensure the json data is a string
|
|
151
|
+
if (data['app_initiator'] && !(typeof data['app_initiator'] === 'string' || data['app_initiator'] instanceof String)) {
|
|
152
|
+
throw new Error("Expected the field `app_initiator` to be a primitive type in the JSON string but got " + data['app_initiator']);
|
|
153
|
+
}
|
|
154
|
+
// validate the optional field `fee`
|
|
155
|
+
if (data['fee']) {
|
|
156
|
+
// data not null
|
|
157
|
+
if (!!_TransactionRequestFee["default"].validateJSON) {
|
|
158
|
+
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
// ensure the json data is a string
|
|
162
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
163
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
164
|
+
}
|
|
165
|
+
return true;
|
|
166
|
+
}
|
|
167
|
+
}]);
|
|
168
|
+
}();
|
|
169
|
+
TokenizationUpdatePermissionsRequest.RequiredProperties = ["source", "addresses", "fee"];
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @member {module:model/TokenizationTokenOperationSource} source
|
|
173
|
+
*/
|
|
174
|
+
TokenizationUpdatePermissionsRequest.prototype['source'] = undefined;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @member {Array.<module:model/TokenizationUpdateAddressPermissions>} addresses
|
|
178
|
+
*/
|
|
179
|
+
TokenizationUpdatePermissionsRequest.prototype['addresses'] = undefined;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* The initiator of the tokenization activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator.
|
|
183
|
+
* @member {String} app_initiator
|
|
184
|
+
*/
|
|
185
|
+
TokenizationUpdatePermissionsRequest.prototype['app_initiator'] = undefined;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @member {module:model/TransactionRequestFee} fee
|
|
189
|
+
*/
|
|
190
|
+
TokenizationUpdatePermissionsRequest.prototype['fee'] = undefined;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
194
|
+
* @member {String} request_id
|
|
195
|
+
*/
|
|
196
|
+
TokenizationUpdatePermissionsRequest.prototype['request_id'] = undefined;
|
|
197
|
+
|
|
198
|
+
// Implement TokenizationUpdatePermissionsParams interface:
|
|
199
|
+
/**
|
|
200
|
+
* @member {module:model/TokenizationTokenOperationSource} source
|
|
201
|
+
*/
|
|
202
|
+
_TokenizationUpdatePermissionsParams["default"].prototype['source'] = undefined;
|
|
203
|
+
/**
|
|
204
|
+
* @member {Array.<module:model/TokenizationUpdateAddressPermissions>} addresses
|
|
205
|
+
*/
|
|
206
|
+
_TokenizationUpdatePermissionsParams["default"].prototype['addresses'] = undefined;
|
|
207
|
+
// Implement TokenizationAppInitiator interface:
|
|
208
|
+
/**
|
|
209
|
+
* The initiator of the tokenization activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator.
|
|
210
|
+
* @member {String} app_initiator
|
|
211
|
+
*/
|
|
212
|
+
_TokenizationAppInitiator["default"].prototype['app_initiator'] = undefined;
|
|
213
|
+
var _default = exports["default"] = TokenizationUpdatePermissionsRequest;
|
|
@@ -37,7 +37,7 @@ var TokensEventData = /*#__PURE__*/function () {
|
|
|
37
37
|
* Constructs a new <code>TokensEventData</code>.
|
|
38
38
|
* @alias module:model/TokensEventData
|
|
39
39
|
* @implements module:model/WebhookEventDataType
|
|
40
|
-
* @param data_type {module:model/TokensEventData.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.
|
|
40
|
+
* @param data_type {module:model/TokensEventData.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.
|
|
41
41
|
* @param tokens {Array.<module:model/TokenInfo>} The enabled tokens.
|
|
42
42
|
*/
|
|
43
43
|
function TokensEventData(data_type, tokens) {
|
|
@@ -146,7 +146,7 @@ var TokensEventData = /*#__PURE__*/function () {
|
|
|
146
146
|
TokensEventData.RequiredProperties = ["data_type", "tokens"];
|
|
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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition 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. - `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.
|
|
150
150
|
* @member {module:model/TokensEventData.DataTypeEnum} data_type
|
|
151
151
|
*/
|
|
152
152
|
TokensEventData.prototype['data_type'] = undefined;
|
|
@@ -169,7 +169,7 @@ TokensEventData.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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition 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. - `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.
|
|
173
173
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
174
174
|
*/
|
|
175
175
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -260,6 +260,11 @@ TokensEventData['DataTypeEnum'] = {
|
|
|
260
260
|
* @const
|
|
261
261
|
*/
|
|
262
262
|
"ComplianceDisposition": "ComplianceDisposition",
|
|
263
|
+
/**
|
|
264
|
+
* value: "ComplianceKytScreenings"
|
|
265
|
+
* @const
|
|
266
|
+
*/
|
|
267
|
+
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
263
268
|
/**
|
|
264
269
|
* value: "unknown_default_open_api"
|
|
265
270
|
* @const
|
|
@@ -190,6 +190,41 @@ var TransactionCoboCategory = exports["default"] = /*#__PURE__*/function () {
|
|
|
190
190
|
* @const
|
|
191
191
|
*/
|
|
192
192
|
_defineProperty(this, "StellarChangeTrust", "StellarChangeTrust");
|
|
193
|
+
/**
|
|
194
|
+
* value: "Tokenization"
|
|
195
|
+
* @const
|
|
196
|
+
*/
|
|
197
|
+
_defineProperty(this, "Tokenization", "Tokenization");
|
|
198
|
+
/**
|
|
199
|
+
* value: "TokenizationGasSponsor"
|
|
200
|
+
* @const
|
|
201
|
+
*/
|
|
202
|
+
_defineProperty(this, "TokenizationGasSponsor", "TokenizationGasSponsor");
|
|
203
|
+
/**
|
|
204
|
+
* value: "TokenSwap"
|
|
205
|
+
* @const
|
|
206
|
+
*/
|
|
207
|
+
_defineProperty(this, "TokenSwap", "TokenSwap");
|
|
208
|
+
/**
|
|
209
|
+
* value: "NonceAccountSign"
|
|
210
|
+
* @const
|
|
211
|
+
*/
|
|
212
|
+
_defineProperty(this, "NonceAccountSign", "NonceAccountSign");
|
|
213
|
+
/**
|
|
214
|
+
* value: "FeePayerSign"
|
|
215
|
+
* @const
|
|
216
|
+
*/
|
|
217
|
+
_defineProperty(this, "FeePayerSign", "FeePayerSign");
|
|
218
|
+
/**
|
|
219
|
+
* value: "GasFeeSponsor"
|
|
220
|
+
* @const
|
|
221
|
+
*/
|
|
222
|
+
_defineProperty(this, "GasFeeSponsor", "GasFeeSponsor");
|
|
223
|
+
/**
|
|
224
|
+
* value: "GasFeeSponsorRefund"
|
|
225
|
+
* @const
|
|
226
|
+
*/
|
|
227
|
+
_defineProperty(this, "GasFeeSponsorRefund", "GasFeeSponsorRefund");
|
|
193
228
|
/**
|
|
194
229
|
* value: "unknown_default_open_api"
|
|
195
230
|
* @const
|
|
@@ -48,7 +48,7 @@ var TransactionWebhookEventData = /*#__PURE__*/function () {
|
|
|
48
48
|
* @alias module:model/TransactionWebhookEventData
|
|
49
49
|
* @implements module:model/WebhookEventDataType
|
|
50
50
|
* @implements module:model/Transaction
|
|
51
|
-
* @param data_type {module:model/TransactionWebhookEventData.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.
|
|
51
|
+
* @param data_type {module:model/TransactionWebhookEventData.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.
|
|
52
52
|
* @param transaction_id {String} The transaction ID.
|
|
53
53
|
* @param wallet_id {String} For deposit transactions, this property represents the wallet ID of the transaction destination. For transactions of other types, this property represents the wallet ID of the transaction source.
|
|
54
54
|
* @param status {module:model/TransactionStatus}
|
|
@@ -344,7 +344,7 @@ var TransactionWebhookEventData = /*#__PURE__*/function () {
|
|
|
344
344
|
TransactionWebhookEventData.RequiredProperties = ["data_type", "transaction_id", "wallet_id", "status", "source", "destination", "initiator_type", "created_timestamp", "updated_timestamp"];
|
|
345
345
|
|
|
346
346
|
/**
|
|
347
|
-
* 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.
|
|
347
|
+
* 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.
|
|
348
348
|
* @member {module:model/TransactionWebhookEventData.DataTypeEnum} data_type
|
|
349
349
|
*/
|
|
350
350
|
TransactionWebhookEventData.prototype['data_type'] = undefined;
|
|
@@ -525,7 +525,7 @@ TransactionWebhookEventData.prototype['updated_timestamp'] = undefined;
|
|
|
525
525
|
|
|
526
526
|
// Implement WebhookEventDataType interface:
|
|
527
527
|
/**
|
|
528
|
-
* 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.
|
|
528
|
+
* 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.
|
|
529
529
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
530
530
|
*/
|
|
531
531
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -760,6 +760,11 @@ TransactionWebhookEventData['DataTypeEnum'] = {
|
|
|
760
760
|
* @const
|
|
761
761
|
*/
|
|
762
762
|
"ComplianceDisposition": "ComplianceDisposition",
|
|
763
|
+
/**
|
|
764
|
+
* value: "ComplianceKytScreenings"
|
|
765
|
+
* @const
|
|
766
|
+
*/
|
|
767
|
+
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
763
768
|
/**
|
|
764
769
|
* value: "unknown_default_open_api"
|
|
765
770
|
* @const
|
|
@@ -93,7 +93,7 @@ var UpdateMerchantByIdRequest = /*#__PURE__*/function () {
|
|
|
93
93
|
UpdateMerchantByIdRequest.prototype['name'] = undefined;
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
|
-
* The developer fee rate applied to this merchant.
|
|
96
|
+
* The developer fee rate applied to this merchant. Must be a valid float between 0 and 1 (inclusive), with up to 4 decimal places. For more information on developer fee rate, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances).
|
|
97
97
|
* @member {String} developer_fee_rate
|
|
98
98
|
*/
|
|
99
99
|
UpdateMerchantByIdRequest.prototype['developer_fee_rate'] = undefined;
|
|
@@ -35,7 +35,7 @@ var WalletInfoEventData = /*#__PURE__*/function () {
|
|
|
35
35
|
* Constructs a new <code>WalletInfoEventData</code>.
|
|
36
36
|
* @alias module:model/WalletInfoEventData
|
|
37
37
|
* @implements module:model/WebhookEventDataType
|
|
38
|
-
* @param data_type {module:model/WalletInfoEventData.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/WalletInfoEventData.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
|
*/
|
|
40
40
|
function WalletInfoEventData(data_type) {
|
|
41
41
|
_classCallCheck(this, WalletInfoEventData);
|
|
@@ -118,7 +118,7 @@ var WalletInfoEventData = /*#__PURE__*/function () {
|
|
|
118
118
|
WalletInfoEventData.RequiredProperties = ["data_type"];
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
* 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.
|
|
121
|
+
* 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.
|
|
122
122
|
* @member {module:model/WalletInfoEventData.DataTypeEnum} data_type
|
|
123
123
|
*/
|
|
124
124
|
WalletInfoEventData.prototype['data_type'] = undefined;
|
|
@@ -130,7 +130,7 @@ WalletInfoEventData.prototype['wallet'] = undefined;
|
|
|
130
130
|
|
|
131
131
|
// Implement WebhookEventDataType interface:
|
|
132
132
|
/**
|
|
133
|
-
* 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.
|
|
133
|
+
* 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.
|
|
134
134
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
135
135
|
*/
|
|
136
136
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -221,6 +221,11 @@ WalletInfoEventData['DataTypeEnum'] = {
|
|
|
221
221
|
* @const
|
|
222
222
|
*/
|
|
223
223
|
"ComplianceDisposition": "ComplianceDisposition",
|
|
224
|
+
/**
|
|
225
|
+
* value: "ComplianceKytScreenings"
|
|
226
|
+
* @const
|
|
227
|
+
*/
|
|
228
|
+
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
224
229
|
/**
|
|
225
230
|
* value: "unknown_default_open_api"
|
|
226
231
|
* @const
|
|
@@ -15,8 +15,11 @@ var _ChainInfo = _interopRequireDefault(require("./ChainInfo"));
|
|
|
15
15
|
var _ChainsEventData = _interopRequireDefault(require("./ChainsEventData"));
|
|
16
16
|
var _CommissionFee = _interopRequireDefault(require("./CommissionFee"));
|
|
17
17
|
var _ComplianceDispositionUpdateEventData = _interopRequireDefault(require("./ComplianceDispositionUpdateEventData"));
|
|
18
|
+
var _ComplianceKytScreeningsUpdateEventData = _interopRequireDefault(require("./ComplianceKytScreeningsUpdateEventData"));
|
|
18
19
|
var _DispositionStatus = _interopRequireDefault(require("./DispositionStatus"));
|
|
19
20
|
var _DispositionType = _interopRequireDefault(require("./DispositionType"));
|
|
21
|
+
var _FundsStatusType = _interopRequireDefault(require("./FundsStatusType"));
|
|
22
|
+
var _KytScreeningsTransactionType = _interopRequireDefault(require("./KytScreeningsTransactionType"));
|
|
20
23
|
var _MPCVaultEventData = _interopRequireDefault(require("./MPCVaultEventData"));
|
|
21
24
|
var _PaymentAddressUpdateEventData = _interopRequireDefault(require("./PaymentAddressUpdateEventData"));
|
|
22
25
|
var _PaymentOrderEventData = _interopRequireDefault(require("./PaymentOrderEventData"));
|
|
@@ -26,6 +29,7 @@ var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction")
|
|
|
26
29
|
var _PaymentTransactionEventData = _interopRequireDefault(require("./PaymentTransactionEventData"));
|
|
27
30
|
var _PayoutChannel = _interopRequireDefault(require("./PayoutChannel"));
|
|
28
31
|
var _RefundType = _interopRequireDefault(require("./RefundType"));
|
|
32
|
+
var _ReviewStatusType = _interopRequireDefault(require("./ReviewStatusType"));
|
|
29
33
|
var _RootPubkey = _interopRequireDefault(require("./RootPubkey"));
|
|
30
34
|
var _SettleStatus = _interopRequireDefault(require("./SettleStatus"));
|
|
31
35
|
var _SettlementDetail = _interopRequireDefault(require("./SettlementDetail"));
|
|
@@ -80,7 +84,7 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
80
84
|
/**
|
|
81
85
|
* Constructs a new <code>WebhookEventData</code>.
|
|
82
86
|
* @alias module:model/WebhookEventData
|
|
83
|
-
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
|
|
87
|
+
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/ComplianceKytScreeningsUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
|
|
84
88
|
*/
|
|
85
89
|
function WebhookEventData() {
|
|
86
90
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
@@ -117,6 +121,10 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
117
121
|
this.actualInstance = _ComplianceDispositionUpdateEventData["default"].constructFromObject(instance);
|
|
118
122
|
match++;
|
|
119
123
|
break;
|
|
124
|
+
case "ComplianceKytScreenings":
|
|
125
|
+
this.actualInstance = _ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance);
|
|
126
|
+
match++;
|
|
127
|
+
break;
|
|
120
128
|
case "MPCVault":
|
|
121
129
|
this.actualInstance = _MPCVaultEventData["default"].constructFromObject(instance);
|
|
122
130
|
match++;
|
|
@@ -539,13 +547,36 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
539
547
|
// json data failed to deserialize into ComplianceDispositionUpdateEventData
|
|
540
548
|
errorMessages.push("Failed to construct ComplianceDispositionUpdateEventData: " + err);
|
|
541
549
|
}
|
|
550
|
+
try {
|
|
551
|
+
if (instance instanceof _ComplianceKytScreeningsUpdateEventData["default"]) {
|
|
552
|
+
this.actualInstance = instance;
|
|
553
|
+
} else if (!!_ComplianceKytScreeningsUpdateEventData["default"].validateJSON && _ComplianceKytScreeningsUpdateEventData["default"].validateJSON(instance)) {
|
|
554
|
+
// plain JS object
|
|
555
|
+
// create ComplianceKytScreeningsUpdateEventData from JS object
|
|
556
|
+
this.actualInstance = _ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance);
|
|
557
|
+
} else {
|
|
558
|
+
if (_ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance)) {
|
|
559
|
+
if (!!_ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance).toJSON) {
|
|
560
|
+
if (_ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance).toJSON()) {
|
|
561
|
+
this.actualInstance = _ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance);
|
|
562
|
+
}
|
|
563
|
+
} else {
|
|
564
|
+
this.actualInstance = _ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
match++;
|
|
569
|
+
} catch (err) {
|
|
570
|
+
// json data failed to deserialize into ComplianceKytScreeningsUpdateEventData
|
|
571
|
+
errorMessages.push("Failed to construct ComplianceKytScreeningsUpdateEventData: " + err);
|
|
572
|
+
}
|
|
542
573
|
|
|
543
574
|
// if (match > 1) {
|
|
544
|
-
// throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
|
|
575
|
+
// throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKytScreeningsUpdateEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
|
|
545
576
|
// } else
|
|
546
577
|
if (match === 0) {
|
|
547
578
|
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
548
|
-
// throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
|
|
579
|
+
// throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKytScreeningsUpdateEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
|
|
549
580
|
// errorMessages.join(", "));
|
|
550
581
|
return;
|
|
551
582
|
} else {// only 1 match
|
|
@@ -564,16 +595,16 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
564
595
|
key: "getActualInstance",
|
|
565
596
|
value:
|
|
566
597
|
/**
|
|
567
|
-
* Gets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
568
|
-
* @return {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
|
|
598
|
+
* Gets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>ComplianceKytScreeningsUpdateEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
599
|
+
* @return {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/ComplianceKytScreeningsUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
|
|
569
600
|
*/
|
|
570
601
|
function getActualInstance() {
|
|
571
602
|
return this.actualInstance;
|
|
572
603
|
}
|
|
573
604
|
|
|
574
605
|
/**
|
|
575
|
-
* Sets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
576
|
-
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
|
|
606
|
+
* Sets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>ComplianceKytScreeningsUpdateEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
607
|
+
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/ComplianceKytScreeningsUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
|
|
577
608
|
*/
|
|
578
609
|
}, {
|
|
579
610
|
key: "setActualInstance",
|
|
@@ -588,7 +619,7 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
588
619
|
}]);
|
|
589
620
|
}();
|
|
590
621
|
/**
|
|
591
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
622
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
592
623
|
* @member {module:model/WebhookEventData.DataTypeEnum} data_type
|
|
593
624
|
*/
|
|
594
625
|
_WebhookEventData = WebhookEventData;
|
|
@@ -771,7 +802,7 @@ WebhookEventData.prototype['fueling_info'] = undefined;
|
|
|
771
802
|
WebhookEventData.prototype['created_timestamp'] = undefined;
|
|
772
803
|
|
|
773
804
|
/**
|
|
774
|
-
* The time when the
|
|
805
|
+
* The time when the KYT screening information was updated, in Unix timestamp format, measured in milliseconds.
|
|
775
806
|
* @member {Number} updated_timestamp
|
|
776
807
|
*/
|
|
777
808
|
WebhookEventData.prototype['updated_timestamp'] = undefined;
|
|
@@ -924,7 +955,7 @@ WebhookEventData.prototype['payable_amount'] = undefined;
|
|
|
924
955
|
WebhookEventData.prototype['receive_address'] = undefined;
|
|
925
956
|
|
|
926
957
|
/**
|
|
927
|
-
* The fiat currency for the
|
|
958
|
+
* The fiat currency for the off-ramp.
|
|
928
959
|
* @member {String} currency
|
|
929
960
|
*/
|
|
930
961
|
WebhookEventData.prototype['currency'] = undefined;
|
|
@@ -982,6 +1013,12 @@ WebhookEventData.prototype['transactions'] = undefined;
|
|
|
982
1013
|
*/
|
|
983
1014
|
WebhookEventData.prototype['settlement_status'] = undefined;
|
|
984
1015
|
|
|
1016
|
+
/**
|
|
1017
|
+
* The maximum allowed deviation from the payable amount in the case of underpayment, specified as a positive value with up to one decimal place. If you provide more than one decimal place, an error will occur. When the actual received amount is within this deviation (inclusive) of the payable amount, the order status will be set to `Completed` rather than `Underpaid`.
|
|
1018
|
+
* @member {String} amount_tolerance
|
|
1019
|
+
*/
|
|
1020
|
+
WebhookEventData.prototype['amount_tolerance'] = undefined;
|
|
1021
|
+
|
|
985
1022
|
/**
|
|
986
1023
|
* The refund order ID.
|
|
987
1024
|
* @member {String} refund_id
|
|
@@ -1055,7 +1092,7 @@ WebhookEventData.prototype['payout_channel'] = undefined;
|
|
|
1055
1092
|
WebhookEventData.prototype['settlement_type'] = undefined;
|
|
1056
1093
|
|
|
1057
1094
|
/**
|
|
1058
|
-
* The
|
|
1095
|
+
* The estimated amount of the fiat currency to receive after off-ramping. This amount is subject to change due to bank transfer fees.
|
|
1059
1096
|
* @member {String} received_amount_fiat
|
|
1060
1097
|
*/
|
|
1061
1098
|
WebhookEventData.prototype['received_amount_fiat'] = undefined;
|
|
@@ -1116,5 +1153,20 @@ WebhookEventData.prototype['destination_address'] = undefined;
|
|
|
1116
1153
|
* @member {String} disposition_amount
|
|
1117
1154
|
*/
|
|
1118
1155
|
WebhookEventData.prototype['disposition_amount'] = undefined;
|
|
1119
|
-
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* @member {module:model/KytScreeningsTransactionType} transaction_type
|
|
1159
|
+
*/
|
|
1160
|
+
WebhookEventData.prototype['transaction_type'] = undefined;
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* @member {module:model/ReviewStatusType} review_status
|
|
1164
|
+
*/
|
|
1165
|
+
WebhookEventData.prototype['review_status'] = undefined;
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* @member {module:model/FundsStatusType} funds_status
|
|
1169
|
+
*/
|
|
1170
|
+
WebhookEventData.prototype['funds_status'] = undefined;
|
|
1171
|
+
WebhookEventData.OneOf = ["AddressesEventData", "BalanceUpdateInfoEventData", "ChainsEventData", "ComplianceDispositionUpdateEventData", "ComplianceKytScreeningsUpdateEventData", "MPCVaultEventData", "PaymentAddressUpdateEventData", "PaymentOrderEventData", "PaymentRefundEventData", "PaymentSettlementEvent", "PaymentTransactionEventData", "SuspendedTokenEventData", "TSSRequestWebhookEventData", "TokenListingEventData", "TokensEventData", "TransactionWebhookEventData", "WalletInfoEventData"];
|
|
1120
1172
|
var _default = exports["default"] = WebhookEventData;
|
|
@@ -33,7 +33,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
|
|
|
33
33
|
* Constructs a new <code>WebhookEventDataType</code>.
|
|
34
34
|
* The data type of the event.
|
|
35
35
|
* @alias module:model/WebhookEventDataType
|
|
36
|
-
* @param data_type {module:model/WebhookEventDataType.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
36
|
+
* @param data_type {module:model/WebhookEventDataType.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
37
37
|
*/
|
|
38
38
|
function WebhookEventDataType(data_type) {
|
|
39
39
|
_classCallCheck(this, WebhookEventDataType);
|
|
@@ -104,7 +104,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
|
|
|
104
104
|
WebhookEventDataType.RequiredProperties = ["data_type"];
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
107
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
108
108
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
109
109
|
*/
|
|
110
110
|
WebhookEventDataType.prototype['data_type'] = undefined;
|
|
@@ -195,6 +195,11 @@ WebhookEventDataType['DataTypeEnum'] = {
|
|
|
195
195
|
* @const
|
|
196
196
|
*/
|
|
197
197
|
"ComplianceDisposition": "ComplianceDisposition",
|
|
198
|
+
/**
|
|
199
|
+
* value: "ComplianceKytScreenings"
|
|
200
|
+
* @const
|
|
201
|
+
*/
|
|
202
|
+
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
198
203
|
/**
|
|
199
204
|
* value: "unknown_default_open_api"
|
|
200
205
|
* @const
|