@openweb3-io/wallet 0.1.2 → 0.1.3

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 (270) hide show
  1. package/dist/index.d.ts +2 -14
  2. package/dist/index.js +87 -167
  3. package/dist/index.js.map +1 -1
  4. package/dist/openapi/apis/AddressesApi.js +170 -191
  5. package/dist/openapi/apis/AddressesApi.js.map +1 -1
  6. package/dist/openapi/apis/CurrenciesApi.js +94 -111
  7. package/dist/openapi/apis/CurrenciesApi.js.map +1 -1
  8. package/dist/openapi/apis/ExchangesApi.js +278 -311
  9. package/dist/openapi/apis/ExchangesApi.js.map +1 -1
  10. package/dist/openapi/apis/NetworksApi.js +48 -61
  11. package/dist/openapi/apis/NetworksApi.js.map +1 -1
  12. package/dist/openapi/apis/RatesApi.js +105 -122
  13. package/dist/openapi/apis/RatesApi.js.map +1 -1
  14. package/dist/openapi/apis/TransactionsApi.js +256 -285
  15. package/dist/openapi/apis/TransactionsApi.js.map +1 -1
  16. package/dist/openapi/apis/WalletsApi.js +243 -272
  17. package/dist/openapi/apis/WalletsApi.js.map +1 -1
  18. package/dist/openapi/apis/WebhookEndpointsApi.js +190 -219
  19. package/dist/openapi/apis/WebhookEndpointsApi.js.map +1 -1
  20. package/dist/openapi/apis/WebhookEventTypesApi.js +31 -44
  21. package/dist/openapi/apis/WebhookEventTypesApi.js.map +1 -1
  22. package/dist/openapi/apis/WebhookEventsApi.js +83 -100
  23. package/dist/openapi/apis/WebhookEventsApi.js.map +1 -1
  24. package/dist/openapi/dist/apis/AddressesApi.d.ts +12 -0
  25. package/dist/openapi/dist/apis/AddressesApi.js +222 -0
  26. package/dist/openapi/dist/apis/AddressesApi.js.map +1 -0
  27. package/dist/openapi/dist/apis/CurrenciesApi.d.ts +10 -0
  28. package/dist/openapi/dist/apis/CurrenciesApi.js +140 -0
  29. package/dist/openapi/dist/apis/CurrenciesApi.js.map +1 -0
  30. package/dist/openapi/dist/apis/ExchangesApi.d.ts +18 -0
  31. package/dist/openapi/dist/apis/ExchangesApi.js +348 -0
  32. package/dist/openapi/dist/apis/ExchangesApi.js.map +1 -0
  33. package/dist/openapi/dist/apis/NetworksApi.d.ts +8 -0
  34. package/dist/openapi/dist/apis/NetworksApi.js +88 -0
  35. package/dist/openapi/dist/apis/NetworksApi.js.map +1 -0
  36. package/dist/openapi/dist/apis/RatesApi.d.ts +10 -0
  37. package/dist/openapi/dist/apis/RatesApi.js +151 -0
  38. package/dist/openapi/dist/apis/RatesApi.js.map +1 -0
  39. package/dist/openapi/dist/apis/TransactionsApi.d.ts +16 -0
  40. package/dist/openapi/dist/apis/TransactionsApi.js +320 -0
  41. package/dist/openapi/dist/apis/TransactionsApi.js.map +1 -0
  42. package/dist/openapi/dist/apis/WalletsApi.d.ts +16 -0
  43. package/dist/openapi/dist/apis/WalletsApi.js +307 -0
  44. package/dist/openapi/dist/apis/WalletsApi.js.map +1 -0
  45. package/dist/openapi/dist/apis/WebhookEndpointsApi.d.ts +16 -0
  46. package/dist/openapi/dist/apis/WebhookEndpointsApi.js +254 -0
  47. package/dist/openapi/dist/apis/WebhookEndpointsApi.js.map +1 -0
  48. package/dist/openapi/dist/apis/WebhookEventTypesApi.d.ts +8 -0
  49. package/dist/openapi/dist/apis/WebhookEventTypesApi.js +71 -0
  50. package/dist/openapi/dist/apis/WebhookEventTypesApi.js.map +1 -0
  51. package/dist/openapi/dist/apis/WebhookEventsApi.d.ts +10 -0
  52. package/dist/openapi/dist/apis/WebhookEventsApi.js +129 -0
  53. package/dist/openapi/dist/apis/WebhookEventsApi.js.map +1 -0
  54. package/dist/openapi/dist/apis/baseapi.d.ts +14 -0
  55. package/dist/openapi/dist/apis/baseapi.js +25 -0
  56. package/dist/openapi/dist/apis/baseapi.js.map +1 -0
  57. package/dist/openapi/dist/apis/exception.d.ts +5 -0
  58. package/dist/openapi/dist/apis/exception.js +12 -0
  59. package/dist/openapi/dist/apis/exception.js.map +1 -0
  60. package/dist/openapi/dist/auth/auth.d.ts +9 -0
  61. package/dist/openapi/dist/auth/auth.js +27 -0
  62. package/dist/openapi/dist/auth/auth.js.map +1 -0
  63. package/dist/openapi/dist/configuration.d.ts +6 -0
  64. package/dist/openapi/dist/configuration.js +21 -0
  65. package/dist/openapi/dist/configuration.js.map +1 -0
  66. package/dist/openapi/dist/http/http.d.ts +40 -0
  67. package/dist/openapi/dist/http/http.js +171 -0
  68. package/dist/openapi/dist/http/http.js.map +1 -0
  69. package/dist/openapi/dist/http/isomorphic-fetch.d.ts +3 -0
  70. package/dist/openapi/dist/http/isomorphic-fetch.js +31 -0
  71. package/dist/openapi/dist/http/isomorphic-fetch.js.map +1 -0
  72. package/dist/openapi/dist/index.d.ts +7 -0
  73. package/dist/openapi/dist/index.js +31 -0
  74. package/dist/openapi/dist/index.js.map +1 -0
  75. package/dist/openapi/dist/middleware.d.ts +6 -0
  76. package/dist/openapi/dist/middleware.js +17 -0
  77. package/dist/openapi/dist/middleware.js.map +1 -0
  78. package/dist/openapi/dist/models/Account.d.ts +17 -0
  79. package/dist/openapi/dist/models/Account.js +51 -0
  80. package/dist/openapi/dist/models/Account.js.map +1 -0
  81. package/dist/openapi/dist/models/Address.d.ts +17 -0
  82. package/dist/openapi/dist/models/Address.js +33 -0
  83. package/dist/openapi/dist/models/Address.js.map +1 -0
  84. package/dist/openapi/dist/models/ChainNetwork.d.ts +17 -0
  85. package/dist/openapi/dist/models/ChainNetwork.js +63 -0
  86. package/dist/openapi/dist/models/ChainNetwork.js.map +1 -0
  87. package/dist/openapi/dist/models/CreateEndpoint.d.ts +17 -0
  88. package/dist/openapi/dist/models/CreateEndpoint.js +57 -0
  89. package/dist/openapi/dist/models/CreateEndpoint.js.map +1 -0
  90. package/dist/openapi/dist/models/CreateExchange.d.ts +17 -0
  91. package/dist/openapi/dist/models/CreateExchange.js +45 -0
  92. package/dist/openapi/dist/models/CreateExchange.js.map +1 -0
  93. package/dist/openapi/dist/models/CreateTransferRequest.d.ts +17 -0
  94. package/dist/openapi/dist/models/CreateTransferRequest.js +39 -0
  95. package/dist/openapi/dist/models/CreateTransferRequest.js.map +1 -0
  96. package/dist/openapi/dist/models/CreateTransferResponse.d.ts +17 -0
  97. package/dist/openapi/dist/models/CreateTransferResponse.js +21 -0
  98. package/dist/openapi/dist/models/CreateTransferResponse.js.map +1 -0
  99. package/dist/openapi/dist/models/CreateWalletRequest.d.ts +17 -0
  100. package/dist/openapi/dist/models/CreateWalletRequest.js +27 -0
  101. package/dist/openapi/dist/models/CreateWalletRequest.js.map +1 -0
  102. package/dist/openapi/dist/models/CreateWithdrawReply.d.ts +17 -0
  103. package/dist/openapi/dist/models/CreateWithdrawReply.js +21 -0
  104. package/dist/openapi/dist/models/CreateWithdrawReply.js.map +1 -0
  105. package/dist/openapi/dist/models/CreateWithdrawRequest.d.ts +17 -0
  106. package/dist/openapi/dist/models/CreateWithdrawRequest.js +57 -0
  107. package/dist/openapi/dist/models/CreateWithdrawRequest.js.map +1 -0
  108. package/dist/openapi/dist/models/Currency.d.ts +17 -0
  109. package/dist/openapi/dist/models/Currency.js +135 -0
  110. package/dist/openapi/dist/models/Currency.js.map +1 -0
  111. package/dist/openapi/dist/models/CurrencyNetwork.d.ts +17 -0
  112. package/dist/openapi/dist/models/CurrencyNetwork.js +135 -0
  113. package/dist/openapi/dist/models/CurrencyNetwork.js.map +1 -0
  114. package/dist/openapi/dist/models/CurrencyPair.d.ts +17 -0
  115. package/dist/openapi/dist/models/CurrencyPair.js +27 -0
  116. package/dist/openapi/dist/models/CurrencyPair.js.map +1 -0
  117. package/dist/openapi/dist/models/CursorPageAccount.d.ts +17 -0
  118. package/dist/openapi/dist/models/CursorPageAccount.js +39 -0
  119. package/dist/openapi/dist/models/CursorPageAccount.js.map +1 -0
  120. package/dist/openapi/dist/models/CursorPageAddress.d.ts +17 -0
  121. package/dist/openapi/dist/models/CursorPageAddress.js +39 -0
  122. package/dist/openapi/dist/models/CursorPageAddress.js.map +1 -0
  123. package/dist/openapi/dist/models/CursorPageChainNetwork.d.ts +17 -0
  124. package/dist/openapi/dist/models/CursorPageChainNetwork.js +39 -0
  125. package/dist/openapi/dist/models/CursorPageChainNetwork.js.map +1 -0
  126. package/dist/openapi/dist/models/CursorPageCurrency.d.ts +17 -0
  127. package/dist/openapi/dist/models/CursorPageCurrency.js +39 -0
  128. package/dist/openapi/dist/models/CursorPageCurrency.js.map +1 -0
  129. package/dist/openapi/dist/models/CursorPageEndpoint.d.ts +17 -0
  130. package/dist/openapi/dist/models/CursorPageEndpoint.js +39 -0
  131. package/dist/openapi/dist/models/CursorPageEndpoint.js.map +1 -0
  132. package/dist/openapi/dist/models/CursorPageExchange.d.ts +17 -0
  133. package/dist/openapi/dist/models/CursorPageExchange.js +39 -0
  134. package/dist/openapi/dist/models/CursorPageExchange.js.map +1 -0
  135. package/dist/openapi/dist/models/CursorPageTransaction.d.ts +17 -0
  136. package/dist/openapi/dist/models/CursorPageTransaction.js +39 -0
  137. package/dist/openapi/dist/models/CursorPageTransaction.js.map +1 -0
  138. package/dist/openapi/dist/models/CursorPageWallet.d.ts +17 -0
  139. package/dist/openapi/dist/models/CursorPageWallet.js +39 -0
  140. package/dist/openapi/dist/models/CursorPageWallet.js.map +1 -0
  141. package/dist/openapi/dist/models/CursorPageWebhookEvent.d.ts +17 -0
  142. package/dist/openapi/dist/models/CursorPageWebhookEvent.js +39 -0
  143. package/dist/openapi/dist/models/CursorPageWebhookEvent.js.map +1 -0
  144. package/dist/openapi/dist/models/DeleteWebhookEndpointResponse.d.ts +17 -0
  145. package/dist/openapi/dist/models/DeleteWebhookEndpointResponse.js +21 -0
  146. package/dist/openapi/dist/models/DeleteWebhookEndpointResponse.js.map +1 -0
  147. package/dist/openapi/dist/models/Endpoint.d.ts +17 -0
  148. package/dist/openapi/dist/models/Endpoint.js +69 -0
  149. package/dist/openapi/dist/models/Endpoint.js.map +1 -0
  150. package/dist/openapi/dist/models/EstimateFeeRequest.d.ts +17 -0
  151. package/dist/openapi/dist/models/EstimateFeeRequest.js +45 -0
  152. package/dist/openapi/dist/models/EstimateFeeRequest.js.map +1 -0
  153. package/dist/openapi/dist/models/EstimateFeeResponse.d.ts +17 -0
  154. package/dist/openapi/dist/models/EstimateFeeResponse.js +27 -0
  155. package/dist/openapi/dist/models/EstimateFeeResponse.js.map +1 -0
  156. package/dist/openapi/dist/models/EstimateResponse.d.ts +17 -0
  157. package/dist/openapi/dist/models/EstimateResponse.js +45 -0
  158. package/dist/openapi/dist/models/EstimateResponse.js.map +1 -0
  159. package/dist/openapi/dist/models/EventType.d.ts +17 -0
  160. package/dist/openapi/dist/models/EventType.js +27 -0
  161. package/dist/openapi/dist/models/EventType.js.map +1 -0
  162. package/dist/openapi/dist/models/Exchange.d.ts +17 -0
  163. package/dist/openapi/dist/models/Exchange.js +99 -0
  164. package/dist/openapi/dist/models/Exchange.js.map +1 -0
  165. package/dist/openapi/dist/models/ExchangeCurrencyPairs.d.ts +17 -0
  166. package/dist/openapi/dist/models/ExchangeCurrencyPairs.js +27 -0
  167. package/dist/openapi/dist/models/ExchangeCurrencyPairs.js.map +1 -0
  168. package/dist/openapi/dist/models/ExchangeSubmitResponse.d.ts +17 -0
  169. package/dist/openapi/dist/models/ExchangeSubmitResponse.js +21 -0
  170. package/dist/openapi/dist/models/ExchangeSubmitResponse.js.map +1 -0
  171. package/dist/openapi/dist/models/GetCurrencyPairQuotaResponse.d.ts +17 -0
  172. package/dist/openapi/dist/models/GetCurrencyPairQuotaResponse.js +51 -0
  173. package/dist/openapi/dist/models/GetCurrencyPairQuotaResponse.js.map +1 -0
  174. package/dist/openapi/dist/models/GetRatesRequest.d.ts +17 -0
  175. package/dist/openapi/dist/models/GetRatesRequest.js +21 -0
  176. package/dist/openapi/dist/models/GetRatesRequest.js.map +1 -0
  177. package/dist/openapi/dist/models/GetRatesResponse.d.ts +17 -0
  178. package/dist/openapi/dist/models/GetRatesResponse.js +21 -0
  179. package/dist/openapi/dist/models/GetRatesResponse.js.map +1 -0
  180. package/dist/openapi/dist/models/ListExchangeCurrencyPairsResponse.d.ts +17 -0
  181. package/dist/openapi/dist/models/ListExchangeCurrencyPairsResponse.js +21 -0
  182. package/dist/openapi/dist/models/ListExchangeCurrencyPairsResponse.js.map +1 -0
  183. package/dist/openapi/dist/models/ModelError.d.ts +17 -0
  184. package/dist/openapi/dist/models/ModelError.js +27 -0
  185. package/dist/openapi/dist/models/ModelError.js.map +1 -0
  186. package/dist/openapi/dist/models/ObjectSerializer.d.ts +55 -0
  187. package/dist/openapi/dist/models/ObjectSerializer.js +330 -0
  188. package/dist/openapi/dist/models/ObjectSerializer.js.map +1 -0
  189. package/dist/openapi/dist/models/Rate.d.ts +17 -0
  190. package/dist/openapi/dist/models/Rate.js +27 -0
  191. package/dist/openapi/dist/models/Rate.js.map +1 -0
  192. package/dist/openapi/dist/models/ResendWebhookEventRequest.d.ts +17 -0
  193. package/dist/openapi/dist/models/ResendWebhookEventRequest.js +27 -0
  194. package/dist/openapi/dist/models/ResendWebhookEventRequest.js.map +1 -0
  195. package/dist/openapi/dist/models/ResendWebhookEventResponse.d.ts +17 -0
  196. package/dist/openapi/dist/models/ResendWebhookEventResponse.js +21 -0
  197. package/dist/openapi/dist/models/ResendWebhookEventResponse.js.map +1 -0
  198. package/dist/openapi/dist/models/Transaction.d.ts +17 -0
  199. package/dist/openapi/dist/models/Transaction.js +99 -0
  200. package/dist/openapi/dist/models/Transaction.js.map +1 -0
  201. package/dist/openapi/dist/models/TransactionDirection.d.ts +0 -0
  202. package/dist/openapi/dist/models/TransactionDirection.js +2 -0
  203. package/dist/openapi/dist/models/TransactionDirection.js.map +1 -0
  204. package/dist/openapi/dist/models/TransactionStatus.d.ts +0 -0
  205. package/dist/openapi/dist/models/TransactionStatus.js +2 -0
  206. package/dist/openapi/dist/models/TransactionStatus.js.map +1 -0
  207. package/dist/openapi/dist/models/UpdateEndpoint.d.ts +17 -0
  208. package/dist/openapi/dist/models/UpdateEndpoint.js +57 -0
  209. package/dist/openapi/dist/models/UpdateEndpoint.js.map +1 -0
  210. package/dist/openapi/dist/models/UpdateWalletRequest.d.ts +17 -0
  211. package/dist/openapi/dist/models/UpdateWalletRequest.js +27 -0
  212. package/dist/openapi/dist/models/UpdateWalletRequest.js.map +1 -0
  213. package/dist/openapi/dist/models/Wallet.d.ts +17 -0
  214. package/dist/openapi/dist/models/Wallet.js +39 -0
  215. package/dist/openapi/dist/models/Wallet.js.map +1 -0
  216. package/dist/openapi/dist/models/WebhookEvent.d.ts +17 -0
  217. package/dist/openapi/dist/models/WebhookEvent.js +39 -0
  218. package/dist/openapi/dist/models/WebhookEvent.js.map +1 -0
  219. package/dist/openapi/dist/models/all.d.ts +46 -0
  220. package/dist/openapi/dist/models/all.js +59 -0
  221. package/dist/openapi/dist/models/all.js.map +1 -0
  222. package/dist/openapi/dist/rxjsStub.d.ts +10 -0
  223. package/dist/openapi/dist/rxjsStub.js +32 -0
  224. package/dist/openapi/dist/rxjsStub.js.map +1 -0
  225. package/dist/openapi/dist/servers.d.ts +12 -0
  226. package/dist/openapi/dist/servers.js +31 -0
  227. package/dist/openapi/dist/servers.js.map +1 -0
  228. package/dist/openapi/dist/types/ObjectParamAPI.d.ts +82 -0
  229. package/dist/openapi/dist/types/ObjectParamAPI.js +170 -0
  230. package/dist/openapi/dist/types/ObjectParamAPI.js.map +1 -0
  231. package/dist/openapi/dist/types/ObservableAPI.d.ts +92 -0
  232. package/dist/openapi/dist/types/ObservableAPI.js +576 -0
  233. package/dist/openapi/dist/types/ObservableAPI.js.map +1 -0
  234. package/dist/openapi/dist/types/PromiseAPI.d.ts +82 -0
  235. package/dist/openapi/dist/types/PromiseAPI.js +202 -0
  236. package/dist/openapi/dist/types/PromiseAPI.js.map +1 -0
  237. package/dist/openapi/dist/util.d.ts +1 -0
  238. package/dist/openapi/dist/util.js +25 -0
  239. package/dist/openapi/dist/util.js.map +1 -0
  240. package/dist/openapi/http/http.js +23 -36
  241. package/dist/openapi/http/http.js.map +1 -1
  242. package/dist/openapi/index.d.ts +1 -1
  243. package/dist/openapi/index.js +0 -1
  244. package/dist/openapi/index.js.map +1 -1
  245. package/dist/openapi/models/CreateTransferRequest.d.ts +3 -0
  246. package/dist/openapi/models/CreateTransferRequest.js +6 -0
  247. package/dist/openapi/models/CreateTransferRequest.js.map +1 -1
  248. package/dist/openapi/models/Currency.d.ts +2 -0
  249. package/dist/openapi/models/Currency.js +12 -0
  250. package/dist/openapi/models/Currency.js.map +1 -1
  251. package/dist/openapi/models/CurrencyNetwork.d.ts +1 -0
  252. package/dist/openapi/models/CurrencyNetwork.js +6 -0
  253. package/dist/openapi/models/CurrencyNetwork.js.map +1 -1
  254. package/dist/openapi/models/EstimateFeeResponse.js.map +1 -1
  255. package/dist/openapi/models/ObjectSerializer.d.ts +0 -7
  256. package/dist/openapi/models/ObjectSerializer.js +0 -21
  257. package/dist/openapi/models/ObjectSerializer.js.map +1 -1
  258. package/dist/openapi/models/all.d.ts +0 -7
  259. package/dist/openapi/models/all.js +0 -7
  260. package/dist/openapi/models/all.js.map +1 -1
  261. package/dist/openapi/types/ObjectParamAPI.d.ts +0 -37
  262. package/dist/openapi/types/ObjectParamAPI.js +14 -39
  263. package/dist/openapi/types/ObjectParamAPI.js.map +1 -1
  264. package/dist/openapi/types/ObservableAPI.d.ts +0 -19
  265. package/dist/openapi/types/ObservableAPI.js +1 -100
  266. package/dist/openapi/types/ObservableAPI.js.map +1 -1
  267. package/dist/openapi/types/PromiseAPI.d.ts +0 -17
  268. package/dist/openapi/types/PromiseAPI.js +14 -45
  269. package/dist/openapi/types/PromiseAPI.js.map +1 -1
  270. package/package.json +2 -1
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.TransactionsApiResponseProcessor = exports.TransactionsApiRequestFactory = void 0;
13
4
  const baseapi_1 = require("./baseapi");
@@ -16,294 +7,274 @@ const ObjectSerializer_1 = require("../models/ObjectSerializer");
16
7
  const exception_1 = require("./exception");
17
8
  const util_1 = require("../util");
18
9
  class TransactionsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
19
- v1TransactionsEstimateFee(request, _options) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- let _config = _options || this.configuration;
22
- if (request === null || request === undefined) {
23
- throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1TransactionsEstimateFee.');
24
- }
25
- const localVarPath = '/api/v1/transactions/estimate_fee';
26
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
27
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
28
- const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
29
- "application/json"
30
- ]);
31
- requestContext.setHeaderParam("Content-Type", contentType);
32
- const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "EstimateFeeRequest", ""), contentType);
33
- requestContext.setBody(serializedBody);
34
- let authMethod = null;
35
- authMethod = _config.authMethods["ApiKeyAuth"];
36
- if (authMethod) {
37
- yield authMethod.applySecurityAuthentication(requestContext);
38
- }
39
- return requestContext;
40
- });
10
+ async v1TransactionsEstimateFee(request, _options) {
11
+ let _config = _options || this.configuration;
12
+ if (request === null || request === undefined) {
13
+ throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1TransactionsEstimateFee.');
14
+ }
15
+ const localVarPath = '/api/v1/transactions/estimate_fee';
16
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
17
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
18
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
19
+ "application/json"
20
+ ]);
21
+ requestContext.setHeaderParam("Content-Type", contentType);
22
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "EstimateFeeRequest", ""), contentType);
23
+ requestContext.setBody(serializedBody);
24
+ let authMethod = null;
25
+ authMethod = _config.authMethods["ApiKeyAuth"];
26
+ if (authMethod) {
27
+ await authMethod.applySecurityAuthentication(requestContext);
28
+ }
29
+ return requestContext;
41
30
  }
42
- v1TransactionsList(limit, currency, cursor, direction, gateway, network, status, txhash, walletId, _options) {
43
- return __awaiter(this, void 0, void 0, function* () {
44
- let _config = _options || this.configuration;
45
- if (limit === null || limit === undefined) {
46
- throw new baseapi_1.RequiredError('Required parameter limit was null or undefined when calling v1TransactionsList.');
47
- }
48
- const localVarPath = '/api/v1/transactions';
49
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
50
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
51
- if (currency !== undefined) {
52
- requestContext.setQueryParam("currency", ObjectSerializer_1.ObjectSerializer.serialize(currency, "string", ""));
53
- }
54
- if (cursor !== undefined) {
55
- requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
56
- }
57
- if (direction !== undefined) {
58
- requestContext.setQueryParam("direction", ObjectSerializer_1.ObjectSerializer.serialize(direction, "'OUT' | 'IN'", ""));
59
- }
60
- if (gateway !== undefined) {
61
- requestContext.setQueryParam("gateway", ObjectSerializer_1.ObjectSerializer.serialize(gateway, "string", ""));
62
- }
63
- if (limit !== undefined) {
64
- requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
65
- }
66
- if (network !== undefined) {
67
- requestContext.setQueryParam("network", ObjectSerializer_1.ObjectSerializer.serialize(network, "string", ""));
68
- }
69
- if (status !== undefined) {
70
- requestContext.setQueryParam("status", ObjectSerializer_1.ObjectSerializer.serialize(status, "'PROCESSING' | 'CANCELED' | 'FAILED' | 'SUCCEED'", ""));
71
- }
72
- if (txhash !== undefined) {
73
- requestContext.setQueryParam("txhash", ObjectSerializer_1.ObjectSerializer.serialize(txhash, "string", ""));
74
- }
75
- if (walletId !== undefined) {
76
- requestContext.setQueryParam("wallet_id", ObjectSerializer_1.ObjectSerializer.serialize(walletId, "string", ""));
77
- }
78
- let authMethod = null;
79
- authMethod = _config.authMethods["ApiKeyAuth"];
80
- if (authMethod) {
81
- yield authMethod.applySecurityAuthentication(requestContext);
82
- }
83
- return requestContext;
84
- });
31
+ async v1TransactionsList(limit, currency, cursor, direction, gateway, network, status, txhash, walletId, _options) {
32
+ let _config = _options || this.configuration;
33
+ if (limit === null || limit === undefined) {
34
+ throw new baseapi_1.RequiredError('Required parameter limit was null or undefined when calling v1TransactionsList.');
35
+ }
36
+ const localVarPath = '/api/v1/transactions';
37
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
38
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
39
+ if (currency !== undefined) {
40
+ requestContext.setQueryParam("currency", ObjectSerializer_1.ObjectSerializer.serialize(currency, "string", ""));
41
+ }
42
+ if (cursor !== undefined) {
43
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
44
+ }
45
+ if (direction !== undefined) {
46
+ requestContext.setQueryParam("direction", ObjectSerializer_1.ObjectSerializer.serialize(direction, "'OUT' | 'IN'", ""));
47
+ }
48
+ if (gateway !== undefined) {
49
+ requestContext.setQueryParam("gateway", ObjectSerializer_1.ObjectSerializer.serialize(gateway, "string", ""));
50
+ }
51
+ if (limit !== undefined) {
52
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
53
+ }
54
+ if (network !== undefined) {
55
+ requestContext.setQueryParam("network", ObjectSerializer_1.ObjectSerializer.serialize(network, "string", ""));
56
+ }
57
+ if (status !== undefined) {
58
+ requestContext.setQueryParam("status", ObjectSerializer_1.ObjectSerializer.serialize(status, "'PROCESSING' | 'CANCELED' | 'FAILED' | 'SUCCEED'", ""));
59
+ }
60
+ if (txhash !== undefined) {
61
+ requestContext.setQueryParam("txhash", ObjectSerializer_1.ObjectSerializer.serialize(txhash, "string", ""));
62
+ }
63
+ if (walletId !== undefined) {
64
+ requestContext.setQueryParam("wallet_id", ObjectSerializer_1.ObjectSerializer.serialize(walletId, "string", ""));
65
+ }
66
+ let authMethod = null;
67
+ authMethod = _config.authMethods["ApiKeyAuth"];
68
+ if (authMethod) {
69
+ await authMethod.applySecurityAuthentication(requestContext);
70
+ }
71
+ return requestContext;
85
72
  }
86
- v1TransactionsRetrieve(transactionId, _options) {
87
- return __awaiter(this, void 0, void 0, function* () {
88
- let _config = _options || this.configuration;
89
- if (transactionId === null || transactionId === undefined) {
90
- throw new baseapi_1.RequiredError('Required parameter transactionId was null or undefined when calling v1TransactionsRetrieve.');
91
- }
92
- const localVarPath = '/api/v1/transactions/{transactionId}'
93
- .replace('{' + 'transactionId' + '}', encodeURIComponent(String(transactionId)));
94
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
95
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
96
- let authMethod = null;
97
- authMethod = _config.authMethods["ApiKeyAuth"];
98
- if (authMethod) {
99
- yield authMethod.applySecurityAuthentication(requestContext);
100
- }
101
- return requestContext;
102
- });
73
+ async v1TransactionsRetrieve(transactionId, _options) {
74
+ let _config = _options || this.configuration;
75
+ if (transactionId === null || transactionId === undefined) {
76
+ throw new baseapi_1.RequiredError('Required parameter transactionId was null or undefined when calling v1TransactionsRetrieve.');
77
+ }
78
+ const localVarPath = '/api/v1/transactions/{transactionId}'
79
+ .replace('{' + 'transactionId' + '}', encodeURIComponent(String(transactionId)));
80
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
81
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
82
+ let authMethod = null;
83
+ authMethod = _config.authMethods["ApiKeyAuth"];
84
+ if (authMethod) {
85
+ await authMethod.applySecurityAuthentication(requestContext);
86
+ }
87
+ return requestContext;
103
88
  }
104
- v1TransactionsTransfer(request, _options) {
105
- return __awaiter(this, void 0, void 0, function* () {
106
- let _config = _options || this.configuration;
107
- if (request === null || request === undefined) {
108
- throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1TransactionsTransfer.');
109
- }
110
- const localVarPath = '/api/v1/transactions/transfer';
111
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
112
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
113
- const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
114
- "application/json"
115
- ]);
116
- requestContext.setHeaderParam("Content-Type", contentType);
117
- const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "CreateTransferRequest", ""), contentType);
118
- requestContext.setBody(serializedBody);
119
- let authMethod = null;
120
- authMethod = _config.authMethods["ApiKeyAuth"];
121
- if (authMethod) {
122
- yield authMethod.applySecurityAuthentication(requestContext);
123
- }
124
- return requestContext;
125
- });
89
+ async v1TransactionsTransfer(request, _options) {
90
+ let _config = _options || this.configuration;
91
+ if (request === null || request === undefined) {
92
+ throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1TransactionsTransfer.');
93
+ }
94
+ const localVarPath = '/api/v1/transactions/transfer';
95
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
96
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
97
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
98
+ "application/json"
99
+ ]);
100
+ requestContext.setHeaderParam("Content-Type", contentType);
101
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "CreateTransferRequest", ""), contentType);
102
+ requestContext.setBody(serializedBody);
103
+ let authMethod = null;
104
+ authMethod = _config.authMethods["ApiKeyAuth"];
105
+ if (authMethod) {
106
+ await authMethod.applySecurityAuthentication(requestContext);
107
+ }
108
+ return requestContext;
126
109
  }
127
- v1TransactionsWithdraw(request, _options) {
128
- return __awaiter(this, void 0, void 0, function* () {
129
- let _config = _options || this.configuration;
130
- if (request === null || request === undefined) {
131
- throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1TransactionsWithdraw.');
132
- }
133
- const localVarPath = '/api/v1/transactions/withdraw';
134
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
135
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
136
- const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
137
- "application/json"
138
- ]);
139
- requestContext.setHeaderParam("Content-Type", contentType);
140
- const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "CreateWithdrawRequest", ""), contentType);
141
- requestContext.setBody(serializedBody);
142
- let authMethod = null;
143
- authMethod = _config.authMethods["ApiKeyAuth"];
144
- if (authMethod) {
145
- yield authMethod.applySecurityAuthentication(requestContext);
146
- }
147
- return requestContext;
148
- });
110
+ async v1TransactionsWithdraw(request, _options) {
111
+ let _config = _options || this.configuration;
112
+ if (request === null || request === undefined) {
113
+ throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1TransactionsWithdraw.');
114
+ }
115
+ const localVarPath = '/api/v1/transactions/withdraw';
116
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
117
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
118
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
119
+ "application/json"
120
+ ]);
121
+ requestContext.setHeaderParam("Content-Type", contentType);
122
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "CreateWithdrawRequest", ""), contentType);
123
+ requestContext.setBody(serializedBody);
124
+ let authMethod = null;
125
+ authMethod = _config.authMethods["ApiKeyAuth"];
126
+ if (authMethod) {
127
+ await authMethod.applySecurityAuthentication(requestContext);
128
+ }
129
+ return requestContext;
149
130
  }
150
131
  }
151
132
  exports.TransactionsApiRequestFactory = TransactionsApiRequestFactory;
152
133
  class TransactionsApiResponseProcessor {
153
- v1TransactionsEstimateFee(response) {
154
- return __awaiter(this, void 0, void 0, function* () {
155
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
156
- if (util_1.isCodeInRange("200", response.httpStatusCode)) {
157
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EstimateFeeResponse", "");
158
- return body;
159
- }
160
- if (util_1.isCodeInRange("400", response.httpStatusCode)) {
161
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
162
- throw new exception_1.ApiException(400, body);
163
- }
164
- if (util_1.isCodeInRange("401", response.httpStatusCode)) {
165
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
166
- throw new exception_1.ApiException(401, body);
167
- }
168
- if (util_1.isCodeInRange("404", response.httpStatusCode)) {
169
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
170
- throw new exception_1.ApiException(404, body);
171
- }
172
- if (util_1.isCodeInRange("500", response.httpStatusCode)) {
173
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
174
- throw new exception_1.ApiException(500, body);
175
- }
176
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
177
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EstimateFeeResponse", "");
178
- return body;
179
- }
180
- let body = response.body || "";
181
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
182
- });
134
+ async v1TransactionsEstimateFee(response) {
135
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
136
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
137
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "EstimateFeeResponse", "");
138
+ return body;
139
+ }
140
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
141
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
142
+ throw new exception_1.ApiException(400, body);
143
+ }
144
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
145
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
146
+ throw new exception_1.ApiException(401, body);
147
+ }
148
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
149
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
150
+ throw new exception_1.ApiException(404, body);
151
+ }
152
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
153
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
154
+ throw new exception_1.ApiException(500, body);
155
+ }
156
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
157
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "EstimateFeeResponse", "");
158
+ return body;
159
+ }
160
+ let body = response.body || "";
161
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
183
162
  }
184
- v1TransactionsList(response) {
185
- return __awaiter(this, void 0, void 0, function* () {
186
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
187
- if (util_1.isCodeInRange("200", response.httpStatusCode)) {
188
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageTransaction", "");
189
- return body;
190
- }
191
- if (util_1.isCodeInRange("400", response.httpStatusCode)) {
192
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
193
- throw new exception_1.ApiException(400, body);
194
- }
195
- if (util_1.isCodeInRange("401", response.httpStatusCode)) {
196
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
197
- throw new exception_1.ApiException(401, body);
198
- }
199
- if (util_1.isCodeInRange("404", response.httpStatusCode)) {
200
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
201
- throw new exception_1.ApiException(404, body);
202
- }
203
- if (util_1.isCodeInRange("500", response.httpStatusCode)) {
204
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
205
- throw new exception_1.ApiException(500, body);
206
- }
207
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
208
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageTransaction", "");
209
- return body;
210
- }
211
- let body = response.body || "";
212
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
213
- });
163
+ async v1TransactionsList(response) {
164
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
165
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
166
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "CursorPageTransaction", "");
167
+ return body;
168
+ }
169
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
170
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
171
+ throw new exception_1.ApiException(400, body);
172
+ }
173
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
174
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
175
+ throw new exception_1.ApiException(401, body);
176
+ }
177
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
178
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
179
+ throw new exception_1.ApiException(404, body);
180
+ }
181
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
182
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
183
+ throw new exception_1.ApiException(500, body);
184
+ }
185
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
186
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "CursorPageTransaction", "");
187
+ return body;
188
+ }
189
+ let body = response.body || "";
190
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
214
191
  }
215
- v1TransactionsRetrieve(response) {
216
- return __awaiter(this, void 0, void 0, function* () {
217
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
218
- if (util_1.isCodeInRange("200", response.httpStatusCode)) {
219
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Transaction", "");
220
- return body;
221
- }
222
- if (util_1.isCodeInRange("400", response.httpStatusCode)) {
223
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
224
- throw new exception_1.ApiException(400, body);
225
- }
226
- if (util_1.isCodeInRange("401", response.httpStatusCode)) {
227
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
228
- throw new exception_1.ApiException(401, body);
229
- }
230
- if (util_1.isCodeInRange("404", response.httpStatusCode)) {
231
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
232
- throw new exception_1.ApiException(404, body);
233
- }
234
- if (util_1.isCodeInRange("500", response.httpStatusCode)) {
235
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
236
- throw new exception_1.ApiException(500, body);
237
- }
238
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
239
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Transaction", "");
240
- return body;
241
- }
242
- let body = response.body || "";
243
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
244
- });
192
+ async v1TransactionsRetrieve(response) {
193
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
194
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
195
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Transaction", "");
196
+ return body;
197
+ }
198
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
199
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
200
+ throw new exception_1.ApiException(400, body);
201
+ }
202
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
203
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
204
+ throw new exception_1.ApiException(401, body);
205
+ }
206
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
207
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
208
+ throw new exception_1.ApiException(404, body);
209
+ }
210
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
211
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
212
+ throw new exception_1.ApiException(500, body);
213
+ }
214
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
215
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Transaction", "");
216
+ return body;
217
+ }
218
+ let body = response.body || "";
219
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
245
220
  }
246
- v1TransactionsTransfer(response) {
247
- return __awaiter(this, void 0, void 0, function* () {
248
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
249
- if (util_1.isCodeInRange("200", response.httpStatusCode)) {
250
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateTransferResponse", "");
251
- return body;
252
- }
253
- if (util_1.isCodeInRange("400", response.httpStatusCode)) {
254
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
255
- throw new exception_1.ApiException(400, body);
256
- }
257
- if (util_1.isCodeInRange("401", response.httpStatusCode)) {
258
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
259
- throw new exception_1.ApiException(401, body);
260
- }
261
- if (util_1.isCodeInRange("404", response.httpStatusCode)) {
262
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
263
- throw new exception_1.ApiException(404, body);
264
- }
265
- if (util_1.isCodeInRange("500", response.httpStatusCode)) {
266
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
267
- throw new exception_1.ApiException(500, body);
268
- }
269
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
270
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateTransferResponse", "");
271
- return body;
272
- }
273
- let body = response.body || "";
274
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
275
- });
221
+ async v1TransactionsTransfer(response) {
222
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
223
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
224
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "CreateTransferResponse", "");
225
+ return body;
226
+ }
227
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
228
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
229
+ throw new exception_1.ApiException(400, body);
230
+ }
231
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
232
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
233
+ throw new exception_1.ApiException(401, body);
234
+ }
235
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
236
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
237
+ throw new exception_1.ApiException(404, body);
238
+ }
239
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
240
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
241
+ throw new exception_1.ApiException(500, body);
242
+ }
243
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
244
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "CreateTransferResponse", "");
245
+ return body;
246
+ }
247
+ let body = response.body || "";
248
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
276
249
  }
277
- v1TransactionsWithdraw(response) {
278
- return __awaiter(this, void 0, void 0, function* () {
279
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
280
- if (util_1.isCodeInRange("200", response.httpStatusCode)) {
281
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateWithdrawReply", "");
282
- return body;
283
- }
284
- if (util_1.isCodeInRange("400", response.httpStatusCode)) {
285
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
286
- throw new exception_1.ApiException(400, body);
287
- }
288
- if (util_1.isCodeInRange("401", response.httpStatusCode)) {
289
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
290
- throw new exception_1.ApiException(401, body);
291
- }
292
- if (util_1.isCodeInRange("404", response.httpStatusCode)) {
293
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
294
- throw new exception_1.ApiException(404, body);
295
- }
296
- if (util_1.isCodeInRange("500", response.httpStatusCode)) {
297
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
298
- throw new exception_1.ApiException(500, body);
299
- }
300
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
301
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateWithdrawReply", "");
302
- return body;
303
- }
304
- let body = response.body || "";
305
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
306
- });
250
+ async v1TransactionsWithdraw(response) {
251
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
252
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
253
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "CreateWithdrawReply", "");
254
+ return body;
255
+ }
256
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
257
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
258
+ throw new exception_1.ApiException(400, body);
259
+ }
260
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
261
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
262
+ throw new exception_1.ApiException(401, body);
263
+ }
264
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
265
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
266
+ throw new exception_1.ApiException(404, body);
267
+ }
268
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
269
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
270
+ throw new exception_1.ApiException(500, body);
271
+ }
272
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
273
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "CreateWithdrawReply", "");
274
+ return body;
275
+ }
276
+ let body = response.body || "";
277
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
307
278
  }
308
279
  }
309
280
  exports.TransactionsApiResponseProcessor = TransactionsApiResponseProcessor;