@cobo/cobo-waas2 1.12.0 → 1.13.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 (159) hide show
  1. package/README.md +54 -18
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/FeeStationApi.js +18 -18
  4. package/dist/api/TransactionsApi.js +2 -2
  5. package/dist/api/WalletsApi.js +8 -8
  6. package/dist/index.js +260 -43
  7. package/dist/model/ActivityExtra.js +0 -23
  8. package/dist/model/AddressEncoding.js +15 -0
  9. package/dist/model/AddressesEventData.js +8 -3
  10. package/dist/model/BTCBIP137MessageSignDestination.js +122 -0
  11. package/dist/model/BTCBIP322MessageSignDestination.js +122 -0
  12. package/dist/model/BabylonStakingActivityDetailExtra.js +0 -39
  13. package/dist/model/{ListSwapActivities200Response.js → BankAccount.js} +51 -51
  14. package/dist/model/ChainsEventData.js +8 -3
  15. package/dist/model/CosmosAdr36MessageSignDestination.js +122 -0
  16. package/dist/model/CosmosContractCallDestination.js +152 -0
  17. package/dist/model/CosmosContractCallMessage.js +126 -0
  18. package/dist/model/CreateSettlement.js +174 -0
  19. package/dist/model/MPCVaultEventData.js +8 -3
  20. package/dist/model/{CreateSwapActivityRequest.js → Merchant.js} +45 -58
  21. package/dist/model/MessageSignDestination.js +111 -9
  22. package/dist/model/MessageSignDestinationType.js +15 -0
  23. package/dist/model/Order.js +306 -0
  24. package/dist/model/OrderStatus.js +76 -0
  25. package/dist/model/PaymentTransaction.js +201 -0
  26. package/dist/model/RefreshAddressBalancesByTokenRequest.js +2 -3
  27. package/dist/model/Refund.js +237 -0
  28. package/dist/model/RefundStatus.js +76 -0
  29. package/dist/model/RefundType.js +61 -0
  30. package/dist/model/SettleRequestStatus.js +76 -0
  31. package/dist/model/SettleStatus.js +76 -0
  32. package/dist/model/Settlement.js +168 -0
  33. package/dist/model/SettlementDetail.js +184 -0
  34. package/dist/model/SettlementInfo.js +175 -0
  35. package/dist/model/SettlementType.js +61 -0
  36. package/dist/model/SwapActivity.js +36 -5
  37. package/dist/model/SwapActivityStatus.js +66 -0
  38. package/dist/model/SwapActivityType.js +61 -0
  39. package/dist/model/SwapQuote.js +21 -34
  40. package/dist/model/{CreateSwapQuoteRequest.js → SwapToken.js} +73 -60
  41. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  42. package/dist/model/TokenListing.js +230 -0
  43. package/dist/model/TokenListingEventData.js +363 -0
  44. package/dist/model/TokenListingRequestSource.js +61 -0
  45. package/dist/model/TokenListingRequestStatus.js +66 -0
  46. package/dist/model/TokensEventData.js +8 -3
  47. package/dist/model/Transaction.js +22 -5
  48. package/dist/model/TransactionBIP137Destination.js +122 -0
  49. package/dist/model/TransactionBIP322Destination.js +122 -0
  50. package/dist/model/TransactionBabylonBusinessInfo.js +138 -0
  51. package/dist/model/TransactionBabylonTxParameters.js +168 -0
  52. package/dist/model/TransactionCoreStakeInfo.js +168 -0
  53. package/dist/model/TransactionCosmosAdr36Destination.js +122 -0
  54. package/dist/model/TransactionCosmosContractDestination.js +152 -0
  55. package/dist/model/{ListEnableTokenPairs200Response.js → TransactionCosmosMessage.js} +54 -51
  56. package/dist/model/TransactionDestination.js +172 -8
  57. package/dist/model/TransactionDestinationType.js +20 -0
  58. package/dist/model/TransactionDetail.js +29 -7
  59. package/dist/model/TransactionDetails.js +29 -7
  60. package/dist/model/TransactionExtra.js +278 -0
  61. package/dist/model/TransactionExtraType.js +66 -0
  62. package/dist/model/TransactionFuelingInfo.js +3 -3
  63. package/dist/model/TransactionMessageSignBTCEIP191Destination.js +122 -0
  64. package/dist/model/TransactionRbfSource.js +37 -9
  65. package/dist/model/TransactionSelectedUtxo.js +2 -2
  66. package/dist/model/TransactionSubStatus.js +45 -0
  67. package/dist/model/TransactionWebhookEventData.js +37 -10
  68. package/dist/model/UpdateCustodialWalletParams.js +6 -4
  69. package/dist/model/UpdateExchangeWalletParams.js +6 -4
  70. package/dist/model/UpdateMpcWalletParams.js +6 -4
  71. package/dist/model/UpdateSmartContractWalletParams.js +6 -4
  72. package/dist/model/WalletInfoEventData.js +8 -3
  73. package/dist/model/WebhookEventData.js +81 -18
  74. package/dist/model/WebhookEventDataType.js +7 -2
  75. package/dist/model/WebhookEventType.js +10 -0
  76. package/docs/ActivityExtra.md +0 -4
  77. package/docs/AddressEncoding.md +6 -0
  78. package/docs/AddressesEventData.md +3 -1
  79. package/docs/BTCBIP137MessageSignDestination.md +10 -0
  80. package/docs/BTCBIP322MessageSignDestination.md +10 -0
  81. package/docs/BabylonStakingActivityDetailExtra.md +0 -4
  82. package/docs/BankAccount.md +10 -0
  83. package/docs/ChainsEventData.md +3 -1
  84. package/docs/CosmosAdr36MessageSignDestination.md +10 -0
  85. package/docs/CosmosContractCallDestination.md +11 -0
  86. package/docs/CosmosContractCallMessage.md +10 -0
  87. package/docs/CreateSettlement.md +14 -0
  88. package/docs/FeeStationApi.md +13 -13
  89. package/docs/MPCVaultEventData.md +3 -1
  90. package/docs/Merchant.md +11 -0
  91. package/docs/MessageSignDestination.md +3 -0
  92. package/docs/MessageSignDestinationType.md +6 -0
  93. package/docs/Order.md +23 -0
  94. package/docs/OrderStatus.md +18 -0
  95. package/docs/PaymentTransaction.md +16 -0
  96. package/docs/RefreshAddressBalancesByTokenRequest.md +1 -1
  97. package/docs/Refund.md +17 -0
  98. package/docs/RefundStatus.md +18 -0
  99. package/docs/RefundType.md +12 -0
  100. package/docs/SettleRequestStatus.md +18 -0
  101. package/docs/SettleStatus.md +18 -0
  102. package/docs/Settlement.md +12 -0
  103. package/docs/SettlementDetail.md +15 -0
  104. package/docs/SettlementInfo.md +14 -0
  105. package/docs/SettlementType.md +12 -0
  106. package/docs/SwapActivity.md +4 -1
  107. package/docs/SwapActivityStatus.md +14 -0
  108. package/docs/SwapActivityType.md +12 -0
  109. package/docs/SwapQuote.md +3 -4
  110. package/docs/SwapToken.md +14 -0
  111. package/docs/TSSRequestWebhookEventData.md +3 -1
  112. package/docs/TokenListing.md +19 -0
  113. package/docs/TokenListingEventData.md +45 -0
  114. package/docs/TokenListingRequestSource.md +12 -0
  115. package/docs/TokenListingRequestStatus.md +14 -0
  116. package/docs/TokensEventData.md +3 -1
  117. package/docs/Transaction.md +4 -3
  118. package/docs/TransactionBIP137Destination.md +10 -0
  119. package/docs/TransactionBIP322Destination.md +10 -0
  120. package/docs/TransactionBabylonBusinessInfo.md +11 -0
  121. package/docs/TransactionBabylonTxParameters.md +15 -0
  122. package/docs/TransactionCoreStakeInfo.md +14 -0
  123. package/docs/TransactionCosmosAdr36Destination.md +10 -0
  124. package/docs/TransactionCosmosContractDestination.md +11 -0
  125. package/docs/TransactionCosmosMessage.md +10 -0
  126. package/docs/TransactionDestination.md +4 -0
  127. package/docs/TransactionDestinationType.md +8 -0
  128. package/docs/TransactionDetail.md +4 -3
  129. package/docs/TransactionDetails.md +4 -3
  130. package/docs/TransactionExtra.md +21 -0
  131. package/docs/TransactionExtraType.md +14 -0
  132. package/docs/TransactionFuelingInfo.md +2 -2
  133. package/docs/TransactionMessageSignBTCEIP191Destination.md +10 -0
  134. package/docs/TransactionRbfSource.md +1 -1
  135. package/docs/TransactionSelectedUtxo.md +2 -2
  136. package/docs/TransactionSubStatus.md +18 -0
  137. package/docs/TransactionWebhookEventData.md +7 -4
  138. package/docs/TransactionsApi.md +1 -1
  139. package/docs/UpdateCustodialWalletParams.md +1 -1
  140. package/docs/UpdateExchangeWalletParams.md +1 -1
  141. package/docs/UpdateMpcWalletParams.md +1 -1
  142. package/docs/UpdateSmartContractWalletParams.md +1 -1
  143. package/docs/UpdateWalletParams.md +1 -1
  144. package/docs/WalletInfoEventData.md +3 -1
  145. package/docs/WalletsApi.md +5 -5
  146. package/docs/WebhookEventData.md +16 -8
  147. package/docs/WebhookEventDataType.md +3 -1
  148. package/docs/WebhookEventType.md +4 -0
  149. package/package.json +1 -1
  150. package/dist/api/SwapsApi.js +0 -360
  151. package/dist/model/CreateSwapQuote201Response.js +0 -264
  152. package/dist/model/SwapTokenPair.js +0 -100
  153. package/docs/CreateSwapActivityRequest.md +0 -12
  154. package/docs/CreateSwapQuote201Response.md +0 -17
  155. package/docs/CreateSwapQuoteRequest.md +0 -13
  156. package/docs/ListEnableTokenPairs200Response.md +0 -10
  157. package/docs/ListSwapActivities200Response.md +0 -10
  158. package/docs/SwapTokenPair.md +0 -10
  159. package/docs/SwapsApi.md +0 -348
@@ -0,0 +1,237 @@
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 _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
9
+ var _RefundStatus = _interopRequireDefault(require("./RefundStatus"));
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 Refund model module.
31
+ * @module model/Refund
32
+ */
33
+ var Refund = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>Refund</code>.
36
+ * @alias module:model/Refund
37
+ * @param refund_id {String} The refund order ID.
38
+ * @param token_id {String} The ID of the cryptocurrency token used for refund.
39
+ * @param chain_id {String} The ID of the blockchain network on which the refund transaction occurs.
40
+ * @param amount {String} The amount in cryptocurrency to be returned for this refund order.
41
+ * @param to_address {String} The recipient's wallet address where the refund will be sent.
42
+ * @param status {module:model/RefundStatus}
43
+ */
44
+ function Refund(refund_id, token_id, chain_id, amount, to_address, status) {
45
+ _classCallCheck(this, Refund);
46
+ Refund.initialize(this, refund_id, token_id, chain_id, amount, to_address, status);
47
+ }
48
+
49
+ /**
50
+ * Initializes the fields of this object.
51
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
52
+ * Only for internal use.
53
+ */
54
+ return _createClass(Refund, null, [{
55
+ key: "initialize",
56
+ value: function initialize(obj, refund_id, token_id, chain_id, amount, to_address, status) {
57
+ obj['refund_id'] = refund_id;
58
+ obj['token_id'] = token_id;
59
+ obj['chain_id'] = chain_id;
60
+ obj['amount'] = amount;
61
+ obj['to_address'] = to_address;
62
+ obj['status'] = status;
63
+ }
64
+
65
+ /**
66
+ * Constructs a <code>Refund</code> from a plain JavaScript object, optionally creating a new instance.
67
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
68
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
69
+ * @param {module:model/Refund} obj Optional instance to populate.
70
+ * @return {module:model/Refund} The populated <code>Refund</code> instance.
71
+ */
72
+ }, {
73
+ key: "constructFromObject",
74
+ value: function constructFromObject(data, obj) {
75
+ if (data) {
76
+ obj = obj || new Refund();
77
+ if (data.hasOwnProperty('request_id')) {
78
+ obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
79
+ }
80
+ if (data.hasOwnProperty('refund_id')) {
81
+ obj['refund_id'] = _ApiClient["default"].convertToType(data['refund_id'], 'String');
82
+ }
83
+ if (data.hasOwnProperty('merchant_id')) {
84
+ obj['merchant_id'] = _ApiClient["default"].convertToType(data['merchant_id'], 'String');
85
+ }
86
+ if (data.hasOwnProperty('token_id')) {
87
+ obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
88
+ }
89
+ if (data.hasOwnProperty('chain_id')) {
90
+ obj['chain_id'] = _ApiClient["default"].convertToType(data['chain_id'], 'String');
91
+ }
92
+ if (data.hasOwnProperty('amount')) {
93
+ obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
94
+ }
95
+ if (data.hasOwnProperty('to_address')) {
96
+ obj['to_address'] = _ApiClient["default"].convertToType(data['to_address'], 'String');
97
+ }
98
+ if (data.hasOwnProperty('status')) {
99
+ obj['status'] = _RefundStatus["default"].constructFromObject(data['status']);
100
+ }
101
+ if (data.hasOwnProperty('transactions')) {
102
+ obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
103
+ }
104
+ }
105
+ return obj;
106
+ }
107
+
108
+ /**
109
+ * Validates the JSON data with respect to <code>Refund</code>.
110
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
111
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Refund</code>.
112
+ */
113
+ }, {
114
+ key: "validateJSON",
115
+ value: function validateJSON(data) {
116
+ // check to make sure all required properties are present in the JSON string
117
+ var _iterator = _createForOfIteratorHelper(Refund.RequiredProperties),
118
+ _step;
119
+ try {
120
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
121
+ var property = _step.value;
122
+ if (!data.hasOwnProperty(property)) {
123
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
124
+ }
125
+ }
126
+ // ensure the json data is a string
127
+ } catch (err) {
128
+ _iterator.e(err);
129
+ } finally {
130
+ _iterator.f();
131
+ }
132
+ if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
133
+ throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
134
+ }
135
+ // ensure the json data is a string
136
+ if (data['refund_id'] && !(typeof data['refund_id'] === 'string' || data['refund_id'] instanceof String)) {
137
+ throw new Error("Expected the field `refund_id` to be a primitive type in the JSON string but got " + data['refund_id']);
138
+ }
139
+ // ensure the json data is a string
140
+ if (data['merchant_id'] && !(typeof data['merchant_id'] === 'string' || data['merchant_id'] instanceof String)) {
141
+ throw new Error("Expected the field `merchant_id` to be a primitive type in the JSON string but got " + data['merchant_id']);
142
+ }
143
+ // ensure the json data is a string
144
+ if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
145
+ throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
146
+ }
147
+ // ensure the json data is a string
148
+ if (data['chain_id'] && !(typeof data['chain_id'] === 'string' || data['chain_id'] instanceof String)) {
149
+ throw new Error("Expected the field `chain_id` to be a primitive type in the JSON string but got " + data['chain_id']);
150
+ }
151
+ // ensure the json data is a string
152
+ if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
153
+ throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
154
+ }
155
+ // ensure the json data is a string
156
+ if (data['to_address'] && !(typeof data['to_address'] === 'string' || data['to_address'] instanceof String)) {
157
+ throw new Error("Expected the field `to_address` to be a primitive type in the JSON string but got " + data['to_address']);
158
+ }
159
+ if (data['transactions']) {
160
+ // data not null
161
+ // ensure the json data is an array
162
+ if (!Array.isArray(data['transactions'])) {
163
+ throw new Error("Expected the field `transactions` to be an array in the JSON data but got " + data['transactions']);
164
+ }
165
+ // validate the optional field `transactions` (array)
166
+ var _iterator2 = _createForOfIteratorHelper(data['transactions']),
167
+ _step2;
168
+ try {
169
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
170
+ var item = _step2.value;
171
+ _PaymentTransaction["default"].validateJSON(item);
172
+ }
173
+ } catch (err) {
174
+ _iterator2.e(err);
175
+ } finally {
176
+ _iterator2.f();
177
+ }
178
+ ;
179
+ }
180
+ return true;
181
+ }
182
+ }]);
183
+ }();
184
+ Refund.RequiredProperties = ["refund_id", "token_id", "chain_id", "amount", "to_address", "status"];
185
+
186
+ /**
187
+ * The request id.
188
+ * @member {String} request_id
189
+ */
190
+ Refund.prototype['request_id'] = undefined;
191
+
192
+ /**
193
+ * The refund order ID.
194
+ * @member {String} refund_id
195
+ */
196
+ Refund.prototype['refund_id'] = undefined;
197
+
198
+ /**
199
+ * The merchant ID.
200
+ * @member {String} merchant_id
201
+ */
202
+ Refund.prototype['merchant_id'] = undefined;
203
+
204
+ /**
205
+ * The ID of the cryptocurrency token used for refund.
206
+ * @member {String} token_id
207
+ */
208
+ Refund.prototype['token_id'] = undefined;
209
+
210
+ /**
211
+ * The ID of the blockchain network on which the refund transaction occurs.
212
+ * @member {String} chain_id
213
+ */
214
+ Refund.prototype['chain_id'] = undefined;
215
+
216
+ /**
217
+ * The amount in cryptocurrency to be returned for this refund order.
218
+ * @member {String} amount
219
+ */
220
+ Refund.prototype['amount'] = undefined;
221
+
222
+ /**
223
+ * The recipient's wallet address where the refund will be sent.
224
+ * @member {String} to_address
225
+ */
226
+ Refund.prototype['to_address'] = undefined;
227
+
228
+ /**
229
+ * @member {module:model/RefundStatus} status
230
+ */
231
+ Refund.prototype['status'] = undefined;
232
+
233
+ /**
234
+ * @member {Array.<module:model/PaymentTransaction>} transactions
235
+ */
236
+ Refund.prototype['transactions'] = undefined;
237
+ var _default = exports["default"] = Refund;
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class RefundStatus.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var RefundStatus = exports["default"] = /*#__PURE__*/function () {
31
+ function RefundStatus() {
32
+ _classCallCheck(this, RefundStatus);
33
+ /**
34
+ * value: "Pending"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Pending", "Pending");
38
+ /**
39
+ * value: "Processing"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Processing", "Processing");
43
+ /**
44
+ * value: "Completed"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "Completed", "Completed");
48
+ /**
49
+ * value: "PartiallyCompleted"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "PartiallyCompleted", "PartiallyCompleted");
53
+ /**
54
+ * value: "Failed"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "Failed", "Failed");
58
+ /**
59
+ * value: "unknown_default_open_api"
60
+ * @const
61
+ */
62
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
63
+ }
64
+ return _createClass(RefundStatus, null, [{
65
+ key: "constructFromObject",
66
+ value:
67
+ /**
68
+ * Returns a <code>RefundStatus</code> enum value from a Javascript object name.
69
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
70
+ * @return {module:model/RefundStatus} The enum <code>RefundStatus</code> value.
71
+ */
72
+ function constructFromObject(object) {
73
+ return object;
74
+ }
75
+ }]);
76
+ }();
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class RefundType.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var RefundType = exports["default"] = /*#__PURE__*/function () {
31
+ function RefundType() {
32
+ _classCallCheck(this, RefundType);
33
+ /**
34
+ * value: "Merchant"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Merchant", "Merchant");
38
+ /**
39
+ * value: "Psp"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Psp", "Psp");
43
+ /**
44
+ * value: "unknown_default_open_api"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
48
+ }
49
+ return _createClass(RefundType, null, [{
50
+ key: "constructFromObject",
51
+ value:
52
+ /**
53
+ * Returns a <code>RefundType</code> enum value from a Javascript object name.
54
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
55
+ * @return {module:model/RefundType} The enum <code>RefundType</code> value.
56
+ */
57
+ function constructFromObject(object) {
58
+ return object;
59
+ }
60
+ }]);
61
+ }();
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class SettleRequestStatus.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var SettleRequestStatus = exports["default"] = /*#__PURE__*/function () {
31
+ function SettleRequestStatus() {
32
+ _classCallCheck(this, SettleRequestStatus);
33
+ /**
34
+ * value: "Pending"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Pending", "Pending");
38
+ /**
39
+ * value: "Processing"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Processing", "Processing");
43
+ /**
44
+ * value: "Completed"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "Completed", "Completed");
48
+ /**
49
+ * value: "PartiallyCompleted"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "PartiallyCompleted", "PartiallyCompleted");
53
+ /**
54
+ * value: "Failed"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "Failed", "Failed");
58
+ /**
59
+ * value: "unknown_default_open_api"
60
+ * @const
61
+ */
62
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
63
+ }
64
+ return _createClass(SettleRequestStatus, null, [{
65
+ key: "constructFromObject",
66
+ value:
67
+ /**
68
+ * Returns a <code>SettleRequestStatus</code> enum value from a Javascript object name.
69
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
70
+ * @return {module:model/SettleRequestStatus} The enum <code>SettleRequestStatus</code> value.
71
+ */
72
+ function constructFromObject(object) {
73
+ return object;
74
+ }
75
+ }]);
76
+ }();
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class SettleStatus.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var SettleStatus = exports["default"] = /*#__PURE__*/function () {
31
+ function SettleStatus() {
32
+ _classCallCheck(this, SettleStatus);
33
+ /**
34
+ * value: "Pending"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Pending", "Pending");
38
+ /**
39
+ * value: "Processing"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Processing", "Processing");
43
+ /**
44
+ * value: "Completed"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "Completed", "Completed");
48
+ /**
49
+ * value: "PartiallyCompleted"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "PartiallyCompleted", "PartiallyCompleted");
53
+ /**
54
+ * value: "Failed"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "Failed", "Failed");
58
+ /**
59
+ * value: "unknown_default_open_api"
60
+ * @const
61
+ */
62
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
63
+ }
64
+ return _createClass(SettleStatus, null, [{
65
+ key: "constructFromObject",
66
+ value:
67
+ /**
68
+ * Returns a <code>SettleStatus</code> enum value from a Javascript object name.
69
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
70
+ * @return {module:model/SettleStatus} The enum <code>SettleStatus</code> value.
71
+ */
72
+ function constructFromObject(object) {
73
+ return object;
74
+ }
75
+ }]);
76
+ }();