@vality/swag-wallets 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 (128) hide show
  1. package/README.md +236 -0
  2. package/api/api.d.ts +23 -0
  3. package/api/currencies.service.d.ts +41 -0
  4. package/api/deposits.service.d.ts +171 -0
  5. package/api/downloads.service.d.ts +41 -0
  6. package/api/identities.service.d.ts +134 -0
  7. package/api/providers.service.d.ts +70 -0
  8. package/api/reports.service.d.ts +116 -0
  9. package/api/residences.service.d.ts +41 -0
  10. package/api/w2W.service.d.ts +71 -0
  11. package/api/wallets.service.d.ts +199 -0
  12. package/api/webhooks.service.d.ts +132 -0
  13. package/api/withdrawals.service.d.ts +410 -0
  14. package/api.base.service.d.ts +12 -0
  15. package/api.module.d.ts +11 -0
  16. package/configuration.d.ts +106 -0
  17. package/encoder.d.ts +11 -0
  18. package/fesm2022/vality-swag-wallets.mjs +3577 -0
  19. package/fesm2022/vality-swag-wallets.mjs.map +1 -0
  20. package/index.d.ts +6 -0
  21. package/model/asset.d.ts +22 -0
  22. package/model/badRequest.d.ts +38 -0
  23. package/model/bankCardDestinationResource.d.ts +29 -0
  24. package/model/bankCardReceiverResource.d.ts +33 -0
  25. package/model/bankCardReceiverResourceParams.d.ts +29 -0
  26. package/model/bankCardSenderResource.d.ts +33 -0
  27. package/model/bankCardSenderResourceParams.d.ts +33 -0
  28. package/model/browserGetRequest.d.ts +16 -0
  29. package/model/browserPostRequest.d.ts +21 -0
  30. package/model/browserRequest.d.ts +15 -0
  31. package/model/conflictRequest.d.ts +23 -0
  32. package/model/contactInfo.d.ts +22 -0
  33. package/model/cryptoWallet.d.ts +22 -0
  34. package/model/cryptoWalletDestinationResource.d.ts +25 -0
  35. package/model/currency.d.ts +34 -0
  36. package/model/deposit.d.ts +56 -0
  37. package/model/depositAdjustment.d.ts +40 -0
  38. package/model/depositAdjustmentFailure.d.ts +17 -0
  39. package/model/depositAdjustmentStatus.d.ts +25 -0
  40. package/model/depositAdjustmentStatusFailure.d.ts +20 -0
  41. package/model/depositAllOfBody.d.ts +22 -0
  42. package/model/depositAllOfFee.d.ts +22 -0
  43. package/model/depositFailure.d.ts +17 -0
  44. package/model/depositRevert.d.ts +51 -0
  45. package/model/depositRevertAllOfBody.d.ts +22 -0
  46. package/model/depositRevertFailure.d.ts +17 -0
  47. package/model/depositRevertStatus.d.ts +25 -0
  48. package/model/depositRevertStatusFailure.d.ts +20 -0
  49. package/model/depositStatus.d.ts +25 -0
  50. package/model/depositStatusFailure.d.ts +20 -0
  51. package/model/destination.d.ts +65 -0
  52. package/model/destinationAuthData.d.ts +24 -0
  53. package/model/destinationGrantRequest.d.ts +22 -0
  54. package/model/destinationResource.d.ts +26 -0
  55. package/model/destinationStatus.d.ts +26 -0
  56. package/model/destinationsTopic.d.ts +27 -0
  57. package/model/digitalWallet.d.ts +34 -0
  58. package/model/digitalWalletDestinationResource.d.ts +37 -0
  59. package/model/fileDownload.d.ts +19 -0
  60. package/model/getWithdrawalMethods200Response.d.ts +13 -0
  61. package/model/identity.d.ts +46 -0
  62. package/model/invalidOperationParameters.d.ts +15 -0
  63. package/model/listDepositAdjustments200Response.d.ts +20 -0
  64. package/model/listDepositReverts200Response.d.ts +20 -0
  65. package/model/listDeposits200Response.d.ts +20 -0
  66. package/model/listDestinations200Response.d.ts +20 -0
  67. package/model/listIdentities200Response.d.ts +20 -0
  68. package/model/listWallets200Response.d.ts +20 -0
  69. package/model/listWithdrawals200Response.d.ts +20 -0
  70. package/model/models.d.ts +104 -0
  71. package/model/provider.d.ts +26 -0
  72. package/model/quoteParameters.d.ts +24 -0
  73. package/model/quoteParametersBody.d.ts +22 -0
  74. package/model/receiverResource.d.ts +24 -0
  75. package/model/receiverResourceParams.d.ts +24 -0
  76. package/model/redirect.d.ts +14 -0
  77. package/model/report.d.ts +49 -0
  78. package/model/reportFilesInner.d.ts +15 -0
  79. package/model/reportParams.d.ts +29 -0
  80. package/model/residence.d.ts +26 -0
  81. package/model/securedBankCard.d.ts +26 -0
  82. package/model/senderReceiverDestinationAuthData.d.ts +25 -0
  83. package/model/senderResource.d.ts +24 -0
  84. package/model/senderResourceParams.d.ts +24 -0
  85. package/model/subFailure.d.ts +19 -0
  86. package/model/userInteraction.d.ts +15 -0
  87. package/model/userInteractionChange.d.ts +22 -0
  88. package/model/userInteractionCreated.d.ts +16 -0
  89. package/model/userInteractionFinished.d.ts +14 -0
  90. package/model/userInteractionFormInner.d.ts +19 -0
  91. package/model/w2WTransfer.d.ts +38 -0
  92. package/model/w2WTransferFailure.d.ts +20 -0
  93. package/model/w2WTransferParameters.d.ts +28 -0
  94. package/model/w2WTransferParametersBody.d.ts +22 -0
  95. package/model/w2WTransferStatus.d.ts +25 -0
  96. package/model/w2WTransferStatusFailure.d.ts +20 -0
  97. package/model/wallet.d.ts +46 -0
  98. package/model/walletAccount.d.ts +18 -0
  99. package/model/walletAccountAvailable.d.ts +22 -0
  100. package/model/walletAccountOwn.d.ts +22 -0
  101. package/model/walletGrantRequest.d.ts +24 -0
  102. package/model/walletGrantRequestAsset.d.ts +22 -0
  103. package/model/webhook.d.ts +33 -0
  104. package/model/webhookScope.d.ts +25 -0
  105. package/model/withdrawal.d.ts +58 -0
  106. package/model/withdrawalAllOfBody.d.ts +22 -0
  107. package/model/withdrawalAllOfQuote.d.ts +24 -0
  108. package/model/withdrawalEvent.d.ts +24 -0
  109. package/model/withdrawalEventChange.d.ts +24 -0
  110. package/model/withdrawalFailure.d.ts +17 -0
  111. package/model/withdrawalMethod.d.ts +23 -0
  112. package/model/withdrawalMethodBankCard.d.ts +18 -0
  113. package/model/withdrawalMethodDigitalWallet.d.ts +18 -0
  114. package/model/withdrawalMethodGeneric.d.ts +18 -0
  115. package/model/withdrawalParameters.d.ts +70 -0
  116. package/model/withdrawalQuote.d.ts +30 -0
  117. package/model/withdrawalQuoteCashFrom.d.ts +22 -0
  118. package/model/withdrawalQuoteCashTo.d.ts +22 -0
  119. package/model/withdrawalQuoteParams.d.ts +44 -0
  120. package/model/withdrawalQuoteParamsCash.d.ts +22 -0
  121. package/model/withdrawalReadQuote.d.ts +26 -0
  122. package/model/withdrawalStatus.d.ts +25 -0
  123. package/model/withdrawalStatusChanged.d.ts +29 -0
  124. package/model/withdrawalStatusFailure.d.ts +20 -0
  125. package/model/withdrawalsTopic.d.ts +31 -0
  126. package/package.json +34 -0
  127. package/param.d.ts +37 -0
  128. package/variables.d.ts +8 -0
@@ -0,0 +1,410 @@
1
+ import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { Destination } from '../model/destination';
4
+ import { DestinationGrantRequest } from '../model/destinationGrantRequest';
5
+ import { ListDestinations200Response } from '../model/listDestinations200Response';
6
+ import { ListWithdrawals200Response } from '../model/listWithdrawals200Response';
7
+ import { Withdrawal } from '../model/withdrawal';
8
+ import { WithdrawalEvent } from '../model/withdrawalEvent';
9
+ import { WithdrawalParameters } from '../model/withdrawalParameters';
10
+ import { WithdrawalQuote } from '../model/withdrawalQuote';
11
+ import { WithdrawalQuoteParams } from '../model/withdrawalQuoteParams';
12
+ import { Configuration } from '../configuration';
13
+ import { BaseService } from '../api.base.service';
14
+ import * as i0 from "@angular/core";
15
+ export interface CreateDestinationRequestParams {
16
+ /** Unique identifier of the request to the system */
17
+ xRequestID: string;
18
+ /** Destination data */
19
+ destination: Destination;
20
+ /** Maximum request processing time */
21
+ xRequestDeadline?: string;
22
+ }
23
+ export interface CreateQuoteRequestParams {
24
+ /** Unique identifier of the request to the system */
25
+ xRequestID: string;
26
+ /** Quote data for withdrawal */
27
+ withdrawalQuoteParams: WithdrawalQuoteParams;
28
+ /** Maximum request processing time */
29
+ xRequestDeadline?: string;
30
+ }
31
+ export interface CreateWithdrawalRequestParams {
32
+ /** Unique identifier of the request to the system */
33
+ xRequestID: string;
34
+ /** Withdrawal data */
35
+ withdrawal: WithdrawalParameters;
36
+ /** Maximum request processing time */
37
+ xRequestDeadline?: string;
38
+ }
39
+ export interface GetDestinationRequestParams {
40
+ /** Unique identifier of the request to the system */
41
+ xRequestID: string;
42
+ /** Identifier of the destination */
43
+ destinationID: string;
44
+ /** Maximum request processing time */
45
+ xRequestDeadline?: string;
46
+ }
47
+ export interface GetDestinationByExternalIDRequestParams {
48
+ /** Unique identifier of the request to the system */
49
+ xRequestID: string;
50
+ /** External identifier */
51
+ externalID: string;
52
+ /** Maximum request processing time */
53
+ xRequestDeadline?: string;
54
+ }
55
+ export interface GetWithdrawalRequestParams {
56
+ /** Unique identifier of the request to the system */
57
+ xRequestID: string;
58
+ /** Identifier of the withdrawal */
59
+ withdrawalID: string;
60
+ /** Maximum request processing time */
61
+ xRequestDeadline?: string;
62
+ }
63
+ export interface GetWithdrawalByExternalIDRequestParams {
64
+ /** Unique identifier of the request to the system */
65
+ xRequestID: string;
66
+ /** External identifier */
67
+ externalID: string;
68
+ /** Maximum request processing time */
69
+ xRequestDeadline?: string;
70
+ }
71
+ export interface GetWithdrawalEventsRequestParams {
72
+ /** Unique identifier of the request to the system */
73
+ xRequestID: string;
74
+ /** Identifier of the withdrawal */
75
+ withdrawalID: string;
76
+ /** Identifier of the identification procedure event. */
77
+ eventID: number;
78
+ /** Maximum request processing time */
79
+ xRequestDeadline?: string;
80
+ }
81
+ export interface IssueDestinationGrantRequestParams {
82
+ /** Unique identifier of the request to the system */
83
+ xRequestID: string;
84
+ /** Identifier of the destination */
85
+ destinationID: string;
86
+ /** Request for the right to manage the destinations */
87
+ request: DestinationGrantRequest;
88
+ /** Maximum request processing time */
89
+ xRequestDeadline?: string;
90
+ }
91
+ export interface ListDestinationsRequestParams {
92
+ /** Unique identifier of the request to the system */
93
+ xRequestID: string;
94
+ /** Selection limit */
95
+ limit: number;
96
+ /** Maximum request processing time */
97
+ xRequestDeadline?: string;
98
+ /** The participant\'s unique identifier within the system. */
99
+ partyID?: string;
100
+ /** Identifier of the owner\'s idenity */
101
+ identityID?: string;
102
+ /** Currency, character code according to [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm). */
103
+ currencyID?: string;
104
+ /** A token signalling that only part of the data has been transmitted in the response. To retrieve the next part, you need repeat the request to the service again, specifying the same set of conditions and the received token. If there is no token, the last piece of data is received. */
105
+ continuationToken?: string;
106
+ }
107
+ export interface ListWithdrawalsRequestParams {
108
+ /** Unique identifier of the request to the system */
109
+ xRequestID: string;
110
+ /** Selection limit */
111
+ limit: number;
112
+ /** Maximum request processing time */
113
+ xRequestDeadline?: string;
114
+ /** The participant\'s unique identifier within the system. */
115
+ partyID?: string;
116
+ /** Identifier of the wallet */
117
+ walletID?: string;
118
+ /** Identifier of the owner\'s identity */
119
+ identityID?: string;
120
+ /** Identifier of the funds withdrawal */
121
+ withdrawalID?: string;
122
+ /** Identifier of the external\'s ID */
123
+ externalID?: string;
124
+ /** Identifier of the destination */
125
+ destinationID?: string;
126
+ status?: 'Pending' | 'Succeeded' | 'Failed';
127
+ /** Creation date range start */
128
+ createdAtFrom?: string;
129
+ /** Creation date range end */
130
+ createdAtTo?: string;
131
+ /** Amount of monetary funds in minor units */
132
+ amountFrom?: number;
133
+ /** Amount of monetary funds in minor units */
134
+ amountTo?: number;
135
+ /** Currency, character code according to [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm). */
136
+ currencyID?: string;
137
+ /** A token signalling that only part of the data has been transmitted in the response. To retrieve the next part, you need repeat the request to the service again, specifying the same set of conditions and the received token. If there is no token, the last piece of data is received. */
138
+ continuationToken?: string;
139
+ }
140
+ export interface PollWithdrawalEventsRequestParams {
141
+ /** Unique identifier of the request to the system */
142
+ xRequestID: string;
143
+ /** Identifier of the withdrawal */
144
+ withdrawalID: string;
145
+ /** Selection limit */
146
+ limit: number;
147
+ /** Maximum request processing time */
148
+ xRequestDeadline?: string;
149
+ /** The identifier of the last known event. All events that occurred _after_ the specified one will be included in the selection. If this parameter is not specified, the selection will include events starting from the very first one. */
150
+ eventCursor?: number;
151
+ }
152
+ export declare class WithdrawalsService extends BaseService {
153
+ protected httpClient: HttpClient;
154
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
155
+ /**
156
+ * Start a destination creation
157
+ * @param requestParameters
158
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
159
+ * @param reportProgress flag to report request and response progress.
160
+ */
161
+ createDestination(requestParameters: CreateDestinationRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
162
+ httpHeaderAccept?: 'application/json; charset=utf-8';
163
+ context?: HttpContext;
164
+ transferCache?: boolean;
165
+ }): Observable<Destination>;
166
+ createDestination(requestParameters: CreateDestinationRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
167
+ httpHeaderAccept?: 'application/json; charset=utf-8';
168
+ context?: HttpContext;
169
+ transferCache?: boolean;
170
+ }): Observable<HttpResponse<Destination>>;
171
+ createDestination(requestParameters: CreateDestinationRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
172
+ httpHeaderAccept?: 'application/json; charset=utf-8';
173
+ context?: HttpContext;
174
+ transferCache?: boolean;
175
+ }): Observable<HttpEvent<Destination>>;
176
+ /**
177
+ * Quote preparation
178
+ * Fixing the exchange rate for making withdrawals with conversion
179
+ * @param requestParameters
180
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
181
+ * @param reportProgress flag to report request and response progress.
182
+ */
183
+ createQuote(requestParameters: CreateQuoteRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
184
+ httpHeaderAccept?: 'application/json; charset=utf-8';
185
+ context?: HttpContext;
186
+ transferCache?: boolean;
187
+ }): Observable<WithdrawalQuote>;
188
+ createQuote(requestParameters: CreateQuoteRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
189
+ httpHeaderAccept?: 'application/json; charset=utf-8';
190
+ context?: HttpContext;
191
+ transferCache?: boolean;
192
+ }): Observable<HttpResponse<WithdrawalQuote>>;
193
+ createQuote(requestParameters: CreateQuoteRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
194
+ httpHeaderAccept?: 'application/json; charset=utf-8';
195
+ context?: HttpContext;
196
+ transferCache?: boolean;
197
+ }): Observable<HttpEvent<WithdrawalQuote>>;
198
+ /**
199
+ * Create withdrawal
200
+ * @param requestParameters
201
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
202
+ * @param reportProgress flag to report request and response progress.
203
+ */
204
+ createWithdrawal(requestParameters: CreateWithdrawalRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
205
+ httpHeaderAccept?: 'application/json; charset=utf-8';
206
+ context?: HttpContext;
207
+ transferCache?: boolean;
208
+ }): Observable<Withdrawal>;
209
+ createWithdrawal(requestParameters: CreateWithdrawalRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
210
+ httpHeaderAccept?: 'application/json; charset=utf-8';
211
+ context?: HttpContext;
212
+ transferCache?: boolean;
213
+ }): Observable<HttpResponse<Withdrawal>>;
214
+ createWithdrawal(requestParameters: CreateWithdrawalRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
215
+ httpHeaderAccept?: 'application/json; charset=utf-8';
216
+ context?: HttpContext;
217
+ transferCache?: boolean;
218
+ }): Observable<HttpEvent<Withdrawal>>;
219
+ /**
220
+ * Get a specific destination
221
+ * @param requestParameters
222
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
223
+ * @param reportProgress flag to report request and response progress.
224
+ */
225
+ getDestination(requestParameters: GetDestinationRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
226
+ httpHeaderAccept?: 'application/json; charset=utf-8';
227
+ context?: HttpContext;
228
+ transferCache?: boolean;
229
+ }): Observable<Destination>;
230
+ getDestination(requestParameters: GetDestinationRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
231
+ httpHeaderAccept?: 'application/json; charset=utf-8';
232
+ context?: HttpContext;
233
+ transferCache?: boolean;
234
+ }): Observable<HttpResponse<Destination>>;
235
+ getDestination(requestParameters: GetDestinationRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
236
+ httpHeaderAccept?: 'application/json; charset=utf-8';
237
+ context?: HttpContext;
238
+ transferCache?: boolean;
239
+ }): Observable<HttpEvent<Destination>>;
240
+ /**
241
+ * Get a destination by external identifier
242
+ * @param requestParameters
243
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
244
+ * @param reportProgress flag to report request and response progress.
245
+ */
246
+ getDestinationByExternalID(requestParameters: GetDestinationByExternalIDRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
247
+ httpHeaderAccept?: 'application/json; charset=utf-8';
248
+ context?: HttpContext;
249
+ transferCache?: boolean;
250
+ }): Observable<Destination>;
251
+ getDestinationByExternalID(requestParameters: GetDestinationByExternalIDRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
252
+ httpHeaderAccept?: 'application/json; charset=utf-8';
253
+ context?: HttpContext;
254
+ transferCache?: boolean;
255
+ }): Observable<HttpResponse<Destination>>;
256
+ getDestinationByExternalID(requestParameters: GetDestinationByExternalIDRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
257
+ httpHeaderAccept?: 'application/json; charset=utf-8';
258
+ context?: HttpContext;
259
+ transferCache?: boolean;
260
+ }): Observable<HttpEvent<Destination>>;
261
+ /**
262
+ * Get withdrawal status
263
+ * @param requestParameters
264
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
265
+ * @param reportProgress flag to report request and response progress.
266
+ */
267
+ getWithdrawal(requestParameters: GetWithdrawalRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
268
+ httpHeaderAccept?: 'application/json; charset=utf-8';
269
+ context?: HttpContext;
270
+ transferCache?: boolean;
271
+ }): Observable<Withdrawal>;
272
+ getWithdrawal(requestParameters: GetWithdrawalRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
273
+ httpHeaderAccept?: 'application/json; charset=utf-8';
274
+ context?: HttpContext;
275
+ transferCache?: boolean;
276
+ }): Observable<HttpResponse<Withdrawal>>;
277
+ getWithdrawal(requestParameters: GetWithdrawalRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
278
+ httpHeaderAccept?: 'application/json; charset=utf-8';
279
+ context?: HttpContext;
280
+ transferCache?: boolean;
281
+ }): Observable<HttpEvent<Withdrawal>>;
282
+ /**
283
+ * Get withdrawal status by external identifier
284
+ * @param requestParameters
285
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
286
+ * @param reportProgress flag to report request and response progress.
287
+ */
288
+ getWithdrawalByExternalID(requestParameters: GetWithdrawalByExternalIDRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
289
+ httpHeaderAccept?: 'application/json; charset=utf-8';
290
+ context?: HttpContext;
291
+ transferCache?: boolean;
292
+ }): Observable<Withdrawal>;
293
+ getWithdrawalByExternalID(requestParameters: GetWithdrawalByExternalIDRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
294
+ httpHeaderAccept?: 'application/json; charset=utf-8';
295
+ context?: HttpContext;
296
+ transferCache?: boolean;
297
+ }): Observable<HttpResponse<Withdrawal>>;
298
+ getWithdrawalByExternalID(requestParameters: GetWithdrawalByExternalIDRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
299
+ httpHeaderAccept?: 'application/json; charset=utf-8';
300
+ context?: HttpContext;
301
+ transferCache?: boolean;
302
+ }): Observable<HttpEvent<Withdrawal>>;
303
+ /**
304
+ * Get an event of withdrawal
305
+ * @param requestParameters
306
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
307
+ * @param reportProgress flag to report request and response progress.
308
+ */
309
+ getWithdrawalEvents(requestParameters: GetWithdrawalEventsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
310
+ httpHeaderAccept?: 'application/json; charset=utf-8';
311
+ context?: HttpContext;
312
+ transferCache?: boolean;
313
+ }): Observable<WithdrawalEvent>;
314
+ getWithdrawalEvents(requestParameters: GetWithdrawalEventsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
315
+ httpHeaderAccept?: 'application/json; charset=utf-8';
316
+ context?: HttpContext;
317
+ transferCache?: boolean;
318
+ }): Observable<HttpResponse<WithdrawalEvent>>;
319
+ getWithdrawalEvents(requestParameters: GetWithdrawalEventsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
320
+ httpHeaderAccept?: 'application/json; charset=utf-8';
321
+ context?: HttpContext;
322
+ transferCache?: boolean;
323
+ }): Observable<HttpEvent<WithdrawalEvent>>;
324
+ /**
325
+ * Grant the right to manage the destinations
326
+ * @param requestParameters
327
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
328
+ * @param reportProgress flag to report request and response progress.
329
+ */
330
+ issueDestinationGrant(requestParameters: IssueDestinationGrantRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
331
+ httpHeaderAccept?: 'application/json; charset=utf-8';
332
+ context?: HttpContext;
333
+ transferCache?: boolean;
334
+ }): Observable<DestinationGrantRequest>;
335
+ issueDestinationGrant(requestParameters: IssueDestinationGrantRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
336
+ httpHeaderAccept?: 'application/json; charset=utf-8';
337
+ context?: HttpContext;
338
+ transferCache?: boolean;
339
+ }): Observable<HttpResponse<DestinationGrantRequest>>;
340
+ issueDestinationGrant(requestParameters: IssueDestinationGrantRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
341
+ httpHeaderAccept?: 'application/json; charset=utf-8';
342
+ context?: HttpContext;
343
+ transferCache?: boolean;
344
+ }): Observable<HttpEvent<DestinationGrantRequest>>;
345
+ /**
346
+ * List of destinations
347
+ * @param requestParameters
348
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
349
+ * @param reportProgress flag to report request and response progress.
350
+ */
351
+ listDestinations(requestParameters: ListDestinationsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
352
+ httpHeaderAccept?: 'application/json; charset=utf-8';
353
+ context?: HttpContext;
354
+ transferCache?: boolean;
355
+ }): Observable<ListDestinations200Response>;
356
+ listDestinations(requestParameters: ListDestinationsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
357
+ httpHeaderAccept?: 'application/json; charset=utf-8';
358
+ context?: HttpContext;
359
+ transferCache?: boolean;
360
+ }): Observable<HttpResponse<ListDestinations200Response>>;
361
+ listDestinations(requestParameters: ListDestinationsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
362
+ httpHeaderAccept?: 'application/json; charset=utf-8';
363
+ context?: HttpContext;
364
+ transferCache?: boolean;
365
+ }): Observable<HttpEvent<ListDestinations200Response>>;
366
+ /**
367
+ * Search of withdrawals
368
+ * @param requestParameters
369
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
370
+ * @param reportProgress flag to report request and response progress.
371
+ */
372
+ listWithdrawals(requestParameters: ListWithdrawalsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
373
+ httpHeaderAccept?: 'application/json; charset=utf-8';
374
+ context?: HttpContext;
375
+ transferCache?: boolean;
376
+ }): Observable<ListWithdrawals200Response>;
377
+ listWithdrawals(requestParameters: ListWithdrawalsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
378
+ httpHeaderAccept?: 'application/json; charset=utf-8';
379
+ context?: HttpContext;
380
+ transferCache?: boolean;
381
+ }): Observable<HttpResponse<ListWithdrawals200Response>>;
382
+ listWithdrawals(requestParameters: ListWithdrawalsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
383
+ httpHeaderAccept?: 'application/json; charset=utf-8';
384
+ context?: HttpContext;
385
+ transferCache?: boolean;
386
+ }): Observable<HttpEvent<ListWithdrawals200Response>>;
387
+ /**
388
+ * Request withdrawal events
389
+ * @param requestParameters
390
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
391
+ * @param reportProgress flag to report request and response progress.
392
+ */
393
+ pollWithdrawalEvents(requestParameters: PollWithdrawalEventsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
394
+ httpHeaderAccept?: 'application/json; charset=utf-8';
395
+ context?: HttpContext;
396
+ transferCache?: boolean;
397
+ }): Observable<Array<WithdrawalEvent>>;
398
+ pollWithdrawalEvents(requestParameters: PollWithdrawalEventsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
399
+ httpHeaderAccept?: 'application/json; charset=utf-8';
400
+ context?: HttpContext;
401
+ transferCache?: boolean;
402
+ }): Observable<HttpResponse<Array<WithdrawalEvent>>>;
403
+ pollWithdrawalEvents(requestParameters: PollWithdrawalEventsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
404
+ httpHeaderAccept?: 'application/json; charset=utf-8';
405
+ context?: HttpContext;
406
+ transferCache?: boolean;
407
+ }): Observable<HttpEvent<Array<WithdrawalEvent>>>;
408
+ static ɵfac: i0.ɵɵFactoryDeclaration<WithdrawalsService, [null, { optional: true; }, { optional: true; }]>;
409
+ static ɵprov: i0.ɵɵInjectableDeclaration<WithdrawalsService>;
410
+ }
@@ -0,0 +1,12 @@
1
+ import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
2
+ import { Configuration } from './configuration';
3
+ export declare class BaseService {
4
+ protected basePath: string;
5
+ defaultHeaders: HttpHeaders;
6
+ configuration: Configuration;
7
+ encoder: HttpParameterCodec;
8
+ constructor(basePath?: string | string[], configuration?: Configuration);
9
+ protected canConsumeForm(consumes: string[]): boolean;
10
+ protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams;
11
+ protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams;
12
+ }
@@ -0,0 +1,11 @@
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { Configuration } from './configuration';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ApiModule {
6
+ static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule>;
7
+ constructor(parentModule: ApiModule, http: HttpClient);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiModule, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ApiModule, never, never, never>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<ApiModule>;
11
+ }
@@ -0,0 +1,106 @@
1
+ import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
2
+ import { Param } from './param';
3
+ export interface ConfigurationParameters {
4
+ /**
5
+ * @deprecated Since 5.0. Use credentials instead
6
+ */
7
+ apiKeys?: {
8
+ [key: string]: string;
9
+ };
10
+ username?: string;
11
+ password?: string;
12
+ /**
13
+ * @deprecated Since 5.0. Use credentials instead
14
+ */
15
+ accessToken?: string | (() => string);
16
+ basePath?: string;
17
+ withCredentials?: boolean;
18
+ /**
19
+ * Takes care of encoding query- and form-parameters.
20
+ */
21
+ encoder?: HttpParameterCodec;
22
+ /**
23
+ * Override the default method for encoding path parameters in various
24
+ * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
25
+ * <p>
26
+ * See {@link README.md} for more details
27
+ * </p>
28
+ */
29
+ encodeParam?: (param: Param) => string;
30
+ /**
31
+ * The keys are the names in the securitySchemes section of the OpenAPI
32
+ * document. They should map to the value used for authentication
33
+ * minus any standard prefixes such as 'Basic' or 'Bearer'.
34
+ */
35
+ credentials?: {
36
+ [key: string]: string | (() => string | undefined);
37
+ };
38
+ }
39
+ export declare class Configuration {
40
+ /**
41
+ * @deprecated Since 5.0. Use credentials instead
42
+ */
43
+ apiKeys?: {
44
+ [key: string]: string;
45
+ };
46
+ username?: string;
47
+ password?: string;
48
+ /**
49
+ * @deprecated Since 5.0. Use credentials instead
50
+ */
51
+ accessToken?: string | (() => string);
52
+ basePath?: string;
53
+ withCredentials?: boolean;
54
+ /**
55
+ * Takes care of encoding query- and form-parameters.
56
+ */
57
+ encoder?: HttpParameterCodec;
58
+ /**
59
+ * Encoding of various path parameter
60
+ * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
61
+ * <p>
62
+ * See {@link README.md} for more details
63
+ * </p>
64
+ */
65
+ encodeParam: (param: Param) => string;
66
+ /**
67
+ * The keys are the names in the securitySchemes section of the OpenAPI
68
+ * document. They should map to the value used for authentication
69
+ * minus any standard prefixes such as 'Basic' or 'Bearer'.
70
+ */
71
+ credentials: {
72
+ [key: string]: string | (() => string | undefined);
73
+ };
74
+ constructor(configurationParameters?: ConfigurationParameters);
75
+ /**
76
+ * Select the correct content-type to use for a request.
77
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
78
+ * If no content type is found return the first found type if the contentTypes is not empty
79
+ * @param contentTypes - the array of content types that are available for selection
80
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
81
+ */
82
+ selectHeaderContentType(contentTypes: string[]): string | undefined;
83
+ /**
84
+ * Select the correct accept content-type to use for a request.
85
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
86
+ * If no content type is found return the first found type if the contentTypes is not empty
87
+ * @param accepts - the array of content types that are available for selection.
88
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
89
+ */
90
+ selectHeaderAccept(accepts: string[]): string | undefined;
91
+ /**
92
+ * Check if the given MIME is a JSON MIME.
93
+ * JSON MIME examples:
94
+ * application/json
95
+ * application/json; charset=UTF8
96
+ * APPLICATION/JSON
97
+ * application/vnd.company+json
98
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
99
+ * @return True if the given MIME is JSON, false otherwise.
100
+ */
101
+ isJsonMime(mime: string): boolean;
102
+ lookupCredential(key: string): string | undefined;
103
+ addCredentialToHeaders(credentialKey: string, headerName: string, headers: HttpHeaders, prefix?: string): HttpHeaders;
104
+ addCredentialToQuery(credentialKey: string, paramName: string, query: HttpParams): HttpParams;
105
+ private defaultEncodeParam;
106
+ }
package/encoder.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { HttpParameterCodec } from '@angular/common/http';
2
+ /**
3
+ * Custom HttpParameterCodec
4
+ * Workaround for https://github.com/angular/angular/issues/18261
5
+ */
6
+ export declare class CustomHttpParameterCodec implements HttpParameterCodec {
7
+ encodeKey(k: string): string;
8
+ encodeValue(v: string): string;
9
+ decodeKey(k: string): string;
10
+ decodeValue(v: string): string;
11
+ }