@cobo/cobo-waas2 1.16.0 → 1.18.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 (214) hide show
  1. package/README.md +46 -6
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/PreRequestScript.js +27 -33
  4. package/dist/api/AppWorkflowsApi.js +22 -22
  5. package/dist/api/FeeStationApi.js +2 -2
  6. package/dist/api/OAuthApi.js +93 -6
  7. package/dist/api/OrganizationsApi.js +79 -0
  8. package/dist/api/PaymentApi.js +265 -55
  9. package/dist/api/TransactionsApi.js +2 -2
  10. package/dist/api/WalletsApi.js +11 -8
  11. package/dist/index.js +252 -14
  12. package/dist/model/Account.js +174 -0
  13. package/dist/model/AcquiringType.js +61 -0
  14. package/dist/model/AddressTransferDestination.js +2 -2
  15. package/dist/model/AddressesEventData.js +8 -3
  16. package/dist/model/AppWorkflow.js +7 -7
  17. package/dist/model/AppWorkflowField.js +5 -5
  18. package/dist/model/AppWorkflowPolicy.js +1 -1
  19. package/dist/model/ApprovalEntry.js +1 -1
  20. package/dist/model/ApprovalRequest.js +5 -3
  21. package/dist/model/ApprovalRequestDetail.js +2 -1
  22. package/dist/model/ApprovalUser.js +4 -4
  23. package/dist/model/BalanceUpdateInfo.js +170 -0
  24. package/dist/model/BalanceUpdateInfoEventData.js +297 -0
  25. package/dist/model/BankAccount.js +2 -2
  26. package/dist/model/ChainInfo.js +1 -1
  27. package/dist/model/ChainsEventData.js +8 -3
  28. package/dist/model/CreateApprovalRequest201Response.js +2 -1
  29. package/dist/model/CreateMerchantRequest.js +13 -0
  30. package/dist/model/CreatePaymentOrderRequest.js +14 -5
  31. package/dist/model/CreateRefundRequest.js +41 -8
  32. package/dist/model/CreateSettlement.js +28 -12
  33. package/dist/model/CreateSettlementRequestRequest.js +27 -0
  34. package/dist/model/CryptoAddress.js +171 -0
  35. package/dist/model/CustodialTransferDestination.js +137 -0
  36. package/dist/model/EstimateContractCallFeeParams.js +2 -2
  37. package/dist/model/EstimateFeeParams.js +1 -1
  38. package/dist/model/EstimatedFILFee.js +170 -0
  39. package/dist/model/EstimatedFILFeeSlow.js +186 -0
  40. package/dist/model/EstimatedFee.js +68 -12
  41. package/dist/model/EstimatedSOLFee.js +170 -0
  42. package/dist/model/EstimatedSOLFeeSlow.js +184 -0
  43. package/dist/model/ExchangePermissionToken201Response.js +122 -0
  44. package/dist/model/{CreateBankAccountRequest.js → ExchangePermissionTokenRequest.js} +30 -28
  45. package/dist/model/FILBase.js +88 -0
  46. package/dist/model/FILPrice.js +114 -0
  47. package/dist/model/FeeType.js +10 -0
  48. package/dist/model/GetExchangeRate200Response.js +2 -2
  49. package/dist/model/GraphQLError.js +135 -0
  50. package/dist/model/GraphQLErrorLocationsInner.js +92 -0
  51. package/dist/model/{TransactionMessageSignBTCEIP191Destination.js → GraphQLRequest.js} +49 -36
  52. package/dist/model/GraphQLResponse.js +119 -0
  53. package/dist/model/ListTopUpPayers200Response.js +123 -0
  54. package/dist/model/ListTopUpPayers200ResponseDataInner.js +189 -0
  55. package/dist/model/MPCVaultEventData.js +8 -3
  56. package/dist/model/Merchant.js +15 -2
  57. package/dist/model/Order.js +16 -7
  58. package/dist/model/PayerAccount.js +189 -0
  59. package/dist/model/PaymentOrderEventData.js +33 -15
  60. package/dist/model/PaymentRefundEventData.js +66 -11
  61. package/dist/model/PaymentSettlementEvent.js +14 -9
  62. package/dist/model/PayoutChannel.js +61 -0
  63. package/dist/model/PolicyAction.js +1 -1
  64. package/dist/model/PolicyActionContent.js +6 -4
  65. package/dist/model/PolicyCondition.js +5 -5
  66. package/dist/model/RefreshPermissionTokenRequest.js +110 -0
  67. package/dist/model/Refund.js +39 -4
  68. package/dist/model/RefundStatus.js +5 -0
  69. package/dist/model/RequestApproval.js +9 -9
  70. package/dist/model/RevokeApprovalRequest201Response.js +2 -1
  71. package/dist/model/RevokeApprovalRequestRequest.js +2 -2
  72. package/dist/model/SOLBase.js +101 -0
  73. package/dist/model/SOLComputeUnit.js +101 -0
  74. package/dist/model/Settlement.js +3 -3
  75. package/dist/model/SettlementDetail.js +24 -6
  76. package/dist/model/SettlementInfo.js +11 -2
  77. package/dist/model/SupportedToken.js +222 -0
  78. package/dist/model/SwapActivityDetail.js +30 -0
  79. package/dist/model/SwapActivitySigners.js +110 -0
  80. package/dist/model/SwapQuote.js +17 -4
  81. package/dist/model/SwapSingingStatus.js +71 -0
  82. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  83. package/dist/model/TokenListingEventData.js +8 -3
  84. package/dist/model/TokensEventData.js +8 -3
  85. package/dist/model/TopUpAddress.js +230 -0
  86. package/dist/model/TransactionCoboCategory.js +20 -0
  87. package/dist/model/TransactionDestination.js +14 -38
  88. package/dist/model/TransactionDestinationType.js +5 -0
  89. package/dist/model/TransactionEvmCalldataInfo.js +1 -1
  90. package/dist/model/TransactionFILFee.js +229 -0
  91. package/dist/model/TransactionFee.js +107 -9
  92. package/dist/model/TransactionRequestFILFee.js +186 -0
  93. package/dist/model/TransactionRequestFee.js +89 -9
  94. package/dist/model/TransactionRequestSOLFee.js +168 -0
  95. package/dist/model/TransactionSOLFee.js +229 -0
  96. package/dist/model/TransactionTransferToAddressDestination.js +2 -2
  97. package/dist/model/TransactionTransferToWalletDestination.js +2 -2
  98. package/dist/model/TransactionWebhookEventData.js +8 -3
  99. package/dist/model/TransferDestination.js +44 -16
  100. package/dist/model/TransferDestinationType.js +5 -0
  101. package/dist/model/UpdateMerchantByIdRequest.js +13 -0
  102. package/dist/model/UpdateRefundByIdRequest.js +110 -0
  103. package/dist/model/UpdateTopUpAddress.js +141 -0
  104. package/dist/model/WalletInfoEventData.js +8 -3
  105. package/dist/model/WebhookEvent.js +2 -2
  106. package/dist/model/WebhookEventData.js +83 -13
  107. package/dist/model/WebhookEventDataType.js +7 -2
  108. package/dist/model/WebhookEventLog.js +2 -2
  109. package/dist/model/WebhookEventType.js +15 -0
  110. package/docs/Account.md +14 -0
  111. package/docs/AcquiringType.md +12 -0
  112. package/docs/AddressTransferDestination.md +2 -2
  113. package/docs/AddressesEventData.md +3 -1
  114. package/docs/AppWorkflow.md +3 -3
  115. package/docs/AppWorkflowField.md +2 -2
  116. package/docs/AppWorkflowsApi.md +12 -12
  117. package/docs/ApprovalRequest.md +2 -2
  118. package/docs/ApprovalRequestDetail.md +1 -1
  119. package/docs/ApprovalUser.md +2 -2
  120. package/docs/BalanceUpdateInfo.md +13 -0
  121. package/docs/BalanceUpdateInfoEventData.md +47 -0
  122. package/docs/BankAccount.md +2 -2
  123. package/docs/ChainInfo.md +1 -1
  124. package/docs/ChainsEventData.md +3 -1
  125. package/docs/CreateApprovalRequest201Response.md +1 -1
  126. package/docs/CreateMerchantRequest.md +1 -0
  127. package/docs/CreatePaymentOrderRequest.md +2 -1
  128. package/docs/CreateRefundRequest.md +5 -2
  129. package/docs/CreateSettlement.md +7 -6
  130. package/docs/CreateSettlementRequestRequest.md +3 -0
  131. package/docs/CryptoAddress.md +14 -0
  132. package/docs/CustodialTransferDestination.md +11 -0
  133. package/docs/EstimateContractCallFeeParams.md +1 -1
  134. package/docs/EstimateFeeParams.md +1 -1
  135. package/docs/EstimatedFILFee.md +13 -0
  136. package/docs/EstimatedFILFeeSlow.md +12 -0
  137. package/docs/EstimatedFee.md +3 -3
  138. package/docs/EstimatedSOLFee.md +13 -0
  139. package/docs/EstimatedSOLFeeSlow.md +12 -0
  140. package/docs/ExchangePermissionToken201Response.md +12 -0
  141. package/docs/ExchangePermissionTokenRequest.md +9 -0
  142. package/docs/FILBase.md +9 -0
  143. package/docs/FILPrice.md +11 -0
  144. package/docs/FeeStationApi.md +1 -1
  145. package/docs/FeeType.md +4 -0
  146. package/docs/GetExchangeRate200Response.md +1 -1
  147. package/docs/GraphQLError.md +11 -0
  148. package/docs/GraphQLErrorLocationsInner.md +10 -0
  149. package/docs/GraphQLRequest.md +11 -0
  150. package/docs/GraphQLResponse.md +10 -0
  151. package/docs/ListTopUpPayers200Response.md +10 -0
  152. package/docs/ListTopUpPayers200ResponseDataInner.md +14 -0
  153. package/docs/MPCVaultEventData.md +3 -1
  154. package/docs/Merchant.md +3 -2
  155. package/docs/OAuthApi.md +102 -0
  156. package/docs/Order.md +6 -5
  157. package/docs/OrganizationsApi.md +55 -0
  158. package/docs/PayerAccount.md +14 -0
  159. package/docs/PaymentApi.md +247 -29
  160. package/docs/PaymentOrderEventData.md +9 -6
  161. package/docs/PaymentRefundEventData.md +10 -5
  162. package/docs/PaymentSettlementEvent.md +6 -4
  163. package/docs/PayoutChannel.md +12 -0
  164. package/docs/PolicyActionContent.md +4 -4
  165. package/docs/PolicyCondition.md +2 -2
  166. package/docs/RefreshPermissionTokenRequest.md +9 -0
  167. package/docs/Refund.md +7 -4
  168. package/docs/RefundStatus.md +2 -0
  169. package/docs/RequestApproval.md +4 -4
  170. package/docs/RevokeApprovalRequest201Response.md +1 -1
  171. package/docs/RevokeApprovalRequestRequest.md +1 -1
  172. package/docs/SOLBase.md +10 -0
  173. package/docs/SOLComputeUnit.md +10 -0
  174. package/docs/Settlement.md +3 -3
  175. package/docs/SettlementDetail.md +8 -6
  176. package/docs/SettlementInfo.md +3 -2
  177. package/docs/SupportedToken.md +17 -0
  178. package/docs/SwapActivityDetail.md +1 -0
  179. package/docs/SwapActivitySigners.md +11 -0
  180. package/docs/SwapQuote.md +3 -2
  181. package/docs/SwapSingingStatus.md +16 -0
  182. package/docs/TSSRequestWebhookEventData.md +3 -1
  183. package/docs/TokenListingEventData.md +3 -1
  184. package/docs/TokensEventData.md +3 -1
  185. package/docs/TopUpAddress.md +18 -0
  186. package/docs/TransactionCoboCategory.md +8 -0
  187. package/docs/TransactionDestination.md +2 -2
  188. package/docs/TransactionDestinationType.md +2 -0
  189. package/docs/TransactionEvmCalldataInfo.md +1 -1
  190. package/docs/TransactionFILFee.md +16 -0
  191. package/docs/TransactionFee.md +8 -1
  192. package/docs/TransactionRequestFILFee.md +13 -0
  193. package/docs/TransactionRequestFee.md +5 -1
  194. package/docs/TransactionRequestSOLFee.md +12 -0
  195. package/docs/TransactionSOLFee.md +16 -0
  196. package/docs/TransactionTransferToAddressDestination.md +2 -2
  197. package/docs/TransactionTransferToWalletDestination.md +1 -1
  198. package/docs/TransactionWebhookEventData.md +3 -1
  199. package/docs/TransactionsApi.md +1 -1
  200. package/docs/TransferDestination.md +3 -3
  201. package/docs/TransferDestinationType.md +2 -0
  202. package/docs/UpdateMerchantByIdRequest.md +1 -0
  203. package/docs/UpdateRefundByIdRequest.md +9 -0
  204. package/docs/UpdateTopUpAddress.md +11 -0
  205. package/docs/WalletInfoEventData.md +3 -1
  206. package/docs/WalletsApi.md +6 -4
  207. package/docs/WebhookEvent.md +1 -1
  208. package/docs/WebhookEventData.md +14 -5
  209. package/docs/WebhookEventDataType.md +3 -1
  210. package/docs/WebhookEventLog.md +1 -1
  211. package/docs/WebhookEventType.md +6 -0
  212. package/package.json +1 -1
  213. package/docs/CreateBankAccountRequest.md +0 -9
  214. package/docs/TransactionMessageSignBTCEIP191Destination.md +0 -10
@@ -0,0 +1,184 @@
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 _SOLBase = _interopRequireDefault(require("./SOLBase"));
9
+ var _SOLComputeUnit = _interopRequireDefault(require("./SOLComputeUnit"));
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 EstimatedSOLFeeSlow model module.
31
+ * @module model/EstimatedSOLFeeSlow
32
+ */
33
+ var EstimatedSOLFeeSlow = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>EstimatedSOLFeeSlow</code>.
36
+ * @alias module:model/EstimatedSOLFeeSlow
37
+ * @implements module:model/SOLComputeUnit
38
+ * @implements module:model/SOLBase
39
+ * @param compute_unit_price {String} The cost per compute unit. Transactions consume computational resources measured in compute units, and this price helps determine the cost of executing transactions, especially complex ones involving smart contracts.
40
+ * @param compute_unit_limit {String} The maximum number of compute units allowed for a transaction. This limits the resources any single transaction can consume, preventing excessive resource usage that could impact network performance negatively.
41
+ * @param base_fee {String} The fundamental fee required for each transaction. It is charged to prevent spam transactions and network congestion, ensuring that only meaningful transactions consume network resources.
42
+ */
43
+ function EstimatedSOLFeeSlow(compute_unit_price, compute_unit_limit, base_fee) {
44
+ _classCallCheck(this, EstimatedSOLFeeSlow);
45
+ _SOLComputeUnit["default"].initialize(this);
46
+ _SOLBase["default"].initialize(this);
47
+ EstimatedSOLFeeSlow.initialize(this, compute_unit_price, compute_unit_limit, base_fee);
48
+ }
49
+
50
+ /**
51
+ * Initializes the fields of this object.
52
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
53
+ * Only for internal use.
54
+ */
55
+ return _createClass(EstimatedSOLFeeSlow, null, [{
56
+ key: "initialize",
57
+ value: function initialize(obj, compute_unit_price, compute_unit_limit, base_fee) {
58
+ obj['compute_unit_price'] = compute_unit_price;
59
+ obj['compute_unit_limit'] = compute_unit_limit;
60
+ obj['base_fee'] = base_fee;
61
+ }
62
+
63
+ /**
64
+ * Constructs a <code>EstimatedSOLFeeSlow</code> from a plain JavaScript object, optionally creating a new instance.
65
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
66
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
67
+ * @param {module:model/EstimatedSOLFeeSlow} obj Optional instance to populate.
68
+ * @return {module:model/EstimatedSOLFeeSlow} The populated <code>EstimatedSOLFeeSlow</code> instance.
69
+ */
70
+ }, {
71
+ key: "constructFromObject",
72
+ value: function constructFromObject(data, obj) {
73
+ if (data) {
74
+ obj = obj || new EstimatedSOLFeeSlow();
75
+ _SOLComputeUnit["default"].constructFromObject(data, obj);
76
+ _SOLBase["default"].constructFromObject(data, obj);
77
+ if (data.hasOwnProperty('compute_unit_price')) {
78
+ obj['compute_unit_price'] = _ApiClient["default"].convertToType(data['compute_unit_price'], 'String');
79
+ }
80
+ if (data.hasOwnProperty('compute_unit_limit')) {
81
+ obj['compute_unit_limit'] = _ApiClient["default"].convertToType(data['compute_unit_limit'], 'String');
82
+ }
83
+ if (data.hasOwnProperty('base_fee')) {
84
+ obj['base_fee'] = _ApiClient["default"].convertToType(data['base_fee'], 'String');
85
+ }
86
+ if (data.hasOwnProperty('rent_amount')) {
87
+ obj['rent_amount'] = _ApiClient["default"].convertToType(data['rent_amount'], 'String');
88
+ }
89
+ }
90
+ return obj;
91
+ }
92
+
93
+ /**
94
+ * Validates the JSON data with respect to <code>EstimatedSOLFeeSlow</code>.
95
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
96
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>EstimatedSOLFeeSlow</code>.
97
+ */
98
+ }, {
99
+ key: "validateJSON",
100
+ value: function validateJSON(data) {
101
+ // check to make sure all required properties are present in the JSON string
102
+ var _iterator = _createForOfIteratorHelper(EstimatedSOLFeeSlow.RequiredProperties),
103
+ _step;
104
+ try {
105
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
106
+ var property = _step.value;
107
+ if (!data.hasOwnProperty(property)) {
108
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
109
+ }
110
+ }
111
+ // ensure the json data is a string
112
+ } catch (err) {
113
+ _iterator.e(err);
114
+ } finally {
115
+ _iterator.f();
116
+ }
117
+ if (data['compute_unit_price'] && !(typeof data['compute_unit_price'] === 'string' || data['compute_unit_price'] instanceof String)) {
118
+ throw new Error("Expected the field `compute_unit_price` to be a primitive type in the JSON string but got " + data['compute_unit_price']);
119
+ }
120
+ // ensure the json data is a string
121
+ if (data['compute_unit_limit'] && !(typeof data['compute_unit_limit'] === 'string' || data['compute_unit_limit'] instanceof String)) {
122
+ throw new Error("Expected the field `compute_unit_limit` to be a primitive type in the JSON string but got " + data['compute_unit_limit']);
123
+ }
124
+ // ensure the json data is a string
125
+ if (data['base_fee'] && !(typeof data['base_fee'] === 'string' || data['base_fee'] instanceof String)) {
126
+ throw new Error("Expected the field `base_fee` to be a primitive type in the JSON string but got " + data['base_fee']);
127
+ }
128
+ // ensure the json data is a string
129
+ if (data['rent_amount'] && !(typeof data['rent_amount'] === 'string' || data['rent_amount'] instanceof String)) {
130
+ throw new Error("Expected the field `rent_amount` to be a primitive type in the JSON string but got " + data['rent_amount']);
131
+ }
132
+ return true;
133
+ }
134
+ }]);
135
+ }();
136
+ EstimatedSOLFeeSlow.RequiredProperties = ["compute_unit_price", "compute_unit_limit", "base_fee"];
137
+
138
+ /**
139
+ * The cost per compute unit. Transactions consume computational resources measured in compute units, and this price helps determine the cost of executing transactions, especially complex ones involving smart contracts.
140
+ * @member {String} compute_unit_price
141
+ */
142
+ EstimatedSOLFeeSlow.prototype['compute_unit_price'] = undefined;
143
+
144
+ /**
145
+ * The maximum number of compute units allowed for a transaction. This limits the resources any single transaction can consume, preventing excessive resource usage that could impact network performance negatively.
146
+ * @member {String} compute_unit_limit
147
+ */
148
+ EstimatedSOLFeeSlow.prototype['compute_unit_limit'] = undefined;
149
+
150
+ /**
151
+ * The fundamental fee required for each transaction. It is charged to prevent spam transactions and network congestion, ensuring that only meaningful transactions consume network resources.
152
+ * @member {String} base_fee
153
+ */
154
+ EstimatedSOLFeeSlow.prototype['base_fee'] = undefined;
155
+
156
+ /**
157
+ * The fee charged as rent for maintaining the state of accounts on the blockchain. This rent ensures accounts are stored on-chain over the long term and that there's sufficient balance to sustain the account state.
158
+ * @member {String} rent_amount
159
+ */
160
+ EstimatedSOLFeeSlow.prototype['rent_amount'] = undefined;
161
+
162
+ // Implement SOLComputeUnit interface:
163
+ /**
164
+ * The cost per compute unit. Transactions consume computational resources measured in compute units, and this price helps determine the cost of executing transactions, especially complex ones involving smart contracts.
165
+ * @member {String} compute_unit_price
166
+ */
167
+ _SOLComputeUnit["default"].prototype['compute_unit_price'] = undefined;
168
+ /**
169
+ * The maximum number of compute units allowed for a transaction. This limits the resources any single transaction can consume, preventing excessive resource usage that could impact network performance negatively.
170
+ * @member {String} compute_unit_limit
171
+ */
172
+ _SOLComputeUnit["default"].prototype['compute_unit_limit'] = undefined;
173
+ // Implement SOLBase interface:
174
+ /**
175
+ * The fundamental fee required for each transaction. It is charged to prevent spam transactions and network congestion, ensuring that only meaningful transactions consume network resources.
176
+ * @member {String} base_fee
177
+ */
178
+ _SOLBase["default"].prototype['base_fee'] = undefined;
179
+ /**
180
+ * The fee charged as rent for maintaining the state of accounts on the blockchain. This rent ensures accounts are stored on-chain over the long term and that there's sufficient balance to sustain the account state.
181
+ * @member {String} rent_amount
182
+ */
183
+ _SOLBase["default"].prototype['rent_amount'] = undefined;
184
+ var _default = exports["default"] = EstimatedSOLFeeSlow;
@@ -0,0 +1,122 @@
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 ExchangePermissionToken201Response model module.
26
+ * @module model/ExchangePermissionToken201Response
27
+ */
28
+ var ExchangePermissionToken201Response = /*#__PURE__*/function () {
29
+ /**
30
+ * Constructs a new <code>ExchangePermissionToken201Response</code>.
31
+ * @alias module:model/ExchangePermissionToken201Response
32
+ */
33
+ function ExchangePermissionToken201Response() {
34
+ _classCallCheck(this, ExchangePermissionToken201Response);
35
+ ExchangePermissionToken201Response.initialize(this);
36
+ }
37
+
38
+ /**
39
+ * Initializes the fields of this object.
40
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
41
+ * Only for internal use.
42
+ */
43
+ return _createClass(ExchangePermissionToken201Response, null, [{
44
+ key: "initialize",
45
+ value: function initialize(obj) {}
46
+
47
+ /**
48
+ * Constructs a <code>ExchangePermissionToken201Response</code> from a plain JavaScript object, optionally creating a new instance.
49
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
50
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
51
+ * @param {module:model/ExchangePermissionToken201Response} obj Optional instance to populate.
52
+ * @return {module:model/ExchangePermissionToken201Response} The populated <code>ExchangePermissionToken201Response</code> instance.
53
+ */
54
+ }, {
55
+ key: "constructFromObject",
56
+ value: function constructFromObject(data, obj) {
57
+ if (data) {
58
+ obj = obj || new ExchangePermissionToken201Response();
59
+ if (data.hasOwnProperty('access_token')) {
60
+ obj['access_token'] = _ApiClient["default"].convertToType(data['access_token'], 'String');
61
+ }
62
+ if (data.hasOwnProperty('token_type')) {
63
+ obj['token_type'] = _ApiClient["default"].convertToType(data['token_type'], 'String');
64
+ }
65
+ if (data.hasOwnProperty('expires_in')) {
66
+ obj['expires_in'] = _ApiClient["default"].convertToType(data['expires_in'], 'Number');
67
+ }
68
+ if (data.hasOwnProperty('refresh_token')) {
69
+ obj['refresh_token'] = _ApiClient["default"].convertToType(data['refresh_token'], 'String');
70
+ }
71
+ }
72
+ return obj;
73
+ }
74
+
75
+ /**
76
+ * Validates the JSON data with respect to <code>ExchangePermissionToken201Response</code>.
77
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
78
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ExchangePermissionToken201Response</code>.
79
+ */
80
+ }, {
81
+ key: "validateJSON",
82
+ value: function validateJSON(data) {
83
+ // ensure the json data is a string
84
+ if (data['access_token'] && !(typeof data['access_token'] === 'string' || data['access_token'] instanceof String)) {
85
+ throw new Error("Expected the field `access_token` to be a primitive type in the JSON string but got " + data['access_token']);
86
+ }
87
+ // ensure the json data is a string
88
+ if (data['token_type'] && !(typeof data['token_type'] === 'string' || data['token_type'] instanceof String)) {
89
+ throw new Error("Expected the field `token_type` to be a primitive type in the JSON string but got " + data['token_type']);
90
+ }
91
+ // ensure the json data is a string
92
+ if (data['refresh_token'] && !(typeof data['refresh_token'] === 'string' || data['refresh_token'] instanceof String)) {
93
+ throw new Error("Expected the field `refresh_token` to be a primitive type in the JSON string but got " + data['refresh_token']);
94
+ }
95
+ return true;
96
+ }
97
+ }]);
98
+ }();
99
+ /**
100
+ * The Access Token.
101
+ * @member {String} access_token
102
+ */
103
+ ExchangePermissionToken201Response.prototype['access_token'] = undefined;
104
+
105
+ /**
106
+ * The token type. This is always `Bearer`.
107
+ * @member {String} token_type
108
+ */
109
+ ExchangePermissionToken201Response.prototype['token_type'] = undefined;
110
+
111
+ /**
112
+ * The time in seconds until the Access Token expires. This is always `3600`, indicating the token expires 1 hour after issuance.
113
+ * @member {Number} expires_in
114
+ */
115
+ ExchangePermissionToken201Response.prototype['expires_in'] = undefined;
116
+
117
+ /**
118
+ * The Refresh Token. Use it to obtain a new Access Token when the current one expires. The Refresh Token is valid for 7 days.
119
+ * @member {String} refresh_token
120
+ */
121
+ ExchangePermissionToken201Response.prototype['refresh_token'] = undefined;
122
+ var _default = exports["default"] = ExchangePermissionToken201Response;
@@ -25,18 +25,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
25
25
  *
26
26
  */
27
27
  /**
28
- * The CreateBankAccountRequest model module.
29
- * @module model/CreateBankAccountRequest
28
+ * The ExchangePermissionTokenRequest model module.
29
+ * @module model/ExchangePermissionTokenRequest
30
30
  */
31
- var CreateBankAccountRequest = /*#__PURE__*/function () {
31
+ var ExchangePermissionTokenRequest = /*#__PURE__*/function () {
32
32
  /**
33
- * Constructs a new <code>CreateBankAccountRequest</code>.
34
- * @alias module:model/CreateBankAccountRequest
35
- * @param info {Object.<String, Object>} JSON-formatted bank account details. The object should include the following fields: - beneficiary_name: Name of the account holder - beneficiary_address: Address of the account holder - account_number: Bank account number - bank_name: Name of the bank - bank_address: Address of the bank - iban: (Optional) International Bank Account Number - swift_or_bic: SWIFT or BIC code of the bank
33
+ * Constructs a new <code>ExchangePermissionTokenRequest</code>.
34
+ * @alias module:model/ExchangePermissionTokenRequest
35
+ * @param permission_type {String} Set the value to `payment_orders_payin`.
36
36
  */
37
- function CreateBankAccountRequest(info) {
38
- _classCallCheck(this, CreateBankAccountRequest);
39
- CreateBankAccountRequest.initialize(this, info);
37
+ function ExchangePermissionTokenRequest(permission_type) {
38
+ _classCallCheck(this, ExchangePermissionTokenRequest);
39
+ ExchangePermissionTokenRequest.initialize(this, permission_type);
40
40
  }
41
41
 
42
42
  /**
@@ -44,43 +44,41 @@ var CreateBankAccountRequest = /*#__PURE__*/function () {
44
44
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
45
  * Only for internal use.
46
46
  */
47
- return _createClass(CreateBankAccountRequest, null, [{
47
+ return _createClass(ExchangePermissionTokenRequest, null, [{
48
48
  key: "initialize",
49
- value: function initialize(obj, info) {
50
- obj['info'] = info;
49
+ value: function initialize(obj, permission_type) {
50
+ obj['permission_type'] = permission_type;
51
51
  }
52
52
 
53
53
  /**
54
- * Constructs a <code>CreateBankAccountRequest</code> from a plain JavaScript object, optionally creating a new instance.
54
+ * Constructs a <code>ExchangePermissionTokenRequest</code> from a plain JavaScript object, optionally creating a new instance.
55
55
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
56
  * @param {Object} data The plain JavaScript object bearing properties of interest.
57
- * @param {module:model/CreateBankAccountRequest} obj Optional instance to populate.
58
- * @return {module:model/CreateBankAccountRequest} The populated <code>CreateBankAccountRequest</code> instance.
57
+ * @param {module:model/ExchangePermissionTokenRequest} obj Optional instance to populate.
58
+ * @return {module:model/ExchangePermissionTokenRequest} The populated <code>ExchangePermissionTokenRequest</code> instance.
59
59
  */
60
60
  }, {
61
61
  key: "constructFromObject",
62
62
  value: function constructFromObject(data, obj) {
63
63
  if (data) {
64
- obj = obj || new CreateBankAccountRequest();
65
- if (data.hasOwnProperty('info')) {
66
- obj['info'] = _ApiClient["default"].convertToType(data['info'], {
67
- 'String': Object
68
- });
64
+ obj = obj || new ExchangePermissionTokenRequest();
65
+ if (data.hasOwnProperty('permission_type')) {
66
+ obj['permission_type'] = _ApiClient["default"].convertToType(data['permission_type'], 'String');
69
67
  }
70
68
  }
71
69
  return obj;
72
70
  }
73
71
 
74
72
  /**
75
- * Validates the JSON data with respect to <code>CreateBankAccountRequest</code>.
73
+ * Validates the JSON data with respect to <code>ExchangePermissionTokenRequest</code>.
76
74
  * @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>CreateBankAccountRequest</code>.
75
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ExchangePermissionTokenRequest</code>.
78
76
  */
79
77
  }, {
80
78
  key: "validateJSON",
81
79
  value: function validateJSON(data) {
82
80
  // check to make sure all required properties are present in the JSON string
83
- var _iterator = _createForOfIteratorHelper(CreateBankAccountRequest.RequiredProperties),
81
+ var _iterator = _createForOfIteratorHelper(ExchangePermissionTokenRequest.RequiredProperties),
84
82
  _step;
85
83
  try {
86
84
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -89,20 +87,24 @@ var CreateBankAccountRequest = /*#__PURE__*/function () {
89
87
  throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
90
88
  }
91
89
  }
90
+ // ensure the json data is a string
92
91
  } catch (err) {
93
92
  _iterator.e(err);
94
93
  } finally {
95
94
  _iterator.f();
96
95
  }
96
+ if (data['permission_type'] && !(typeof data['permission_type'] === 'string' || data['permission_type'] instanceof String)) {
97
+ throw new Error("Expected the field `permission_type` to be a primitive type in the JSON string but got " + data['permission_type']);
98
+ }
97
99
  return true;
98
100
  }
99
101
  }]);
100
102
  }();
101
- CreateBankAccountRequest.RequiredProperties = ["info"];
103
+ ExchangePermissionTokenRequest.RequiredProperties = ["permission_type"];
102
104
 
103
105
  /**
104
- * JSON-formatted bank account details. The object should include the following fields: - beneficiary_name: Name of the account holder - beneficiary_address: Address of the account holder - account_number: Bank account number - bank_name: Name of the bank - bank_address: Address of the bank - iban: (Optional) International Bank Account Number - swift_or_bic: SWIFT or BIC code of the bank
105
- * @member {Object.<String, Object>} info
106
+ * Set the value to `payment_orders_payin`.
107
+ * @member {String} permission_type
106
108
  */
107
- CreateBankAccountRequest.prototype['info'] = undefined;
108
- var _default = exports["default"] = CreateBankAccountRequest;
109
+ ExchangePermissionTokenRequest.prototype['permission_type'] = undefined;
110
+ var _default = exports["default"] = ExchangePermissionTokenRequest;
@@ -0,0 +1,88 @@
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 FILBase model module.
26
+ * @module model/FILBase
27
+ */
28
+ var FILBase = /*#__PURE__*/function () {
29
+ /**
30
+ * Constructs a new <code>FILBase</code>.
31
+ * The transaction gas base based on the FIL fee model.
32
+ * @alias module:model/FILBase
33
+ */
34
+ function FILBase() {
35
+ _classCallCheck(this, FILBase);
36
+ FILBase.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(FILBase, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>FILBase</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/FILBase} obj Optional instance to populate.
53
+ * @return {module:model/FILBase} The populated <code>FILBase</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new FILBase();
60
+ if (data.hasOwnProperty('gas_base')) {
61
+ obj['gas_base'] = _ApiClient["default"].convertToType(data['gas_base'], 'String');
62
+ }
63
+ }
64
+ return obj;
65
+ }
66
+
67
+ /**
68
+ * Validates the JSON data with respect to <code>FILBase</code>.
69
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
70
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>FILBase</code>.
71
+ */
72
+ }, {
73
+ key: "validateJSON",
74
+ value: function validateJSON(data) {
75
+ // ensure the json data is a string
76
+ if (data['gas_base'] && !(typeof data['gas_base'] === 'string' || data['gas_base'] instanceof String)) {
77
+ throw new Error("Expected the field `gas_base` to be a primitive type in the JSON string but got " + data['gas_base']);
78
+ }
79
+ return true;
80
+ }
81
+ }]);
82
+ }();
83
+ /**
84
+ * This is the minimum fee required to include a transaction in a block. It is determined by the network's congestion level, which adjusts to maintain a target block utilization rate. The base fee is burned, reducing the total supply of Filecoin over time.
85
+ * @member {String} gas_base
86
+ */
87
+ FILBase.prototype['gas_base'] = undefined;
88
+ var _default = exports["default"] = FILBase;
@@ -0,0 +1,114 @@
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 FILPrice model module.
26
+ * @module model/FILPrice
27
+ */
28
+ var FILPrice = /*#__PURE__*/function () {
29
+ /**
30
+ * Constructs a new <code>FILPrice</code>.
31
+ * The transaction gas price based on the FIL fee model.
32
+ * @alias module:model/FILPrice
33
+ */
34
+ function FILPrice() {
35
+ _classCallCheck(this, FILPrice);
36
+ FILPrice.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(FILPrice, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>FILPrice</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/FILPrice} obj Optional instance to populate.
53
+ * @return {module:model/FILPrice} The populated <code>FILPrice</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new FILPrice();
60
+ if (data.hasOwnProperty('gas_premium')) {
61
+ obj['gas_premium'] = _ApiClient["default"].convertToType(data['gas_premium'], 'String');
62
+ }
63
+ if (data.hasOwnProperty('gas_fee_cap')) {
64
+ obj['gas_fee_cap'] = _ApiClient["default"].convertToType(data['gas_fee_cap'], 'String');
65
+ }
66
+ if (data.hasOwnProperty('gas_limit')) {
67
+ obj['gas_limit'] = _ApiClient["default"].convertToType(data['gas_limit'], 'String');
68
+ }
69
+ }
70
+ return obj;
71
+ }
72
+
73
+ /**
74
+ * Validates the JSON data with respect to <code>FILPrice</code>.
75
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
76
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>FILPrice</code>.
77
+ */
78
+ }, {
79
+ key: "validateJSON",
80
+ value: function validateJSON(data) {
81
+ // ensure the json data is a string
82
+ if (data['gas_premium'] && !(typeof data['gas_premium'] === 'string' || data['gas_premium'] instanceof String)) {
83
+ throw new Error("Expected the field `gas_premium` to be a primitive type in the JSON string but got " + data['gas_premium']);
84
+ }
85
+ // ensure the json data is a string
86
+ if (data['gas_fee_cap'] && !(typeof data['gas_fee_cap'] === 'string' || data['gas_fee_cap'] instanceof String)) {
87
+ throw new Error("Expected the field `gas_fee_cap` to be a primitive type in the JSON string but got " + data['gas_fee_cap']);
88
+ }
89
+ // ensure the json data is a string
90
+ if (data['gas_limit'] && !(typeof data['gas_limit'] === 'string' || data['gas_limit'] instanceof String)) {
91
+ throw new Error("Expected the field `gas_limit` to be a primitive type in the JSON string but got " + data['gas_limit']);
92
+ }
93
+ return true;
94
+ }
95
+ }]);
96
+ }();
97
+ /**
98
+ * An optional additional fee that users can include to prioritize their transactions over others. It acts like a tip to incentivize miners to select and include your transaction over transactions with only the base fee.
99
+ * @member {String} gas_premium
100
+ */
101
+ FILPrice.prototype['gas_premium'] = undefined;
102
+
103
+ /**
104
+ * The gas_fee_cap is a user-defined limit on how much they are willing to pay per unit of gas.
105
+ * @member {String} gas_fee_cap
106
+ */
107
+ FILPrice.prototype['gas_fee_cap'] = undefined;
108
+
109
+ /**
110
+ * This defines the maximum amount of computational effort that a transaction is allowed to consume. It's a way to cap the resources that a transaction can use, ensuring it doesn't consume excessive network resources.
111
+ * @member {String} gas_limit
112
+ */
113
+ FILPrice.prototype['gas_limit'] = undefined;
114
+ var _default = exports["default"] = FILPrice;
@@ -50,6 +50,16 @@ var FeeType = exports["default"] = /*#__PURE__*/function () {
50
50
  * @const
51
51
  */
52
52
  _defineProperty(this, "UTXO", "UTXO");
53
+ /**
54
+ * value: "SOL"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "SOL", "SOL");
58
+ /**
59
+ * value: "FIL"
60
+ * @const
61
+ */
62
+ _defineProperty(this, "FIL", "FIL");
53
63
  /**
54
64
  * value: "unknown_default_open_api"
55
65
  * @const