@cobo/cobo-waas2 1.25.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 (102) hide show
  1. package/README.md +21 -5
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AutoSweepApi.js +2 -2
  4. package/dist/api/ComplianceApi.js +2 -2
  5. package/dist/api/FeeStationApi.js +6 -6
  6. package/dist/api/PaymentApi.js +48 -6
  7. package/dist/api/TokenizationApi.js +122 -4
  8. package/dist/api/TransactionsApi.js +2 -2
  9. package/dist/index.js +105 -14
  10. package/dist/model/AutoFuelType.js +5 -0
  11. package/dist/model/CreateCryptoAddressRequest.js +1 -1
  12. package/dist/model/CreateMerchantRequest.js +1 -1
  13. package/dist/model/CreatePaymentOrderRequest.js +8 -8
  14. package/dist/model/CreateRefundLinkRequest.js +129 -0
  15. package/dist/model/FeeStationCheckFeeStationUsage.js +28 -10
  16. package/dist/model/FeeStationCheckFeeStationUsageResponse.js +33 -20
  17. package/dist/model/FeeStationSponsorTransactionDescription.js +125 -0
  18. package/dist/model/Link.js +2 -2
  19. package/dist/model/LinkDisplayInfo.js +2 -2
  20. package/dist/model/MerchantBalance.js +1 -1
  21. package/dist/model/Order.js +1 -1
  22. package/dist/model/OrderLinkBusinessInfo.js +11 -11
  23. package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +4 -4
  24. package/dist/model/PaymentOrderEventData.js +2 -2
  25. package/dist/model/PspBalance.js +1 -1
  26. package/dist/model/RefundLinkBusinessInfo.js +162 -0
  27. package/dist/model/RefundStatus.js +10 -0
  28. package/dist/model/SubmitKytScreeningsReviewBody.js +1 -1
  29. package/dist/model/SwapQuote.js +18 -18
  30. package/dist/model/TokenizationERC20TokenParams.js +5 -5
  31. package/dist/model/{TokenizationTokenPermissionParams.js → TokenizationERC20TokenPermissionParams.js} +23 -23
  32. package/dist/model/TokenizationERC20WrappedTokenParams.js +177 -0
  33. package/dist/model/TokenizationERC20WrappedTokenPermissionParams.js +166 -0
  34. package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +38 -11
  35. package/dist/model/TokenizationIssueTokenParamsTokenParams.js +72 -10
  36. package/dist/model/TokenizationListPermissionsResponse.js +146 -0
  37. package/dist/model/TokenizationListPermissionsResponseDataInner.js +126 -0
  38. package/dist/model/TokenizationOperationType.js +5 -0
  39. package/dist/model/TokenizationPermissionAction.js +66 -0
  40. package/dist/model/TokenizationSOLWrappedTokenParams.js +177 -0
  41. package/dist/model/TokenizationSolWrappedTokenPermissionParams.js +127 -0
  42. package/dist/model/TokenizationTokenDetailInfo.js +51 -5
  43. package/dist/model/TokenizationTokenInfo.js +26 -4
  44. package/dist/model/TokenizationTokenPermissionType.js +5 -0
  45. package/dist/model/TokenizationTokenStandard.js +10 -0
  46. package/dist/model/{TokenizationTokenPermissionsResponse.js → TokenizationUpdateAddressPermissions.js} +51 -53
  47. package/dist/model/TokenizationUpdatePermissionsEstimateFeeParams.js +198 -0
  48. package/dist/model/TokenizationUpdatePermissionsParams.js +145 -0
  49. package/dist/model/TokenizationUpdatePermissionsRequest.js +213 -0
  50. package/dist/model/TransactionCoboCategory.js +35 -0
  51. package/dist/model/UpdateMerchantByIdRequest.js +1 -1
  52. package/dist/model/WebhookEventData.js +1 -1
  53. package/docs/AutoFuelType.md +2 -0
  54. package/docs/AutoSweepApi.md +2 -2
  55. package/docs/ComplianceApi.md +1 -1
  56. package/docs/CreateCryptoAddressRequest.md +1 -1
  57. package/docs/CreateMerchantRequest.md +1 -1
  58. package/docs/CreatePaymentOrderRequest.md +5 -5
  59. package/docs/CreateRefundLinkRequest.md +10 -0
  60. package/docs/FeeStationApi.md +4 -4
  61. package/docs/FeeStationCheckFeeStationUsage.md +4 -2
  62. package/docs/FeeStationCheckFeeStationUsageResponse.md +4 -3
  63. package/docs/FeeStationSponsorTransactionDescription.md +10 -0
  64. package/docs/Link.md +1 -1
  65. package/docs/LinkDisplayInfo.md +2 -2
  66. package/docs/MerchantBalance.md +1 -1
  67. package/docs/Order.md +1 -1
  68. package/docs/OrderLinkBusinessInfo.md +7 -7
  69. package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
  70. package/docs/PaymentApi.md +56 -3
  71. package/docs/PaymentOrderEventData.md +1 -1
  72. package/docs/PspBalance.md +1 -1
  73. package/docs/RefundLinkBusinessInfo.md +13 -0
  74. package/docs/RefundStatus.md +4 -0
  75. package/docs/SwapQuote.md +10 -10
  76. package/docs/TokenizationApi.md +120 -2
  77. package/docs/TokenizationERC20TokenParams.md +1 -1
  78. package/docs/{TokenizationTokenPermissionParams.md → TokenizationERC20TokenPermissionParams.md} +1 -1
  79. package/docs/TokenizationERC20WrappedTokenParams.md +14 -0
  80. package/docs/TokenizationERC20WrappedTokenPermissionParams.md +15 -0
  81. package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -1
  82. package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -1
  83. package/docs/TokenizationListPermissionsResponse.md +10 -0
  84. package/docs/TokenizationListPermissionsResponseDataInner.md +10 -0
  85. package/docs/TokenizationOperationType.md +2 -0
  86. package/docs/TokenizationPermissionAction.md +14 -0
  87. package/docs/TokenizationSOLWrappedTokenParams.md +14 -0
  88. package/docs/TokenizationSolWrappedTokenPermissionParams.md +12 -0
  89. package/docs/TokenizationTokenDetailInfo.md +3 -0
  90. package/docs/TokenizationTokenInfo.md +2 -0
  91. package/docs/TokenizationTokenPermissionType.md +2 -0
  92. package/docs/TokenizationTokenStandard.md +4 -0
  93. package/docs/TokenizationUpdateAddressPermissions.md +11 -0
  94. package/docs/TokenizationUpdatePermissionsEstimateFeeParams.md +13 -0
  95. package/docs/TokenizationUpdatePermissionsParams.md +10 -0
  96. package/docs/TokenizationUpdatePermissionsRequest.md +13 -0
  97. package/docs/TransactionCoboCategory.md +14 -0
  98. package/docs/TransactionsApi.md +1 -1
  99. package/docs/UpdateMerchantByIdRequest.md +1 -1
  100. package/docs/WebhookEventData.md +1 -1
  101. package/package.json +1 -1
  102. package/docs/TokenizationTokenPermissionsResponse.md +0 -10
@@ -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;
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _TokenizationStatus = _interopRequireDefault(require("./TokenizationStatus"));
9
+ var _TokenizationTokenStandard = _interopRequireDefault(require("./TokenizationTokenStandard"));
9
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
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); }
11
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; } } }; }
@@ -36,12 +37,14 @@ var TokenizationTokenInfo = /*#__PURE__*/function () {
36
37
  * @param token_id {String} The unique token identifier.
37
38
  * @param chain_id {String} The chain ID of the tokenization contract.
38
39
  * @param token_symbol {String} The unique token symbol.
40
+ * @param token_standard {module:model/TokenizationTokenStandard}
39
41
  * @param decimals {Number} The number of decimals of the token.
40
42
  * @param status {module:model/TokenizationStatus}
43
+ * @param archived {Boolean} Whether the token is archived. If the token is archived, no operations can be initiated on it.
41
44
  */
42
- function TokenizationTokenInfo(token_id, chain_id, token_symbol, decimals, status) {
45
+ function TokenizationTokenInfo(token_id, chain_id, token_symbol, token_standard, decimals, status, archived) {
43
46
  _classCallCheck(this, TokenizationTokenInfo);
44
- TokenizationTokenInfo.initialize(this, token_id, chain_id, token_symbol, decimals, status);
47
+ TokenizationTokenInfo.initialize(this, token_id, chain_id, token_symbol, token_standard, decimals, status, archived);
45
48
  }
46
49
 
47
50
  /**
@@ -51,12 +54,14 @@ var TokenizationTokenInfo = /*#__PURE__*/function () {
51
54
  */
52
55
  return _createClass(TokenizationTokenInfo, null, [{
53
56
  key: "initialize",
54
- value: function initialize(obj, token_id, chain_id, token_symbol, decimals, status) {
57
+ value: function initialize(obj, token_id, chain_id, token_symbol, token_standard, decimals, status, archived) {
55
58
  obj['token_id'] = token_id;
56
59
  obj['chain_id'] = chain_id;
57
60
  obj['token_symbol'] = token_symbol;
61
+ obj['token_standard'] = token_standard;
58
62
  obj['decimals'] = decimals;
59
63
  obj['status'] = status;
64
+ obj['archived'] = archived;
60
65
  }
61
66
 
62
67
  /**
@@ -86,6 +91,9 @@ var TokenizationTokenInfo = /*#__PURE__*/function () {
86
91
  if (data.hasOwnProperty('token_symbol')) {
87
92
  obj['token_symbol'] = _ApiClient["default"].convertToType(data['token_symbol'], 'String');
88
93
  }
94
+ if (data.hasOwnProperty('token_standard')) {
95
+ obj['token_standard'] = _TokenizationTokenStandard["default"].constructFromObject(data['token_standard']);
96
+ }
89
97
  if (data.hasOwnProperty('decimals')) {
90
98
  obj['decimals'] = _ApiClient["default"].convertToType(data['decimals'], 'Number');
91
99
  }
@@ -101,6 +109,9 @@ var TokenizationTokenInfo = /*#__PURE__*/function () {
101
109
  if (data.hasOwnProperty('holdings')) {
102
110
  obj['holdings'] = _ApiClient["default"].convertToType(data['holdings'], 'String');
103
111
  }
112
+ if (data.hasOwnProperty('archived')) {
113
+ obj['archived'] = _ApiClient["default"].convertToType(data['archived'], 'Boolean');
114
+ }
104
115
  }
105
116
  return obj;
106
117
  }
@@ -160,7 +171,7 @@ var TokenizationTokenInfo = /*#__PURE__*/function () {
160
171
  }
161
172
  }]);
162
173
  }();
163
- TokenizationTokenInfo.RequiredProperties = ["token_id", "chain_id", "token_symbol", "decimals", "status"];
174
+ TokenizationTokenInfo.RequiredProperties = ["token_id", "chain_id", "token_symbol", "token_standard", "decimals", "status", "archived"];
164
175
 
165
176
  /**
166
177
  * The unique token identifier.
@@ -192,6 +203,11 @@ TokenizationTokenInfo.prototype['token_name'] = undefined;
192
203
  */
193
204
  TokenizationTokenInfo.prototype['token_symbol'] = undefined;
194
205
 
206
+ /**
207
+ * @member {module:model/TokenizationTokenStandard} token_standard
208
+ */
209
+ TokenizationTokenInfo.prototype['token_standard'] = undefined;
210
+
195
211
  /**
196
212
  * The number of decimals of the token.
197
213
  * @member {Number} decimals
@@ -220,4 +236,10 @@ TokenizationTokenInfo.prototype['total_supply'] = undefined;
220
236
  * @member {String} holdings
221
237
  */
222
238
  TokenizationTokenInfo.prototype['holdings'] = undefined;
239
+
240
+ /**
241
+ * Whether the token is archived. If the token is archived, no operations can be initiated on it.
242
+ * @member {Boolean} archived
243
+ */
244
+ TokenizationTokenInfo.prototype['archived'] = undefined;
223
245
  var _default = exports["default"] = TokenizationTokenInfo;
@@ -50,6 +50,11 @@ var TokenizationTokenPermissionType = exports["default"] = /*#__PURE__*/function
50
50
  * @const
51
51
  */
52
52
  _defineProperty(this, "BurnTokens", "BurnTokens");
53
+ /**
54
+ * value: "WrapTokens"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "WrapTokens", "WrapTokens");
53
58
  /**
54
59
  * value: "RecoverTokens"
55
60
  * @const
@@ -40,6 +40,16 @@ var TokenizationTokenStandard = exports["default"] = /*#__PURE__*/function () {
40
40
  * @const
41
41
  */
42
42
  _defineProperty(this, "SPLToken2022", "SPLToken2022");
43
+ /**
44
+ * value: "ERC20Wrapper"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "ERC20Wrapper", "ERC20Wrapper");
48
+ /**
49
+ * value: "SOLWrapper"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "SOLWrapper", "SOLWrapper");
43
53
  /**
44
54
  * value: "unknown_default_open_api"
45
55
  * @const