@cobo/cobo-waas2 1.30.0 → 1.31.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.
Files changed (70) hide show
  1. package/README.md +5 -36
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/PaymentApi.js +39 -931
  4. package/dist/index.js +21 -105
  5. package/dist/model/Balance.js +14 -0
  6. package/dist/model/BridgingFee.js +9 -0
  7. package/dist/model/ContractCallParams.js +16 -0
  8. package/dist/model/CreatePaymentOrderRequest.js +4 -3
  9. package/dist/model/CreateTopUpAddresses.js +2 -2
  10. package/dist/model/CreateWalletAddress.js +2 -2
  11. package/dist/model/PaymentBridgeStatus.js +61 -0
  12. package/dist/model/PaymentBulkSendItem.js +9 -9
  13. package/dist/model/PaymentPayout.js +35 -4
  14. package/dist/model/PaymentPayoutDetail.js +49 -13
  15. package/dist/model/PaymentPayoutEvent.js +49 -13
  16. package/dist/model/PreCheck.js +89 -0
  17. package/dist/model/SkipCheckType.js +56 -0
  18. package/dist/model/SupportedToken.js +17 -17
  19. package/dist/model/TransferParams.js +16 -0
  20. package/dist/model/WebhookEventData.js +6 -0
  21. package/dist/model/WebhookEventType.js +15 -0
  22. package/docs/Balance.md +1 -0
  23. package/docs/BridgingFee.md +1 -0
  24. package/docs/ContractCallParams.md +1 -0
  25. package/docs/CreatePaymentOrderRequest.md +2 -2
  26. package/docs/CreateTopUpAddresses.md +1 -1
  27. package/docs/CreateWalletAddress.md +1 -1
  28. package/docs/PaymentApi.md +117 -1138
  29. package/docs/PaymentBridgeStatus.md +12 -0
  30. package/docs/PaymentBulkSendItem.md +5 -5
  31. package/docs/PaymentPayout.md +2 -1
  32. package/docs/PaymentPayoutDetail.md +2 -1
  33. package/docs/PaymentPayoutEvent.md +2 -1
  34. package/docs/PreCheck.md +9 -0
  35. package/docs/SkipCheckType.md +10 -0
  36. package/docs/SupportedToken.md +10 -10
  37. package/docs/TransferParams.md +1 -0
  38. package/docs/WebhookEventData.md +1 -0
  39. package/docs/WebhookEventType.md +6 -0
  40. package/package.json +1 -1
  41. package/dist/model/CreateCounterpartyWalletAddressRequest.js +0 -140
  42. package/dist/model/CreateDestinationBankAccountRequest.js +0 -272
  43. package/dist/model/CreateDestinationWalletAddressRequest.js +0 -140
  44. package/dist/model/DeleteCounterparty200Response.js +0 -110
  45. package/dist/model/DeleteCounterpartyWalletAddress200Response.js +0 -110
  46. package/dist/model/DeleteDestination200Response.js +0 -110
  47. package/dist/model/DeleteDestinationBankAccount200Response.js +0 -110
  48. package/dist/model/DeleteDestinationWalletAddress200Response.js +0 -110
  49. package/dist/model/EnableDestinationWhitelistRequest.js +0 -106
  50. package/dist/model/ListCounterpartyWalletAddress200Response.js +0 -123
  51. package/dist/model/ListDestinationBankAccounts200Response.js +0 -123
  52. package/dist/model/ListDestinationWalletAddresses200Response.js +0 -123
  53. package/dist/model/QueryDestinationWhitelistEnabled200Response.js +0 -106
  54. package/dist/model/UpdateCounterpartyByIdRequest.js +0 -160
  55. package/dist/model/UpdateDestinationByIdRequest.js +0 -173
  56. package/docs/CreateCounterpartyWalletAddressRequest.md +0 -11
  57. package/docs/CreateDestinationBankAccountRequest.md +0 -20
  58. package/docs/CreateDestinationWalletAddressRequest.md +0 -11
  59. package/docs/DeleteCounterparty200Response.md +0 -9
  60. package/docs/DeleteCounterpartyWalletAddress200Response.md +0 -9
  61. package/docs/DeleteDestination200Response.md +0 -9
  62. package/docs/DeleteDestinationBankAccount200Response.md +0 -9
  63. package/docs/DeleteDestinationWalletAddress200Response.md +0 -9
  64. package/docs/EnableDestinationWhitelistRequest.md +0 -9
  65. package/docs/ListCounterpartyWalletAddress200Response.md +0 -10
  66. package/docs/ListDestinationBankAccounts200Response.md +0 -10
  67. package/docs/ListDestinationWalletAddresses200Response.md +0 -10
  68. package/docs/QueryDestinationWhitelistEnabled200Response.md +0 -9
  69. package/docs/UpdateCounterpartyByIdRequest.md +0 -13
  70. package/docs/UpdateDestinationByIdRequest.md +0 -14
@@ -1,110 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
- * Cobo Wallet as a Service 2.0
19
- *
20
- * Contact: help@cobo.com
21
- *
22
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
- * https://openapi-generator.tech
24
- * Do not edit the class manually.
25
- *
26
- */
27
- /**
28
- * The DeleteDestinationWalletAddress200Response model module.
29
- * @module model/DeleteDestinationWalletAddress200Response
30
- */
31
- var DeleteDestinationWalletAddress200Response = /*#__PURE__*/function () {
32
- /**
33
- * Constructs a new <code>DeleteDestinationWalletAddress200Response</code>.
34
- * @alias module:model/DeleteDestinationWalletAddress200Response
35
- * @param wallet_address_id {String} The wallet address ID under the destination.
36
- */
37
- function DeleteDestinationWalletAddress200Response(wallet_address_id) {
38
- _classCallCheck(this, DeleteDestinationWalletAddress200Response);
39
- DeleteDestinationWalletAddress200Response.initialize(this, wallet_address_id);
40
- }
41
-
42
- /**
43
- * Initializes the fields of this object.
44
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
- * Only for internal use.
46
- */
47
- return _createClass(DeleteDestinationWalletAddress200Response, null, [{
48
- key: "initialize",
49
- value: function initialize(obj, wallet_address_id) {
50
- obj['wallet_address_id'] = wallet_address_id;
51
- }
52
-
53
- /**
54
- * Constructs a <code>DeleteDestinationWalletAddress200Response</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/DeleteDestinationWalletAddress200Response} obj Optional instance to populate.
58
- * @return {module:model/DeleteDestinationWalletAddress200Response} The populated <code>DeleteDestinationWalletAddress200Response</code> instance.
59
- */
60
- }, {
61
- key: "constructFromObject",
62
- value: function constructFromObject(data, obj) {
63
- if (data) {
64
- obj = obj || new DeleteDestinationWalletAddress200Response();
65
- if (data.hasOwnProperty('wallet_address_id')) {
66
- obj['wallet_address_id'] = _ApiClient["default"].convertToType(data['wallet_address_id'], 'String');
67
- }
68
- }
69
- return obj;
70
- }
71
-
72
- /**
73
- * Validates the JSON data with respect to <code>DeleteDestinationWalletAddress200Response</code>.
74
- * @param {Object} data The plain JavaScript object bearing properties of interest.
75
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>DeleteDestinationWalletAddress200Response</code>.
76
- */
77
- }, {
78
- key: "validateJSON",
79
- value: function validateJSON(data) {
80
- // check to make sure all required properties are present in the JSON string
81
- var _iterator = _createForOfIteratorHelper(DeleteDestinationWalletAddress200Response.RequiredProperties),
82
- _step;
83
- try {
84
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
85
- var property = _step.value;
86
- if (!data.hasOwnProperty(property)) {
87
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
88
- }
89
- }
90
- // ensure the json data is a string
91
- } catch (err) {
92
- _iterator.e(err);
93
- } finally {
94
- _iterator.f();
95
- }
96
- if (data['wallet_address_id'] && !(typeof data['wallet_address_id'] === 'string' || data['wallet_address_id'] instanceof String)) {
97
- throw new Error("Expected the field `wallet_address_id` to be a primitive type in the JSON string but got " + data['wallet_address_id']);
98
- }
99
- return true;
100
- }
101
- }]);
102
- }();
103
- DeleteDestinationWalletAddress200Response.RequiredProperties = ["wallet_address_id"];
104
-
105
- /**
106
- * The wallet address ID under the destination.
107
- * @member {String} wallet_address_id
108
- */
109
- DeleteDestinationWalletAddress200Response.prototype['wallet_address_id'] = undefined;
110
- var _default = exports["default"] = DeleteDestinationWalletAddress200Response;
@@ -1,106 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
- * Cobo Wallet as a Service 2.0
19
- *
20
- * Contact: help@cobo.com
21
- *
22
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
- * https://openapi-generator.tech
24
- * Do not edit the class manually.
25
- *
26
- */
27
- /**
28
- * The EnableDestinationWhitelistRequest model module.
29
- * @module model/EnableDestinationWhitelistRequest
30
- */
31
- var EnableDestinationWhitelistRequest = /*#__PURE__*/function () {
32
- /**
33
- * Constructs a new <code>EnableDestinationWhitelistRequest</code>.
34
- * @alias module:model/EnableDestinationWhitelistRequest
35
- * @param enable_destination_whitelist {Boolean} Indicates whether to enable the destination whitelist.
36
- */
37
- function EnableDestinationWhitelistRequest(enable_destination_whitelist) {
38
- _classCallCheck(this, EnableDestinationWhitelistRequest);
39
- EnableDestinationWhitelistRequest.initialize(this, enable_destination_whitelist);
40
- }
41
-
42
- /**
43
- * Initializes the fields of this object.
44
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
- * Only for internal use.
46
- */
47
- return _createClass(EnableDestinationWhitelistRequest, null, [{
48
- key: "initialize",
49
- value: function initialize(obj, enable_destination_whitelist) {
50
- obj['enable_destination_whitelist'] = enable_destination_whitelist;
51
- }
52
-
53
- /**
54
- * Constructs a <code>EnableDestinationWhitelistRequest</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/EnableDestinationWhitelistRequest} obj Optional instance to populate.
58
- * @return {module:model/EnableDestinationWhitelistRequest} The populated <code>EnableDestinationWhitelistRequest</code> instance.
59
- */
60
- }, {
61
- key: "constructFromObject",
62
- value: function constructFromObject(data, obj) {
63
- if (data) {
64
- obj = obj || new EnableDestinationWhitelistRequest();
65
- if (data.hasOwnProperty('enable_destination_whitelist')) {
66
- obj['enable_destination_whitelist'] = _ApiClient["default"].convertToType(data['enable_destination_whitelist'], 'Boolean');
67
- }
68
- }
69
- return obj;
70
- }
71
-
72
- /**
73
- * Validates the JSON data with respect to <code>EnableDestinationWhitelistRequest</code>.
74
- * @param {Object} data The plain JavaScript object bearing properties of interest.
75
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>EnableDestinationWhitelistRequest</code>.
76
- */
77
- }, {
78
- key: "validateJSON",
79
- value: function validateJSON(data) {
80
- // check to make sure all required properties are present in the JSON string
81
- var _iterator = _createForOfIteratorHelper(EnableDestinationWhitelistRequest.RequiredProperties),
82
- _step;
83
- try {
84
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
85
- var property = _step.value;
86
- if (!data.hasOwnProperty(property)) {
87
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
88
- }
89
- }
90
- } catch (err) {
91
- _iterator.e(err);
92
- } finally {
93
- _iterator.f();
94
- }
95
- return true;
96
- }
97
- }]);
98
- }();
99
- EnableDestinationWhitelistRequest.RequiredProperties = ["enable_destination_whitelist"];
100
-
101
- /**
102
- * Indicates whether to enable the destination whitelist.
103
- * @member {Boolean} enable_destination_whitelist
104
- */
105
- EnableDestinationWhitelistRequest.prototype['enable_destination_whitelist'] = undefined;
106
- var _default = exports["default"] = EnableDestinationWhitelistRequest;
@@ -1,123 +0,0 @@
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 ListCounterpartyWalletAddress200Response model module.
31
- * @module model/ListCounterpartyWalletAddress200Response
32
- */
33
- var ListCounterpartyWalletAddress200Response = /*#__PURE__*/function () {
34
- /**
35
- * Constructs a new <code>ListCounterpartyWalletAddress200Response</code>.
36
- * @alias module:model/ListCounterpartyWalletAddress200Response
37
- */
38
- function ListCounterpartyWalletAddress200Response() {
39
- _classCallCheck(this, ListCounterpartyWalletAddress200Response);
40
- ListCounterpartyWalletAddress200Response.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(ListCounterpartyWalletAddress200Response, null, [{
49
- key: "initialize",
50
- value: function initialize(obj) {}
51
-
52
- /**
53
- * Constructs a <code>ListCounterpartyWalletAddress200Response</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/ListCounterpartyWalletAddress200Response} obj Optional instance to populate.
57
- * @return {module:model/ListCounterpartyWalletAddress200Response} The populated <code>ListCounterpartyWalletAddress200Response</code> instance.
58
- */
59
- }, {
60
- key: "constructFromObject",
61
- value: function constructFromObject(data, obj) {
62
- if (data) {
63
- obj = obj || new ListCounterpartyWalletAddress200Response();
64
- if (data.hasOwnProperty('data')) {
65
- obj['data'] = _ApiClient["default"].convertToType(data['data'], [_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>ListCounterpartyWalletAddress200Response</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>ListCounterpartyWalletAddress200Response</code>.
78
- */
79
- }, {
80
- key: "validateJSON",
81
- value: function validateJSON(data) {
82
- if (data['data']) {
83
- // data not null
84
- // ensure the json data is an array
85
- if (!Array.isArray(data['data'])) {
86
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
87
- }
88
- // validate the optional field `data` (array)
89
- var _iterator = _createForOfIteratorHelper(data['data']),
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>} data
116
- */
117
- ListCounterpartyWalletAddress200Response.prototype['data'] = undefined;
118
-
119
- /**
120
- * @member {module:model/Pagination} pagination
121
- */
122
- ListCounterpartyWalletAddress200Response.prototype['pagination'] = undefined;
123
- var _default = exports["default"] = ListCounterpartyWalletAddress200Response;
@@ -1,123 +0,0 @@
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 _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 ListDestinationBankAccounts200Response model module.
31
- * @module model/ListDestinationBankAccounts200Response
32
- */
33
- var ListDestinationBankAccounts200Response = /*#__PURE__*/function () {
34
- /**
35
- * Constructs a new <code>ListDestinationBankAccounts200Response</code>.
36
- * @alias module:model/ListDestinationBankAccounts200Response
37
- */
38
- function ListDestinationBankAccounts200Response() {
39
- _classCallCheck(this, ListDestinationBankAccounts200Response);
40
- ListDestinationBankAccounts200Response.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(ListDestinationBankAccounts200Response, null, [{
49
- key: "initialize",
50
- value: function initialize(obj) {}
51
-
52
- /**
53
- * Constructs a <code>ListDestinationBankAccounts200Response</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/ListDestinationBankAccounts200Response} obj Optional instance to populate.
57
- * @return {module:model/ListDestinationBankAccounts200Response} The populated <code>ListDestinationBankAccounts200Response</code> instance.
58
- */
59
- }, {
60
- key: "constructFromObject",
61
- value: function constructFromObject(data, obj) {
62
- if (data) {
63
- obj = obj || new ListDestinationBankAccounts200Response();
64
- if (data.hasOwnProperty('data')) {
65
- obj['data'] = _ApiClient["default"].convertToType(data['data'], [_DestinationBankAccountDetail["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>ListDestinationBankAccounts200Response</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>ListDestinationBankAccounts200Response</code>.
78
- */
79
- }, {
80
- key: "validateJSON",
81
- value: function validateJSON(data) {
82
- if (data['data']) {
83
- // data not null
84
- // ensure the json data is an array
85
- if (!Array.isArray(data['data'])) {
86
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
87
- }
88
- // validate the optional field `data` (array)
89
- var _iterator = _createForOfIteratorHelper(data['data']),
90
- _step;
91
- try {
92
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
93
- var item = _step.value;
94
- _DestinationBankAccountDetail["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/DestinationBankAccountDetail>} data
116
- */
117
- ListDestinationBankAccounts200Response.prototype['data'] = undefined;
118
-
119
- /**
120
- * @member {module:model/Pagination} pagination
121
- */
122
- ListDestinationBankAccounts200Response.prototype['pagination'] = undefined;
123
- var _default = exports["default"] = ListDestinationBankAccounts200Response;
@@ -1,123 +0,0 @@
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 _DestinationWalletAddressDetail = _interopRequireDefault(require("./DestinationWalletAddressDetail"));
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 ListDestinationWalletAddresses200Response model module.
31
- * @module model/ListDestinationWalletAddresses200Response
32
- */
33
- var ListDestinationWalletAddresses200Response = /*#__PURE__*/function () {
34
- /**
35
- * Constructs a new <code>ListDestinationWalletAddresses200Response</code>.
36
- * @alias module:model/ListDestinationWalletAddresses200Response
37
- */
38
- function ListDestinationWalletAddresses200Response() {
39
- _classCallCheck(this, ListDestinationWalletAddresses200Response);
40
- ListDestinationWalletAddresses200Response.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(ListDestinationWalletAddresses200Response, null, [{
49
- key: "initialize",
50
- value: function initialize(obj) {}
51
-
52
- /**
53
- * Constructs a <code>ListDestinationWalletAddresses200Response</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/ListDestinationWalletAddresses200Response} obj Optional instance to populate.
57
- * @return {module:model/ListDestinationWalletAddresses200Response} The populated <code>ListDestinationWalletAddresses200Response</code> instance.
58
- */
59
- }, {
60
- key: "constructFromObject",
61
- value: function constructFromObject(data, obj) {
62
- if (data) {
63
- obj = obj || new ListDestinationWalletAddresses200Response();
64
- if (data.hasOwnProperty('data')) {
65
- obj['data'] = _ApiClient["default"].convertToType(data['data'], [_DestinationWalletAddressDetail["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>ListDestinationWalletAddresses200Response</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>ListDestinationWalletAddresses200Response</code>.
78
- */
79
- }, {
80
- key: "validateJSON",
81
- value: function validateJSON(data) {
82
- if (data['data']) {
83
- // data not null
84
- // ensure the json data is an array
85
- if (!Array.isArray(data['data'])) {
86
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
87
- }
88
- // validate the optional field `data` (array)
89
- var _iterator = _createForOfIteratorHelper(data['data']),
90
- _step;
91
- try {
92
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
93
- var item = _step.value;
94
- _DestinationWalletAddressDetail["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/DestinationWalletAddressDetail>} data
116
- */
117
- ListDestinationWalletAddresses200Response.prototype['data'] = undefined;
118
-
119
- /**
120
- * @member {module:model/Pagination} pagination
121
- */
122
- ListDestinationWalletAddresses200Response.prototype['pagination'] = undefined;
123
- var _default = exports["default"] = ListDestinationWalletAddresses200Response;