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