@cobo/cobo-waas2 1.26.0 → 1.27.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 +64 -4
- package/dist/ApiClient.js +1 -1
- package/dist/api/DevelopersWebhooksApi.js +2 -2
- package/dist/api/PaymentApi.js +1298 -200
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/index.js +266 -7
- package/dist/model/BankAccountStatus.js +66 -0
- package/dist/model/ContractCallDestination.js +38 -10
- package/dist/model/ContractCallDestinationType.js +5 -0
- package/dist/model/Counterparty.js +195 -0
- package/dist/model/CounterpartyDetail.js +228 -0
- package/dist/model/CounterpartyType.js +61 -0
- package/dist/model/CounterpartyWalletAddressDetail.js +192 -0
- package/dist/model/CreateCounterpartyRequest.js +193 -0
- package/dist/model/CreateCounterpartyWalletAddressRequest.js +140 -0
- package/dist/model/CreateDestinationBankAccount.js +257 -0
- package/dist/model/CreateDestinationBankAccountRequest.js +272 -0
- package/dist/model/CreateDestinationRequest.js +235 -0
- package/dist/model/CreateDestinationWalletAddressRequest.js +140 -0
- package/dist/model/CreateKeyShareHolder.js +1 -1
- package/dist/model/CreatePaymentOrderRequest.js +2 -2
- package/dist/model/CreateSettlement.js +13 -0
- package/dist/model/{ReceivedAmountPerAddress.js → CreateWalletAddress.js} +31 -32
- package/dist/model/DeleteCounterparty200Response.js +110 -0
- package/dist/model/DeleteCounterpartyWalletAddress200Response.js +110 -0
- package/dist/model/DeleteDestination200Response.js +110 -0
- package/dist/model/DeleteDestinationBankAccount200Response.js +110 -0
- package/dist/model/DeleteDestinationWalletAddress200Response.js +110 -0
- package/dist/model/Destination.js +208 -0
- package/dist/model/DestinationBankAccount.js +301 -0
- package/dist/model/DestinationBankAccountDetail.js +394 -0
- package/dist/model/DestinationDetail.js +272 -0
- package/dist/model/DestinationType.js +61 -0
- package/dist/model/DestinationWalletAddressDetail.js +205 -0
- package/dist/model/EnableDestinationWhitelistRequest.js +106 -0
- package/dist/model/EvmContractCallDestination.js +2 -2
- package/dist/model/ExchangeRate.js +140 -0
- package/dist/model/IntermediaryBankInfo.js +140 -0
- package/dist/model/Link.js +4 -4
- package/dist/model/LinkDisplayInfo.js +2 -2
- package/dist/model/ListCounterparties200Response.js +123 -0
- package/dist/model/ListCounterpartyWalletAddress200Response.js +123 -0
- package/dist/model/ListDestinationBankAccounts200Response.js +123 -0
- package/dist/model/ListDestinationWalletAddresses200Response.js +123 -0
- package/dist/model/ListDestinations200Response.js +123 -0
- package/dist/model/PaymentTransaction.js +32 -0
- package/dist/model/PaymentTransactionEventData.js +2 -2
- package/dist/model/QueryDestinationWhitelistEnabled200Response.js +106 -0
- package/dist/model/RefundLinkBusinessInfo.js +6 -6
- package/dist/model/SettlementDetail.js +13 -0
- package/dist/model/SwapActivityTimeline.js +1 -1
- package/dist/model/Transaction.js +1 -1
- package/dist/model/TransactionDestination.js +38 -10
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionDetail.js +2 -2
- package/dist/model/TransactionDetails.js +2 -2
- package/dist/model/TransactionTronContractDestination.js +150 -0
- package/dist/model/TransactionWebhookEventData.js +2 -2
- package/dist/model/TronContractCallDestination.js +150 -0
- package/dist/model/UpdateCounterpartyByIdRequest.js +160 -0
- package/dist/model/UpdateDestinationBankAccount.js +257 -0
- package/dist/model/UpdateDestinationByIdRequest.js +173 -0
- package/dist/model/WalletAddress.js +151 -0
- package/dist/model/WebhookEventData.js +1 -1
- package/docs/BankAccountStatus.md +14 -0
- package/docs/ContractCallDestination.md +2 -2
- package/docs/ContractCallDestinationType.md +2 -0
- package/docs/Counterparty.md +16 -0
- package/docs/CounterpartyDetail.md +17 -0
- package/docs/CounterpartyType.md +12 -0
- package/docs/CounterpartyWalletAddressDetail.md +15 -0
- package/docs/CreateCounterpartyRequest.md +14 -0
- package/docs/CreateCounterpartyWalletAddressRequest.md +11 -0
- package/docs/CreateDestinationBankAccount.md +19 -0
- package/docs/CreateDestinationBankAccountRequest.md +20 -0
- package/docs/CreateDestinationRequest.md +16 -0
- package/docs/CreateDestinationWalletAddressRequest.md +11 -0
- package/docs/CreateKeyShareHolder.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +1 -1
- package/docs/CreateSettlement.md +1 -0
- package/docs/CreateWalletAddress.md +10 -0
- package/docs/DeleteCounterparty200Response.md +9 -0
- package/docs/DeleteCounterpartyWalletAddress200Response.md +9 -0
- package/docs/DeleteDestination200Response.md +9 -0
- package/docs/DeleteDestinationBankAccount200Response.md +9 -0
- package/docs/DeleteDestinationWalletAddress200Response.md +9 -0
- package/docs/Destination.md +17 -0
- package/docs/DestinationBankAccount.md +23 -0
- package/docs/DestinationBankAccountDetail.md +30 -0
- package/docs/DestinationDetail.md +19 -0
- package/docs/DestinationType.md +12 -0
- package/docs/DestinationWalletAddressDetail.md +16 -0
- package/docs/DevelopersWebhooksApi.md +1 -1
- package/docs/EnableDestinationWhitelistRequest.md +9 -0
- package/docs/EvmContractCallDestination.md +1 -1
- package/docs/ExchangeRate.md +11 -0
- package/docs/IntermediaryBankInfo.md +11 -0
- package/docs/Link.md +2 -2
- package/docs/LinkDisplayInfo.md +2 -2
- package/docs/ListCounterparties200Response.md +10 -0
- package/docs/ListCounterpartyWalletAddress200Response.md +10 -0
- package/docs/ListDestinationBankAccounts200Response.md +10 -0
- package/docs/ListDestinationWalletAddresses200Response.md +10 -0
- package/docs/ListDestinations200Response.md +10 -0
- package/docs/PaymentApi.md +1459 -208
- package/docs/PaymentTransaction.md +2 -0
- package/docs/PaymentTransactionEventData.md +1 -1
- package/docs/QueryDestinationWhitelistEnabled200Response.md +9 -0
- package/docs/RefundLinkBusinessInfo.md +4 -4
- package/docs/SettlementDetail.md +1 -0
- package/docs/SwapActivityTimeline.md +1 -1
- package/docs/Transaction.md +1 -1
- package/docs/TransactionDestination.md +2 -2
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionDetail.md +1 -1
- package/docs/TransactionDetails.md +1 -1
- package/docs/TransactionTronContractDestination.md +12 -0
- package/docs/TransactionWebhookEventData.md +1 -1
- package/docs/TransactionsApi.md +1 -1
- package/docs/TronContractCallDestination.md +12 -0
- package/docs/UpdateCounterpartyByIdRequest.md +13 -0
- package/docs/UpdateDestinationBankAccount.md +19 -0
- package/docs/UpdateDestinationByIdRequest.md +14 -0
- package/docs/WalletAddress.md +12 -0
- package/docs/WebhookEventData.md +1 -1
- package/package.json +1 -1
- package/docs/ReceivedAmountPerAddress.md +0 -10
|
@@ -12,6 +12,7 @@ var _SolContractCallDestination = _interopRequireDefault(require("./SolContractC
|
|
|
12
12
|
var _SolContractCallInstruction = _interopRequireDefault(require("./SolContractCallInstruction"));
|
|
13
13
|
var _StellarContractCallContractParam = _interopRequireDefault(require("./StellarContractCallContractParam"));
|
|
14
14
|
var _StellarContractCallDestination = _interopRequireDefault(require("./StellarContractCallDestination"));
|
|
15
|
+
var _TronContractCallDestination = _interopRequireDefault(require("./TronContractCallDestination"));
|
|
15
16
|
var _ContractCallDestination;
|
|
16
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
18
|
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); }
|
|
@@ -38,7 +39,7 @@ var ContractCallDestination = /*#__PURE__*/function () {
|
|
|
38
39
|
/**
|
|
39
40
|
* Constructs a new <code>ContractCallDestination</code>.
|
|
40
41
|
* @alias module:model/ContractCallDestination
|
|
41
|
-
* @param {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination|module:model/StellarContractCallDestination)} instance The actual instance to initialize ContractCallDestination.
|
|
42
|
+
* @param {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination|module:model/StellarContractCallDestination|module:model/TronContractCallDestination)} instance The actual instance to initialize ContractCallDestination.
|
|
42
43
|
*/
|
|
43
44
|
function ContractCallDestination() {
|
|
44
45
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
@@ -71,6 +72,10 @@ var ContractCallDestination = /*#__PURE__*/function () {
|
|
|
71
72
|
this.actualInstance = _StellarContractCallDestination["default"].constructFromObject(instance);
|
|
72
73
|
match++;
|
|
73
74
|
break;
|
|
75
|
+
case "TRON_Contract":
|
|
76
|
+
this.actualInstance = _TronContractCallDestination["default"].constructFromObject(instance);
|
|
77
|
+
match++;
|
|
78
|
+
break;
|
|
74
79
|
default:
|
|
75
80
|
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
76
81
|
break;
|
|
@@ -146,13 +151,36 @@ var ContractCallDestination = /*#__PURE__*/function () {
|
|
|
146
151
|
// json data failed to deserialize into StellarContractCallDestination
|
|
147
152
|
errorMessages.push("Failed to construct StellarContractCallDestination: " + err);
|
|
148
153
|
}
|
|
154
|
+
try {
|
|
155
|
+
if (instance instanceof _TronContractCallDestination["default"]) {
|
|
156
|
+
this.actualInstance = instance;
|
|
157
|
+
} else if (!!_TronContractCallDestination["default"].validateJSON && _TronContractCallDestination["default"].validateJSON(instance)) {
|
|
158
|
+
// plain JS object
|
|
159
|
+
// create TronContractCallDestination from JS object
|
|
160
|
+
this.actualInstance = _TronContractCallDestination["default"].constructFromObject(instance);
|
|
161
|
+
} else {
|
|
162
|
+
if (_TronContractCallDestination["default"].constructFromObject(instance)) {
|
|
163
|
+
if (!!_TronContractCallDestination["default"].constructFromObject(instance).toJSON) {
|
|
164
|
+
if (_TronContractCallDestination["default"].constructFromObject(instance).toJSON()) {
|
|
165
|
+
this.actualInstance = _TronContractCallDestination["default"].constructFromObject(instance);
|
|
166
|
+
}
|
|
167
|
+
} else {
|
|
168
|
+
this.actualInstance = _TronContractCallDestination["default"].constructFromObject(instance);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
match++;
|
|
173
|
+
} catch (err) {
|
|
174
|
+
// json data failed to deserialize into TronContractCallDestination
|
|
175
|
+
errorMessages.push("Failed to construct TronContractCallDestination: " + err);
|
|
176
|
+
}
|
|
149
177
|
|
|
150
178
|
// if (match > 1) {
|
|
151
|
-
// throw new Error("Multiple matches found constructing `ContractCallDestination` with oneOf schemas EvmContractCallDestination, SolContractCallDestination, StellarContractCallDestination. Input: " + JSON.stringify(instance));
|
|
179
|
+
// throw new Error("Multiple matches found constructing `ContractCallDestination` with oneOf schemas EvmContractCallDestination, SolContractCallDestination, StellarContractCallDestination, TronContractCallDestination. Input: " + JSON.stringify(instance));
|
|
152
180
|
// } else
|
|
153
181
|
if (match === 0) {
|
|
154
182
|
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
155
|
-
// throw new Error("No match found constructing `ContractCallDestination` with oneOf schemas EvmContractCallDestination, SolContractCallDestination, StellarContractCallDestination. Details: " +
|
|
183
|
+
// throw new Error("No match found constructing `ContractCallDestination` with oneOf schemas EvmContractCallDestination, SolContractCallDestination, StellarContractCallDestination, TronContractCallDestination. Details: " +
|
|
156
184
|
// errorMessages.join(", "));
|
|
157
185
|
return;
|
|
158
186
|
} else {// only 1 match
|
|
@@ -171,16 +199,16 @@ var ContractCallDestination = /*#__PURE__*/function () {
|
|
|
171
199
|
key: "getActualInstance",
|
|
172
200
|
value:
|
|
173
201
|
/**
|
|
174
|
-
* Gets the actual instance, which can be <code>EvmContractCallDestination</code>, <code>SolContractCallDestination</code>, <code>StellarContractCallDestination</code>.
|
|
175
|
-
* @return {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination|module:model/StellarContractCallDestination)} The actual instance.
|
|
202
|
+
* Gets the actual instance, which can be <code>EvmContractCallDestination</code>, <code>SolContractCallDestination</code>, <code>StellarContractCallDestination</code>, <code>TronContractCallDestination</code>.
|
|
203
|
+
* @return {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination|module:model/StellarContractCallDestination|module:model/TronContractCallDestination)} The actual instance.
|
|
176
204
|
*/
|
|
177
205
|
function getActualInstance() {
|
|
178
206
|
return this.actualInstance;
|
|
179
207
|
}
|
|
180
208
|
|
|
181
209
|
/**
|
|
182
|
-
* Sets the actual instance, which can be <code>EvmContractCallDestination</code>, <code>SolContractCallDestination</code>, <code>StellarContractCallDestination</code>.
|
|
183
|
-
* @param {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination|module:model/StellarContractCallDestination)} obj The actual instance.
|
|
210
|
+
* Sets the actual instance, which can be <code>EvmContractCallDestination</code>, <code>SolContractCallDestination</code>, <code>StellarContractCallDestination</code>, <code>TronContractCallDestination</code>.
|
|
211
|
+
* @param {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination|module:model/StellarContractCallDestination|module:model/TronContractCallDestination)} obj The actual instance.
|
|
184
212
|
*/
|
|
185
213
|
}, {
|
|
186
214
|
key: "setActualInstance",
|
|
@@ -215,13 +243,13 @@ ContractCallDestination.prototype['destination_type'] = undefined;
|
|
|
215
243
|
ContractCallDestination.prototype['address'] = undefined;
|
|
216
244
|
|
|
217
245
|
/**
|
|
218
|
-
* The transfer amount. For example, if you trade 1.5
|
|
246
|
+
* The transfer amount. For example, if you trade 1.5 TRX, then the value is `1.5`.
|
|
219
247
|
* @member {String} value
|
|
220
248
|
*/
|
|
221
249
|
ContractCallDestination.prototype['value'] = undefined;
|
|
222
250
|
|
|
223
251
|
/**
|
|
224
|
-
* The data used to invoke a specific function or method within the specified contract at the destination address
|
|
252
|
+
* The data that is used to invoke a specific function or method within the specified contract at the destination address.
|
|
225
253
|
* @member {String} calldata
|
|
226
254
|
*/
|
|
227
255
|
ContractCallDestination.prototype['calldata'] = undefined;
|
|
@@ -240,5 +268,5 @@ ContractCallDestination.prototype['address_lookup_table_accounts'] = undefined;
|
|
|
240
268
|
* @member {module:model/StellarContractCallContractParam} contract_param
|
|
241
269
|
*/
|
|
242
270
|
ContractCallDestination.prototype['contract_param'] = undefined;
|
|
243
|
-
ContractCallDestination.OneOf = ["EvmContractCallDestination", "SolContractCallDestination", "StellarContractCallDestination"];
|
|
271
|
+
ContractCallDestination.OneOf = ["EvmContractCallDestination", "SolContractCallDestination", "StellarContractCallDestination", "TronContractCallDestination"];
|
|
244
272
|
var _default = exports["default"] = ContractCallDestination;
|
|
@@ -45,6 +45,11 @@ var ContractCallDestinationType = exports["default"] = /*#__PURE__*/function ()
|
|
|
45
45
|
* @const
|
|
46
46
|
*/
|
|
47
47
|
_defineProperty(this, "STELLAR_Contract", "STELLAR_Contract");
|
|
48
|
+
/**
|
|
49
|
+
* value: "TRON_Contract"
|
|
50
|
+
* @const
|
|
51
|
+
*/
|
|
52
|
+
_defineProperty(this, "TRON_Contract", "TRON_Contract");
|
|
48
53
|
/**
|
|
49
54
|
* value: "unknown_default_open_api"
|
|
50
55
|
* @const
|
|
@@ -0,0 +1,195 @@
|
|
|
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 _CounterpartyType = _interopRequireDefault(require("./CounterpartyType"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* Cobo Wallet as a Service 2.0
|
|
20
|
+
*
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The Counterparty model module.
|
|
30
|
+
* @module model/Counterparty
|
|
31
|
+
*/
|
|
32
|
+
var Counterparty = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>Counterparty</code>.
|
|
35
|
+
* @alias module:model/Counterparty
|
|
36
|
+
* @param counterparty_type {module:model/CounterpartyType}
|
|
37
|
+
* @param counterparty_name {String} The counterparty name.
|
|
38
|
+
* @param created_timestamp {Number} The created time of the counterparty, represented as a UNIX timestamp in seconds.
|
|
39
|
+
* @param updated_timestamp {Number} The updated time of the counterparty, represented as a UNIX timestamp in seconds.
|
|
40
|
+
*/
|
|
41
|
+
function Counterparty(counterparty_type, counterparty_name, created_timestamp, updated_timestamp) {
|
|
42
|
+
_classCallCheck(this, Counterparty);
|
|
43
|
+
Counterparty.initialize(this, counterparty_type, counterparty_name, created_timestamp, updated_timestamp);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(Counterparty, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, counterparty_type, counterparty_name, created_timestamp, updated_timestamp) {
|
|
54
|
+
obj['counterparty_type'] = counterparty_type;
|
|
55
|
+
obj['counterparty_name'] = counterparty_name;
|
|
56
|
+
obj['created_timestamp'] = created_timestamp;
|
|
57
|
+
obj['updated_timestamp'] = updated_timestamp;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Constructs a <code>Counterparty</code> from a plain JavaScript object, optionally creating a new instance.
|
|
62
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
63
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
64
|
+
* @param {module:model/Counterparty} obj Optional instance to populate.
|
|
65
|
+
* @return {module:model/Counterparty} The populated <code>Counterparty</code> instance.
|
|
66
|
+
*/
|
|
67
|
+
}, {
|
|
68
|
+
key: "constructFromObject",
|
|
69
|
+
value: function constructFromObject(data, obj) {
|
|
70
|
+
if (data) {
|
|
71
|
+
obj = obj || new Counterparty();
|
|
72
|
+
if (data.hasOwnProperty('counterparty_id')) {
|
|
73
|
+
obj['counterparty_id'] = _ApiClient["default"].convertToType(data['counterparty_id'], 'String');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('counterparty_type')) {
|
|
76
|
+
obj['counterparty_type'] = _CounterpartyType["default"].constructFromObject(data['counterparty_type']);
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('counterparty_name')) {
|
|
79
|
+
obj['counterparty_name'] = _ApiClient["default"].convertToType(data['counterparty_name'], 'String');
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('country')) {
|
|
82
|
+
obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String');
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('email')) {
|
|
85
|
+
obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
|
|
86
|
+
}
|
|
87
|
+
if (data.hasOwnProperty('contact_address')) {
|
|
88
|
+
obj['contact_address'] = _ApiClient["default"].convertToType(data['contact_address'], 'String');
|
|
89
|
+
}
|
|
90
|
+
if (data.hasOwnProperty('created_timestamp')) {
|
|
91
|
+
obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
|
|
92
|
+
}
|
|
93
|
+
if (data.hasOwnProperty('updated_timestamp')) {
|
|
94
|
+
obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return obj;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Validates the JSON data with respect to <code>Counterparty</code>.
|
|
102
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
103
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Counterparty</code>.
|
|
104
|
+
*/
|
|
105
|
+
}, {
|
|
106
|
+
key: "validateJSON",
|
|
107
|
+
value: function validateJSON(data) {
|
|
108
|
+
// check to make sure all required properties are present in the JSON string
|
|
109
|
+
var _iterator = _createForOfIteratorHelper(Counterparty.RequiredProperties),
|
|
110
|
+
_step;
|
|
111
|
+
try {
|
|
112
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
113
|
+
var property = _step.value;
|
|
114
|
+
if (!data.hasOwnProperty(property)) {
|
|
115
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
// ensure the json data is a string
|
|
119
|
+
} catch (err) {
|
|
120
|
+
_iterator.e(err);
|
|
121
|
+
} finally {
|
|
122
|
+
_iterator.f();
|
|
123
|
+
}
|
|
124
|
+
if (data['counterparty_id'] && !(typeof data['counterparty_id'] === 'string' || data['counterparty_id'] instanceof String)) {
|
|
125
|
+
throw new Error("Expected the field `counterparty_id` to be a primitive type in the JSON string but got " + data['counterparty_id']);
|
|
126
|
+
}
|
|
127
|
+
// ensure the json data is a string
|
|
128
|
+
if (data['counterparty_name'] && !(typeof data['counterparty_name'] === 'string' || data['counterparty_name'] instanceof String)) {
|
|
129
|
+
throw new Error("Expected the field `counterparty_name` to be a primitive type in the JSON string but got " + data['counterparty_name']);
|
|
130
|
+
}
|
|
131
|
+
// ensure the json data is a string
|
|
132
|
+
if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) {
|
|
133
|
+
throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']);
|
|
134
|
+
}
|
|
135
|
+
// ensure the json data is a string
|
|
136
|
+
if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
|
|
137
|
+
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
|
|
138
|
+
}
|
|
139
|
+
// ensure the json data is a string
|
|
140
|
+
if (data['contact_address'] && !(typeof data['contact_address'] === 'string' || data['contact_address'] instanceof String)) {
|
|
141
|
+
throw new Error("Expected the field `contact_address` to be a primitive type in the JSON string but got " + data['contact_address']);
|
|
142
|
+
}
|
|
143
|
+
return true;
|
|
144
|
+
}
|
|
145
|
+
}]);
|
|
146
|
+
}();
|
|
147
|
+
Counterparty.RequiredProperties = ["counterparty_type", "counterparty_name", "created_timestamp", "updated_timestamp"];
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The counterparty ID.
|
|
151
|
+
* @member {String} counterparty_id
|
|
152
|
+
*/
|
|
153
|
+
Counterparty.prototype['counterparty_id'] = undefined;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @member {module:model/CounterpartyType} counterparty_type
|
|
157
|
+
*/
|
|
158
|
+
Counterparty.prototype['counterparty_type'] = undefined;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The counterparty name.
|
|
162
|
+
* @member {String} counterparty_name
|
|
163
|
+
*/
|
|
164
|
+
Counterparty.prototype['counterparty_name'] = undefined;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* The country of the counterparty, in ISO 3166-1 alpha-3 format.
|
|
168
|
+
* @member {String} country
|
|
169
|
+
*/
|
|
170
|
+
Counterparty.prototype['country'] = undefined;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The email of the counterparty.
|
|
174
|
+
* @member {String} email
|
|
175
|
+
*/
|
|
176
|
+
Counterparty.prototype['email'] = undefined;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* The contact address of the counterparty.
|
|
180
|
+
* @member {String} contact_address
|
|
181
|
+
*/
|
|
182
|
+
Counterparty.prototype['contact_address'] = undefined;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The created time of the counterparty, represented as a UNIX timestamp in seconds.
|
|
186
|
+
* @member {Number} created_timestamp
|
|
187
|
+
*/
|
|
188
|
+
Counterparty.prototype['created_timestamp'] = undefined;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The updated time of the counterparty, represented as a UNIX timestamp in seconds.
|
|
192
|
+
* @member {Number} updated_timestamp
|
|
193
|
+
*/
|
|
194
|
+
Counterparty.prototype['updated_timestamp'] = undefined;
|
|
195
|
+
var _default = exports["default"] = Counterparty;
|
|
@@ -0,0 +1,228 @@
|
|
|
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 _CounterpartyType = _interopRequireDefault(require("./CounterpartyType"));
|
|
9
|
+
var _WalletAddress = _interopRequireDefault(require("./WalletAddress"));
|
|
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 CounterpartyDetail model module.
|
|
31
|
+
* @module model/CounterpartyDetail
|
|
32
|
+
*/
|
|
33
|
+
var CounterpartyDetail = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>CounterpartyDetail</code>.
|
|
36
|
+
* @alias module:model/CounterpartyDetail
|
|
37
|
+
* @param counterparty_type {module:model/CounterpartyType}
|
|
38
|
+
* @param counterparty_name {String} The counterparty name.
|
|
39
|
+
* @param wallet_addresses {Array.<module:model/WalletAddress>} The wallet addresses of the counterparty.
|
|
40
|
+
* @param created_timestamp {Number} The created time of the counterparty, represented as a UNIX timestamp in seconds.
|
|
41
|
+
* @param updated_timestamp {Number} The updated time of the counterparty, represented as a UNIX timestamp in seconds.
|
|
42
|
+
*/
|
|
43
|
+
function CounterpartyDetail(counterparty_type, counterparty_name, wallet_addresses, created_timestamp, updated_timestamp) {
|
|
44
|
+
_classCallCheck(this, CounterpartyDetail);
|
|
45
|
+
CounterpartyDetail.initialize(this, counterparty_type, counterparty_name, wallet_addresses, created_timestamp, updated_timestamp);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Initializes the fields of this object.
|
|
50
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
51
|
+
* Only for internal use.
|
|
52
|
+
*/
|
|
53
|
+
return _createClass(CounterpartyDetail, null, [{
|
|
54
|
+
key: "initialize",
|
|
55
|
+
value: function initialize(obj, counterparty_type, counterparty_name, wallet_addresses, created_timestamp, updated_timestamp) {
|
|
56
|
+
obj['counterparty_type'] = counterparty_type;
|
|
57
|
+
obj['counterparty_name'] = counterparty_name;
|
|
58
|
+
obj['wallet_addresses'] = wallet_addresses;
|
|
59
|
+
obj['created_timestamp'] = created_timestamp;
|
|
60
|
+
obj['updated_timestamp'] = updated_timestamp;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Constructs a <code>CounterpartyDetail</code> from a plain JavaScript object, optionally creating a new instance.
|
|
65
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
66
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
67
|
+
* @param {module:model/CounterpartyDetail} obj Optional instance to populate.
|
|
68
|
+
* @return {module:model/CounterpartyDetail} The populated <code>CounterpartyDetail</code> instance.
|
|
69
|
+
*/
|
|
70
|
+
}, {
|
|
71
|
+
key: "constructFromObject",
|
|
72
|
+
value: function constructFromObject(data, obj) {
|
|
73
|
+
if (data) {
|
|
74
|
+
obj = obj || new CounterpartyDetail();
|
|
75
|
+
if (data.hasOwnProperty('counterparty_id')) {
|
|
76
|
+
obj['counterparty_id'] = _ApiClient["default"].convertToType(data['counterparty_id'], 'String');
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('counterparty_type')) {
|
|
79
|
+
obj['counterparty_type'] = _CounterpartyType["default"].constructFromObject(data['counterparty_type']);
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('counterparty_name')) {
|
|
82
|
+
obj['counterparty_name'] = _ApiClient["default"].convertToType(data['counterparty_name'], 'String');
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('country')) {
|
|
85
|
+
obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String');
|
|
86
|
+
}
|
|
87
|
+
if (data.hasOwnProperty('email')) {
|
|
88
|
+
obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
|
|
89
|
+
}
|
|
90
|
+
if (data.hasOwnProperty('contact_address')) {
|
|
91
|
+
obj['contact_address'] = _ApiClient["default"].convertToType(data['contact_address'], 'String');
|
|
92
|
+
}
|
|
93
|
+
if (data.hasOwnProperty('wallet_addresses')) {
|
|
94
|
+
obj['wallet_addresses'] = _ApiClient["default"].convertToType(data['wallet_addresses'], [_WalletAddress["default"]]);
|
|
95
|
+
}
|
|
96
|
+
if (data.hasOwnProperty('created_timestamp')) {
|
|
97
|
+
obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
|
|
98
|
+
}
|
|
99
|
+
if (data.hasOwnProperty('updated_timestamp')) {
|
|
100
|
+
obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return obj;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Validates the JSON data with respect to <code>CounterpartyDetail</code>.
|
|
108
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
109
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CounterpartyDetail</code>.
|
|
110
|
+
*/
|
|
111
|
+
}, {
|
|
112
|
+
key: "validateJSON",
|
|
113
|
+
value: function validateJSON(data) {
|
|
114
|
+
// check to make sure all required properties are present in the JSON string
|
|
115
|
+
var _iterator = _createForOfIteratorHelper(CounterpartyDetail.RequiredProperties),
|
|
116
|
+
_step;
|
|
117
|
+
try {
|
|
118
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
119
|
+
var property = _step.value;
|
|
120
|
+
if (!data.hasOwnProperty(property)) {
|
|
121
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
// ensure the json data is a string
|
|
125
|
+
} catch (err) {
|
|
126
|
+
_iterator.e(err);
|
|
127
|
+
} finally {
|
|
128
|
+
_iterator.f();
|
|
129
|
+
}
|
|
130
|
+
if (data['counterparty_id'] && !(typeof data['counterparty_id'] === 'string' || data['counterparty_id'] instanceof String)) {
|
|
131
|
+
throw new Error("Expected the field `counterparty_id` to be a primitive type in the JSON string but got " + data['counterparty_id']);
|
|
132
|
+
}
|
|
133
|
+
// ensure the json data is a string
|
|
134
|
+
if (data['counterparty_name'] && !(typeof data['counterparty_name'] === 'string' || data['counterparty_name'] instanceof String)) {
|
|
135
|
+
throw new Error("Expected the field `counterparty_name` to be a primitive type in the JSON string but got " + data['counterparty_name']);
|
|
136
|
+
}
|
|
137
|
+
// ensure the json data is a string
|
|
138
|
+
if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) {
|
|
139
|
+
throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']);
|
|
140
|
+
}
|
|
141
|
+
// ensure the json data is a string
|
|
142
|
+
if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
|
|
143
|
+
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
|
|
144
|
+
}
|
|
145
|
+
// ensure the json data is a string
|
|
146
|
+
if (data['contact_address'] && !(typeof data['contact_address'] === 'string' || data['contact_address'] instanceof String)) {
|
|
147
|
+
throw new Error("Expected the field `contact_address` to be a primitive type in the JSON string but got " + data['contact_address']);
|
|
148
|
+
}
|
|
149
|
+
if (data['wallet_addresses']) {
|
|
150
|
+
// data not null
|
|
151
|
+
// ensure the json data is an array
|
|
152
|
+
if (!Array.isArray(data['wallet_addresses'])) {
|
|
153
|
+
throw new Error("Expected the field `wallet_addresses` to be an array in the JSON data but got " + data['wallet_addresses']);
|
|
154
|
+
}
|
|
155
|
+
// validate the optional field `wallet_addresses` (array)
|
|
156
|
+
var _iterator2 = _createForOfIteratorHelper(data['wallet_addresses']),
|
|
157
|
+
_step2;
|
|
158
|
+
try {
|
|
159
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
160
|
+
var item = _step2.value;
|
|
161
|
+
_WalletAddress["default"].validateJSON(item);
|
|
162
|
+
}
|
|
163
|
+
} catch (err) {
|
|
164
|
+
_iterator2.e(err);
|
|
165
|
+
} finally {
|
|
166
|
+
_iterator2.f();
|
|
167
|
+
}
|
|
168
|
+
;
|
|
169
|
+
}
|
|
170
|
+
return true;
|
|
171
|
+
}
|
|
172
|
+
}]);
|
|
173
|
+
}();
|
|
174
|
+
CounterpartyDetail.RequiredProperties = ["counterparty_type", "counterparty_name", "wallet_addresses", "created_timestamp", "updated_timestamp"];
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* The counterparty ID.
|
|
178
|
+
* @member {String} counterparty_id
|
|
179
|
+
*/
|
|
180
|
+
CounterpartyDetail.prototype['counterparty_id'] = undefined;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @member {module:model/CounterpartyType} counterparty_type
|
|
184
|
+
*/
|
|
185
|
+
CounterpartyDetail.prototype['counterparty_type'] = undefined;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* The counterparty name.
|
|
189
|
+
* @member {String} counterparty_name
|
|
190
|
+
*/
|
|
191
|
+
CounterpartyDetail.prototype['counterparty_name'] = undefined;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* The country of the counterparty, in ISO 3166-1 alpha-3 format.
|
|
195
|
+
* @member {String} country
|
|
196
|
+
*/
|
|
197
|
+
CounterpartyDetail.prototype['country'] = undefined;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* The email of the counterparty.
|
|
201
|
+
* @member {String} email
|
|
202
|
+
*/
|
|
203
|
+
CounterpartyDetail.prototype['email'] = undefined;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The contact address of the counterparty.
|
|
207
|
+
* @member {String} contact_address
|
|
208
|
+
*/
|
|
209
|
+
CounterpartyDetail.prototype['contact_address'] = undefined;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* The wallet addresses of the counterparty.
|
|
213
|
+
* @member {Array.<module:model/WalletAddress>} wallet_addresses
|
|
214
|
+
*/
|
|
215
|
+
CounterpartyDetail.prototype['wallet_addresses'] = undefined;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* The created time of the counterparty, represented as a UNIX timestamp in seconds.
|
|
219
|
+
* @member {Number} created_timestamp
|
|
220
|
+
*/
|
|
221
|
+
CounterpartyDetail.prototype['created_timestamp'] = undefined;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* The updated time of the counterparty, represented as a UNIX timestamp in seconds.
|
|
225
|
+
* @member {Number} updated_timestamp
|
|
226
|
+
*/
|
|
227
|
+
CounterpartyDetail.prototype['updated_timestamp'] = undefined;
|
|
228
|
+
var _default = exports["default"] = CounterpartyDetail;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
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); } /**
|
|
16
|
+
* Cobo Wallet as a Service 2.0
|
|
17
|
+
*
|
|
18
|
+
* Contact: help@cobo.com
|
|
19
|
+
*
|
|
20
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
21
|
+
* https://openapi-generator.tech
|
|
22
|
+
* Do not edit the class manually.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* Enum class CounterpartyType.
|
|
27
|
+
* @enum {}
|
|
28
|
+
* @readonly
|
|
29
|
+
*/
|
|
30
|
+
var CounterpartyType = exports["default"] = /*#__PURE__*/function () {
|
|
31
|
+
function CounterpartyType() {
|
|
32
|
+
_classCallCheck(this, CounterpartyType);
|
|
33
|
+
/**
|
|
34
|
+
* value: "Individual"
|
|
35
|
+
* @const
|
|
36
|
+
*/
|
|
37
|
+
_defineProperty(this, "Individual", "Individual");
|
|
38
|
+
/**
|
|
39
|
+
* value: "Organization"
|
|
40
|
+
* @const
|
|
41
|
+
*/
|
|
42
|
+
_defineProperty(this, "Organization", "Organization");
|
|
43
|
+
/**
|
|
44
|
+
* value: "unknown_default_open_api"
|
|
45
|
+
* @const
|
|
46
|
+
*/
|
|
47
|
+
_defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
|
|
48
|
+
}
|
|
49
|
+
return _createClass(CounterpartyType, null, [{
|
|
50
|
+
key: "constructFromObject",
|
|
51
|
+
value:
|
|
52
|
+
/**
|
|
53
|
+
* Returns a <code>CounterpartyType</code> enum value from a Javascript object name.
|
|
54
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
55
|
+
* @return {module:model/CounterpartyType} The enum <code>CounterpartyType</code> value.
|
|
56
|
+
*/
|
|
57
|
+
function constructFromObject(object) {
|
|
58
|
+
return object;
|
|
59
|
+
}
|
|
60
|
+
}]);
|
|
61
|
+
}();
|