@cobo/cobo-waas2 1.28.0 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -9
- 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/PaymentApi.js +960 -85
- package/dist/api/StakingsApi.js +2 -2
- package/dist/api/TransactionsApi.js +6 -6
- package/dist/index.js +245 -0
- package/dist/model/AddressRiskLevel.js +71 -0
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/AllocationRecord.js +8 -5
- package/dist/model/AllocationRequest.js +10 -7
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BatchAllocation.js +1 -1
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/CommissionFee.js +2 -2
- package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +341 -0
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
- package/dist/model/ContractCallParams.js +2 -2
- package/dist/model/CounterpartyWalletAddressDetail.js +2 -2
- package/dist/model/CreateBatchAllocationRequest.js +2 -2
- 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 +11 -11
- package/dist/model/CreatePayoutRequest.js +5 -5
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateReportRequest.js +156 -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/GetReports200Response.js +123 -0
- package/dist/model/KyaRiskAssessment.js +151 -0
- package/dist/model/KyaRiskDetail.js +126 -0
- package/dist/model/KyaRiskLevel.js +66 -0
- package/dist/model/KyaScreeningRequest.js +154 -0
- package/dist/model/KyaScreeningResult.js +222 -0
- package/dist/model/KyaScreeningResultRiskAssessment.js +171 -0
- package/dist/model/KyaScreeningStatus.js +71 -0
- package/dist/model/KyaScreeningsEventData.js +174 -0
- package/dist/model/LinkDisplayInfo.js +1 -1
- 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 +8 -3
- package/dist/model/MerchantBalance.js +4 -4
- package/dist/model/Order.js +10 -10
- package/dist/model/OrderLinkBusinessInfo.js +12 -12
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +2 -4
- package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +4 -4
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentAllocationAmount.js +2 -2
- package/dist/model/PaymentOrderEventData.js +26 -21
- package/dist/model/PaymentPayout.js +3 -3
- package/dist/model/PaymentPayoutDetail.js +3 -3
- package/dist/model/PaymentPayoutEvent.js +14 -9
- package/dist/model/PaymentPayoutItem.js +8 -7
- package/dist/model/PaymentPayoutItemDetail.js +8 -7
- package/dist/model/PaymentPayoutParam.js +8 -7
- package/dist/model/PaymentRefundEventData.js +8 -3
- package/dist/model/PaymentSettlementEvent.js +8 -3
- package/dist/model/PaymentTransactionEventData.js +8 -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 +8 -3
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/TransactionWebhookEventData.js +8 -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 +8 -3
- package/dist/model/WebhookEventData.js +58 -24
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +5 -0
- package/docs/AddressRiskLevel.md +16 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/AllocationRecord.md +5 -5
- package/docs/AllocationRequest.md +5 -5
- package/docs/AutoSweepApi.md +1 -1
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BatchAllocation.md +1 -1
- package/docs/ChainsEventData.md +3 -1
- package/docs/CommissionFee.md +1 -1
- package/docs/ComplianceApi.md +163 -0
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKyaScreeningsUpdateEventData.md +62 -0
- package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
- package/docs/ContractCallParams.md +1 -1
- package/docs/CounterpartyWalletAddressDetail.md +1 -1
- package/docs/CreateBatchAllocationRequest.md +1 -1
- 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 +10 -10
- package/docs/CreatePayoutRequest.md +4 -4
- package/docs/CreateRefundRequest.md +2 -2
- package/docs/CreateReportRequest.md +13 -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/GetReports200Response.md +10 -0
- package/docs/KyaRiskAssessment.md +11 -0
- package/docs/KyaRiskDetail.md +10 -0
- package/docs/KyaRiskLevel.md +14 -0
- package/docs/KyaScreeningRequest.md +12 -0
- package/docs/KyaScreeningResult.md +17 -0
- package/docs/KyaScreeningResultRiskAssessment.md +11 -0
- package/docs/KyaScreeningStatus.md +16 -0
- package/docs/KyaScreeningsEventData.md +14 -0
- package/docs/LinkDisplayInfo.md +1 -1
- package/docs/ListCounterpartyEntries200Response.md +10 -0
- package/docs/ListDestinationEntries200Response.md +11 -0
- package/docs/ListKyaScreenings200Response.md +10 -0
- package/docs/MPCVaultEventData.md +3 -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 +3 -1
- package/docs/PaymentAllocationAmount.md +1 -1
- package/docs/PaymentApi.md +1104 -161
- package/docs/PaymentOrderEventData.md +11 -9
- package/docs/PaymentPayout.md +3 -3
- package/docs/PaymentPayoutDetail.md +3 -3
- package/docs/PaymentPayoutEvent.md +6 -4
- package/docs/PaymentPayoutItem.md +6 -6
- package/docs/PaymentPayoutItemDetail.md +6 -6
- package/docs/PaymentPayoutParam.md +5 -5
- package/docs/PaymentRefundEventData.md +3 -1
- package/docs/PaymentSettlementEvent.md +3 -1
- package/docs/PaymentTransactionEventData.md +3 -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 +3 -1
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionWebhookEventData.md +3 -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 +3 -1
- package/docs/WebhookEventData.md +18 -15
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,123 @@
|
|
|
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 _CounterpartyWalletAddressDetail = _interopRequireDefault(require("./CounterpartyWalletAddressDetail"));
|
|
9
|
+
var _Pagination = _interopRequireDefault(require("./Pagination"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
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); }
|
|
12
|
+
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; } } }; }
|
|
13
|
+
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; } }
|
|
14
|
+
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; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
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); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
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); } /**
|
|
20
|
+
* Cobo Wallet as a Service 2.0
|
|
21
|
+
*
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The ListCounterpartyEntries200Response model module.
|
|
31
|
+
* @module model/ListCounterpartyEntries200Response
|
|
32
|
+
*/
|
|
33
|
+
var ListCounterpartyEntries200Response = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>ListCounterpartyEntries200Response</code>.
|
|
36
|
+
* @alias module:model/ListCounterpartyEntries200Response
|
|
37
|
+
*/
|
|
38
|
+
function ListCounterpartyEntries200Response() {
|
|
39
|
+
_classCallCheck(this, ListCounterpartyEntries200Response);
|
|
40
|
+
ListCounterpartyEntries200Response.initialize(this);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initializes the fields of this object.
|
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
|
+
* Only for internal use.
|
|
47
|
+
*/
|
|
48
|
+
return _createClass(ListCounterpartyEntries200Response, null, [{
|
|
49
|
+
key: "initialize",
|
|
50
|
+
value: function initialize(obj) {}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Constructs a <code>ListCounterpartyEntries200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
55
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
56
|
+
* @param {module:model/ListCounterpartyEntries200Response} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/ListCounterpartyEntries200Response} The populated <code>ListCounterpartyEntries200Response</code> instance.
|
|
58
|
+
*/
|
|
59
|
+
}, {
|
|
60
|
+
key: "constructFromObject",
|
|
61
|
+
value: function constructFromObject(data, obj) {
|
|
62
|
+
if (data) {
|
|
63
|
+
obj = obj || new ListCounterpartyEntries200Response();
|
|
64
|
+
if (data.hasOwnProperty('wallet_addresses')) {
|
|
65
|
+
obj['wallet_addresses'] = _ApiClient["default"].convertToType(data['wallet_addresses'], [_CounterpartyWalletAddressDetail["default"]]);
|
|
66
|
+
}
|
|
67
|
+
if (data.hasOwnProperty('pagination')) {
|
|
68
|
+
obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return obj;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Validates the JSON data with respect to <code>ListCounterpartyEntries200Response</code>.
|
|
76
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
77
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListCounterpartyEntries200Response</code>.
|
|
78
|
+
*/
|
|
79
|
+
}, {
|
|
80
|
+
key: "validateJSON",
|
|
81
|
+
value: function validateJSON(data) {
|
|
82
|
+
if (data['wallet_addresses']) {
|
|
83
|
+
// data not null
|
|
84
|
+
// ensure the json data is an array
|
|
85
|
+
if (!Array.isArray(data['wallet_addresses'])) {
|
|
86
|
+
throw new Error("Expected the field `wallet_addresses` to be an array in the JSON data but got " + data['wallet_addresses']);
|
|
87
|
+
}
|
|
88
|
+
// validate the optional field `wallet_addresses` (array)
|
|
89
|
+
var _iterator = _createForOfIteratorHelper(data['wallet_addresses']),
|
|
90
|
+
_step;
|
|
91
|
+
try {
|
|
92
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
93
|
+
var item = _step.value;
|
|
94
|
+
_CounterpartyWalletAddressDetail["default"].validateJSON(item);
|
|
95
|
+
}
|
|
96
|
+
} catch (err) {
|
|
97
|
+
_iterator.e(err);
|
|
98
|
+
} finally {
|
|
99
|
+
_iterator.f();
|
|
100
|
+
}
|
|
101
|
+
;
|
|
102
|
+
}
|
|
103
|
+
// validate the optional field `pagination`
|
|
104
|
+
if (data['pagination']) {
|
|
105
|
+
// data not null
|
|
106
|
+
if (!!_Pagination["default"].validateJSON) {
|
|
107
|
+
_Pagination["default"].validateJSON(data['pagination']);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
}]);
|
|
113
|
+
}();
|
|
114
|
+
/**
|
|
115
|
+
* @member {Array.<module:model/CounterpartyWalletAddressDetail>} wallet_addresses
|
|
116
|
+
*/
|
|
117
|
+
ListCounterpartyEntries200Response.prototype['wallet_addresses'] = undefined;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @member {module:model/Pagination} pagination
|
|
121
|
+
*/
|
|
122
|
+
ListCounterpartyEntries200Response.prototype['pagination'] = undefined;
|
|
123
|
+
var _default = exports["default"] = ListCounterpartyEntries200Response;
|
|
@@ -0,0 +1,153 @@
|
|
|
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 _DestinationBankAccountDetail = _interopRequireDefault(require("./DestinationBankAccountDetail"));
|
|
9
|
+
var _DestinationWalletAddressDetail = _interopRequireDefault(require("./DestinationWalletAddressDetail"));
|
|
10
|
+
var _Pagination = _interopRequireDefault(require("./Pagination"));
|
|
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 ListDestinationEntries200Response model module.
|
|
32
|
+
* @module model/ListDestinationEntries200Response
|
|
33
|
+
*/
|
|
34
|
+
var ListDestinationEntries200Response = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>ListDestinationEntries200Response</code>.
|
|
37
|
+
* @alias module:model/ListDestinationEntries200Response
|
|
38
|
+
*/
|
|
39
|
+
function ListDestinationEntries200Response() {
|
|
40
|
+
_classCallCheck(this, ListDestinationEntries200Response);
|
|
41
|
+
ListDestinationEntries200Response.initialize(this);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(ListDestinationEntries200Response, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj) {}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Constructs a <code>ListDestinationEntries200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
+
* @param {module:model/ListDestinationEntries200Response} obj Optional instance to populate.
|
|
58
|
+
* @return {module:model/ListDestinationEntries200Response} The populated <code>ListDestinationEntries200Response</code> instance.
|
|
59
|
+
*/
|
|
60
|
+
}, {
|
|
61
|
+
key: "constructFromObject",
|
|
62
|
+
value: function constructFromObject(data, obj) {
|
|
63
|
+
if (data) {
|
|
64
|
+
obj = obj || new ListDestinationEntries200Response();
|
|
65
|
+
if (data.hasOwnProperty('wallet_addresses')) {
|
|
66
|
+
obj['wallet_addresses'] = _ApiClient["default"].convertToType(data['wallet_addresses'], [_DestinationWalletAddressDetail["default"]]);
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('bank_accounts')) {
|
|
69
|
+
obj['bank_accounts'] = _ApiClient["default"].convertToType(data['bank_accounts'], [_DestinationBankAccountDetail["default"]]);
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('pagination')) {
|
|
72
|
+
obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Validates the JSON data with respect to <code>ListDestinationEntries200Response</code>.
|
|
80
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListDestinationEntries200Response</code>.
|
|
82
|
+
*/
|
|
83
|
+
}, {
|
|
84
|
+
key: "validateJSON",
|
|
85
|
+
value: function validateJSON(data) {
|
|
86
|
+
if (data['wallet_addresses']) {
|
|
87
|
+
// data not null
|
|
88
|
+
// ensure the json data is an array
|
|
89
|
+
if (!Array.isArray(data['wallet_addresses'])) {
|
|
90
|
+
throw new Error("Expected the field `wallet_addresses` to be an array in the JSON data but got " + data['wallet_addresses']);
|
|
91
|
+
}
|
|
92
|
+
// validate the optional field `wallet_addresses` (array)
|
|
93
|
+
var _iterator = _createForOfIteratorHelper(data['wallet_addresses']),
|
|
94
|
+
_step;
|
|
95
|
+
try {
|
|
96
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
97
|
+
var item = _step.value;
|
|
98
|
+
_DestinationWalletAddressDetail["default"].validateJSON(item);
|
|
99
|
+
}
|
|
100
|
+
} catch (err) {
|
|
101
|
+
_iterator.e(err);
|
|
102
|
+
} finally {
|
|
103
|
+
_iterator.f();
|
|
104
|
+
}
|
|
105
|
+
;
|
|
106
|
+
}
|
|
107
|
+
if (data['bank_accounts']) {
|
|
108
|
+
// data not null
|
|
109
|
+
// ensure the json data is an array
|
|
110
|
+
if (!Array.isArray(data['bank_accounts'])) {
|
|
111
|
+
throw new Error("Expected the field `bank_accounts` to be an array in the JSON data but got " + data['bank_accounts']);
|
|
112
|
+
}
|
|
113
|
+
// validate the optional field `bank_accounts` (array)
|
|
114
|
+
var _iterator2 = _createForOfIteratorHelper(data['bank_accounts']),
|
|
115
|
+
_step2;
|
|
116
|
+
try {
|
|
117
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
118
|
+
var _item = _step2.value;
|
|
119
|
+
_DestinationBankAccountDetail["default"].validateJSON(_item);
|
|
120
|
+
}
|
|
121
|
+
} catch (err) {
|
|
122
|
+
_iterator2.e(err);
|
|
123
|
+
} finally {
|
|
124
|
+
_iterator2.f();
|
|
125
|
+
}
|
|
126
|
+
;
|
|
127
|
+
}
|
|
128
|
+
// validate the optional field `pagination`
|
|
129
|
+
if (data['pagination']) {
|
|
130
|
+
// data not null
|
|
131
|
+
if (!!_Pagination["default"].validateJSON) {
|
|
132
|
+
_Pagination["default"].validateJSON(data['pagination']);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
}]);
|
|
138
|
+
}();
|
|
139
|
+
/**
|
|
140
|
+
* @member {Array.<module:model/DestinationWalletAddressDetail>} wallet_addresses
|
|
141
|
+
*/
|
|
142
|
+
ListDestinationEntries200Response.prototype['wallet_addresses'] = undefined;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @member {Array.<module:model/DestinationBankAccountDetail>} bank_accounts
|
|
146
|
+
*/
|
|
147
|
+
ListDestinationEntries200Response.prototype['bank_accounts'] = undefined;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @member {module:model/Pagination} pagination
|
|
151
|
+
*/
|
|
152
|
+
ListDestinationEntries200Response.prototype['pagination'] = undefined;
|
|
153
|
+
var _default = exports["default"] = ListDestinationEntries200Response;
|
|
@@ -0,0 +1,145 @@
|
|
|
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 _KyaScreeningResult = _interopRequireDefault(require("./KyaScreeningResult"));
|
|
9
|
+
var _Pagination = _interopRequireDefault(require("./Pagination"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
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); }
|
|
12
|
+
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; } } }; }
|
|
13
|
+
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; } }
|
|
14
|
+
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; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
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); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
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); } /**
|
|
20
|
+
* Cobo Wallet as a Service 2.0
|
|
21
|
+
*
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The ListKyaScreenings200Response model module.
|
|
31
|
+
* @module model/ListKyaScreenings200Response
|
|
32
|
+
*/
|
|
33
|
+
var ListKyaScreenings200Response = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>ListKyaScreenings200Response</code>.
|
|
36
|
+
* @alias module:model/ListKyaScreenings200Response
|
|
37
|
+
* @param data {Array.<module:model/KyaScreeningResult>}
|
|
38
|
+
* @param pagination {module:model/Pagination}
|
|
39
|
+
*/
|
|
40
|
+
function ListKyaScreenings200Response(data, pagination) {
|
|
41
|
+
_classCallCheck(this, ListKyaScreenings200Response);
|
|
42
|
+
ListKyaScreenings200Response.initialize(this, data, pagination);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(ListKyaScreenings200Response, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, data, pagination) {
|
|
53
|
+
obj['data'] = data;
|
|
54
|
+
obj['pagination'] = pagination;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Constructs a <code>ListKyaScreenings200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
59
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
60
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
61
|
+
* @param {module:model/ListKyaScreenings200Response} obj Optional instance to populate.
|
|
62
|
+
* @return {module:model/ListKyaScreenings200Response} The populated <code>ListKyaScreenings200Response</code> instance.
|
|
63
|
+
*/
|
|
64
|
+
}, {
|
|
65
|
+
key: "constructFromObject",
|
|
66
|
+
value: function constructFromObject(data, obj) {
|
|
67
|
+
if (data) {
|
|
68
|
+
obj = obj || new ListKyaScreenings200Response();
|
|
69
|
+
if (data.hasOwnProperty('data')) {
|
|
70
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_KyaScreeningResult["default"]]);
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('pagination')) {
|
|
73
|
+
obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return obj;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Validates the JSON data with respect to <code>ListKyaScreenings200Response</code>.
|
|
81
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
82
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListKyaScreenings200Response</code>.
|
|
83
|
+
*/
|
|
84
|
+
}, {
|
|
85
|
+
key: "validateJSON",
|
|
86
|
+
value: function validateJSON(data) {
|
|
87
|
+
// check to make sure all required properties are present in the JSON string
|
|
88
|
+
var _iterator = _createForOfIteratorHelper(ListKyaScreenings200Response.RequiredProperties),
|
|
89
|
+
_step;
|
|
90
|
+
try {
|
|
91
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
92
|
+
var property = _step.value;
|
|
93
|
+
if (!data.hasOwnProperty(property)) {
|
|
94
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
} catch (err) {
|
|
98
|
+
_iterator.e(err);
|
|
99
|
+
} finally {
|
|
100
|
+
_iterator.f();
|
|
101
|
+
}
|
|
102
|
+
if (data['data']) {
|
|
103
|
+
// data not null
|
|
104
|
+
// ensure the json data is an array
|
|
105
|
+
if (!Array.isArray(data['data'])) {
|
|
106
|
+
throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
|
|
107
|
+
}
|
|
108
|
+
// validate the optional field `data` (array)
|
|
109
|
+
var _iterator2 = _createForOfIteratorHelper(data['data']),
|
|
110
|
+
_step2;
|
|
111
|
+
try {
|
|
112
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
113
|
+
var item = _step2.value;
|
|
114
|
+
_KyaScreeningResult["default"].validateJSON(item);
|
|
115
|
+
}
|
|
116
|
+
} catch (err) {
|
|
117
|
+
_iterator2.e(err);
|
|
118
|
+
} finally {
|
|
119
|
+
_iterator2.f();
|
|
120
|
+
}
|
|
121
|
+
;
|
|
122
|
+
}
|
|
123
|
+
// validate the optional field `pagination`
|
|
124
|
+
if (data['pagination']) {
|
|
125
|
+
// data not null
|
|
126
|
+
if (!!_Pagination["default"].validateJSON) {
|
|
127
|
+
_Pagination["default"].validateJSON(data['pagination']);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return true;
|
|
131
|
+
}
|
|
132
|
+
}]);
|
|
133
|
+
}();
|
|
134
|
+
ListKyaScreenings200Response.RequiredProperties = ["data", "pagination"];
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @member {Array.<module:model/KyaScreeningResult>} data
|
|
138
|
+
*/
|
|
139
|
+
ListKyaScreenings200Response.prototype['data'] = undefined;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @member {module:model/Pagination} pagination
|
|
143
|
+
*/
|
|
144
|
+
ListKyaScreenings200Response.prototype['pagination'] = undefined;
|
|
145
|
+
var _default = exports["default"] = ListKyaScreenings200Response;
|
|
@@ -38,7 +38,7 @@ var MPCVaultEventData = /*#__PURE__*/function () {
|
|
|
38
38
|
* @alias module:model/MPCVaultEventData
|
|
39
39
|
* @implements module:model/WebhookEventDataType
|
|
40
40
|
* @implements module:model/MPCVault
|
|
41
|
-
* @param data_type {module:model/MPCVaultEventData.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/MPCVaultEventData.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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
42
42
|
*/
|
|
43
43
|
function MPCVaultEventData(data_type) {
|
|
44
44
|
_classCallCheck(this, MPCVaultEventData);
|
|
@@ -164,7 +164,7 @@ var MPCVaultEventData = /*#__PURE__*/function () {
|
|
|
164
164
|
MPCVaultEventData.RequiredProperties = ["data_type"];
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
|
-
* 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.
|
|
167
|
+
* 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
168
168
|
* @member {module:model/MPCVaultEventData.DataTypeEnum} data_type
|
|
169
169
|
*/
|
|
170
170
|
MPCVaultEventData.prototype['data_type'] = undefined;
|
|
@@ -205,7 +205,7 @@ MPCVaultEventData.prototype['created_timestamp'] = undefined;
|
|
|
205
205
|
|
|
206
206
|
// Implement WebhookEventDataType interface:
|
|
207
207
|
/**
|
|
208
|
-
* 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.
|
|
208
|
+
* 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
209
209
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
210
210
|
*/
|
|
211
211
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -335,6 +335,11 @@ MPCVaultEventData['DataTypeEnum'] = {
|
|
|
335
335
|
* @const
|
|
336
336
|
*/
|
|
337
337
|
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
338
|
+
/**
|
|
339
|
+
* value: "ComplianceKyaScreenings"
|
|
340
|
+
* @const
|
|
341
|
+
*/
|
|
342
|
+
"ComplianceKyaScreenings": "ComplianceKyaScreenings",
|
|
338
343
|
/**
|
|
339
344
|
* value: "unknown_default_open_api"
|
|
340
345
|
* @const
|
|
@@ -196,7 +196,7 @@ MerchantBalance.prototype['total_received_amount'] = undefined;
|
|
|
196
196
|
MerchantBalance.prototype['settled_amount'] = undefined;
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
*
|
|
199
|
+
* This field is reserved for future use.
|
|
200
200
|
* @member {String} payout_amount
|
|
201
201
|
*/
|
|
202
202
|
MerchantBalance.prototype['payout_amount'] = undefined;
|
|
@@ -208,19 +208,19 @@ MerchantBalance.prototype['payout_amount'] = undefined;
|
|
|
208
208
|
MerchantBalance.prototype['refunded_amount'] = undefined;
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
|
-
* The current balance of this token available to the merchant for payouts or refunds.
|
|
211
|
+
* The current balance of this token available to the merchant for payouts or refunds. For more information, please refer to [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances)
|
|
212
212
|
* @member {String} total_balance
|
|
213
213
|
*/
|
|
214
214
|
MerchantBalance.prototype['total_balance'] = undefined;
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
|
-
*
|
|
217
|
+
* This field has been deprecated.
|
|
218
218
|
* @member {String} available_balance
|
|
219
219
|
*/
|
|
220
220
|
MerchantBalance.prototype['available_balance'] = undefined;
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
|
-
*
|
|
223
|
+
* This field is reserved for future use.
|
|
224
224
|
* @member {String} locked_balance
|
|
225
225
|
*/
|
|
226
226
|
MerchantBalance.prototype['locked_balance'] = undefined;
|
package/dist/model/Order.js
CHANGED
|
@@ -37,10 +37,10 @@ var Order = /*#__PURE__*/function () {
|
|
|
37
37
|
* @alias module:model/Order
|
|
38
38
|
* @param order_id {String} The order ID.
|
|
39
39
|
* @param psp_order_code {String} A unique reference code assigned by the developer to identify this order in their system.
|
|
40
|
-
* @param fee_amount {String} The developer fee for the order
|
|
40
|
+
* @param fee_amount {String} The developer fee for the order. It is added to the base amount to determine the final charge.
|
|
41
41
|
* @param chain_id {String} The ID of the blockchain network where the payment transaction should be made.
|
|
42
42
|
* @param payable_amount {String} The cryptocurrency amount to be paid for this order.
|
|
43
|
-
* @param exchange_rate {String} The exchange rate between
|
|
43
|
+
* @param exchange_rate {String} The exchange rate between `payable_currency` and `pricing_currency`, calculated as (`pricing_amount` + `fee_amount`) / `payable_amount`. <Note>This field is only returned when `payable_amount` was not provided in the order creation request. </Note>
|
|
44
44
|
* @param receive_address {String} The recipient wallet address to be used for the payment transaction.
|
|
45
45
|
* @param status {module:model/OrderStatus}
|
|
46
46
|
* @param received_token_amount {String} The total cryptocurrency amount received for this order. Updates until the expiration time. Precision matches the token standard (e.g., 6 decimals for USDT).
|
|
@@ -297,19 +297,19 @@ Order.prototype['merchant_order_code'] = undefined;
|
|
|
297
297
|
Order.prototype['psp_order_code'] = undefined;
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
|
-
* The
|
|
300
|
+
* The pricing currency of the order.
|
|
301
301
|
* @member {String} pricing_currency
|
|
302
302
|
*/
|
|
303
303
|
Order.prototype['pricing_currency'] = undefined;
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
|
-
* The base amount of the order
|
|
306
|
+
* The base amount of the order, excluding the developer fee (specified in `fee_amount`).
|
|
307
307
|
* @member {String} pricing_amount
|
|
308
308
|
*/
|
|
309
309
|
Order.prototype['pricing_amount'] = undefined;
|
|
310
310
|
|
|
311
311
|
/**
|
|
312
|
-
* The developer fee for the order
|
|
312
|
+
* The developer fee for the order. It is added to the base amount to determine the final charge.
|
|
313
313
|
* @member {String} fee_amount
|
|
314
314
|
*/
|
|
315
315
|
Order.prototype['fee_amount'] = undefined;
|
|
@@ -333,13 +333,13 @@ Order.prototype['chain_id'] = undefined;
|
|
|
333
333
|
Order.prototype['payable_amount'] = undefined;
|
|
334
334
|
|
|
335
335
|
/**
|
|
336
|
-
* The exchange rate between
|
|
336
|
+
* The exchange rate between `payable_currency` and `pricing_currency`, calculated as (`pricing_amount` + `fee_amount`) / `payable_amount`. <Note>This field is only returned when `payable_amount` was not provided in the order creation request. </Note>
|
|
337
337
|
* @member {String} exchange_rate
|
|
338
338
|
*/
|
|
339
339
|
Order.prototype['exchange_rate'] = undefined;
|
|
340
340
|
|
|
341
341
|
/**
|
|
342
|
-
*
|
|
342
|
+
* The allowed amount deviation, with precision up to 1 decimal place. For example, if `payable_amount` is `100.00` and `amount_tolerance` is `0.50`: - Payer pays 99.55 → Success (difference of 0.45 ≤ 0.5) - Payer pays 99.40 → Underpaid (difference of 0.60 > 0.5)
|
|
343
343
|
* @member {String} amount_tolerance
|
|
344
344
|
*/
|
|
345
345
|
Order.prototype['amount_tolerance'] = undefined;
|
|
@@ -386,19 +386,19 @@ Order.prototype['updated_timestamp'] = undefined;
|
|
|
386
386
|
Order.prototype['transactions'] = undefined;
|
|
387
387
|
|
|
388
388
|
/**
|
|
389
|
-
*
|
|
389
|
+
* This field has been deprecated. Please use `pricing_currency` instead.
|
|
390
390
|
* @member {String} currency
|
|
391
391
|
*/
|
|
392
392
|
Order.prototype['currency'] = undefined;
|
|
393
393
|
|
|
394
394
|
/**
|
|
395
|
-
*
|
|
395
|
+
* This field has been deprecated. Please use `pricing_amount` instead.
|
|
396
396
|
* @member {String} order_amount
|
|
397
397
|
*/
|
|
398
398
|
Order.prototype['order_amount'] = undefined;
|
|
399
399
|
|
|
400
400
|
/**
|
|
401
|
-
*
|
|
401
|
+
* This field has been deprecated. Please use `payable_currency` instead.
|
|
402
402
|
* @member {String} token_id
|
|
403
403
|
*/
|
|
404
404
|
Order.prototype['token_id'] = undefined;
|