@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,129 @@
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 _LinkDisplayInfo = _interopRequireDefault(require("./LinkDisplayInfo"));
9
+ var _RefundLinkBusinessInfo = _interopRequireDefault(require("./RefundLinkBusinessInfo"));
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 CreateRefundLinkRequest model module.
31
+ * @module model/CreateRefundLinkRequest
32
+ */
33
+ var CreateRefundLinkRequest = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>CreateRefundLinkRequest</code>.
36
+ * @alias module:model/CreateRefundLinkRequest
37
+ * @param business_info {module:model/RefundLinkBusinessInfo}
38
+ */
39
+ function CreateRefundLinkRequest(business_info) {
40
+ _classCallCheck(this, CreateRefundLinkRequest);
41
+ CreateRefundLinkRequest.initialize(this, business_info);
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(CreateRefundLinkRequest, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, business_info) {
52
+ obj['business_info'] = business_info;
53
+ }
54
+
55
+ /**
56
+ * Constructs a <code>CreateRefundLinkRequest</code> from a plain JavaScript object, optionally creating a new instance.
57
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
58
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
59
+ * @param {module:model/CreateRefundLinkRequest} obj Optional instance to populate.
60
+ * @return {module:model/CreateRefundLinkRequest} The populated <code>CreateRefundLinkRequest</code> instance.
61
+ */
62
+ }, {
63
+ key: "constructFromObject",
64
+ value: function constructFromObject(data, obj) {
65
+ if (data) {
66
+ obj = obj || new CreateRefundLinkRequest();
67
+ if (data.hasOwnProperty('business_info')) {
68
+ obj['business_info'] = _RefundLinkBusinessInfo["default"].constructFromObject(data['business_info']);
69
+ }
70
+ if (data.hasOwnProperty('display_info')) {
71
+ obj['display_info'] = _LinkDisplayInfo["default"].constructFromObject(data['display_info']);
72
+ }
73
+ }
74
+ return obj;
75
+ }
76
+
77
+ /**
78
+ * Validates the JSON data with respect to <code>CreateRefundLinkRequest</code>.
79
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
80
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateRefundLinkRequest</code>.
81
+ */
82
+ }, {
83
+ key: "validateJSON",
84
+ value: function validateJSON(data) {
85
+ // check to make sure all required properties are present in the JSON string
86
+ var _iterator = _createForOfIteratorHelper(CreateRefundLinkRequest.RequiredProperties),
87
+ _step;
88
+ try {
89
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
90
+ var property = _step.value;
91
+ if (!data.hasOwnProperty(property)) {
92
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
93
+ }
94
+ }
95
+ // validate the optional field `business_info`
96
+ } catch (err) {
97
+ _iterator.e(err);
98
+ } finally {
99
+ _iterator.f();
100
+ }
101
+ if (data['business_info']) {
102
+ // data not null
103
+ if (!!_RefundLinkBusinessInfo["default"].validateJSON) {
104
+ _RefundLinkBusinessInfo["default"].validateJSON(data['business_info']);
105
+ }
106
+ }
107
+ // validate the optional field `display_info`
108
+ if (data['display_info']) {
109
+ // data not null
110
+ if (!!_LinkDisplayInfo["default"].validateJSON) {
111
+ _LinkDisplayInfo["default"].validateJSON(data['display_info']);
112
+ }
113
+ }
114
+ return true;
115
+ }
116
+ }]);
117
+ }();
118
+ CreateRefundLinkRequest.RequiredProperties = ["business_info"];
119
+
120
+ /**
121
+ * @member {module:model/RefundLinkBusinessInfo} business_info
122
+ */
123
+ CreateRefundLinkRequest.prototype['business_info'] = undefined;
124
+
125
+ /**
126
+ * @member {module:model/LinkDisplayInfo} display_info
127
+ */
128
+ CreateRefundLinkRequest.prototype['display_info'] = undefined;
129
+ var _default = exports["default"] = CreateRefundLinkRequest;
@@ -206,13 +206,13 @@ CreateRefundRequest.prototype['refund_type'] = undefined;
206
206
  CreateRefundRequest.prototype['order_id'] = undefined;
207
207
 
208
208
  /**
209
- * Whether to charge developer fee to the merchant. - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee When enabled, ensure both `merchant_fee_amount` and `merchant_fee_token_id` are properly specified.
209
+ * Whether to charge developer fee to the merchant. This field is only valid when `refund_type` is `Merchant`. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances). - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee When enabled, ensure both `merchant_fee_amount` and `merchant_fee_token_id` are properly specified.
210
210
  * @member {Boolean} charge_merchant_fee
211
211
  */
212
212
  CreateRefundRequest.prototype['charge_merchant_fee'] = undefined;
213
213
 
214
214
  /**
215
- * The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. Required when `charge_merchant_fee` is `true`. Must be: - A positive integer with up to two decimal places. - Less than the refund amount
215
+ * The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. This field is only valid when `refund_type` is `Merchant`. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances). This field is required when `charge_merchant_fee` is `true`. Must be: - A positive integer with up to two decimal places. - Less than the refund amount
216
216
  * @member {String} merchant_fee_amount
217
217
  */
218
218
  CreateRefundRequest.prototype['merchant_fee_amount'] = undefined;
@@ -32,7 +32,7 @@ var CreateSettlement = /*#__PURE__*/function () {
32
32
  /**
33
33
  * Constructs a new <code>CreateSettlement</code>.
34
34
  * @alias module:model/CreateSettlement
35
- * @param token_id {String} The ID of the cryptocurrency you want to settle. Specify this field when `payout_channel` is set to `Crypto`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
35
+ * @param token_id {String} The ID of the cryptocurrency you want to settle. Specify this field when `payout_channel` is set to `Crypto`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
36
36
  */
37
37
  function CreateSettlement(token_id) {
38
38
  _classCallCheck(this, CreateSettlement);
@@ -68,15 +68,9 @@ var CreateSettlement = /*#__PURE__*/function () {
68
68
  if (data.hasOwnProperty('token_id')) {
69
69
  obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
70
70
  }
71
- if (data.hasOwnProperty('currency')) {
72
- obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
73
- }
74
71
  if (data.hasOwnProperty('amount')) {
75
72
  obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
76
73
  }
77
- if (data.hasOwnProperty('bank_account_id')) {
78
- obj['bank_account_id'] = _ApiClient["default"].convertToType(data['bank_account_id'], 'String');
79
- }
80
74
  if (data.hasOwnProperty('crypto_address_id')) {
81
75
  obj['crypto_address_id'] = _ApiClient["default"].convertToType(data['crypto_address_id'], 'String');
82
76
  }
@@ -119,18 +113,10 @@ var CreateSettlement = /*#__PURE__*/function () {
119
113
  throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
120
114
  }
121
115
  // ensure the json data is a string
122
- if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
123
- throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
124
- }
125
- // ensure the json data is a string
126
116
  if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
127
117
  throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
128
118
  }
129
119
  // ensure the json data is a string
130
- if (data['bank_account_id'] && !(typeof data['bank_account_id'] === 'string' || data['bank_account_id'] instanceof String)) {
131
- throw new Error("Expected the field `bank_account_id` to be a primitive type in the JSON string but got " + data['bank_account_id']);
132
- }
133
- // ensure the json data is a string
134
120
  if (data['crypto_address_id'] && !(typeof data['crypto_address_id'] === 'string' || data['crypto_address_id'] instanceof String)) {
135
121
  throw new Error("Expected the field `crypto_address_id` to be a primitive type in the JSON string but got " + data['crypto_address_id']);
136
122
  }
@@ -151,29 +137,17 @@ CreateSettlement.RequiredProperties = ["token_id"];
151
137
  CreateSettlement.prototype['merchant_id'] = undefined;
152
138
 
153
139
  /**
154
- * The ID of the cryptocurrency you want to settle. Specify this field when `payout_channel` is set to `Crypto`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
140
+ * The ID of the cryptocurrency you want to settle. Specify this field when `payout_channel` is set to `Crypto`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
155
141
  * @member {String} token_id
156
142
  */
157
143
  CreateSettlement.prototype['token_id'] = undefined;
158
144
 
159
- /**
160
- * The fiat currency for settling the cryptocurrency. Currently, only `USD` is supported. Specify this field when `payout_channel` is set to `OffRamp`.
161
- * @member {String} currency
162
- */
163
- CreateSettlement.prototype['currency'] = undefined;
164
-
165
145
  /**
166
146
  * The amount of cryptocurrency to be settled. When settling merchant balance from orders (`acquiring_type` is `Order` and `settlement_type` is `Merchant`), do not specify this field as the amount will be automatically calculated based on the order amounts.
167
147
  * @member {String} amount
168
148
  */
169
149
  CreateSettlement.prototype['amount'] = undefined;
170
150
 
171
- /**
172
- * The ID of the bank account where the settled funds will be deposited. This field is only applicable when `payout_channel` is set to `OffRamp`. Call [List all bank accounts](https://www.cobo.com/developers/v2/api-references/payment/list-all-bank-accounts) to retrieve the IDs of registered bank accounts.
173
- * @member {String} bank_account_id
174
- */
175
- CreateSettlement.prototype['bank_account_id'] = undefined;
176
-
177
151
  /**
178
152
  * The ID of the crypto address used for crypto payouts. Specify this field when `payout_channel` is set to `Crypto`. Call [List crypto addresses](https://www.cobo.com/developers/v2/api-references/payment/list-crypto-addresses) to retrieve registered crypto addresses.
179
153
  * @member {String} crypto_address_id
@@ -189,19 +189,19 @@ CreateSettlementRequestRequest.prototype['settlement_type'] = undefined;
189
189
  CreateSettlementRequestRequest.prototype['settlements'] = undefined;
190
190
 
191
191
  /**
192
- * | Only used in OffRamp payout channel. The ID of the bank account where the settled funds will be deposited.
192
+ * The ID of the bank account where the funds will be deposited. You can call [List all bank accounts](https://www.cobo.com/developers/v2/api-references/payment/list-all-bank-accounts) to retrieve the IDs of registered bank accounts. This field is only applicable for off-ramp.
193
193
  * @member {String} bank_account_id
194
194
  */
195
195
  CreateSettlementRequestRequest.prototype['bank_account_id'] = undefined;
196
196
 
197
197
  /**
198
- * The fiat currency for the settlement request.
198
+ * The fiat currency to receive after off-ramping. Currently, only `USD` is supported. Specify this field when `payout_channel` is set to `OffRamp`.
199
199
  * @member {String} currency
200
200
  */
201
201
  CreateSettlementRequestRequest.prototype['currency'] = undefined;
202
202
 
203
203
  /**
204
- * The remark for the settlement request.
204
+ * The remark for the payout request.
205
205
  * @member {String} remark
206
206
  */
207
207
  CreateSettlementRequestRequest.prototype['remark'] = undefined;
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  var CustodialTransferDestination = /*#__PURE__*/function () {
33
33
  /**
34
34
  * Constructs a new <code>CustodialTransferDestination</code>.
35
- * The information about the transaction destination type &#x60;CustodialWallet&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. A Custodial Wallet (Asset Wallet) can only receive transfers from another Custodial Wallet (Asset Wallet) by using [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop). &lt;Note&gt;This destination type is available upon request. Please contact our [customer support](mailto:help@cobo.com) to enable it.&lt;/Note&gt; Switch between the tabs to display the properties for different transaction destinations.
35
+ * The information about the transaction destination type &#x60;CustodialWallet&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. **Note: This destination type is deprecated and should no longer be used. Please use &#x60;Address&#x60; instead.** Switch between the tabs to display the properties for different transaction destinations.
36
36
  * @alias module:model/CustodialTransferDestination
37
37
  * @param destination_type {module:model/TransferDestinationType}
38
38
  * @param wallet_id {String} The wallet ID.
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _AutoFuelType = _interopRequireDefault(require("./AutoFuelType"));
8
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
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); }
10
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; } } }; }
@@ -34,15 +35,13 @@ var FeeStationCheckFeeStationUsage = /*#__PURE__*/function () {
34
35
  * The information for evaluating Fee Station usage.
35
36
  * @alias module:model/FeeStationCheckFeeStationUsage
36
37
  * @param request_id {String} The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
37
- * @param amount {String} The amount of tokens to be transferred in this request.
38
- * @param token_id {String} The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
39
38
  * @param estimated_fee_amount {String} The estimated transaction fee required for this transfer, before applying any Fee Station rules.
40
39
  * @param from_address {String} The blockchain address that initiates the transfer.
41
40
  * @param from_wallet_id {String} The wallet ID.
42
41
  */
43
- function FeeStationCheckFeeStationUsage(request_id, amount, token_id, estimated_fee_amount, from_address, from_wallet_id) {
42
+ function FeeStationCheckFeeStationUsage(request_id, estimated_fee_amount, from_address, from_wallet_id) {
44
43
  _classCallCheck(this, FeeStationCheckFeeStationUsage);
45
- FeeStationCheckFeeStationUsage.initialize(this, request_id, amount, token_id, estimated_fee_amount, from_address, from_wallet_id);
44
+ FeeStationCheckFeeStationUsage.initialize(this, request_id, estimated_fee_amount, from_address, from_wallet_id);
46
45
  }
47
46
 
48
47
  /**
@@ -52,10 +51,8 @@ var FeeStationCheckFeeStationUsage = /*#__PURE__*/function () {
52
51
  */
53
52
  return _createClass(FeeStationCheckFeeStationUsage, null, [{
54
53
  key: "initialize",
55
- value: function initialize(obj, request_id, amount, token_id, estimated_fee_amount, from_address, from_wallet_id) {
54
+ value: function initialize(obj, request_id, estimated_fee_amount, from_address, from_wallet_id) {
56
55
  obj['request_id'] = request_id;
57
- obj['amount'] = amount;
58
- obj['token_id'] = token_id;
59
56
  obj['estimated_fee_amount'] = estimated_fee_amount;
60
57
  obj['from_address'] = from_address;
61
58
  obj['from_wallet_id'] = from_wallet_id;
@@ -82,6 +79,9 @@ var FeeStationCheckFeeStationUsage = /*#__PURE__*/function () {
82
79
  if (data.hasOwnProperty('token_id')) {
83
80
  obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
84
81
  }
82
+ if (data.hasOwnProperty('fee_token_id')) {
83
+ obj['fee_token_id'] = _ApiClient["default"].convertToType(data['fee_token_id'], 'String');
84
+ }
85
85
  if (data.hasOwnProperty('estimated_fee_amount')) {
86
86
  obj['estimated_fee_amount'] = _ApiClient["default"].convertToType(data['estimated_fee_amount'], 'String');
87
87
  }
@@ -91,6 +91,9 @@ var FeeStationCheckFeeStationUsage = /*#__PURE__*/function () {
91
91
  if (data.hasOwnProperty('from_wallet_id')) {
92
92
  obj['from_wallet_id'] = _ApiClient["default"].convertToType(data['from_wallet_id'], 'String');
93
93
  }
94
+ if (data.hasOwnProperty('auto_fuel')) {
95
+ obj['auto_fuel'] = _AutoFuelType["default"].constructFromObject(data['auto_fuel']);
96
+ }
94
97
  }
95
98
  return obj;
96
99
  }
@@ -131,6 +134,10 @@ var FeeStationCheckFeeStationUsage = /*#__PURE__*/function () {
131
134
  throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
132
135
  }
133
136
  // ensure the json data is a string
137
+ if (data['fee_token_id'] && !(typeof data['fee_token_id'] === 'string' || data['fee_token_id'] instanceof String)) {
138
+ throw new Error("Expected the field `fee_token_id` to be a primitive type in the JSON string but got " + data['fee_token_id']);
139
+ }
140
+ // ensure the json data is a string
134
141
  if (data['estimated_fee_amount'] && !(typeof data['estimated_fee_amount'] === 'string' || data['estimated_fee_amount'] instanceof String)) {
135
142
  throw new Error("Expected the field `estimated_fee_amount` to be a primitive type in the JSON string but got " + data['estimated_fee_amount']);
136
143
  }
@@ -146,7 +153,7 @@ var FeeStationCheckFeeStationUsage = /*#__PURE__*/function () {
146
153
  }
147
154
  }]);
148
155
  }();
149
- FeeStationCheckFeeStationUsage.RequiredProperties = ["request_id", "amount", "token_id", "estimated_fee_amount", "from_address", "from_wallet_id"];
156
+ FeeStationCheckFeeStationUsage.RequiredProperties = ["request_id", "estimated_fee_amount", "from_address", "from_wallet_id"];
150
157
 
151
158
  /**
152
159
  * The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
@@ -155,17 +162,23 @@ FeeStationCheckFeeStationUsage.RequiredProperties = ["request_id", "amount", "to
155
162
  FeeStationCheckFeeStationUsage.prototype['request_id'] = undefined;
156
163
 
157
164
  /**
158
- * The amount of tokens to be transferred in this request.
165
+ * Applicable to transfer requests only. The amount of tokens to be transferred in this request.
159
166
  * @member {String} amount
160
167
  */
161
168
  FeeStationCheckFeeStationUsage.prototype['amount'] = undefined;
162
169
 
163
170
  /**
164
- * The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
171
+ * Applicable to transfer requests only. The token ID of the asset to be transferred. You can retrieve available token IDs by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
165
172
  * @member {String} token_id
166
173
  */
167
174
  FeeStationCheckFeeStationUsage.prototype['token_id'] = undefined;
168
175
 
176
+ /**
177
+ * The token ID used to pay the gas fee for the main transaction. You can retrieve available token IDs by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
178
+ * @member {String} fee_token_id
179
+ */
180
+ FeeStationCheckFeeStationUsage.prototype['fee_token_id'] = undefined;
181
+
169
182
  /**
170
183
  * The estimated transaction fee required for this transfer, before applying any Fee Station rules.
171
184
  * @member {String} estimated_fee_amount
@@ -183,4 +196,9 @@ FeeStationCheckFeeStationUsage.prototype['from_address'] = undefined;
183
196
  * @member {String} from_wallet_id
184
197
  */
185
198
  FeeStationCheckFeeStationUsage.prototype['from_wallet_id'] = undefined;
199
+
200
+ /**
201
+ * @member {module:model/AutoFuelType} auto_fuel
202
+ */
203
+ FeeStationCheckFeeStationUsage.prototype['auto_fuel'] = undefined;
186
204
  var _default = exports["default"] = FeeStationCheckFeeStationUsage;
@@ -32,20 +32,20 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  var FeeStationCheckFeeStationUsageResponse = /*#__PURE__*/function () {
33
33
  /**
34
34
  * Constructs a new <code>FeeStationCheckFeeStationUsageResponse</code>.
35
- * The Fee Station usage evaluation result for the transfer request.
35
+ * The fee station evaluation result for the transfer request.
36
36
  * @alias module:model/FeeStationCheckFeeStationUsageResponse
37
37
  * @param token_id {String} The token used to pay the gas fee for this specific transaction. You can retrieve the IDs of all supported tokens by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
38
+ * @param balance {String} The current token balance available in Fee Station.
38
39
  * @param gas_station_type {module:model/FeeStationGasStationType}
39
40
  * @param is_fee_station_applicable {Boolean} Indicates whether Fee Station is applied for this transfer request.
40
41
  * @param is_balance_sufficient {Boolean} If Fee Station is used, indicates whether its balance is sufficient to cover the required gas fee.
41
- * @param balance {String} The current token balance available in Fee Station.
42
42
  * @param total_fee_amount {String} The total gas amount required for this transfer request.
43
- * @param is_sponsor_applicable {Boolean} Indicates whether USDT (U) sponsorship is applied when Fee Station balance is insufficient.
44
- * @param sponsored_fee_amount {String} The amount of gas fee sponsored by USDT (U) when applicable.
43
+ * @param is_sponsor_applicable {Boolean} Indicates whether USD stablecoin sponsorship is applied when the Fee Station balance is insufficient.
44
+ * @param sponsored_fee_amount {String} The amount of gas fee sponsored by USD stablecoin when applicable.
45
45
  */
46
- function FeeStationCheckFeeStationUsageResponse(token_id, gas_station_type, is_fee_station_applicable, is_balance_sufficient, balance, total_fee_amount, is_sponsor_applicable, sponsored_fee_amount) {
46
+ function FeeStationCheckFeeStationUsageResponse(token_id, balance, gas_station_type, is_fee_station_applicable, is_balance_sufficient, total_fee_amount, is_sponsor_applicable, sponsored_fee_amount) {
47
47
  _classCallCheck(this, FeeStationCheckFeeStationUsageResponse);
48
- FeeStationCheckFeeStationUsageResponse.initialize(this, token_id, gas_station_type, is_fee_station_applicable, is_balance_sufficient, balance, total_fee_amount, is_sponsor_applicable, sponsored_fee_amount);
48
+ FeeStationCheckFeeStationUsageResponse.initialize(this, token_id, balance, gas_station_type, is_fee_station_applicable, is_balance_sufficient, total_fee_amount, is_sponsor_applicable, sponsored_fee_amount);
49
49
  }
50
50
 
51
51
  /**
@@ -55,12 +55,12 @@ var FeeStationCheckFeeStationUsageResponse = /*#__PURE__*/function () {
55
55
  */
56
56
  return _createClass(FeeStationCheckFeeStationUsageResponse, null, [{
57
57
  key: "initialize",
58
- value: function initialize(obj, token_id, gas_station_type, is_fee_station_applicable, is_balance_sufficient, balance, total_fee_amount, is_sponsor_applicable, sponsored_fee_amount) {
58
+ value: function initialize(obj, token_id, balance, gas_station_type, is_fee_station_applicable, is_balance_sufficient, total_fee_amount, is_sponsor_applicable, sponsored_fee_amount) {
59
59
  obj['token_id'] = token_id;
60
+ obj['balance'] = balance;
60
61
  obj['gas_station_type'] = gas_station_type;
61
62
  obj['is_fee_station_applicable'] = is_fee_station_applicable;
62
63
  obj['is_balance_sufficient'] = is_balance_sufficient;
63
- obj['balance'] = balance;
64
64
  obj['total_fee_amount'] = total_fee_amount;
65
65
  obj['is_sponsor_applicable'] = is_sponsor_applicable;
66
66
  obj['sponsored_fee_amount'] = sponsored_fee_amount;
@@ -81,6 +81,9 @@ var FeeStationCheckFeeStationUsageResponse = /*#__PURE__*/function () {
81
81
  if (data.hasOwnProperty('token_id')) {
82
82
  obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
83
83
  }
84
+ if (data.hasOwnProperty('balance')) {
85
+ obj['balance'] = _ApiClient["default"].convertToType(data['balance'], 'String');
86
+ }
84
87
  if (data.hasOwnProperty('gas_station_type')) {
85
88
  obj['gas_station_type'] = _FeeStationGasStationType["default"].constructFromObject(data['gas_station_type']);
86
89
  }
@@ -90,9 +93,6 @@ var FeeStationCheckFeeStationUsageResponse = /*#__PURE__*/function () {
90
93
  if (data.hasOwnProperty('is_balance_sufficient')) {
91
94
  obj['is_balance_sufficient'] = _ApiClient["default"].convertToType(data['is_balance_sufficient'], 'Boolean');
92
95
  }
93
- if (data.hasOwnProperty('balance')) {
94
- obj['balance'] = _ApiClient["default"].convertToType(data['balance'], 'String');
95
- }
96
96
  if (data.hasOwnProperty('total_fee_amount')) {
97
97
  obj['total_fee_amount'] = _ApiClient["default"].convertToType(data['total_fee_amount'], 'String');
98
98
  }
@@ -102,6 +102,9 @@ var FeeStationCheckFeeStationUsageResponse = /*#__PURE__*/function () {
102
102
  if (data.hasOwnProperty('sponsored_fee_amount')) {
103
103
  obj['sponsored_fee_amount'] = _ApiClient["default"].convertToType(data['sponsored_fee_amount'], 'String');
104
104
  }
105
+ if (data.hasOwnProperty('sponsored_token_id')) {
106
+ obj['sponsored_token_id'] = _ApiClient["default"].convertToType(data['sponsored_token_id'], 'String');
107
+ }
105
108
  }
106
109
  return obj;
107
110
  }
@@ -145,11 +148,15 @@ var FeeStationCheckFeeStationUsageResponse = /*#__PURE__*/function () {
145
148
  if (data['sponsored_fee_amount'] && !(typeof data['sponsored_fee_amount'] === 'string' || data['sponsored_fee_amount'] instanceof String)) {
146
149
  throw new Error("Expected the field `sponsored_fee_amount` to be a primitive type in the JSON string but got " + data['sponsored_fee_amount']);
147
150
  }
151
+ // ensure the json data is a string
152
+ if (data['sponsored_token_id'] && !(typeof data['sponsored_token_id'] === 'string' || data['sponsored_token_id'] instanceof String)) {
153
+ throw new Error("Expected the field `sponsored_token_id` to be a primitive type in the JSON string but got " + data['sponsored_token_id']);
154
+ }
148
155
  return true;
149
156
  }
150
157
  }]);
151
158
  }();
152
- FeeStationCheckFeeStationUsageResponse.RequiredProperties = ["token_id", "gas_station_type", "is_fee_station_applicable", "is_balance_sufficient", "balance", "total_fee_amount", "is_sponsor_applicable", "sponsored_fee_amount"];
159
+ FeeStationCheckFeeStationUsageResponse.RequiredProperties = ["token_id", "balance", "gas_station_type", "is_fee_station_applicable", "is_balance_sufficient", "total_fee_amount", "is_sponsor_applicable", "sponsored_fee_amount"];
153
160
 
154
161
  /**
155
162
  * The token used to pay the gas fee for this specific transaction. You can retrieve the IDs of all supported tokens by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
@@ -157,6 +164,12 @@ FeeStationCheckFeeStationUsageResponse.RequiredProperties = ["token_id", "gas_st
157
164
  */
158
165
  FeeStationCheckFeeStationUsageResponse.prototype['token_id'] = undefined;
159
166
 
167
+ /**
168
+ * The current token balance available in Fee Station.
169
+ * @member {String} balance
170
+ */
171
+ FeeStationCheckFeeStationUsageResponse.prototype['balance'] = undefined;
172
+
160
173
  /**
161
174
  * @member {module:model/FeeStationGasStationType} gas_station_type
162
175
  */
@@ -174,12 +187,6 @@ FeeStationCheckFeeStationUsageResponse.prototype['is_fee_station_applicable'] =
174
187
  */
175
188
  FeeStationCheckFeeStationUsageResponse.prototype['is_balance_sufficient'] = undefined;
176
189
 
177
- /**
178
- * The current token balance available in Fee Station.
179
- * @member {String} balance
180
- */
181
- FeeStationCheckFeeStationUsageResponse.prototype['balance'] = undefined;
182
-
183
190
  /**
184
191
  * The total gas amount required for this transfer request.
185
192
  * @member {String} total_fee_amount
@@ -187,14 +194,20 @@ FeeStationCheckFeeStationUsageResponse.prototype['balance'] = undefined;
187
194
  FeeStationCheckFeeStationUsageResponse.prototype['total_fee_amount'] = undefined;
188
195
 
189
196
  /**
190
- * Indicates whether USDT (U) sponsorship is applied when Fee Station balance is insufficient.
197
+ * Indicates whether USD stablecoin sponsorship is applied when the Fee Station balance is insufficient.
191
198
  * @member {Boolean} is_sponsor_applicable
192
199
  */
193
200
  FeeStationCheckFeeStationUsageResponse.prototype['is_sponsor_applicable'] = undefined;
194
201
 
195
202
  /**
196
- * The amount of gas fee sponsored by USDT (U) when applicable.
203
+ * The amount of gas fee sponsored by USD stablecoin when applicable.
197
204
  * @member {String} sponsored_fee_amount
198
205
  */
199
206
  FeeStationCheckFeeStationUsageResponse.prototype['sponsored_fee_amount'] = undefined;
207
+
208
+ /**
209
+ * The token ID used to sponsor the gas fee.
210
+ * @member {String} sponsored_token_id
211
+ */
212
+ FeeStationCheckFeeStationUsageResponse.prototype['sponsored_token_id'] = undefined;
200
213
  var _default = exports["default"] = FeeStationCheckFeeStationUsageResponse;
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ * Cobo Wallet as a Service 2.0
19
+ *
20
+ * Contact: help@cobo.com
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The FeeStationSponsorTransactionDescription model module.
29
+ * @module model/FeeStationSponsorTransactionDescription
30
+ */
31
+ var FeeStationSponsorTransactionDescription = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>FeeStationSponsorTransactionDescription</code>.
34
+ * @alias module:model/FeeStationSponsorTransactionDescription
35
+ * @param total_fee_amount {String} The total amount used to sponsor the gas fee required for executing the main transaction on behalf of the user.
36
+ * @param commission_fee {String} The commission fee charged for sponsoring the gas fee.
37
+ */
38
+ function FeeStationSponsorTransactionDescription(total_fee_amount, commission_fee) {
39
+ _classCallCheck(this, FeeStationSponsorTransactionDescription);
40
+ FeeStationSponsorTransactionDescription.initialize(this, total_fee_amount, commission_fee);
41
+ }
42
+
43
+ /**
44
+ * Initializes the fields of this object.
45
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
+ * Only for internal use.
47
+ */
48
+ return _createClass(FeeStationSponsorTransactionDescription, null, [{
49
+ key: "initialize",
50
+ value: function initialize(obj, total_fee_amount, commission_fee) {
51
+ obj['total_fee_amount'] = total_fee_amount;
52
+ obj['commission_fee'] = commission_fee;
53
+ }
54
+
55
+ /**
56
+ * Constructs a <code>FeeStationSponsorTransactionDescription</code> from a plain JavaScript object, optionally creating a new instance.
57
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
58
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
59
+ * @param {module:model/FeeStationSponsorTransactionDescription} obj Optional instance to populate.
60
+ * @return {module:model/FeeStationSponsorTransactionDescription} The populated <code>FeeStationSponsorTransactionDescription</code> instance.
61
+ */
62
+ }, {
63
+ key: "constructFromObject",
64
+ value: function constructFromObject(data, obj) {
65
+ if (data) {
66
+ obj = obj || new FeeStationSponsorTransactionDescription();
67
+ if (data.hasOwnProperty('total_fee_amount')) {
68
+ obj['total_fee_amount'] = _ApiClient["default"].convertToType(data['total_fee_amount'], 'String');
69
+ }
70
+ if (data.hasOwnProperty('commission_fee')) {
71
+ obj['commission_fee'] = _ApiClient["default"].convertToType(data['commission_fee'], 'String');
72
+ }
73
+ }
74
+ return obj;
75
+ }
76
+
77
+ /**
78
+ * Validates the JSON data with respect to <code>FeeStationSponsorTransactionDescription</code>.
79
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
80
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>FeeStationSponsorTransactionDescription</code>.
81
+ */
82
+ }, {
83
+ key: "validateJSON",
84
+ value: function validateJSON(data) {
85
+ // check to make sure all required properties are present in the JSON string
86
+ var _iterator = _createForOfIteratorHelper(FeeStationSponsorTransactionDescription.RequiredProperties),
87
+ _step;
88
+ try {
89
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
90
+ var property = _step.value;
91
+ if (!data.hasOwnProperty(property)) {
92
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
93
+ }
94
+ }
95
+ // ensure the json data is a string
96
+ } catch (err) {
97
+ _iterator.e(err);
98
+ } finally {
99
+ _iterator.f();
100
+ }
101
+ if (data['total_fee_amount'] && !(typeof data['total_fee_amount'] === 'string' || data['total_fee_amount'] instanceof String)) {
102
+ throw new Error("Expected the field `total_fee_amount` to be a primitive type in the JSON string but got " + data['total_fee_amount']);
103
+ }
104
+ // ensure the json data is a string
105
+ if (data['commission_fee'] && !(typeof data['commission_fee'] === 'string' || data['commission_fee'] instanceof String)) {
106
+ throw new Error("Expected the field `commission_fee` to be a primitive type in the JSON string but got " + data['commission_fee']);
107
+ }
108
+ return true;
109
+ }
110
+ }]);
111
+ }();
112
+ FeeStationSponsorTransactionDescription.RequiredProperties = ["total_fee_amount", "commission_fee"];
113
+
114
+ /**
115
+ * The total amount used to sponsor the gas fee required for executing the main transaction on behalf of the user.
116
+ * @member {String} total_fee_amount
117
+ */
118
+ FeeStationSponsorTransactionDescription.prototype['total_fee_amount'] = undefined;
119
+
120
+ /**
121
+ * The commission fee charged for sponsoring the gas fee.
122
+ * @member {String} commission_fee
123
+ */
124
+ FeeStationSponsorTransactionDescription.prototype['commission_fee'] = undefined;
125
+ var _default = exports["default"] = FeeStationSponsorTransactionDescription;