@cobo/cobo-waas2 1.24.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/README.md +45 -6
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AutoSweepApi.js +2 -2
  4. package/dist/api/ComplianceApi.js +132 -2
  5. package/dist/api/DevelopersWebhooksApi.js +2 -2
  6. package/dist/api/FeeStationApi.js +6 -6
  7. package/dist/api/PaymentApi.js +109 -24
  8. package/dist/api/TokenizationApi.js +122 -4
  9. package/dist/api/TransactionsApi.js +4 -4
  10. package/dist/index.js +217 -14
  11. package/dist/model/AddressesEventData.js +8 -3
  12. package/dist/model/AutoFuelType.js +5 -0
  13. package/dist/model/BalanceUpdateInfoEventData.js +8 -3
  14. package/dist/model/BridgingFee.js +4 -4
  15. package/dist/model/ChainsEventData.js +8 -3
  16. package/dist/model/CommissionFee.js +2 -2
  17. package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
  18. package/dist/model/ComplianceKytScreeningsUpdateEventData.js +305 -0
  19. package/dist/model/CreateCryptoAddressRequest.js +1 -1
  20. package/dist/model/CreateMerchantRequest.js +2 -2
  21. package/dist/model/CreateOrderLinkRequest.js +129 -0
  22. package/dist/model/CreatePaymentOrderRequest.js +21 -8
  23. package/dist/model/CreateRefundLinkRequest.js +129 -0
  24. package/dist/model/CreateRefundRequest.js +2 -2
  25. package/dist/model/CreateSettlement.js +2 -28
  26. package/dist/model/CreateSettlementRequestRequest.js +3 -3
  27. package/dist/model/CustodialTransferDestination.js +1 -1
  28. package/dist/model/FeeStationCheckFeeStationUsage.js +28 -10
  29. package/dist/model/FeeStationCheckFeeStationUsageResponse.js +33 -20
  30. package/dist/model/FeeStationSponsorTransactionDescription.js +125 -0
  31. package/dist/model/FundsStatusType.js +111 -0
  32. package/dist/model/KytScreeningsDecisionsType.js +71 -0
  33. package/dist/model/KytScreeningsEventData.js +155 -0
  34. package/dist/model/KytScreeningsReviewType.js +61 -0
  35. package/dist/model/KytScreeningsTransaction.js +144 -0
  36. package/dist/model/KytScreeningsTransactionType.js +61 -0
  37. package/dist/model/Link.js +125 -0
  38. package/dist/model/LinkDisplayInfo.js +100 -0
  39. package/dist/model/MPCVaultEventData.js +8 -3
  40. package/dist/model/Merchant.js +3 -3
  41. package/dist/model/MerchantBalance.js +1 -1
  42. package/dist/model/Order.js +13 -0
  43. package/dist/model/OrderLinkBusinessInfo.js +261 -0
  44. package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +125 -0
  45. package/dist/model/OtcFee.js +3 -3
  46. package/dist/model/PaymentAddressUpdateEventData.js +8 -3
  47. package/dist/model/PaymentEstimateFee.js +4 -4
  48. package/dist/model/PaymentEstimateFee201Response.js +1 -0
  49. package/dist/model/PaymentEstimateFeeRequest.js +2 -1
  50. package/dist/model/PaymentEstimatedFee.js +4 -4
  51. package/dist/model/PaymentOrderEventData.js +26 -3
  52. package/dist/model/PaymentRefundEventData.js +8 -3
  53. package/dist/model/PaymentSettlementEvent.js +12 -7
  54. package/dist/model/PaymentTransactionEventData.js +8 -3
  55. package/dist/model/PspBalance.js +1 -1
  56. package/dist/model/RefundLinkBusinessInfo.js +162 -0
  57. package/dist/model/RefundStatus.js +10 -0
  58. package/dist/model/ReviewStatusType.js +91 -0
  59. package/dist/model/Settlement.js +2 -2
  60. package/dist/model/SubmitKytResponse.js +122 -0
  61. package/dist/model/SubmitKytScreeningsDecisionsBody.js +122 -0
  62. package/dist/model/SubmitKytScreeningsReviewBody.js +122 -0
  63. package/dist/model/SupportedToken.js +1 -1
  64. package/dist/model/SuspendedTokenEventData.js +8 -3
  65. package/dist/model/SwapQuote.js +18 -18
  66. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  67. package/dist/model/TokenListingEventData.js +8 -3
  68. package/dist/model/TokenizationERC20TokenParams.js +5 -5
  69. package/dist/model/{TokenizationTokenPermissionParams.js → TokenizationERC20TokenPermissionParams.js} +23 -23
  70. package/dist/model/TokenizationERC20WrappedTokenParams.js +177 -0
  71. package/dist/model/TokenizationERC20WrappedTokenPermissionParams.js +166 -0
  72. package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +38 -11
  73. package/dist/model/TokenizationIssueTokenParamsTokenParams.js +72 -10
  74. package/dist/model/TokenizationListPermissionsResponse.js +146 -0
  75. package/dist/model/TokenizationListPermissionsResponseDataInner.js +126 -0
  76. package/dist/model/TokenizationOperationType.js +5 -0
  77. package/dist/model/TokenizationPermissionAction.js +66 -0
  78. package/dist/model/TokenizationSOLWrappedTokenParams.js +177 -0
  79. package/dist/model/TokenizationSolWrappedTokenPermissionParams.js +127 -0
  80. package/dist/model/TokenizationTokenDetailInfo.js +51 -5
  81. package/dist/model/TokenizationTokenInfo.js +26 -4
  82. package/dist/model/TokenizationTokenPermissionType.js +5 -0
  83. package/dist/model/TokenizationTokenStandard.js +10 -0
  84. package/dist/model/{TokenizationTokenPermissionsResponse.js → TokenizationUpdateAddressPermissions.js} +51 -53
  85. package/dist/model/TokenizationUpdatePermissionsEstimateFeeParams.js +198 -0
  86. package/dist/model/TokenizationUpdatePermissionsParams.js +145 -0
  87. package/dist/model/TokenizationUpdatePermissionsRequest.js +213 -0
  88. package/dist/model/TokensEventData.js +8 -3
  89. package/dist/model/TransactionCoboCategory.js +35 -0
  90. package/dist/model/TransactionWebhookEventData.js +8 -3
  91. package/dist/model/UpdateMerchantByIdRequest.js +1 -1
  92. package/dist/model/WalletInfoEventData.js +8 -3
  93. package/dist/model/WebhookEventData.js +64 -12
  94. package/dist/model/WebhookEventDataType.js +7 -2
  95. package/dist/model/WebhookEventType.js +10 -0
  96. package/docs/AddressesEventData.md +3 -1
  97. package/docs/AutoFuelType.md +2 -0
  98. package/docs/AutoSweepApi.md +2 -2
  99. package/docs/BalanceUpdateInfoEventData.md +3 -1
  100. package/docs/BridgingFee.md +3 -3
  101. package/docs/ChainsEventData.md +3 -1
  102. package/docs/CommissionFee.md +1 -1
  103. package/docs/ComplianceApi.md +158 -1
  104. package/docs/ComplianceDispositionUpdateEventData.md +3 -1
  105. package/docs/ComplianceKytScreeningsUpdateEventData.md +57 -0
  106. package/docs/CreateCryptoAddressRequest.md +1 -1
  107. package/docs/CreateMerchantRequest.md +2 -2
  108. package/docs/CreateOrderLinkRequest.md +10 -0
  109. package/docs/CreatePaymentOrderRequest.md +6 -5
  110. package/docs/CreateRefundLinkRequest.md +10 -0
  111. package/docs/CreateRefundRequest.md +2 -2
  112. package/docs/CreateSettlement.md +1 -3
  113. package/docs/CreateSettlementRequestRequest.md +3 -3
  114. package/docs/DevelopersWebhooksApi.md +1 -1
  115. package/docs/FeeStationApi.md +4 -4
  116. package/docs/FeeStationCheckFeeStationUsage.md +4 -2
  117. package/docs/FeeStationCheckFeeStationUsageResponse.md +4 -3
  118. package/docs/FeeStationSponsorTransactionDescription.md +10 -0
  119. package/docs/FundsStatusType.md +32 -0
  120. package/docs/KytScreeningsDecisionsType.md +16 -0
  121. package/docs/KytScreeningsEventData.md +13 -0
  122. package/docs/KytScreeningsReviewType.md +12 -0
  123. package/docs/KytScreeningsTransaction.md +12 -0
  124. package/docs/KytScreeningsTransactionType.md +12 -0
  125. package/docs/Link.md +10 -0
  126. package/docs/LinkDisplayInfo.md +10 -0
  127. package/docs/MPCVaultEventData.md +3 -1
  128. package/docs/Merchant.md +2 -2
  129. package/docs/MerchantBalance.md +1 -1
  130. package/docs/Order.md +1 -0
  131. package/docs/OrderLinkBusinessInfo.md +19 -0
  132. package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +10 -0
  133. package/docs/OtcFee.md +2 -2
  134. package/docs/PaymentAddressUpdateEventData.md +3 -1
  135. package/docs/PaymentApi.md +118 -12
  136. package/docs/PaymentEstimateFee.md +2 -2
  137. package/docs/PaymentEstimateFee201Response.md +1 -1
  138. package/docs/PaymentEstimateFeeRequest.md +1 -1
  139. package/docs/PaymentEstimatedFee.md +2 -2
  140. package/docs/PaymentOrderEventData.md +4 -1
  141. package/docs/PaymentRefundEventData.md +3 -1
  142. package/docs/PaymentSettlementEvent.md +5 -3
  143. package/docs/PaymentTransactionEventData.md +3 -1
  144. package/docs/PspBalance.md +1 -1
  145. package/docs/RefundLinkBusinessInfo.md +13 -0
  146. package/docs/RefundStatus.md +4 -0
  147. package/docs/ReviewStatusType.md +24 -0
  148. package/docs/Settlement.md +2 -2
  149. package/docs/SubmitKytResponse.md +10 -0
  150. package/docs/SubmitKytScreeningsDecisionsBody.md +10 -0
  151. package/docs/SubmitKytScreeningsReviewBody.md +10 -0
  152. package/docs/SupportedToken.md +1 -1
  153. package/docs/SuspendedTokenEventData.md +3 -1
  154. package/docs/SwapQuote.md +10 -10
  155. package/docs/TSSRequestWebhookEventData.md +3 -1
  156. package/docs/TokenListingEventData.md +3 -1
  157. package/docs/TokenizationApi.md +120 -2
  158. package/docs/TokenizationERC20TokenParams.md +1 -1
  159. package/docs/{TokenizationTokenPermissionParams.md → TokenizationERC20TokenPermissionParams.md} +1 -1
  160. package/docs/TokenizationERC20WrappedTokenParams.md +14 -0
  161. package/docs/TokenizationERC20WrappedTokenPermissionParams.md +15 -0
  162. package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -1
  163. package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -1
  164. package/docs/TokenizationListPermissionsResponse.md +10 -0
  165. package/docs/TokenizationListPermissionsResponseDataInner.md +10 -0
  166. package/docs/TokenizationOperationType.md +2 -0
  167. package/docs/TokenizationPermissionAction.md +14 -0
  168. package/docs/TokenizationSOLWrappedTokenParams.md +14 -0
  169. package/docs/TokenizationSolWrappedTokenPermissionParams.md +12 -0
  170. package/docs/TokenizationTokenDetailInfo.md +3 -0
  171. package/docs/TokenizationTokenInfo.md +2 -0
  172. package/docs/TokenizationTokenPermissionType.md +2 -0
  173. package/docs/TokenizationTokenStandard.md +4 -0
  174. package/docs/TokenizationUpdateAddressPermissions.md +11 -0
  175. package/docs/TokenizationUpdatePermissionsEstimateFeeParams.md +13 -0
  176. package/docs/TokenizationUpdatePermissionsParams.md +10 -0
  177. package/docs/TokenizationUpdatePermissionsRequest.md +13 -0
  178. package/docs/TokensEventData.md +3 -1
  179. package/docs/TransactionCoboCategory.md +14 -0
  180. package/docs/TransactionWebhookEventData.md +3 -1
  181. package/docs/TransactionsApi.md +2 -2
  182. package/docs/UpdateMerchantByIdRequest.md +1 -1
  183. package/docs/WalletInfoEventData.md +3 -1
  184. package/docs/WebhookEventData.md +10 -4
  185. package/docs/WebhookEventDataType.md +3 -1
  186. package/docs/WebhookEventType.md +4 -0
  187. package/package.json +1 -1
  188. package/docs/TokenizationTokenPermissionsResponse.md +0 -10
@@ -0,0 +1,126 @@
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 _TokenizationTokenPermissionType = _interopRequireDefault(require("./TokenizationTokenPermissionType"));
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 TokenizationListPermissionsResponseDataInner model module.
30
+ * @module model/TokenizationListPermissionsResponseDataInner
31
+ */
32
+ var TokenizationListPermissionsResponseDataInner = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>TokenizationListPermissionsResponseDataInner</code>.
35
+ * @alias module:model/TokenizationListPermissionsResponseDataInner
36
+ * @param address {String} The address with permissions.
37
+ * @param permissions {Array.<module:model/TokenizationTokenPermissionType>} The permissions assigned to this address.
38
+ */
39
+ function TokenizationListPermissionsResponseDataInner(address, permissions) {
40
+ _classCallCheck(this, TokenizationListPermissionsResponseDataInner);
41
+ TokenizationListPermissionsResponseDataInner.initialize(this, address, permissions);
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(TokenizationListPermissionsResponseDataInner, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, address, permissions) {
52
+ obj['address'] = address;
53
+ obj['permissions'] = permissions;
54
+ }
55
+
56
+ /**
57
+ * Constructs a <code>TokenizationListPermissionsResponseDataInner</code> from a plain JavaScript object, optionally creating a new instance.
58
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
59
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
60
+ * @param {module:model/TokenizationListPermissionsResponseDataInner} obj Optional instance to populate.
61
+ * @return {module:model/TokenizationListPermissionsResponseDataInner} The populated <code>TokenizationListPermissionsResponseDataInner</code> instance.
62
+ */
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new TokenizationListPermissionsResponseDataInner();
68
+ if (data.hasOwnProperty('address')) {
69
+ obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('permissions')) {
72
+ obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], [_TokenizationTokenPermissionType["default"]]);
73
+ }
74
+ }
75
+ return obj;
76
+ }
77
+
78
+ /**
79
+ * Validates the JSON data with respect to <code>TokenizationListPermissionsResponseDataInner</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>TokenizationListPermissionsResponseDataInner</code>.
82
+ */
83
+ }, {
84
+ key: "validateJSON",
85
+ value: function validateJSON(data) {
86
+ // check to make sure all required properties are present in the JSON string
87
+ var _iterator = _createForOfIteratorHelper(TokenizationListPermissionsResponseDataInner.RequiredProperties),
88
+ _step;
89
+ try {
90
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
91
+ var property = _step.value;
92
+ if (!data.hasOwnProperty(property)) {
93
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
94
+ }
95
+ }
96
+ // ensure the json data is a string
97
+ } catch (err) {
98
+ _iterator.e(err);
99
+ } finally {
100
+ _iterator.f();
101
+ }
102
+ if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
103
+ throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
104
+ }
105
+ // ensure the json data is an array
106
+ if (!Array.isArray(data['permissions'])) {
107
+ throw new Error("Expected the field `permissions` to be an array in the JSON data but got " + data['permissions']);
108
+ }
109
+ return true;
110
+ }
111
+ }]);
112
+ }();
113
+ TokenizationListPermissionsResponseDataInner.RequiredProperties = ["address", "permissions"];
114
+
115
+ /**
116
+ * The address with permissions.
117
+ * @member {String} address
118
+ */
119
+ TokenizationListPermissionsResponseDataInner.prototype['address'] = undefined;
120
+
121
+ /**
122
+ * The permissions assigned to this address.
123
+ * @member {Array.<module:model/TokenizationTokenPermissionType>} permissions
124
+ */
125
+ TokenizationListPermissionsResponseDataInner.prototype['permissions'] = undefined;
126
+ var _default = exports["default"] = TokenizationListPermissionsResponseDataInner;
@@ -75,6 +75,11 @@ var TokenizationOperationType = exports["default"] = /*#__PURE__*/function () {
75
75
  * @const
76
76
  */
77
77
  _defineProperty(this, "ContractCall", "ContractCall");
78
+ /**
79
+ * value: "UpdatePermissions"
80
+ * @const
81
+ */
82
+ _defineProperty(this, "UpdatePermissions", "UpdatePermissions");
78
83
  /**
79
84
  * value: "unknown_default_open_api"
80
85
  * @const
@@ -0,0 +1,66 @@
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 TokenizationPermissionAction.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var TokenizationPermissionAction = exports["default"] = /*#__PURE__*/function () {
31
+ function TokenizationPermissionAction() {
32
+ _classCallCheck(this, TokenizationPermissionAction);
33
+ /**
34
+ * value: "add"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "add", "add");
38
+ /**
39
+ * value: "remove"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "remove", "remove");
43
+ /**
44
+ * value: "set"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "set", "set");
48
+ /**
49
+ * value: "unknown_default_open_api"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
53
+ }
54
+ return _createClass(TokenizationPermissionAction, null, [{
55
+ key: "constructFromObject",
56
+ value:
57
+ /**
58
+ * Returns a <code>TokenizationPermissionAction</code> enum value from a Javascript object name.
59
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
60
+ * @return {module:model/TokenizationPermissionAction} The enum <code>TokenizationPermissionAction</code> value.
61
+ */
62
+ function constructFromObject(object) {
63
+ return object;
64
+ }
65
+ }]);
66
+ }();
@@ -0,0 +1,177 @@
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 _TokenizationSolWrappedTokenPermissionParams = _interopRequireDefault(require("./TokenizationSolWrappedTokenPermissionParams"));
9
+ var _TokenizationTokenStandard = _interopRequireDefault(require("./TokenizationTokenStandard"));
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 TokenizationSOLWrappedTokenParams model module.
31
+ * @module model/TokenizationSOLWrappedTokenParams
32
+ */
33
+ var TokenizationSOLWrappedTokenParams = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>TokenizationSOLWrappedTokenParams</code>.
36
+ * @alias module:model/TokenizationSOLWrappedTokenParams
37
+ * @param standard {module:model/TokenizationTokenStandard}
38
+ * @param name {String} The name of the token.
39
+ * @param symbol {String} The symbol of the token.
40
+ * @param underlying_token {String} The address of the underlying token that this tokenized asset represents.
41
+ */
42
+ function TokenizationSOLWrappedTokenParams(standard, name, symbol, underlying_token) {
43
+ _classCallCheck(this, TokenizationSOLWrappedTokenParams);
44
+ TokenizationSOLWrappedTokenParams.initialize(this, standard, name, symbol, underlying_token);
45
+ }
46
+
47
+ /**
48
+ * Initializes the fields of this object.
49
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
+ * Only for internal use.
51
+ */
52
+ return _createClass(TokenizationSOLWrappedTokenParams, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj, standard, name, symbol, underlying_token) {
55
+ obj['standard'] = standard;
56
+ obj['name'] = name;
57
+ obj['symbol'] = symbol;
58
+ obj['underlying_token'] = underlying_token;
59
+ }
60
+
61
+ /**
62
+ * Constructs a <code>TokenizationSOLWrappedTokenParams</code> from a plain JavaScript object, optionally creating a new instance.
63
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
64
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
65
+ * @param {module:model/TokenizationSOLWrappedTokenParams} obj Optional instance to populate.
66
+ * @return {module:model/TokenizationSOLWrappedTokenParams} The populated <code>TokenizationSOLWrappedTokenParams</code> instance.
67
+ */
68
+ }, {
69
+ key: "constructFromObject",
70
+ value: function constructFromObject(data, obj) {
71
+ if (data) {
72
+ obj = obj || new TokenizationSOLWrappedTokenParams();
73
+ if (data.hasOwnProperty('standard')) {
74
+ obj['standard'] = _TokenizationTokenStandard["default"].constructFromObject(data['standard']);
75
+ }
76
+ if (data.hasOwnProperty('name')) {
77
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('symbol')) {
80
+ obj['symbol'] = _ApiClient["default"].convertToType(data['symbol'], 'String');
81
+ }
82
+ if (data.hasOwnProperty('underlying_token')) {
83
+ obj['underlying_token'] = _ApiClient["default"].convertToType(data['underlying_token'], 'String');
84
+ }
85
+ if (data.hasOwnProperty('token_access_activated')) {
86
+ obj['token_access_activated'] = _ApiClient["default"].convertToType(data['token_access_activated'], 'Boolean');
87
+ }
88
+ if (data.hasOwnProperty('permissions')) {
89
+ obj['permissions'] = _TokenizationSolWrappedTokenPermissionParams["default"].constructFromObject(data['permissions']);
90
+ }
91
+ }
92
+ return obj;
93
+ }
94
+
95
+ /**
96
+ * Validates the JSON data with respect to <code>TokenizationSOLWrappedTokenParams</code>.
97
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
98
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TokenizationSOLWrappedTokenParams</code>.
99
+ */
100
+ }, {
101
+ key: "validateJSON",
102
+ value: function validateJSON(data) {
103
+ // check to make sure all required properties are present in the JSON string
104
+ var _iterator = _createForOfIteratorHelper(TokenizationSOLWrappedTokenParams.RequiredProperties),
105
+ _step;
106
+ try {
107
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
108
+ var property = _step.value;
109
+ if (!data.hasOwnProperty(property)) {
110
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
111
+ }
112
+ }
113
+ // ensure the json data is a string
114
+ } catch (err) {
115
+ _iterator.e(err);
116
+ } finally {
117
+ _iterator.f();
118
+ }
119
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
120
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
121
+ }
122
+ // ensure the json data is a string
123
+ if (data['symbol'] && !(typeof data['symbol'] === 'string' || data['symbol'] instanceof String)) {
124
+ throw new Error("Expected the field `symbol` to be a primitive type in the JSON string but got " + data['symbol']);
125
+ }
126
+ // ensure the json data is a string
127
+ if (data['underlying_token'] && !(typeof data['underlying_token'] === 'string' || data['underlying_token'] instanceof String)) {
128
+ throw new Error("Expected the field `underlying_token` to be a primitive type in the JSON string but got " + data['underlying_token']);
129
+ }
130
+ // validate the optional field `permissions`
131
+ if (data['permissions']) {
132
+ // data not null
133
+ if (!!_TokenizationSolWrappedTokenPermissionParams["default"].validateJSON) {
134
+ _TokenizationSolWrappedTokenPermissionParams["default"].validateJSON(data['permissions']);
135
+ }
136
+ }
137
+ return true;
138
+ }
139
+ }]);
140
+ }();
141
+ TokenizationSOLWrappedTokenParams.RequiredProperties = ["standard", "name", "symbol", "underlying_token"];
142
+
143
+ /**
144
+ * @member {module:model/TokenizationTokenStandard} standard
145
+ */
146
+ TokenizationSOLWrappedTokenParams.prototype['standard'] = undefined;
147
+
148
+ /**
149
+ * The name of the token.
150
+ * @member {String} name
151
+ */
152
+ TokenizationSOLWrappedTokenParams.prototype['name'] = undefined;
153
+
154
+ /**
155
+ * The symbol of the token.
156
+ * @member {String} symbol
157
+ */
158
+ TokenizationSOLWrappedTokenParams.prototype['symbol'] = undefined;
159
+
160
+ /**
161
+ * The address of the underlying token that this tokenized asset represents.
162
+ * @member {String} underlying_token
163
+ */
164
+ TokenizationSOLWrappedTokenParams.prototype['underlying_token'] = undefined;
165
+
166
+ /**
167
+ * Whether the allowlist feature is activated for the token. When activated, only addresses in the allowlist can perform token operations.
168
+ * @member {Boolean} token_access_activated
169
+ * @default false
170
+ */
171
+ TokenizationSOLWrappedTokenParams.prototype['token_access_activated'] = false;
172
+
173
+ /**
174
+ * @member {module:model/TokenizationSolWrappedTokenPermissionParams} permissions
175
+ */
176
+ TokenizationSOLWrappedTokenParams.prototype['permissions'] = undefined;
177
+ var _default = exports["default"] = TokenizationSOLWrappedTokenParams;
@@ -0,0 +1,127 @@
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 _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
+ 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); } /**
15
+ * Cobo Wallet as a Service 2.0
16
+ *
17
+ * Contact: help@cobo.com
18
+ *
19
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20
+ * https://openapi-generator.tech
21
+ * Do not edit the class manually.
22
+ *
23
+ */
24
+ /**
25
+ * The TokenizationSolWrappedTokenPermissionParams model module.
26
+ * @module model/TokenizationSolWrappedTokenPermissionParams
27
+ */
28
+ var TokenizationSolWrappedTokenPermissionParams = /*#__PURE__*/function () {
29
+ /**
30
+ * Constructs a new <code>TokenizationSolWrappedTokenPermissionParams</code>.
31
+ * Role-based permission settings for Solana wrapped token. The owner is automatically set to the address that calls the initialize function (typically the issuing wallet) and cannot be specified here. Only the wrapper and pauser roles can be configured during initialization.
32
+ * @alias module:model/TokenizationSolWrappedTokenPermissionParams
33
+ */
34
+ function TokenizationSolWrappedTokenPermissionParams() {
35
+ _classCallCheck(this, TokenizationSolWrappedTokenPermissionParams);
36
+ TokenizationSolWrappedTokenPermissionParams.initialize(this);
37
+ }
38
+
39
+ /**
40
+ * Initializes the fields of this object.
41
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
42
+ * Only for internal use.
43
+ */
44
+ return _createClass(TokenizationSolWrappedTokenPermissionParams, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>TokenizationSolWrappedTokenPermissionParams</code> from a plain JavaScript object, optionally creating a new instance.
50
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
51
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
52
+ * @param {module:model/TokenizationSolWrappedTokenPermissionParams} obj Optional instance to populate.
53
+ * @return {module:model/TokenizationSolWrappedTokenPermissionParams} The populated <code>TokenizationSolWrappedTokenPermissionParams</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new TokenizationSolWrappedTokenPermissionParams();
60
+ if (data.hasOwnProperty('wrapper')) {
61
+ obj['wrapper'] = _ApiClient["default"].convertToType(data['wrapper'], ['String']);
62
+ }
63
+ if (data.hasOwnProperty('pauser')) {
64
+ obj['pauser'] = _ApiClient["default"].convertToType(data['pauser'], 'String');
65
+ }
66
+ if (data.hasOwnProperty('freezer')) {
67
+ obj['freezer'] = _ApiClient["default"].convertToType(data['freezer'], 'String');
68
+ }
69
+ if (data.hasOwnProperty('updater')) {
70
+ obj['updater'] = _ApiClient["default"].convertToType(data['updater'], 'String');
71
+ }
72
+ }
73
+ return obj;
74
+ }
75
+
76
+ /**
77
+ * Validates the JSON data with respect to <code>TokenizationSolWrappedTokenPermissionParams</code>.
78
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
79
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TokenizationSolWrappedTokenPermissionParams</code>.
80
+ */
81
+ }, {
82
+ key: "validateJSON",
83
+ value: function validateJSON(data) {
84
+ // ensure the json data is an array
85
+ if (!Array.isArray(data['wrapper'])) {
86
+ throw new Error("Expected the field `wrapper` to be an array in the JSON data but got " + data['wrapper']);
87
+ }
88
+ // ensure the json data is a string
89
+ if (data['pauser'] && !(typeof data['pauser'] === 'string' || data['pauser'] instanceof String)) {
90
+ throw new Error("Expected the field `pauser` to be a primitive type in the JSON string but got " + data['pauser']);
91
+ }
92
+ // ensure the json data is a string
93
+ if (data['freezer'] && !(typeof data['freezer'] === 'string' || data['freezer'] instanceof String)) {
94
+ throw new Error("Expected the field `freezer` to be a primitive type in the JSON string but got " + data['freezer']);
95
+ }
96
+ // ensure the json data is a string
97
+ if (data['updater'] && !(typeof data['updater'] === 'string' || data['updater'] instanceof String)) {
98
+ throw new Error("Expected the field `updater` to be a primitive type in the JSON string but got " + data['updater']);
99
+ }
100
+ return true;
101
+ }
102
+ }]);
103
+ }();
104
+ /**
105
+ * List of Solana wallet addresses that can perform wrap/unwrap operations. Multiple addresses can be assigned this role.
106
+ * @member {Array.<String>} wrapper
107
+ */
108
+ TokenizationSolWrappedTokenPermissionParams.prototype['wrapper'] = undefined;
109
+
110
+ /**
111
+ * Solana wallet address that acts as a pauser authority for the token. This authority can pause token transfers.
112
+ * @member {String} pauser
113
+ */
114
+ TokenizationSolWrappedTokenPermissionParams.prototype['pauser'] = undefined;
115
+
116
+ /**
117
+ * Solana wallet address that acts as a freezer authority for the token. This authority can freeze token accounts.
118
+ * @member {String} freezer
119
+ */
120
+ TokenizationSolWrappedTokenPermissionParams.prototype['freezer'] = undefined;
121
+
122
+ /**
123
+ * Solana wallet address that acts as an updater authority for the token. This authority can update token metadata.
124
+ * @member {String} updater
125
+ */
126
+ TokenizationSolWrappedTokenPermissionParams.prototype['updater'] = undefined;
127
+ var _default = exports["default"] = TokenizationSolWrappedTokenPermissionParams;
@@ -8,6 +8,7 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _TokenizationAddressPermission = _interopRequireDefault(require("./TokenizationAddressPermission"));
9
9
  var _TokenizationStatus = _interopRequireDefault(require("./TokenizationStatus"));
10
10
  var _TokenizationTokenInfo = _interopRequireDefault(require("./TokenizationTokenInfo"));
11
+ var _TokenizationTokenStandard = _interopRequireDefault(require("./TokenizationTokenStandard"));
11
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
13
  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
14
  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; } } }; }
@@ -39,13 +40,15 @@ var TokenizationTokenDetailInfo = /*#__PURE__*/function () {
39
40
  * @param token_id {String} The unique token identifier.
40
41
  * @param chain_id {String} The chain ID of the tokenization contract.
41
42
  * @param token_symbol {String} The unique token symbol.
43
+ * @param token_standard {module:model/TokenizationTokenStandard}
42
44
  * @param decimals {Number} The number of decimals of the token.
43
45
  * @param status {module:model/TokenizationStatus}
46
+ * @param archived {Boolean} Whether the token is archived. If the token is archived, no operations can be initiated on it.
44
47
  */
45
- function TokenizationTokenDetailInfo(token_id, chain_id, token_symbol, decimals, status) {
48
+ function TokenizationTokenDetailInfo(token_id, chain_id, token_symbol, token_standard, decimals, status, archived) {
46
49
  _classCallCheck(this, TokenizationTokenDetailInfo);
47
- _TokenizationTokenInfo["default"].initialize(this, token_id, chain_id, token_symbol, decimals, status);
48
- TokenizationTokenDetailInfo.initialize(this, token_id, chain_id, token_symbol, decimals, status);
50
+ _TokenizationTokenInfo["default"].initialize(this, token_id, chain_id, token_symbol, token_standard, decimals, status, archived);
51
+ TokenizationTokenDetailInfo.initialize(this, token_id, chain_id, token_symbol, token_standard, decimals, status, archived);
49
52
  }
50
53
 
51
54
  /**
@@ -55,12 +58,14 @@ var TokenizationTokenDetailInfo = /*#__PURE__*/function () {
55
58
  */
56
59
  return _createClass(TokenizationTokenDetailInfo, null, [{
57
60
  key: "initialize",
58
- value: function initialize(obj, token_id, chain_id, token_symbol, decimals, status) {
61
+ value: function initialize(obj, token_id, chain_id, token_symbol, token_standard, decimals, status, archived) {
59
62
  obj['token_id'] = token_id;
60
63
  obj['chain_id'] = chain_id;
61
64
  obj['token_symbol'] = token_symbol;
65
+ obj['token_standard'] = token_standard;
62
66
  obj['decimals'] = decimals;
63
67
  obj['status'] = status;
68
+ obj['archived'] = archived;
64
69
  }
65
70
 
66
71
  /**
@@ -91,6 +96,9 @@ var TokenizationTokenDetailInfo = /*#__PURE__*/function () {
91
96
  if (data.hasOwnProperty('token_symbol')) {
92
97
  obj['token_symbol'] = _ApiClient["default"].convertToType(data['token_symbol'], 'String');
93
98
  }
99
+ if (data.hasOwnProperty('token_standard')) {
100
+ obj['token_standard'] = _TokenizationTokenStandard["default"].constructFromObject(data['token_standard']);
101
+ }
94
102
  if (data.hasOwnProperty('decimals')) {
95
103
  obj['decimals'] = _ApiClient["default"].convertToType(data['decimals'], 'Number');
96
104
  }
@@ -106,9 +114,15 @@ var TokenizationTokenDetailInfo = /*#__PURE__*/function () {
106
114
  if (data.hasOwnProperty('holdings')) {
107
115
  obj['holdings'] = _ApiClient["default"].convertToType(data['holdings'], 'String');
108
116
  }
117
+ if (data.hasOwnProperty('archived')) {
118
+ obj['archived'] = _ApiClient["default"].convertToType(data['archived'], 'Boolean');
119
+ }
109
120
  if (data.hasOwnProperty('permissions')) {
110
121
  obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], [_TokenizationAddressPermission["default"]]);
111
122
  }
123
+ if (data.hasOwnProperty('underlying_token')) {
124
+ obj['underlying_token'] = _TokenizationTokenInfo["default"].constructFromObject(data['underlying_token']);
125
+ }
112
126
  }
113
127
  return obj;
114
128
  }
@@ -185,11 +199,18 @@ var TokenizationTokenDetailInfo = /*#__PURE__*/function () {
185
199
  }
186
200
  ;
187
201
  }
202
+ // validate the optional field `underlying_token`
203
+ if (data['underlying_token']) {
204
+ // data not null
205
+ if (!!_TokenizationTokenInfo["default"].validateJSON) {
206
+ _TokenizationTokenInfo["default"].validateJSON(data['underlying_token']);
207
+ }
208
+ }
188
209
  return true;
189
210
  }
190
211
  }]);
191
212
  }();
192
- TokenizationTokenDetailInfo.RequiredProperties = ["token_id", "chain_id", "token_symbol", "decimals", "status"];
213
+ TokenizationTokenDetailInfo.RequiredProperties = ["token_id", "chain_id", "token_symbol", "token_standard", "decimals", "status", "archived"];
193
214
 
194
215
  /**
195
216
  * The unique token identifier.
@@ -221,6 +242,11 @@ TokenizationTokenDetailInfo.prototype['token_name'] = undefined;
221
242
  */
222
243
  TokenizationTokenDetailInfo.prototype['token_symbol'] = undefined;
223
244
 
245
+ /**
246
+ * @member {module:model/TokenizationTokenStandard} token_standard
247
+ */
248
+ TokenizationTokenDetailInfo.prototype['token_standard'] = undefined;
249
+
224
250
  /**
225
251
  * The number of decimals of the token.
226
252
  * @member {Number} decimals
@@ -250,12 +276,23 @@ TokenizationTokenDetailInfo.prototype['total_supply'] = undefined;
250
276
  */
251
277
  TokenizationTokenDetailInfo.prototype['holdings'] = undefined;
252
278
 
279
+ /**
280
+ * Whether the token is archived. If the token is archived, no operations can be initiated on it.
281
+ * @member {Boolean} archived
282
+ */
283
+ TokenizationTokenDetailInfo.prototype['archived'] = undefined;
284
+
253
285
  /**
254
286
  * List of execution addresses and their permissions.
255
287
  * @member {Array.<module:model/TokenizationAddressPermission>} permissions
256
288
  */
257
289
  TokenizationTokenDetailInfo.prototype['permissions'] = undefined;
258
290
 
291
+ /**
292
+ * @member {module:model/TokenizationTokenInfo} underlying_token
293
+ */
294
+ TokenizationTokenDetailInfo.prototype['underlying_token'] = undefined;
295
+
259
296
  // Implement TokenizationTokenInfo interface:
260
297
  /**
261
298
  * The unique token identifier.
@@ -282,6 +319,10 @@ _TokenizationTokenInfo["default"].prototype['token_name'] = undefined;
282
319
  * @member {String} token_symbol
283
320
  */
284
321
  _TokenizationTokenInfo["default"].prototype['token_symbol'] = undefined;
322
+ /**
323
+ * @member {module:model/TokenizationTokenStandard} token_standard
324
+ */
325
+ _TokenizationTokenInfo["default"].prototype['token_standard'] = undefined;
285
326
  /**
286
327
  * The number of decimals of the token.
287
328
  * @member {Number} decimals
@@ -306,4 +347,9 @@ _TokenizationTokenInfo["default"].prototype['total_supply'] = undefined;
306
347
  * @member {String} holdings
307
348
  */
308
349
  _TokenizationTokenInfo["default"].prototype['holdings'] = undefined;
350
+ /**
351
+ * Whether the token is archived. If the token is archived, no operations can be initiated on it.
352
+ * @member {Boolean} archived
353
+ */
354
+ _TokenizationTokenInfo["default"].prototype['archived'] = undefined;
309
355
  var _default = exports["default"] = TokenizationTokenDetailInfo;