@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.
- package/README.md +236 -0
- package/api/api.d.ts +23 -0
- package/api/currencies.service.d.ts +41 -0
- package/api/deposits.service.d.ts +171 -0
- package/api/downloads.service.d.ts +41 -0
- package/api/identities.service.d.ts +134 -0
- package/api/providers.service.d.ts +70 -0
- package/api/reports.service.d.ts +116 -0
- package/api/residences.service.d.ts +41 -0
- package/api/w2W.service.d.ts +71 -0
- package/api/wallets.service.d.ts +199 -0
- package/api/webhooks.service.d.ts +132 -0
- package/api/withdrawals.service.d.ts +410 -0
- package/api.base.service.d.ts +12 -0
- package/api.module.d.ts +11 -0
- package/configuration.d.ts +106 -0
- package/encoder.d.ts +11 -0
- package/fesm2022/vality-swag-wallets.mjs +3577 -0
- package/fesm2022/vality-swag-wallets.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/model/asset.d.ts +22 -0
- package/model/badRequest.d.ts +38 -0
- package/model/bankCardDestinationResource.d.ts +29 -0
- package/model/bankCardReceiverResource.d.ts +33 -0
- package/model/bankCardReceiverResourceParams.d.ts +29 -0
- package/model/bankCardSenderResource.d.ts +33 -0
- package/model/bankCardSenderResourceParams.d.ts +33 -0
- package/model/browserGetRequest.d.ts +16 -0
- package/model/browserPostRequest.d.ts +21 -0
- package/model/browserRequest.d.ts +15 -0
- package/model/conflictRequest.d.ts +23 -0
- package/model/contactInfo.d.ts +22 -0
- package/model/cryptoWallet.d.ts +22 -0
- package/model/cryptoWalletDestinationResource.d.ts +25 -0
- package/model/currency.d.ts +34 -0
- package/model/deposit.d.ts +56 -0
- package/model/depositAdjustment.d.ts +40 -0
- package/model/depositAdjustmentFailure.d.ts +17 -0
- package/model/depositAdjustmentStatus.d.ts +25 -0
- package/model/depositAdjustmentStatusFailure.d.ts +20 -0
- package/model/depositAllOfBody.d.ts +22 -0
- package/model/depositAllOfFee.d.ts +22 -0
- package/model/depositFailure.d.ts +17 -0
- package/model/depositRevert.d.ts +51 -0
- package/model/depositRevertAllOfBody.d.ts +22 -0
- package/model/depositRevertFailure.d.ts +17 -0
- package/model/depositRevertStatus.d.ts +25 -0
- package/model/depositRevertStatusFailure.d.ts +20 -0
- package/model/depositStatus.d.ts +25 -0
- package/model/depositStatusFailure.d.ts +20 -0
- package/model/destination.d.ts +65 -0
- package/model/destinationAuthData.d.ts +24 -0
- package/model/destinationGrantRequest.d.ts +22 -0
- package/model/destinationResource.d.ts +26 -0
- package/model/destinationStatus.d.ts +26 -0
- package/model/destinationsTopic.d.ts +27 -0
- package/model/digitalWallet.d.ts +34 -0
- package/model/digitalWalletDestinationResource.d.ts +37 -0
- package/model/fileDownload.d.ts +19 -0
- package/model/getWithdrawalMethods200Response.d.ts +13 -0
- package/model/identity.d.ts +46 -0
- package/model/invalidOperationParameters.d.ts +15 -0
- package/model/listDepositAdjustments200Response.d.ts +20 -0
- package/model/listDepositReverts200Response.d.ts +20 -0
- package/model/listDeposits200Response.d.ts +20 -0
- package/model/listDestinations200Response.d.ts +20 -0
- package/model/listIdentities200Response.d.ts +20 -0
- package/model/listWallets200Response.d.ts +20 -0
- package/model/listWithdrawals200Response.d.ts +20 -0
- package/model/models.d.ts +104 -0
- package/model/provider.d.ts +26 -0
- package/model/quoteParameters.d.ts +24 -0
- package/model/quoteParametersBody.d.ts +22 -0
- package/model/receiverResource.d.ts +24 -0
- package/model/receiverResourceParams.d.ts +24 -0
- package/model/redirect.d.ts +14 -0
- package/model/report.d.ts +49 -0
- package/model/reportFilesInner.d.ts +15 -0
- package/model/reportParams.d.ts +29 -0
- package/model/residence.d.ts +26 -0
- package/model/securedBankCard.d.ts +26 -0
- package/model/senderReceiverDestinationAuthData.d.ts +25 -0
- package/model/senderResource.d.ts +24 -0
- package/model/senderResourceParams.d.ts +24 -0
- package/model/subFailure.d.ts +19 -0
- package/model/userInteraction.d.ts +15 -0
- package/model/userInteractionChange.d.ts +22 -0
- package/model/userInteractionCreated.d.ts +16 -0
- package/model/userInteractionFinished.d.ts +14 -0
- package/model/userInteractionFormInner.d.ts +19 -0
- package/model/w2WTransfer.d.ts +38 -0
- package/model/w2WTransferFailure.d.ts +20 -0
- package/model/w2WTransferParameters.d.ts +28 -0
- package/model/w2WTransferParametersBody.d.ts +22 -0
- package/model/w2WTransferStatus.d.ts +25 -0
- package/model/w2WTransferStatusFailure.d.ts +20 -0
- package/model/wallet.d.ts +46 -0
- package/model/walletAccount.d.ts +18 -0
- package/model/walletAccountAvailable.d.ts +22 -0
- package/model/walletAccountOwn.d.ts +22 -0
- package/model/walletGrantRequest.d.ts +24 -0
- package/model/walletGrantRequestAsset.d.ts +22 -0
- package/model/webhook.d.ts +33 -0
- package/model/webhookScope.d.ts +25 -0
- package/model/withdrawal.d.ts +58 -0
- package/model/withdrawalAllOfBody.d.ts +22 -0
- package/model/withdrawalAllOfQuote.d.ts +24 -0
- package/model/withdrawalEvent.d.ts +24 -0
- package/model/withdrawalEventChange.d.ts +24 -0
- package/model/withdrawalFailure.d.ts +17 -0
- package/model/withdrawalMethod.d.ts +23 -0
- package/model/withdrawalMethodBankCard.d.ts +18 -0
- package/model/withdrawalMethodDigitalWallet.d.ts +18 -0
- package/model/withdrawalMethodGeneric.d.ts +18 -0
- package/model/withdrawalParameters.d.ts +70 -0
- package/model/withdrawalQuote.d.ts +30 -0
- package/model/withdrawalQuoteCashFrom.d.ts +22 -0
- package/model/withdrawalQuoteCashTo.d.ts +22 -0
- package/model/withdrawalQuoteParams.d.ts +44 -0
- package/model/withdrawalQuoteParamsCash.d.ts +22 -0
- package/model/withdrawalReadQuote.d.ts +26 -0
- package/model/withdrawalStatus.d.ts +25 -0
- package/model/withdrawalStatusChanged.d.ts +29 -0
- package/model/withdrawalStatusFailure.d.ts +20 -0
- package/model/withdrawalsTopic.d.ts +31 -0
- package/package.json +34 -0
- package/param.d.ts +37 -0
- package/variables.d.ts +8 -0
|
@@ -0,0 +1,3577 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common/http';
|
|
4
|
+
import { HttpHeaders, HttpContext, HttpParams } from '@angular/common/http';
|
|
5
|
+
|
|
6
|
+
const BASE_PATH = new InjectionToken('basePath');
|
|
7
|
+
const COLLECTION_FORMATS = {
|
|
8
|
+
'csv': ',',
|
|
9
|
+
'tsv': ' ',
|
|
10
|
+
'ssv': ' ',
|
|
11
|
+
'pipes': '|'
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Custom HttpParameterCodec
|
|
16
|
+
* Workaround for https://github.com/angular/angular/issues/18261
|
|
17
|
+
*/
|
|
18
|
+
class CustomHttpParameterCodec {
|
|
19
|
+
encodeKey(k) {
|
|
20
|
+
return encodeURIComponent(k);
|
|
21
|
+
}
|
|
22
|
+
encodeValue(v) {
|
|
23
|
+
return encodeURIComponent(v);
|
|
24
|
+
}
|
|
25
|
+
decodeKey(k) {
|
|
26
|
+
return decodeURIComponent(k);
|
|
27
|
+
}
|
|
28
|
+
decodeValue(v) {
|
|
29
|
+
return decodeURIComponent(v);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
class Configuration {
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
36
|
+
*/
|
|
37
|
+
apiKeys;
|
|
38
|
+
username;
|
|
39
|
+
password;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
42
|
+
*/
|
|
43
|
+
accessToken;
|
|
44
|
+
basePath;
|
|
45
|
+
withCredentials;
|
|
46
|
+
/**
|
|
47
|
+
* Takes care of encoding query- and form-parameters.
|
|
48
|
+
*/
|
|
49
|
+
encoder;
|
|
50
|
+
/**
|
|
51
|
+
* Encoding of various path parameter
|
|
52
|
+
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
|
|
53
|
+
* <p>
|
|
54
|
+
* See {@link README.md} for more details
|
|
55
|
+
* </p>
|
|
56
|
+
*/
|
|
57
|
+
encodeParam;
|
|
58
|
+
/**
|
|
59
|
+
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
60
|
+
* document. They should map to the value used for authentication
|
|
61
|
+
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
62
|
+
*/
|
|
63
|
+
credentials;
|
|
64
|
+
constructor(configurationParameters = {}) {
|
|
65
|
+
this.apiKeys = configurationParameters.apiKeys;
|
|
66
|
+
this.username = configurationParameters.username;
|
|
67
|
+
this.password = configurationParameters.password;
|
|
68
|
+
this.accessToken = configurationParameters.accessToken;
|
|
69
|
+
this.basePath = configurationParameters.basePath;
|
|
70
|
+
this.withCredentials = configurationParameters.withCredentials;
|
|
71
|
+
this.encoder = configurationParameters.encoder;
|
|
72
|
+
if (configurationParameters.encodeParam) {
|
|
73
|
+
this.encodeParam = configurationParameters.encodeParam;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
this.encodeParam = param => this.defaultEncodeParam(param);
|
|
77
|
+
}
|
|
78
|
+
if (configurationParameters.credentials) {
|
|
79
|
+
this.credentials = configurationParameters.credentials;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
this.credentials = {};
|
|
83
|
+
}
|
|
84
|
+
// init default bearer credential
|
|
85
|
+
if (!this.credentials['bearer']) {
|
|
86
|
+
this.credentials['bearer'] = () => {
|
|
87
|
+
if (this.apiKeys === null || this.apiKeys === undefined) {
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return this.apiKeys['bearer'] || this.apiKeys['Authorization'];
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Select the correct content-type to use for a request.
|
|
98
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
99
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
100
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
101
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
102
|
+
*/
|
|
103
|
+
selectHeaderContentType(contentTypes) {
|
|
104
|
+
if (contentTypes.length === 0) {
|
|
105
|
+
return undefined;
|
|
106
|
+
}
|
|
107
|
+
const type = contentTypes.find((x) => this.isJsonMime(x));
|
|
108
|
+
if (type === undefined) {
|
|
109
|
+
return contentTypes[0];
|
|
110
|
+
}
|
|
111
|
+
return type;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Select the correct accept content-type to use for a request.
|
|
115
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
116
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
117
|
+
* @param accepts - the array of content types that are available for selection.
|
|
118
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
119
|
+
*/
|
|
120
|
+
selectHeaderAccept(accepts) {
|
|
121
|
+
if (accepts.length === 0) {
|
|
122
|
+
return undefined;
|
|
123
|
+
}
|
|
124
|
+
const type = accepts.find((x) => this.isJsonMime(x));
|
|
125
|
+
if (type === undefined) {
|
|
126
|
+
return accepts[0];
|
|
127
|
+
}
|
|
128
|
+
return type;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Check if the given MIME is a JSON MIME.
|
|
132
|
+
* JSON MIME examples:
|
|
133
|
+
* application/json
|
|
134
|
+
* application/json; charset=UTF8
|
|
135
|
+
* APPLICATION/JSON
|
|
136
|
+
* application/vnd.company+json
|
|
137
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
138
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
139
|
+
*/
|
|
140
|
+
isJsonMime(mime) {
|
|
141
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
142
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
143
|
+
}
|
|
144
|
+
lookupCredential(key) {
|
|
145
|
+
const value = this.credentials[key];
|
|
146
|
+
return typeof value === 'function'
|
|
147
|
+
? value()
|
|
148
|
+
: value;
|
|
149
|
+
}
|
|
150
|
+
addCredentialToHeaders(credentialKey, headerName, headers, prefix) {
|
|
151
|
+
const value = this.lookupCredential(credentialKey);
|
|
152
|
+
return value
|
|
153
|
+
? headers.set(headerName, (prefix ?? '') + value)
|
|
154
|
+
: headers;
|
|
155
|
+
}
|
|
156
|
+
addCredentialToQuery(credentialKey, paramName, query) {
|
|
157
|
+
const value = this.lookupCredential(credentialKey);
|
|
158
|
+
return value
|
|
159
|
+
? query.set(paramName, value)
|
|
160
|
+
: query;
|
|
161
|
+
}
|
|
162
|
+
defaultEncodeParam(param) {
|
|
163
|
+
// This implementation exists as fallback for missing configuration
|
|
164
|
+
// and for backwards compatibility to older typescript-angular generator versions.
|
|
165
|
+
// It only works for the 'simple' parameter style.
|
|
166
|
+
// Date-handling only works for the 'date-time' format.
|
|
167
|
+
// All other styles and Date-formats are probably handled incorrectly.
|
|
168
|
+
//
|
|
169
|
+
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
|
170
|
+
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
|
171
|
+
? param.value.toISOString()
|
|
172
|
+
: param.value;
|
|
173
|
+
return encodeURIComponent(String(value));
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
class BaseService {
|
|
178
|
+
basePath = '';
|
|
179
|
+
defaultHeaders = new HttpHeaders();
|
|
180
|
+
configuration;
|
|
181
|
+
encoder;
|
|
182
|
+
constructor(basePath, configuration) {
|
|
183
|
+
this.configuration = configuration || new Configuration();
|
|
184
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
185
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
186
|
+
if (firstBasePath != undefined) {
|
|
187
|
+
basePath = firstBasePath;
|
|
188
|
+
}
|
|
189
|
+
if (typeof basePath !== 'string') {
|
|
190
|
+
basePath = this.basePath;
|
|
191
|
+
}
|
|
192
|
+
this.configuration.basePath = basePath;
|
|
193
|
+
}
|
|
194
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
195
|
+
}
|
|
196
|
+
canConsumeForm(consumes) {
|
|
197
|
+
return consumes.indexOf('multipart/form-data') !== -1;
|
|
198
|
+
}
|
|
199
|
+
addToHttpParams(httpParams, value, key) {
|
|
200
|
+
// If the value is an object (but not a Date), recursively add its keys.
|
|
201
|
+
if (typeof value === 'object' && !(value instanceof Date)) {
|
|
202
|
+
return this.addToHttpParamsRecursive(httpParams, value, key);
|
|
203
|
+
}
|
|
204
|
+
return this.addToHttpParamsRecursive(httpParams, value, key);
|
|
205
|
+
}
|
|
206
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
207
|
+
if (value === null || value === undefined) {
|
|
208
|
+
return httpParams;
|
|
209
|
+
}
|
|
210
|
+
if (typeof value === 'object') {
|
|
211
|
+
// If JSON format is preferred, key must be provided.
|
|
212
|
+
if (key != null) {
|
|
213
|
+
return httpParams.append(key, JSON.stringify(value));
|
|
214
|
+
}
|
|
215
|
+
// Otherwise, if it's an array, add each element.
|
|
216
|
+
if (Array.isArray(value)) {
|
|
217
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
218
|
+
}
|
|
219
|
+
else if (value instanceof Date) {
|
|
220
|
+
if (key != null) {
|
|
221
|
+
httpParams = httpParams.append(key, value.toISOString());
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
throw Error("key may not be null if value is Date");
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
Object.keys(value).forEach(k => {
|
|
229
|
+
const paramKey = key ? `${key}.${k}` : k;
|
|
230
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value[k], paramKey);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
return httpParams;
|
|
234
|
+
}
|
|
235
|
+
else if (key != null) {
|
|
236
|
+
return httpParams.append(key, value);
|
|
237
|
+
}
|
|
238
|
+
throw Error("key may not be null if value is not object or array");
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Vality Wallet API
|
|
244
|
+
*
|
|
245
|
+
* Contact: support@vality.dev
|
|
246
|
+
*
|
|
247
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
248
|
+
* https://openapi-generator.tech
|
|
249
|
+
* Do not edit the class manually.
|
|
250
|
+
*/
|
|
251
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
252
|
+
class CurrenciesService extends BaseService {
|
|
253
|
+
httpClient;
|
|
254
|
+
constructor(httpClient, basePath, configuration) {
|
|
255
|
+
super(basePath, configuration);
|
|
256
|
+
this.httpClient = httpClient;
|
|
257
|
+
}
|
|
258
|
+
getCurrency(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
259
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
260
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
261
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getCurrency.');
|
|
262
|
+
}
|
|
263
|
+
const currencyID = requestParameters?.currencyID;
|
|
264
|
+
if (currencyID === null || currencyID === undefined) {
|
|
265
|
+
throw new Error('Required parameter currencyID was null or undefined when calling getCurrency.');
|
|
266
|
+
}
|
|
267
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
268
|
+
let localVarHeaders = this.defaultHeaders;
|
|
269
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
270
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
271
|
+
}
|
|
272
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
273
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
274
|
+
}
|
|
275
|
+
// authentication (bearer) required
|
|
276
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
277
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
278
|
+
'application/json; charset=utf-8'
|
|
279
|
+
]);
|
|
280
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
281
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
282
|
+
}
|
|
283
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
284
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
285
|
+
let responseType_ = 'json';
|
|
286
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
287
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
288
|
+
responseType_ = 'text';
|
|
289
|
+
}
|
|
290
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
291
|
+
responseType_ = 'json';
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
responseType_ = 'blob';
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
let localVarPath = `/currencies/${this.configuration.encodeParam({ name: "currencyID", value: currencyID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
298
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
299
|
+
context: localVarHttpContext,
|
|
300
|
+
responseType: responseType_,
|
|
301
|
+
withCredentials: this.configuration.withCredentials,
|
|
302
|
+
headers: localVarHeaders,
|
|
303
|
+
observe: observe,
|
|
304
|
+
transferCache: localVarTransferCache,
|
|
305
|
+
reportProgress: reportProgress
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: CurrenciesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
309
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: CurrenciesService, providedIn: 'root' });
|
|
310
|
+
}
|
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: CurrenciesService, decorators: [{
|
|
312
|
+
type: Injectable,
|
|
313
|
+
args: [{
|
|
314
|
+
providedIn: 'root'
|
|
315
|
+
}]
|
|
316
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
317
|
+
type: Optional
|
|
318
|
+
}, {
|
|
319
|
+
type: Inject,
|
|
320
|
+
args: [BASE_PATH]
|
|
321
|
+
}] }, { type: Configuration, decorators: [{
|
|
322
|
+
type: Optional
|
|
323
|
+
}] }] });
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Vality Wallet API
|
|
327
|
+
*
|
|
328
|
+
* Contact: support@vality.dev
|
|
329
|
+
*
|
|
330
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
331
|
+
* https://openapi-generator.tech
|
|
332
|
+
* Do not edit the class manually.
|
|
333
|
+
*/
|
|
334
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
335
|
+
class DepositsService extends BaseService {
|
|
336
|
+
httpClient;
|
|
337
|
+
constructor(httpClient, basePath, configuration) {
|
|
338
|
+
super(basePath, configuration);
|
|
339
|
+
this.httpClient = httpClient;
|
|
340
|
+
}
|
|
341
|
+
listDepositAdjustments(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
342
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
343
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
344
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling listDepositAdjustments.');
|
|
345
|
+
}
|
|
346
|
+
const limit = requestParameters?.limit;
|
|
347
|
+
if (limit === null || limit === undefined) {
|
|
348
|
+
throw new Error('Required parameter limit was null or undefined when calling listDepositAdjustments.');
|
|
349
|
+
}
|
|
350
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
351
|
+
const partyID = requestParameters?.partyID;
|
|
352
|
+
const walletID = requestParameters?.walletID;
|
|
353
|
+
const identityID = requestParameters?.identityID;
|
|
354
|
+
const depositID = requestParameters?.depositID;
|
|
355
|
+
const sourceID = requestParameters?.sourceID;
|
|
356
|
+
const status = requestParameters?.status;
|
|
357
|
+
const createdAtFrom = requestParameters?.createdAtFrom;
|
|
358
|
+
const createdAtTo = requestParameters?.createdAtTo;
|
|
359
|
+
const amountFrom = requestParameters?.amountFrom;
|
|
360
|
+
const amountTo = requestParameters?.amountTo;
|
|
361
|
+
const currencyID = requestParameters?.currencyID;
|
|
362
|
+
const continuationToken = requestParameters?.continuationToken;
|
|
363
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
364
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, partyID, 'partyID');
|
|
365
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, walletID, 'walletID');
|
|
366
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, identityID, 'identityID');
|
|
367
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, depositID, 'depositID');
|
|
368
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, sourceID, 'sourceID');
|
|
369
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, status, 'status');
|
|
370
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdAtFrom, 'createdAtFrom');
|
|
371
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdAtTo, 'createdAtTo');
|
|
372
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, amountFrom, 'amountFrom');
|
|
373
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, amountTo, 'amountTo');
|
|
374
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, currencyID, 'currencyID');
|
|
375
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
|
|
376
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, continuationToken, 'continuationToken');
|
|
377
|
+
let localVarHeaders = this.defaultHeaders;
|
|
378
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
379
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
380
|
+
}
|
|
381
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
382
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
383
|
+
}
|
|
384
|
+
// authentication (bearer) required
|
|
385
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
386
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
387
|
+
'application/json; charset=utf-8'
|
|
388
|
+
]);
|
|
389
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
390
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
391
|
+
}
|
|
392
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
393
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
394
|
+
let responseType_ = 'json';
|
|
395
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
396
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
397
|
+
responseType_ = 'text';
|
|
398
|
+
}
|
|
399
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
400
|
+
responseType_ = 'json';
|
|
401
|
+
}
|
|
402
|
+
else {
|
|
403
|
+
responseType_ = 'blob';
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
let localVarPath = `/deposit-adjustments`;
|
|
407
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
408
|
+
context: localVarHttpContext,
|
|
409
|
+
params: localVarQueryParameters,
|
|
410
|
+
responseType: responseType_,
|
|
411
|
+
withCredentials: this.configuration.withCredentials,
|
|
412
|
+
headers: localVarHeaders,
|
|
413
|
+
observe: observe,
|
|
414
|
+
transferCache: localVarTransferCache,
|
|
415
|
+
reportProgress: reportProgress
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
listDepositReverts(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
419
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
420
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
421
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling listDepositReverts.');
|
|
422
|
+
}
|
|
423
|
+
const limit = requestParameters?.limit;
|
|
424
|
+
if (limit === null || limit === undefined) {
|
|
425
|
+
throw new Error('Required parameter limit was null or undefined when calling listDepositReverts.');
|
|
426
|
+
}
|
|
427
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
428
|
+
const partyID = requestParameters?.partyID;
|
|
429
|
+
const walletID = requestParameters?.walletID;
|
|
430
|
+
const identityID = requestParameters?.identityID;
|
|
431
|
+
const depositID = requestParameters?.depositID;
|
|
432
|
+
const sourceID = requestParameters?.sourceID;
|
|
433
|
+
const status = requestParameters?.status;
|
|
434
|
+
const createdAtFrom = requestParameters?.createdAtFrom;
|
|
435
|
+
const createdAtTo = requestParameters?.createdAtTo;
|
|
436
|
+
const amountFrom = requestParameters?.amountFrom;
|
|
437
|
+
const amountTo = requestParameters?.amountTo;
|
|
438
|
+
const currencyID = requestParameters?.currencyID;
|
|
439
|
+
const continuationToken = requestParameters?.continuationToken;
|
|
440
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
441
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, partyID, 'partyID');
|
|
442
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, walletID, 'walletID');
|
|
443
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, identityID, 'identityID');
|
|
444
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, depositID, 'depositID');
|
|
445
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, sourceID, 'sourceID');
|
|
446
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, status, 'status');
|
|
447
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdAtFrom, 'createdAtFrom');
|
|
448
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdAtTo, 'createdAtTo');
|
|
449
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, amountFrom, 'amountFrom');
|
|
450
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, amountTo, 'amountTo');
|
|
451
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, currencyID, 'currencyID');
|
|
452
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
|
|
453
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, continuationToken, 'continuationToken');
|
|
454
|
+
let localVarHeaders = this.defaultHeaders;
|
|
455
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
456
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
457
|
+
}
|
|
458
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
459
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
460
|
+
}
|
|
461
|
+
// authentication (bearer) required
|
|
462
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
463
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
464
|
+
'application/json; charset=utf-8'
|
|
465
|
+
]);
|
|
466
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
467
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
468
|
+
}
|
|
469
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
470
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
471
|
+
let responseType_ = 'json';
|
|
472
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
473
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
474
|
+
responseType_ = 'text';
|
|
475
|
+
}
|
|
476
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
477
|
+
responseType_ = 'json';
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
responseType_ = 'blob';
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
let localVarPath = `/deposit-reverts`;
|
|
484
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
485
|
+
context: localVarHttpContext,
|
|
486
|
+
params: localVarQueryParameters,
|
|
487
|
+
responseType: responseType_,
|
|
488
|
+
withCredentials: this.configuration.withCredentials,
|
|
489
|
+
headers: localVarHeaders,
|
|
490
|
+
observe: observe,
|
|
491
|
+
transferCache: localVarTransferCache,
|
|
492
|
+
reportProgress: reportProgress
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
listDeposits(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
496
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
497
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
498
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling listDeposits.');
|
|
499
|
+
}
|
|
500
|
+
const limit = requestParameters?.limit;
|
|
501
|
+
if (limit === null || limit === undefined) {
|
|
502
|
+
throw new Error('Required parameter limit was null or undefined when calling listDeposits.');
|
|
503
|
+
}
|
|
504
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
505
|
+
const partyID = requestParameters?.partyID;
|
|
506
|
+
const walletID = requestParameters?.walletID;
|
|
507
|
+
const identityID = requestParameters?.identityID;
|
|
508
|
+
const depositID = requestParameters?.depositID;
|
|
509
|
+
const sourceID = requestParameters?.sourceID;
|
|
510
|
+
const status = requestParameters?.status;
|
|
511
|
+
const createdAtFrom = requestParameters?.createdAtFrom;
|
|
512
|
+
const createdAtTo = requestParameters?.createdAtTo;
|
|
513
|
+
const revertStatus = requestParameters?.revertStatus;
|
|
514
|
+
const amountFrom = requestParameters?.amountFrom;
|
|
515
|
+
const amountTo = requestParameters?.amountTo;
|
|
516
|
+
const currencyID = requestParameters?.currencyID;
|
|
517
|
+
const continuationToken = requestParameters?.continuationToken;
|
|
518
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
519
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, partyID, 'partyID');
|
|
520
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, walletID, 'walletID');
|
|
521
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, identityID, 'identityID');
|
|
522
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, depositID, 'depositID');
|
|
523
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, sourceID, 'sourceID');
|
|
524
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, status, 'status');
|
|
525
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdAtFrom, 'createdAtFrom');
|
|
526
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdAtTo, 'createdAtTo');
|
|
527
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, revertStatus, 'revertStatus');
|
|
528
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, amountFrom, 'amountFrom');
|
|
529
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, amountTo, 'amountTo');
|
|
530
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, currencyID, 'currencyID');
|
|
531
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
|
|
532
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, continuationToken, 'continuationToken');
|
|
533
|
+
let localVarHeaders = this.defaultHeaders;
|
|
534
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
535
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
536
|
+
}
|
|
537
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
538
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
539
|
+
}
|
|
540
|
+
// authentication (bearer) required
|
|
541
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
542
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
543
|
+
'application/json; charset=utf-8'
|
|
544
|
+
]);
|
|
545
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
546
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
547
|
+
}
|
|
548
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
549
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
550
|
+
let responseType_ = 'json';
|
|
551
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
552
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
553
|
+
responseType_ = 'text';
|
|
554
|
+
}
|
|
555
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
556
|
+
responseType_ = 'json';
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
responseType_ = 'blob';
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
let localVarPath = `/deposits`;
|
|
563
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
564
|
+
context: localVarHttpContext,
|
|
565
|
+
params: localVarQueryParameters,
|
|
566
|
+
responseType: responseType_,
|
|
567
|
+
withCredentials: this.configuration.withCredentials,
|
|
568
|
+
headers: localVarHeaders,
|
|
569
|
+
observe: observe,
|
|
570
|
+
transferCache: localVarTransferCache,
|
|
571
|
+
reportProgress: reportProgress
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: DepositsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
575
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: DepositsService, providedIn: 'root' });
|
|
576
|
+
}
|
|
577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: DepositsService, decorators: [{
|
|
578
|
+
type: Injectable,
|
|
579
|
+
args: [{
|
|
580
|
+
providedIn: 'root'
|
|
581
|
+
}]
|
|
582
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
583
|
+
type: Optional
|
|
584
|
+
}, {
|
|
585
|
+
type: Inject,
|
|
586
|
+
args: [BASE_PATH]
|
|
587
|
+
}] }, { type: Configuration, decorators: [{
|
|
588
|
+
type: Optional
|
|
589
|
+
}] }] });
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Vality Wallet API
|
|
593
|
+
*
|
|
594
|
+
* Contact: support@vality.dev
|
|
595
|
+
*
|
|
596
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
597
|
+
* https://openapi-generator.tech
|
|
598
|
+
* Do not edit the class manually.
|
|
599
|
+
*/
|
|
600
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
601
|
+
class DownloadsService extends BaseService {
|
|
602
|
+
httpClient;
|
|
603
|
+
constructor(httpClient, basePath, configuration) {
|
|
604
|
+
super(basePath, configuration);
|
|
605
|
+
this.httpClient = httpClient;
|
|
606
|
+
}
|
|
607
|
+
downloadFile(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
608
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
609
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
610
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling downloadFile.');
|
|
611
|
+
}
|
|
612
|
+
const fileID = requestParameters?.fileID;
|
|
613
|
+
if (fileID === null || fileID === undefined) {
|
|
614
|
+
throw new Error('Required parameter fileID was null or undefined when calling downloadFile.');
|
|
615
|
+
}
|
|
616
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
617
|
+
let localVarHeaders = this.defaultHeaders;
|
|
618
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
619
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
620
|
+
}
|
|
621
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
622
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
623
|
+
}
|
|
624
|
+
// authentication (bearer) required
|
|
625
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
626
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
627
|
+
'application/json; charset=utf-8'
|
|
628
|
+
]);
|
|
629
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
630
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
631
|
+
}
|
|
632
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
633
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
634
|
+
let responseType_ = 'json';
|
|
635
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
636
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
637
|
+
responseType_ = 'text';
|
|
638
|
+
}
|
|
639
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
640
|
+
responseType_ = 'json';
|
|
641
|
+
}
|
|
642
|
+
else {
|
|
643
|
+
responseType_ = 'blob';
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
let localVarPath = `/files/${this.configuration.encodeParam({ name: "fileID", value: fileID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/download`;
|
|
647
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
648
|
+
context: localVarHttpContext,
|
|
649
|
+
responseType: responseType_,
|
|
650
|
+
withCredentials: this.configuration.withCredentials,
|
|
651
|
+
headers: localVarHeaders,
|
|
652
|
+
observe: observe,
|
|
653
|
+
transferCache: localVarTransferCache,
|
|
654
|
+
reportProgress: reportProgress
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: DownloadsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
658
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: DownloadsService, providedIn: 'root' });
|
|
659
|
+
}
|
|
660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: DownloadsService, decorators: [{
|
|
661
|
+
type: Injectable,
|
|
662
|
+
args: [{
|
|
663
|
+
providedIn: 'root'
|
|
664
|
+
}]
|
|
665
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
666
|
+
type: Optional
|
|
667
|
+
}, {
|
|
668
|
+
type: Inject,
|
|
669
|
+
args: [BASE_PATH]
|
|
670
|
+
}] }, { type: Configuration, decorators: [{
|
|
671
|
+
type: Optional
|
|
672
|
+
}] }] });
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Vality Wallet API
|
|
676
|
+
*
|
|
677
|
+
* Contact: support@vality.dev
|
|
678
|
+
*
|
|
679
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
680
|
+
* https://openapi-generator.tech
|
|
681
|
+
* Do not edit the class manually.
|
|
682
|
+
*/
|
|
683
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
684
|
+
class IdentitiesService extends BaseService {
|
|
685
|
+
httpClient;
|
|
686
|
+
constructor(httpClient, basePath, configuration) {
|
|
687
|
+
super(basePath, configuration);
|
|
688
|
+
this.httpClient = httpClient;
|
|
689
|
+
}
|
|
690
|
+
createIdentity(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
691
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
692
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
693
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling createIdentity.');
|
|
694
|
+
}
|
|
695
|
+
const identity = requestParameters?.identity;
|
|
696
|
+
if (identity === null || identity === undefined) {
|
|
697
|
+
throw new Error('Required parameter identity was null or undefined when calling createIdentity.');
|
|
698
|
+
}
|
|
699
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
700
|
+
let localVarHeaders = this.defaultHeaders;
|
|
701
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
702
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
703
|
+
}
|
|
704
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
705
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
706
|
+
}
|
|
707
|
+
// authentication (bearer) required
|
|
708
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
709
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
710
|
+
'application/json; charset=utf-8'
|
|
711
|
+
]);
|
|
712
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
713
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
714
|
+
}
|
|
715
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
716
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
717
|
+
// to determine the Content-Type header
|
|
718
|
+
const consumes = [
|
|
719
|
+
'application/json; charset=utf-8'
|
|
720
|
+
];
|
|
721
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
722
|
+
if (httpContentTypeSelected !== undefined) {
|
|
723
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
724
|
+
}
|
|
725
|
+
let responseType_ = 'json';
|
|
726
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
727
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
728
|
+
responseType_ = 'text';
|
|
729
|
+
}
|
|
730
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
731
|
+
responseType_ = 'json';
|
|
732
|
+
}
|
|
733
|
+
else {
|
|
734
|
+
responseType_ = 'blob';
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
let localVarPath = `/identities`;
|
|
738
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
739
|
+
context: localVarHttpContext,
|
|
740
|
+
body: identity,
|
|
741
|
+
responseType: responseType_,
|
|
742
|
+
withCredentials: this.configuration.withCredentials,
|
|
743
|
+
headers: localVarHeaders,
|
|
744
|
+
observe: observe,
|
|
745
|
+
transferCache: localVarTransferCache,
|
|
746
|
+
reportProgress: reportProgress
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
getIdentity(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
750
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
751
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
752
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getIdentity.');
|
|
753
|
+
}
|
|
754
|
+
const identityID = requestParameters?.identityID;
|
|
755
|
+
if (identityID === null || identityID === undefined) {
|
|
756
|
+
throw new Error('Required parameter identityID was null or undefined when calling getIdentity.');
|
|
757
|
+
}
|
|
758
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
759
|
+
let localVarHeaders = this.defaultHeaders;
|
|
760
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
761
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
762
|
+
}
|
|
763
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
764
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
765
|
+
}
|
|
766
|
+
// authentication (bearer) required
|
|
767
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
768
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
769
|
+
'application/json; charset=utf-8'
|
|
770
|
+
]);
|
|
771
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
772
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
773
|
+
}
|
|
774
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
775
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
776
|
+
let responseType_ = 'json';
|
|
777
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
778
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
779
|
+
responseType_ = 'text';
|
|
780
|
+
}
|
|
781
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
782
|
+
responseType_ = 'json';
|
|
783
|
+
}
|
|
784
|
+
else {
|
|
785
|
+
responseType_ = 'blob';
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
let localVarPath = `/identities/${this.configuration.encodeParam({ name: "identityID", value: identityID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
789
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
790
|
+
context: localVarHttpContext,
|
|
791
|
+
responseType: responseType_,
|
|
792
|
+
withCredentials: this.configuration.withCredentials,
|
|
793
|
+
headers: localVarHeaders,
|
|
794
|
+
observe: observe,
|
|
795
|
+
transferCache: localVarTransferCache,
|
|
796
|
+
reportProgress: reportProgress
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
getWithdrawalMethods(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
800
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
801
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
802
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getWithdrawalMethods.');
|
|
803
|
+
}
|
|
804
|
+
const identityID = requestParameters?.identityID;
|
|
805
|
+
if (identityID === null || identityID === undefined) {
|
|
806
|
+
throw new Error('Required parameter identityID was null or undefined when calling getWithdrawalMethods.');
|
|
807
|
+
}
|
|
808
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
809
|
+
let localVarHeaders = this.defaultHeaders;
|
|
810
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
811
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
812
|
+
}
|
|
813
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
814
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
815
|
+
}
|
|
816
|
+
// authentication (bearer) required
|
|
817
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
818
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
819
|
+
'application/json; charset=utf-8'
|
|
820
|
+
]);
|
|
821
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
822
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
823
|
+
}
|
|
824
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
825
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
826
|
+
let responseType_ = 'json';
|
|
827
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
828
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
829
|
+
responseType_ = 'text';
|
|
830
|
+
}
|
|
831
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
832
|
+
responseType_ = 'json';
|
|
833
|
+
}
|
|
834
|
+
else {
|
|
835
|
+
responseType_ = 'blob';
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
let localVarPath = `/identities/${this.configuration.encodeParam({ name: "identityID", value: identityID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/withdrawal-methods`;
|
|
839
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
840
|
+
context: localVarHttpContext,
|
|
841
|
+
responseType: responseType_,
|
|
842
|
+
withCredentials: this.configuration.withCredentials,
|
|
843
|
+
headers: localVarHeaders,
|
|
844
|
+
observe: observe,
|
|
845
|
+
transferCache: localVarTransferCache,
|
|
846
|
+
reportProgress: reportProgress
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
listIdentities(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
850
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
851
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
852
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling listIdentities.');
|
|
853
|
+
}
|
|
854
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
855
|
+
const partyID = requestParameters?.partyID;
|
|
856
|
+
const providerID = requestParameters?.providerID;
|
|
857
|
+
const continuationToken = requestParameters?.continuationToken;
|
|
858
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
859
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, partyID, 'partyID');
|
|
860
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, providerID, 'providerID');
|
|
861
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, continuationToken, 'continuationToken');
|
|
862
|
+
let localVarHeaders = this.defaultHeaders;
|
|
863
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
864
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
865
|
+
}
|
|
866
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
867
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
868
|
+
}
|
|
869
|
+
// authentication (bearer) required
|
|
870
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
871
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
872
|
+
'application/json; charset=utf-8'
|
|
873
|
+
]);
|
|
874
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
875
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
876
|
+
}
|
|
877
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
878
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
879
|
+
let responseType_ = 'json';
|
|
880
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
881
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
882
|
+
responseType_ = 'text';
|
|
883
|
+
}
|
|
884
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
885
|
+
responseType_ = 'json';
|
|
886
|
+
}
|
|
887
|
+
else {
|
|
888
|
+
responseType_ = 'blob';
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
let localVarPath = `/identities`;
|
|
892
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
893
|
+
context: localVarHttpContext,
|
|
894
|
+
params: localVarQueryParameters,
|
|
895
|
+
responseType: responseType_,
|
|
896
|
+
withCredentials: this.configuration.withCredentials,
|
|
897
|
+
headers: localVarHeaders,
|
|
898
|
+
observe: observe,
|
|
899
|
+
transferCache: localVarTransferCache,
|
|
900
|
+
reportProgress: reportProgress
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: IdentitiesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
904
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: IdentitiesService, providedIn: 'root' });
|
|
905
|
+
}
|
|
906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: IdentitiesService, decorators: [{
|
|
907
|
+
type: Injectable,
|
|
908
|
+
args: [{
|
|
909
|
+
providedIn: 'root'
|
|
910
|
+
}]
|
|
911
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
912
|
+
type: Optional
|
|
913
|
+
}, {
|
|
914
|
+
type: Inject,
|
|
915
|
+
args: [BASE_PATH]
|
|
916
|
+
}] }, { type: Configuration, decorators: [{
|
|
917
|
+
type: Optional
|
|
918
|
+
}] }] });
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Vality Wallet API
|
|
922
|
+
*
|
|
923
|
+
* Contact: support@vality.dev
|
|
924
|
+
*
|
|
925
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
926
|
+
* https://openapi-generator.tech
|
|
927
|
+
* Do not edit the class manually.
|
|
928
|
+
*/
|
|
929
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
930
|
+
class ProvidersService extends BaseService {
|
|
931
|
+
httpClient;
|
|
932
|
+
constructor(httpClient, basePath, configuration) {
|
|
933
|
+
super(basePath, configuration);
|
|
934
|
+
this.httpClient = httpClient;
|
|
935
|
+
}
|
|
936
|
+
getProvider(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
937
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
938
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
939
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getProvider.');
|
|
940
|
+
}
|
|
941
|
+
const providerID = requestParameters?.providerID;
|
|
942
|
+
if (providerID === null || providerID === undefined) {
|
|
943
|
+
throw new Error('Required parameter providerID was null or undefined when calling getProvider.');
|
|
944
|
+
}
|
|
945
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
946
|
+
let localVarHeaders = this.defaultHeaders;
|
|
947
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
948
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
949
|
+
}
|
|
950
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
951
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
952
|
+
}
|
|
953
|
+
// authentication (bearer) required
|
|
954
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
955
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
956
|
+
'application/json; charset=utf-8'
|
|
957
|
+
]);
|
|
958
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
959
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
960
|
+
}
|
|
961
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
962
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
963
|
+
let responseType_ = 'json';
|
|
964
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
965
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
966
|
+
responseType_ = 'text';
|
|
967
|
+
}
|
|
968
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
969
|
+
responseType_ = 'json';
|
|
970
|
+
}
|
|
971
|
+
else {
|
|
972
|
+
responseType_ = 'blob';
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
let localVarPath = `/providers/${this.configuration.encodeParam({ name: "providerID", value: providerID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
976
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
977
|
+
context: localVarHttpContext,
|
|
978
|
+
responseType: responseType_,
|
|
979
|
+
withCredentials: this.configuration.withCredentials,
|
|
980
|
+
headers: localVarHeaders,
|
|
981
|
+
observe: observe,
|
|
982
|
+
transferCache: localVarTransferCache,
|
|
983
|
+
reportProgress: reportProgress
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
listProviders(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
987
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
988
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
989
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling listProviders.');
|
|
990
|
+
}
|
|
991
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
992
|
+
const residence = requestParameters?.residence;
|
|
993
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
994
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, residence, 'residence');
|
|
995
|
+
let localVarHeaders = this.defaultHeaders;
|
|
996
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
997
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
998
|
+
}
|
|
999
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1000
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1001
|
+
}
|
|
1002
|
+
// authentication (bearer) required
|
|
1003
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1004
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1005
|
+
'application/json; charset=utf-8'
|
|
1006
|
+
]);
|
|
1007
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1008
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1009
|
+
}
|
|
1010
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1011
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1012
|
+
let responseType_ = 'json';
|
|
1013
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1014
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1015
|
+
responseType_ = 'text';
|
|
1016
|
+
}
|
|
1017
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1018
|
+
responseType_ = 'json';
|
|
1019
|
+
}
|
|
1020
|
+
else {
|
|
1021
|
+
responseType_ = 'blob';
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
let localVarPath = `/providers`;
|
|
1025
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1026
|
+
context: localVarHttpContext,
|
|
1027
|
+
params: localVarQueryParameters,
|
|
1028
|
+
responseType: responseType_,
|
|
1029
|
+
withCredentials: this.configuration.withCredentials,
|
|
1030
|
+
headers: localVarHeaders,
|
|
1031
|
+
observe: observe,
|
|
1032
|
+
transferCache: localVarTransferCache,
|
|
1033
|
+
reportProgress: reportProgress
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ProvidersService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1037
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ProvidersService, providedIn: 'root' });
|
|
1038
|
+
}
|
|
1039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ProvidersService, decorators: [{
|
|
1040
|
+
type: Injectable,
|
|
1041
|
+
args: [{
|
|
1042
|
+
providedIn: 'root'
|
|
1043
|
+
}]
|
|
1044
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1045
|
+
type: Optional
|
|
1046
|
+
}, {
|
|
1047
|
+
type: Inject,
|
|
1048
|
+
args: [BASE_PATH]
|
|
1049
|
+
}] }, { type: Configuration, decorators: [{
|
|
1050
|
+
type: Optional
|
|
1051
|
+
}] }] });
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Vality Wallet API
|
|
1055
|
+
*
|
|
1056
|
+
* Contact: support@vality.dev
|
|
1057
|
+
*
|
|
1058
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1059
|
+
* https://openapi-generator.tech
|
|
1060
|
+
* Do not edit the class manually.
|
|
1061
|
+
*/
|
|
1062
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1063
|
+
class ReportsService extends BaseService {
|
|
1064
|
+
httpClient;
|
|
1065
|
+
constructor(httpClient, basePath, configuration) {
|
|
1066
|
+
super(basePath, configuration);
|
|
1067
|
+
this.httpClient = httpClient;
|
|
1068
|
+
}
|
|
1069
|
+
createReport(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1070
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1071
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1072
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling createReport.');
|
|
1073
|
+
}
|
|
1074
|
+
const identityID = requestParameters?.identityID;
|
|
1075
|
+
if (identityID === null || identityID === undefined) {
|
|
1076
|
+
throw new Error('Required parameter identityID was null or undefined when calling createReport.');
|
|
1077
|
+
}
|
|
1078
|
+
const reportParams = requestParameters?.reportParams;
|
|
1079
|
+
if (reportParams === null || reportParams === undefined) {
|
|
1080
|
+
throw new Error('Required parameter reportParams was null or undefined when calling createReport.');
|
|
1081
|
+
}
|
|
1082
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1083
|
+
const partyID = requestParameters?.partyID;
|
|
1084
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1085
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, partyID, 'partyID');
|
|
1086
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1087
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1088
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1089
|
+
}
|
|
1090
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1091
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1092
|
+
}
|
|
1093
|
+
// authentication (bearer) required
|
|
1094
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1095
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1096
|
+
'application/json; charset=utf-8'
|
|
1097
|
+
]);
|
|
1098
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1099
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1100
|
+
}
|
|
1101
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1102
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1103
|
+
// to determine the Content-Type header
|
|
1104
|
+
const consumes = [
|
|
1105
|
+
'application/json; charset=utf-8'
|
|
1106
|
+
];
|
|
1107
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1108
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1109
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1110
|
+
}
|
|
1111
|
+
let responseType_ = 'json';
|
|
1112
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1113
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1114
|
+
responseType_ = 'text';
|
|
1115
|
+
}
|
|
1116
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1117
|
+
responseType_ = 'json';
|
|
1118
|
+
}
|
|
1119
|
+
else {
|
|
1120
|
+
responseType_ = 'blob';
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
let localVarPath = `/identities/${this.configuration.encodeParam({ name: "identityID", value: identityID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/reports`;
|
|
1124
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
1125
|
+
context: localVarHttpContext,
|
|
1126
|
+
body: reportParams,
|
|
1127
|
+
params: localVarQueryParameters,
|
|
1128
|
+
responseType: responseType_,
|
|
1129
|
+
withCredentials: this.configuration.withCredentials,
|
|
1130
|
+
headers: localVarHeaders,
|
|
1131
|
+
observe: observe,
|
|
1132
|
+
transferCache: localVarTransferCache,
|
|
1133
|
+
reportProgress: reportProgress
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
getReport(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1137
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1138
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1139
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getReport.');
|
|
1140
|
+
}
|
|
1141
|
+
const identityID = requestParameters?.identityID;
|
|
1142
|
+
if (identityID === null || identityID === undefined) {
|
|
1143
|
+
throw new Error('Required parameter identityID was null or undefined when calling getReport.');
|
|
1144
|
+
}
|
|
1145
|
+
const reportID = requestParameters?.reportID;
|
|
1146
|
+
if (reportID === null || reportID === undefined) {
|
|
1147
|
+
throw new Error('Required parameter reportID was null or undefined when calling getReport.');
|
|
1148
|
+
}
|
|
1149
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1150
|
+
const partyID = requestParameters?.partyID;
|
|
1151
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1152
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, partyID, 'partyID');
|
|
1153
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1154
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1155
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1156
|
+
}
|
|
1157
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1158
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1159
|
+
}
|
|
1160
|
+
// authentication (bearer) required
|
|
1161
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1162
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1163
|
+
'application/json; charset=utf-8'
|
|
1164
|
+
]);
|
|
1165
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1166
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1167
|
+
}
|
|
1168
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1169
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1170
|
+
let responseType_ = 'json';
|
|
1171
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1172
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1173
|
+
responseType_ = 'text';
|
|
1174
|
+
}
|
|
1175
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1176
|
+
responseType_ = 'json';
|
|
1177
|
+
}
|
|
1178
|
+
else {
|
|
1179
|
+
responseType_ = 'blob';
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
let localVarPath = `/identities/${this.configuration.encodeParam({ name: "identityID", value: identityID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/reports/${this.configuration.encodeParam({ name: "reportID", value: reportID, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
|
|
1183
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1184
|
+
context: localVarHttpContext,
|
|
1185
|
+
params: localVarQueryParameters,
|
|
1186
|
+
responseType: responseType_,
|
|
1187
|
+
withCredentials: this.configuration.withCredentials,
|
|
1188
|
+
headers: localVarHeaders,
|
|
1189
|
+
observe: observe,
|
|
1190
|
+
transferCache: localVarTransferCache,
|
|
1191
|
+
reportProgress: reportProgress
|
|
1192
|
+
});
|
|
1193
|
+
}
|
|
1194
|
+
getReports(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1195
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1196
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1197
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getReports.');
|
|
1198
|
+
}
|
|
1199
|
+
const identityID = requestParameters?.identityID;
|
|
1200
|
+
if (identityID === null || identityID === undefined) {
|
|
1201
|
+
throw new Error('Required parameter identityID was null or undefined when calling getReports.');
|
|
1202
|
+
}
|
|
1203
|
+
const fromTime = requestParameters?.fromTime;
|
|
1204
|
+
if (fromTime === null || fromTime === undefined) {
|
|
1205
|
+
throw new Error('Required parameter fromTime was null or undefined when calling getReports.');
|
|
1206
|
+
}
|
|
1207
|
+
const toTime = requestParameters?.toTime;
|
|
1208
|
+
if (toTime === null || toTime === undefined) {
|
|
1209
|
+
throw new Error('Required parameter toTime was null or undefined when calling getReports.');
|
|
1210
|
+
}
|
|
1211
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1212
|
+
const partyID = requestParameters?.partyID;
|
|
1213
|
+
const type = requestParameters?.type;
|
|
1214
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1215
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, partyID, 'partyID');
|
|
1216
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, fromTime, 'fromTime');
|
|
1217
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, toTime, 'toTime');
|
|
1218
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, type, 'type');
|
|
1219
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1220
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1221
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1222
|
+
}
|
|
1223
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1224
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1225
|
+
}
|
|
1226
|
+
// authentication (bearer) required
|
|
1227
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1228
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1229
|
+
'application/json; charset=utf-8'
|
|
1230
|
+
]);
|
|
1231
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1232
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1233
|
+
}
|
|
1234
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1235
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1236
|
+
let responseType_ = 'json';
|
|
1237
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1238
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1239
|
+
responseType_ = 'text';
|
|
1240
|
+
}
|
|
1241
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1242
|
+
responseType_ = 'json';
|
|
1243
|
+
}
|
|
1244
|
+
else {
|
|
1245
|
+
responseType_ = 'blob';
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
let localVarPath = `/identities/${this.configuration.encodeParam({ name: "identityID", value: identityID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/reports`;
|
|
1249
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1250
|
+
context: localVarHttpContext,
|
|
1251
|
+
params: localVarQueryParameters,
|
|
1252
|
+
responseType: responseType_,
|
|
1253
|
+
withCredentials: this.configuration.withCredentials,
|
|
1254
|
+
headers: localVarHeaders,
|
|
1255
|
+
observe: observe,
|
|
1256
|
+
transferCache: localVarTransferCache,
|
|
1257
|
+
reportProgress: reportProgress
|
|
1258
|
+
});
|
|
1259
|
+
}
|
|
1260
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ReportsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1261
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ReportsService, providedIn: 'root' });
|
|
1262
|
+
}
|
|
1263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ReportsService, decorators: [{
|
|
1264
|
+
type: Injectable,
|
|
1265
|
+
args: [{
|
|
1266
|
+
providedIn: 'root'
|
|
1267
|
+
}]
|
|
1268
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1269
|
+
type: Optional
|
|
1270
|
+
}, {
|
|
1271
|
+
type: Inject,
|
|
1272
|
+
args: [BASE_PATH]
|
|
1273
|
+
}] }, { type: Configuration, decorators: [{
|
|
1274
|
+
type: Optional
|
|
1275
|
+
}] }] });
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* Vality Wallet API
|
|
1279
|
+
*
|
|
1280
|
+
* Contact: support@vality.dev
|
|
1281
|
+
*
|
|
1282
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1283
|
+
* https://openapi-generator.tech
|
|
1284
|
+
* Do not edit the class manually.
|
|
1285
|
+
*/
|
|
1286
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1287
|
+
class ResidencesService extends BaseService {
|
|
1288
|
+
httpClient;
|
|
1289
|
+
constructor(httpClient, basePath, configuration) {
|
|
1290
|
+
super(basePath, configuration);
|
|
1291
|
+
this.httpClient = httpClient;
|
|
1292
|
+
}
|
|
1293
|
+
getResidence(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1294
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1295
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1296
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getResidence.');
|
|
1297
|
+
}
|
|
1298
|
+
const residence = requestParameters?.residence;
|
|
1299
|
+
if (residence === null || residence === undefined) {
|
|
1300
|
+
throw new Error('Required parameter residence was null or undefined when calling getResidence.');
|
|
1301
|
+
}
|
|
1302
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1303
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1304
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1305
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1306
|
+
}
|
|
1307
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1308
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1309
|
+
}
|
|
1310
|
+
// authentication (bearer) required
|
|
1311
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1312
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1313
|
+
'application/json; charset=utf-8'
|
|
1314
|
+
]);
|
|
1315
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1316
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1317
|
+
}
|
|
1318
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1319
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1320
|
+
let responseType_ = 'json';
|
|
1321
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1322
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1323
|
+
responseType_ = 'text';
|
|
1324
|
+
}
|
|
1325
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1326
|
+
responseType_ = 'json';
|
|
1327
|
+
}
|
|
1328
|
+
else {
|
|
1329
|
+
responseType_ = 'blob';
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
let localVarPath = `/residences/${this.configuration.encodeParam({ name: "residence", value: residence, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1333
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1334
|
+
context: localVarHttpContext,
|
|
1335
|
+
responseType: responseType_,
|
|
1336
|
+
withCredentials: this.configuration.withCredentials,
|
|
1337
|
+
headers: localVarHeaders,
|
|
1338
|
+
observe: observe,
|
|
1339
|
+
transferCache: localVarTransferCache,
|
|
1340
|
+
reportProgress: reportProgress
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ResidencesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1344
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ResidencesService, providedIn: 'root' });
|
|
1345
|
+
}
|
|
1346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ResidencesService, decorators: [{
|
|
1347
|
+
type: Injectable,
|
|
1348
|
+
args: [{
|
|
1349
|
+
providedIn: 'root'
|
|
1350
|
+
}]
|
|
1351
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1352
|
+
type: Optional
|
|
1353
|
+
}, {
|
|
1354
|
+
type: Inject,
|
|
1355
|
+
args: [BASE_PATH]
|
|
1356
|
+
}] }, { type: Configuration, decorators: [{
|
|
1357
|
+
type: Optional
|
|
1358
|
+
}] }] });
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* Vality Wallet API
|
|
1362
|
+
*
|
|
1363
|
+
* Contact: support@vality.dev
|
|
1364
|
+
*
|
|
1365
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1366
|
+
* https://openapi-generator.tech
|
|
1367
|
+
* Do not edit the class manually.
|
|
1368
|
+
*/
|
|
1369
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1370
|
+
class W2WService extends BaseService {
|
|
1371
|
+
httpClient;
|
|
1372
|
+
constructor(httpClient, basePath, configuration) {
|
|
1373
|
+
super(basePath, configuration);
|
|
1374
|
+
this.httpClient = httpClient;
|
|
1375
|
+
}
|
|
1376
|
+
createW2WTransfer(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1377
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1378
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1379
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling createW2WTransfer.');
|
|
1380
|
+
}
|
|
1381
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1382
|
+
const transferParams = requestParameters?.transferParams;
|
|
1383
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1384
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1385
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1386
|
+
}
|
|
1387
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1388
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1389
|
+
}
|
|
1390
|
+
// authentication (bearer) required
|
|
1391
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1392
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1393
|
+
'application/json; charset=utf-8'
|
|
1394
|
+
]);
|
|
1395
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1396
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1397
|
+
}
|
|
1398
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1399
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1400
|
+
// to determine the Content-Type header
|
|
1401
|
+
const consumes = [
|
|
1402
|
+
'application/json; charset=utf-8'
|
|
1403
|
+
];
|
|
1404
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1405
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1406
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1407
|
+
}
|
|
1408
|
+
let responseType_ = 'json';
|
|
1409
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1410
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1411
|
+
responseType_ = 'text';
|
|
1412
|
+
}
|
|
1413
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1414
|
+
responseType_ = 'json';
|
|
1415
|
+
}
|
|
1416
|
+
else {
|
|
1417
|
+
responseType_ = 'blob';
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
let localVarPath = `/w2w/transfers`;
|
|
1421
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
1422
|
+
context: localVarHttpContext,
|
|
1423
|
+
body: transferParams,
|
|
1424
|
+
responseType: responseType_,
|
|
1425
|
+
withCredentials: this.configuration.withCredentials,
|
|
1426
|
+
headers: localVarHeaders,
|
|
1427
|
+
observe: observe,
|
|
1428
|
+
transferCache: localVarTransferCache,
|
|
1429
|
+
reportProgress: reportProgress
|
|
1430
|
+
});
|
|
1431
|
+
}
|
|
1432
|
+
getW2WTransfer(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1433
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1434
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1435
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getW2WTransfer.');
|
|
1436
|
+
}
|
|
1437
|
+
const w2wTransferID = requestParameters?.w2wTransferID;
|
|
1438
|
+
if (w2wTransferID === null || w2wTransferID === undefined) {
|
|
1439
|
+
throw new Error('Required parameter w2wTransferID was null or undefined when calling getW2WTransfer.');
|
|
1440
|
+
}
|
|
1441
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1442
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1443
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1444
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1445
|
+
}
|
|
1446
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1447
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1448
|
+
}
|
|
1449
|
+
// authentication (bearer) required
|
|
1450
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1451
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1452
|
+
'application/json; charset=utf-8'
|
|
1453
|
+
]);
|
|
1454
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1455
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1456
|
+
}
|
|
1457
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1458
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1459
|
+
let responseType_ = 'json';
|
|
1460
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1461
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1462
|
+
responseType_ = 'text';
|
|
1463
|
+
}
|
|
1464
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1465
|
+
responseType_ = 'json';
|
|
1466
|
+
}
|
|
1467
|
+
else {
|
|
1468
|
+
responseType_ = 'blob';
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
let localVarPath = `/w2w/transfers/${this.configuration.encodeParam({ name: "w2wTransferID", value: w2wTransferID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1472
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1473
|
+
context: localVarHttpContext,
|
|
1474
|
+
responseType: responseType_,
|
|
1475
|
+
withCredentials: this.configuration.withCredentials,
|
|
1476
|
+
headers: localVarHeaders,
|
|
1477
|
+
observe: observe,
|
|
1478
|
+
transferCache: localVarTransferCache,
|
|
1479
|
+
reportProgress: reportProgress
|
|
1480
|
+
});
|
|
1481
|
+
}
|
|
1482
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: W2WService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1483
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: W2WService, providedIn: 'root' });
|
|
1484
|
+
}
|
|
1485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: W2WService, decorators: [{
|
|
1486
|
+
type: Injectable,
|
|
1487
|
+
args: [{
|
|
1488
|
+
providedIn: 'root'
|
|
1489
|
+
}]
|
|
1490
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1491
|
+
type: Optional
|
|
1492
|
+
}, {
|
|
1493
|
+
type: Inject,
|
|
1494
|
+
args: [BASE_PATH]
|
|
1495
|
+
}] }, { type: Configuration, decorators: [{
|
|
1496
|
+
type: Optional
|
|
1497
|
+
}] }] });
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* Vality Wallet API
|
|
1501
|
+
*
|
|
1502
|
+
* Contact: support@vality.dev
|
|
1503
|
+
*
|
|
1504
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1505
|
+
* https://openapi-generator.tech
|
|
1506
|
+
* Do not edit the class manually.
|
|
1507
|
+
*/
|
|
1508
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1509
|
+
class WalletsService extends BaseService {
|
|
1510
|
+
httpClient;
|
|
1511
|
+
constructor(httpClient, basePath, configuration) {
|
|
1512
|
+
super(basePath, configuration);
|
|
1513
|
+
this.httpClient = httpClient;
|
|
1514
|
+
}
|
|
1515
|
+
createWallet(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1516
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1517
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1518
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling createWallet.');
|
|
1519
|
+
}
|
|
1520
|
+
const wallet = requestParameters?.wallet;
|
|
1521
|
+
if (wallet === null || wallet === undefined) {
|
|
1522
|
+
throw new Error('Required parameter wallet was null or undefined when calling createWallet.');
|
|
1523
|
+
}
|
|
1524
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1525
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1526
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1527
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1528
|
+
}
|
|
1529
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1530
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1531
|
+
}
|
|
1532
|
+
// authentication (bearer) required
|
|
1533
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1534
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1535
|
+
'application/json; charset=utf-8'
|
|
1536
|
+
]);
|
|
1537
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1538
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1539
|
+
}
|
|
1540
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1541
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1542
|
+
// to determine the Content-Type header
|
|
1543
|
+
const consumes = [
|
|
1544
|
+
'application/json; charset=utf-8'
|
|
1545
|
+
];
|
|
1546
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1547
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1548
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1549
|
+
}
|
|
1550
|
+
let responseType_ = 'json';
|
|
1551
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1552
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1553
|
+
responseType_ = 'text';
|
|
1554
|
+
}
|
|
1555
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1556
|
+
responseType_ = 'json';
|
|
1557
|
+
}
|
|
1558
|
+
else {
|
|
1559
|
+
responseType_ = 'blob';
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
let localVarPath = `/wallets`;
|
|
1563
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
1564
|
+
context: localVarHttpContext,
|
|
1565
|
+
body: wallet,
|
|
1566
|
+
responseType: responseType_,
|
|
1567
|
+
withCredentials: this.configuration.withCredentials,
|
|
1568
|
+
headers: localVarHeaders,
|
|
1569
|
+
observe: observe,
|
|
1570
|
+
transferCache: localVarTransferCache,
|
|
1571
|
+
reportProgress: reportProgress
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
getWallet(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1575
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1576
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1577
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getWallet.');
|
|
1578
|
+
}
|
|
1579
|
+
const walletID = requestParameters?.walletID;
|
|
1580
|
+
if (walletID === null || walletID === undefined) {
|
|
1581
|
+
throw new Error('Required parameter walletID was null or undefined when calling getWallet.');
|
|
1582
|
+
}
|
|
1583
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1584
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1585
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1586
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1587
|
+
}
|
|
1588
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1589
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1590
|
+
}
|
|
1591
|
+
// authentication (bearer) required
|
|
1592
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1593
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1594
|
+
'application/json; charset=utf-8'
|
|
1595
|
+
]);
|
|
1596
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1597
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1598
|
+
}
|
|
1599
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1600
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1601
|
+
let responseType_ = 'json';
|
|
1602
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1603
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1604
|
+
responseType_ = 'text';
|
|
1605
|
+
}
|
|
1606
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1607
|
+
responseType_ = 'json';
|
|
1608
|
+
}
|
|
1609
|
+
else {
|
|
1610
|
+
responseType_ = 'blob';
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
let localVarPath = `/wallets/${this.configuration.encodeParam({ name: "walletID", value: walletID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1614
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1615
|
+
context: localVarHttpContext,
|
|
1616
|
+
responseType: responseType_,
|
|
1617
|
+
withCredentials: this.configuration.withCredentials,
|
|
1618
|
+
headers: localVarHeaders,
|
|
1619
|
+
observe: observe,
|
|
1620
|
+
transferCache: localVarTransferCache,
|
|
1621
|
+
reportProgress: reportProgress
|
|
1622
|
+
});
|
|
1623
|
+
}
|
|
1624
|
+
getWalletAccount(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1625
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1626
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1627
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getWalletAccount.');
|
|
1628
|
+
}
|
|
1629
|
+
const walletID = requestParameters?.walletID;
|
|
1630
|
+
if (walletID === null || walletID === undefined) {
|
|
1631
|
+
throw new Error('Required parameter walletID was null or undefined when calling getWalletAccount.');
|
|
1632
|
+
}
|
|
1633
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1634
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1635
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1636
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1637
|
+
}
|
|
1638
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1639
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1640
|
+
}
|
|
1641
|
+
// authentication (bearer) required
|
|
1642
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1643
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1644
|
+
'application/json; charset=utf-8'
|
|
1645
|
+
]);
|
|
1646
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1647
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1648
|
+
}
|
|
1649
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1650
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1651
|
+
let responseType_ = 'json';
|
|
1652
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1653
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1654
|
+
responseType_ = 'text';
|
|
1655
|
+
}
|
|
1656
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1657
|
+
responseType_ = 'json';
|
|
1658
|
+
}
|
|
1659
|
+
else {
|
|
1660
|
+
responseType_ = 'blob';
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
let localVarPath = `/wallets/${this.configuration.encodeParam({ name: "walletID", value: walletID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/account`;
|
|
1664
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1665
|
+
context: localVarHttpContext,
|
|
1666
|
+
responseType: responseType_,
|
|
1667
|
+
withCredentials: this.configuration.withCredentials,
|
|
1668
|
+
headers: localVarHeaders,
|
|
1669
|
+
observe: observe,
|
|
1670
|
+
transferCache: localVarTransferCache,
|
|
1671
|
+
reportProgress: reportProgress
|
|
1672
|
+
});
|
|
1673
|
+
}
|
|
1674
|
+
getWalletByExternalID(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1675
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1676
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1677
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getWalletByExternalID.');
|
|
1678
|
+
}
|
|
1679
|
+
const externalID = requestParameters?.externalID;
|
|
1680
|
+
if (externalID === null || externalID === undefined) {
|
|
1681
|
+
throw new Error('Required parameter externalID was null or undefined when calling getWalletByExternalID.');
|
|
1682
|
+
}
|
|
1683
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1684
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1685
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, externalID, 'externalID');
|
|
1686
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1687
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1688
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1689
|
+
}
|
|
1690
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1691
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1692
|
+
}
|
|
1693
|
+
// authentication (bearer) required
|
|
1694
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1695
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1696
|
+
'application/json; charset=utf-8'
|
|
1697
|
+
]);
|
|
1698
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1699
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1700
|
+
}
|
|
1701
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1702
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1703
|
+
let responseType_ = 'json';
|
|
1704
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1705
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1706
|
+
responseType_ = 'text';
|
|
1707
|
+
}
|
|
1708
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1709
|
+
responseType_ = 'json';
|
|
1710
|
+
}
|
|
1711
|
+
else {
|
|
1712
|
+
responseType_ = 'blob';
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
let localVarPath = `/external/wallets`;
|
|
1716
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1717
|
+
context: localVarHttpContext,
|
|
1718
|
+
params: localVarQueryParameters,
|
|
1719
|
+
responseType: responseType_,
|
|
1720
|
+
withCredentials: this.configuration.withCredentials,
|
|
1721
|
+
headers: localVarHeaders,
|
|
1722
|
+
observe: observe,
|
|
1723
|
+
transferCache: localVarTransferCache,
|
|
1724
|
+
reportProgress: reportProgress
|
|
1725
|
+
});
|
|
1726
|
+
}
|
|
1727
|
+
issueWalletGrant(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1728
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1729
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1730
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling issueWalletGrant.');
|
|
1731
|
+
}
|
|
1732
|
+
const walletID = requestParameters?.walletID;
|
|
1733
|
+
if (walletID === null || walletID === undefined) {
|
|
1734
|
+
throw new Error('Required parameter walletID was null or undefined when calling issueWalletGrant.');
|
|
1735
|
+
}
|
|
1736
|
+
const request = requestParameters?.request;
|
|
1737
|
+
if (request === null || request === undefined) {
|
|
1738
|
+
throw new Error('Required parameter request was null or undefined when calling issueWalletGrant.');
|
|
1739
|
+
}
|
|
1740
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1741
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1742
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1743
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1744
|
+
}
|
|
1745
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1746
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1747
|
+
}
|
|
1748
|
+
// authentication (bearer) required
|
|
1749
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1750
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1751
|
+
'application/json; charset=utf-8'
|
|
1752
|
+
]);
|
|
1753
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1754
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1755
|
+
}
|
|
1756
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1757
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1758
|
+
// to determine the Content-Type header
|
|
1759
|
+
const consumes = [
|
|
1760
|
+
'application/json; charset=utf-8'
|
|
1761
|
+
];
|
|
1762
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1763
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1764
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1765
|
+
}
|
|
1766
|
+
let responseType_ = 'json';
|
|
1767
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1768
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1769
|
+
responseType_ = 'text';
|
|
1770
|
+
}
|
|
1771
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1772
|
+
responseType_ = 'json';
|
|
1773
|
+
}
|
|
1774
|
+
else {
|
|
1775
|
+
responseType_ = 'blob';
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
let localVarPath = `/wallets/${this.configuration.encodeParam({ name: "walletID", value: walletID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/grants`;
|
|
1779
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
1780
|
+
context: localVarHttpContext,
|
|
1781
|
+
body: request,
|
|
1782
|
+
responseType: responseType_,
|
|
1783
|
+
withCredentials: this.configuration.withCredentials,
|
|
1784
|
+
headers: localVarHeaders,
|
|
1785
|
+
observe: observe,
|
|
1786
|
+
transferCache: localVarTransferCache,
|
|
1787
|
+
reportProgress: reportProgress
|
|
1788
|
+
});
|
|
1789
|
+
}
|
|
1790
|
+
listWallets(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1791
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1792
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1793
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling listWallets.');
|
|
1794
|
+
}
|
|
1795
|
+
const limit = requestParameters?.limit;
|
|
1796
|
+
if (limit === null || limit === undefined) {
|
|
1797
|
+
throw new Error('Required parameter limit was null or undefined when calling listWallets.');
|
|
1798
|
+
}
|
|
1799
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1800
|
+
const partyID = requestParameters?.partyID;
|
|
1801
|
+
const identityID = requestParameters?.identityID;
|
|
1802
|
+
const currencyID = requestParameters?.currencyID;
|
|
1803
|
+
const continuationToken = requestParameters?.continuationToken;
|
|
1804
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1805
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, partyID, 'partyID');
|
|
1806
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, identityID, 'identityID');
|
|
1807
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, currencyID, 'currencyID');
|
|
1808
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
|
|
1809
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, continuationToken, 'continuationToken');
|
|
1810
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1811
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1812
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1813
|
+
}
|
|
1814
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1815
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1816
|
+
}
|
|
1817
|
+
// authentication (bearer) required
|
|
1818
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1819
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1820
|
+
'application/json; charset=utf-8'
|
|
1821
|
+
]);
|
|
1822
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1823
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1824
|
+
}
|
|
1825
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1826
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1827
|
+
let responseType_ = 'json';
|
|
1828
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1829
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1830
|
+
responseType_ = 'text';
|
|
1831
|
+
}
|
|
1832
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1833
|
+
responseType_ = 'json';
|
|
1834
|
+
}
|
|
1835
|
+
else {
|
|
1836
|
+
responseType_ = 'blob';
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
let localVarPath = `/wallets`;
|
|
1840
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1841
|
+
context: localVarHttpContext,
|
|
1842
|
+
params: localVarQueryParameters,
|
|
1843
|
+
responseType: responseType_,
|
|
1844
|
+
withCredentials: this.configuration.withCredentials,
|
|
1845
|
+
headers: localVarHeaders,
|
|
1846
|
+
observe: observe,
|
|
1847
|
+
transferCache: localVarTransferCache,
|
|
1848
|
+
reportProgress: reportProgress
|
|
1849
|
+
});
|
|
1850
|
+
}
|
|
1851
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WalletsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1852
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WalletsService, providedIn: 'root' });
|
|
1853
|
+
}
|
|
1854
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WalletsService, decorators: [{
|
|
1855
|
+
type: Injectable,
|
|
1856
|
+
args: [{
|
|
1857
|
+
providedIn: 'root'
|
|
1858
|
+
}]
|
|
1859
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1860
|
+
type: Optional
|
|
1861
|
+
}, {
|
|
1862
|
+
type: Inject,
|
|
1863
|
+
args: [BASE_PATH]
|
|
1864
|
+
}] }, { type: Configuration, decorators: [{
|
|
1865
|
+
type: Optional
|
|
1866
|
+
}] }] });
|
|
1867
|
+
|
|
1868
|
+
/**
|
|
1869
|
+
* Vality Wallet API
|
|
1870
|
+
*
|
|
1871
|
+
* Contact: support@vality.dev
|
|
1872
|
+
*
|
|
1873
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1874
|
+
* https://openapi-generator.tech
|
|
1875
|
+
* Do not edit the class manually.
|
|
1876
|
+
*/
|
|
1877
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1878
|
+
class WebhooksService extends BaseService {
|
|
1879
|
+
httpClient;
|
|
1880
|
+
constructor(httpClient, basePath, configuration) {
|
|
1881
|
+
super(basePath, configuration);
|
|
1882
|
+
this.httpClient = httpClient;
|
|
1883
|
+
}
|
|
1884
|
+
createWebhook(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1885
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1886
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1887
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling createWebhook.');
|
|
1888
|
+
}
|
|
1889
|
+
const webhookParams = requestParameters?.webhookParams;
|
|
1890
|
+
if (webhookParams === null || webhookParams === undefined) {
|
|
1891
|
+
throw new Error('Required parameter webhookParams was null or undefined when calling createWebhook.');
|
|
1892
|
+
}
|
|
1893
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1894
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1895
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1896
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1897
|
+
}
|
|
1898
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1899
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1900
|
+
}
|
|
1901
|
+
// authentication (bearer) required
|
|
1902
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1903
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1904
|
+
'application/json; charset=utf-8'
|
|
1905
|
+
]);
|
|
1906
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1907
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1908
|
+
}
|
|
1909
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1910
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1911
|
+
// to determine the Content-Type header
|
|
1912
|
+
const consumes = [
|
|
1913
|
+
'application/json; charset=utf-8'
|
|
1914
|
+
];
|
|
1915
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1916
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1917
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1918
|
+
}
|
|
1919
|
+
let responseType_ = 'json';
|
|
1920
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1921
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1922
|
+
responseType_ = 'text';
|
|
1923
|
+
}
|
|
1924
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1925
|
+
responseType_ = 'json';
|
|
1926
|
+
}
|
|
1927
|
+
else {
|
|
1928
|
+
responseType_ = 'blob';
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
let localVarPath = `/webhooks`;
|
|
1932
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
1933
|
+
context: localVarHttpContext,
|
|
1934
|
+
body: webhookParams,
|
|
1935
|
+
responseType: responseType_,
|
|
1936
|
+
withCredentials: this.configuration.withCredentials,
|
|
1937
|
+
headers: localVarHeaders,
|
|
1938
|
+
observe: observe,
|
|
1939
|
+
transferCache: localVarTransferCache,
|
|
1940
|
+
reportProgress: reportProgress
|
|
1941
|
+
});
|
|
1942
|
+
}
|
|
1943
|
+
deleteWebhookByID(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
1944
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
1945
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
1946
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling deleteWebhookByID.');
|
|
1947
|
+
}
|
|
1948
|
+
const webhookID = requestParameters?.webhookID;
|
|
1949
|
+
if (webhookID === null || webhookID === undefined) {
|
|
1950
|
+
throw new Error('Required parameter webhookID was null or undefined when calling deleteWebhookByID.');
|
|
1951
|
+
}
|
|
1952
|
+
const identityID = requestParameters?.identityID;
|
|
1953
|
+
if (identityID === null || identityID === undefined) {
|
|
1954
|
+
throw new Error('Required parameter identityID was null or undefined when calling deleteWebhookByID.');
|
|
1955
|
+
}
|
|
1956
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
1957
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1958
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, identityID, 'identityID');
|
|
1959
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1960
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
1961
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
1962
|
+
}
|
|
1963
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
1964
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
1965
|
+
}
|
|
1966
|
+
// authentication (bearer) required
|
|
1967
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
1968
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1969
|
+
'application/json; charset=utf-8'
|
|
1970
|
+
]);
|
|
1971
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1972
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1973
|
+
}
|
|
1974
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1975
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1976
|
+
let responseType_ = 'json';
|
|
1977
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1978
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1979
|
+
responseType_ = 'text';
|
|
1980
|
+
}
|
|
1981
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1982
|
+
responseType_ = 'json';
|
|
1983
|
+
}
|
|
1984
|
+
else {
|
|
1985
|
+
responseType_ = 'blob';
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
let localVarPath = `/webhooks/${this.configuration.encodeParam({ name: "webhookID", value: webhookID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1989
|
+
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
1990
|
+
context: localVarHttpContext,
|
|
1991
|
+
params: localVarQueryParameters,
|
|
1992
|
+
responseType: responseType_,
|
|
1993
|
+
withCredentials: this.configuration.withCredentials,
|
|
1994
|
+
headers: localVarHeaders,
|
|
1995
|
+
observe: observe,
|
|
1996
|
+
transferCache: localVarTransferCache,
|
|
1997
|
+
reportProgress: reportProgress
|
|
1998
|
+
});
|
|
1999
|
+
}
|
|
2000
|
+
getWebhookByID(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2001
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2002
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2003
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getWebhookByID.');
|
|
2004
|
+
}
|
|
2005
|
+
const webhookID = requestParameters?.webhookID;
|
|
2006
|
+
if (webhookID === null || webhookID === undefined) {
|
|
2007
|
+
throw new Error('Required parameter webhookID was null or undefined when calling getWebhookByID.');
|
|
2008
|
+
}
|
|
2009
|
+
const identityID = requestParameters?.identityID;
|
|
2010
|
+
if (identityID === null || identityID === undefined) {
|
|
2011
|
+
throw new Error('Required parameter identityID was null or undefined when calling getWebhookByID.');
|
|
2012
|
+
}
|
|
2013
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2014
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2015
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, identityID, 'identityID');
|
|
2016
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2017
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2018
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2019
|
+
}
|
|
2020
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2021
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2022
|
+
}
|
|
2023
|
+
// authentication (bearer) required
|
|
2024
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2025
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2026
|
+
'application/json; charset=utf-8'
|
|
2027
|
+
]);
|
|
2028
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2029
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2030
|
+
}
|
|
2031
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2032
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2033
|
+
let responseType_ = 'json';
|
|
2034
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2035
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2036
|
+
responseType_ = 'text';
|
|
2037
|
+
}
|
|
2038
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2039
|
+
responseType_ = 'json';
|
|
2040
|
+
}
|
|
2041
|
+
else {
|
|
2042
|
+
responseType_ = 'blob';
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
let localVarPath = `/webhooks/${this.configuration.encodeParam({ name: "webhookID", value: webhookID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2046
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2047
|
+
context: localVarHttpContext,
|
|
2048
|
+
params: localVarQueryParameters,
|
|
2049
|
+
responseType: responseType_,
|
|
2050
|
+
withCredentials: this.configuration.withCredentials,
|
|
2051
|
+
headers: localVarHeaders,
|
|
2052
|
+
observe: observe,
|
|
2053
|
+
transferCache: localVarTransferCache,
|
|
2054
|
+
reportProgress: reportProgress
|
|
2055
|
+
});
|
|
2056
|
+
}
|
|
2057
|
+
getWebhooks(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2058
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2059
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2060
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getWebhooks.');
|
|
2061
|
+
}
|
|
2062
|
+
const identityID = requestParameters?.identityID;
|
|
2063
|
+
if (identityID === null || identityID === undefined) {
|
|
2064
|
+
throw new Error('Required parameter identityID was null or undefined when calling getWebhooks.');
|
|
2065
|
+
}
|
|
2066
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2067
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2068
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, identityID, 'identityID');
|
|
2069
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2070
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2071
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2072
|
+
}
|
|
2073
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2074
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2075
|
+
}
|
|
2076
|
+
// authentication (bearer) required
|
|
2077
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2078
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2079
|
+
'application/json; charset=utf-8'
|
|
2080
|
+
]);
|
|
2081
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2082
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2083
|
+
}
|
|
2084
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2085
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2086
|
+
let responseType_ = 'json';
|
|
2087
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2088
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2089
|
+
responseType_ = 'text';
|
|
2090
|
+
}
|
|
2091
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2092
|
+
responseType_ = 'json';
|
|
2093
|
+
}
|
|
2094
|
+
else {
|
|
2095
|
+
responseType_ = 'blob';
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
let localVarPath = `/webhooks`;
|
|
2099
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2100
|
+
context: localVarHttpContext,
|
|
2101
|
+
params: localVarQueryParameters,
|
|
2102
|
+
responseType: responseType_,
|
|
2103
|
+
withCredentials: this.configuration.withCredentials,
|
|
2104
|
+
headers: localVarHeaders,
|
|
2105
|
+
observe: observe,
|
|
2106
|
+
transferCache: localVarTransferCache,
|
|
2107
|
+
reportProgress: reportProgress
|
|
2108
|
+
});
|
|
2109
|
+
}
|
|
2110
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WebhooksService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2111
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WebhooksService, providedIn: 'root' });
|
|
2112
|
+
}
|
|
2113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WebhooksService, decorators: [{
|
|
2114
|
+
type: Injectable,
|
|
2115
|
+
args: [{
|
|
2116
|
+
providedIn: 'root'
|
|
2117
|
+
}]
|
|
2118
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2119
|
+
type: Optional
|
|
2120
|
+
}, {
|
|
2121
|
+
type: Inject,
|
|
2122
|
+
args: [BASE_PATH]
|
|
2123
|
+
}] }, { type: Configuration, decorators: [{
|
|
2124
|
+
type: Optional
|
|
2125
|
+
}] }] });
|
|
2126
|
+
|
|
2127
|
+
/**
|
|
2128
|
+
* Vality Wallet API
|
|
2129
|
+
*
|
|
2130
|
+
* Contact: support@vality.dev
|
|
2131
|
+
*
|
|
2132
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2133
|
+
* https://openapi-generator.tech
|
|
2134
|
+
* Do not edit the class manually.
|
|
2135
|
+
*/
|
|
2136
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2137
|
+
class WithdrawalsService extends BaseService {
|
|
2138
|
+
httpClient;
|
|
2139
|
+
constructor(httpClient, basePath, configuration) {
|
|
2140
|
+
super(basePath, configuration);
|
|
2141
|
+
this.httpClient = httpClient;
|
|
2142
|
+
}
|
|
2143
|
+
createDestination(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2144
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2145
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2146
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling createDestination.');
|
|
2147
|
+
}
|
|
2148
|
+
const destination = requestParameters?.destination;
|
|
2149
|
+
if (destination === null || destination === undefined) {
|
|
2150
|
+
throw new Error('Required parameter destination was null or undefined when calling createDestination.');
|
|
2151
|
+
}
|
|
2152
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2153
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2154
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2155
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2156
|
+
}
|
|
2157
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2158
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2159
|
+
}
|
|
2160
|
+
// authentication (bearer) required
|
|
2161
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2162
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2163
|
+
'application/json; charset=utf-8'
|
|
2164
|
+
]);
|
|
2165
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2166
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2167
|
+
}
|
|
2168
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2169
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2170
|
+
// to determine the Content-Type header
|
|
2171
|
+
const consumes = [
|
|
2172
|
+
'application/json; charset=utf-8'
|
|
2173
|
+
];
|
|
2174
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2175
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2176
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
2177
|
+
}
|
|
2178
|
+
let responseType_ = 'json';
|
|
2179
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2180
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2181
|
+
responseType_ = 'text';
|
|
2182
|
+
}
|
|
2183
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2184
|
+
responseType_ = 'json';
|
|
2185
|
+
}
|
|
2186
|
+
else {
|
|
2187
|
+
responseType_ = 'blob';
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
let localVarPath = `/destinations`;
|
|
2191
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
2192
|
+
context: localVarHttpContext,
|
|
2193
|
+
body: destination,
|
|
2194
|
+
responseType: responseType_,
|
|
2195
|
+
withCredentials: this.configuration.withCredentials,
|
|
2196
|
+
headers: localVarHeaders,
|
|
2197
|
+
observe: observe,
|
|
2198
|
+
transferCache: localVarTransferCache,
|
|
2199
|
+
reportProgress: reportProgress
|
|
2200
|
+
});
|
|
2201
|
+
}
|
|
2202
|
+
createQuote(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2203
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2204
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2205
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling createQuote.');
|
|
2206
|
+
}
|
|
2207
|
+
const withdrawalQuoteParams = requestParameters?.withdrawalQuoteParams;
|
|
2208
|
+
if (withdrawalQuoteParams === null || withdrawalQuoteParams === undefined) {
|
|
2209
|
+
throw new Error('Required parameter withdrawalQuoteParams was null or undefined when calling createQuote.');
|
|
2210
|
+
}
|
|
2211
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2212
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2213
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2214
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2215
|
+
}
|
|
2216
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2217
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2218
|
+
}
|
|
2219
|
+
// authentication (bearer) required
|
|
2220
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2221
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2222
|
+
'application/json; charset=utf-8'
|
|
2223
|
+
]);
|
|
2224
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2225
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2226
|
+
}
|
|
2227
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2228
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2229
|
+
// to determine the Content-Type header
|
|
2230
|
+
const consumes = [
|
|
2231
|
+
'application/json; charset=utf-8'
|
|
2232
|
+
];
|
|
2233
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2234
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2235
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
2236
|
+
}
|
|
2237
|
+
let responseType_ = 'json';
|
|
2238
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2239
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2240
|
+
responseType_ = 'text';
|
|
2241
|
+
}
|
|
2242
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2243
|
+
responseType_ = 'json';
|
|
2244
|
+
}
|
|
2245
|
+
else {
|
|
2246
|
+
responseType_ = 'blob';
|
|
2247
|
+
}
|
|
2248
|
+
}
|
|
2249
|
+
let localVarPath = `/withdrawal-quotes`;
|
|
2250
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
2251
|
+
context: localVarHttpContext,
|
|
2252
|
+
body: withdrawalQuoteParams,
|
|
2253
|
+
responseType: responseType_,
|
|
2254
|
+
withCredentials: this.configuration.withCredentials,
|
|
2255
|
+
headers: localVarHeaders,
|
|
2256
|
+
observe: observe,
|
|
2257
|
+
transferCache: localVarTransferCache,
|
|
2258
|
+
reportProgress: reportProgress
|
|
2259
|
+
});
|
|
2260
|
+
}
|
|
2261
|
+
createWithdrawal(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2262
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2263
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2264
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling createWithdrawal.');
|
|
2265
|
+
}
|
|
2266
|
+
const withdrawal = requestParameters?.withdrawal;
|
|
2267
|
+
if (withdrawal === null || withdrawal === undefined) {
|
|
2268
|
+
throw new Error('Required parameter withdrawal was null or undefined when calling createWithdrawal.');
|
|
2269
|
+
}
|
|
2270
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2271
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2272
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2273
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2274
|
+
}
|
|
2275
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2276
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2277
|
+
}
|
|
2278
|
+
// authentication (bearer) required
|
|
2279
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2280
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2281
|
+
'application/json; charset=utf-8'
|
|
2282
|
+
]);
|
|
2283
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2284
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2285
|
+
}
|
|
2286
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2287
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2288
|
+
// to determine the Content-Type header
|
|
2289
|
+
const consumes = [
|
|
2290
|
+
'application/json; charset=utf-8'
|
|
2291
|
+
];
|
|
2292
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2293
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2294
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
2295
|
+
}
|
|
2296
|
+
let responseType_ = 'json';
|
|
2297
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2298
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2299
|
+
responseType_ = 'text';
|
|
2300
|
+
}
|
|
2301
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2302
|
+
responseType_ = 'json';
|
|
2303
|
+
}
|
|
2304
|
+
else {
|
|
2305
|
+
responseType_ = 'blob';
|
|
2306
|
+
}
|
|
2307
|
+
}
|
|
2308
|
+
let localVarPath = `/withdrawals`;
|
|
2309
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
2310
|
+
context: localVarHttpContext,
|
|
2311
|
+
body: withdrawal,
|
|
2312
|
+
responseType: responseType_,
|
|
2313
|
+
withCredentials: this.configuration.withCredentials,
|
|
2314
|
+
headers: localVarHeaders,
|
|
2315
|
+
observe: observe,
|
|
2316
|
+
transferCache: localVarTransferCache,
|
|
2317
|
+
reportProgress: reportProgress
|
|
2318
|
+
});
|
|
2319
|
+
}
|
|
2320
|
+
getDestination(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2321
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2322
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2323
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getDestination.');
|
|
2324
|
+
}
|
|
2325
|
+
const destinationID = requestParameters?.destinationID;
|
|
2326
|
+
if (destinationID === null || destinationID === undefined) {
|
|
2327
|
+
throw new Error('Required parameter destinationID was null or undefined when calling getDestination.');
|
|
2328
|
+
}
|
|
2329
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2330
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2331
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2332
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2333
|
+
}
|
|
2334
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2335
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2336
|
+
}
|
|
2337
|
+
// authentication (bearer) required
|
|
2338
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2339
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2340
|
+
'application/json; charset=utf-8'
|
|
2341
|
+
]);
|
|
2342
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2343
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2344
|
+
}
|
|
2345
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2346
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2347
|
+
let responseType_ = 'json';
|
|
2348
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2349
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2350
|
+
responseType_ = 'text';
|
|
2351
|
+
}
|
|
2352
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2353
|
+
responseType_ = 'json';
|
|
2354
|
+
}
|
|
2355
|
+
else {
|
|
2356
|
+
responseType_ = 'blob';
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
let localVarPath = `/destinations/${this.configuration.encodeParam({ name: "destinationID", value: destinationID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2360
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2361
|
+
context: localVarHttpContext,
|
|
2362
|
+
responseType: responseType_,
|
|
2363
|
+
withCredentials: this.configuration.withCredentials,
|
|
2364
|
+
headers: localVarHeaders,
|
|
2365
|
+
observe: observe,
|
|
2366
|
+
transferCache: localVarTransferCache,
|
|
2367
|
+
reportProgress: reportProgress
|
|
2368
|
+
});
|
|
2369
|
+
}
|
|
2370
|
+
getDestinationByExternalID(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2371
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2372
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2373
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getDestinationByExternalID.');
|
|
2374
|
+
}
|
|
2375
|
+
const externalID = requestParameters?.externalID;
|
|
2376
|
+
if (externalID === null || externalID === undefined) {
|
|
2377
|
+
throw new Error('Required parameter externalID was null or undefined when calling getDestinationByExternalID.');
|
|
2378
|
+
}
|
|
2379
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2380
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2381
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2382
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2383
|
+
}
|
|
2384
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2385
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2386
|
+
}
|
|
2387
|
+
// authentication (bearer) required
|
|
2388
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2389
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2390
|
+
'application/json; charset=utf-8'
|
|
2391
|
+
]);
|
|
2392
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2393
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2394
|
+
}
|
|
2395
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2396
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2397
|
+
let responseType_ = 'json';
|
|
2398
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2399
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2400
|
+
responseType_ = 'text';
|
|
2401
|
+
}
|
|
2402
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2403
|
+
responseType_ = 'json';
|
|
2404
|
+
}
|
|
2405
|
+
else {
|
|
2406
|
+
responseType_ = 'blob';
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
let localVarPath = `/external-ids/destinations/${this.configuration.encodeParam({ name: "externalID", value: externalID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2410
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2411
|
+
context: localVarHttpContext,
|
|
2412
|
+
responseType: responseType_,
|
|
2413
|
+
withCredentials: this.configuration.withCredentials,
|
|
2414
|
+
headers: localVarHeaders,
|
|
2415
|
+
observe: observe,
|
|
2416
|
+
transferCache: localVarTransferCache,
|
|
2417
|
+
reportProgress: reportProgress
|
|
2418
|
+
});
|
|
2419
|
+
}
|
|
2420
|
+
getWithdrawal(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2421
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2422
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2423
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getWithdrawal.');
|
|
2424
|
+
}
|
|
2425
|
+
const withdrawalID = requestParameters?.withdrawalID;
|
|
2426
|
+
if (withdrawalID === null || withdrawalID === undefined) {
|
|
2427
|
+
throw new Error('Required parameter withdrawalID was null or undefined when calling getWithdrawal.');
|
|
2428
|
+
}
|
|
2429
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2430
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2431
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2432
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2433
|
+
}
|
|
2434
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2435
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2436
|
+
}
|
|
2437
|
+
// authentication (bearer) required
|
|
2438
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2439
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2440
|
+
'application/json; charset=utf-8'
|
|
2441
|
+
]);
|
|
2442
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2443
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2444
|
+
}
|
|
2445
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2446
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2447
|
+
let responseType_ = 'json';
|
|
2448
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2449
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2450
|
+
responseType_ = 'text';
|
|
2451
|
+
}
|
|
2452
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2453
|
+
responseType_ = 'json';
|
|
2454
|
+
}
|
|
2455
|
+
else {
|
|
2456
|
+
responseType_ = 'blob';
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
let localVarPath = `/withdrawals/${this.configuration.encodeParam({ name: "withdrawalID", value: withdrawalID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2460
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2461
|
+
context: localVarHttpContext,
|
|
2462
|
+
responseType: responseType_,
|
|
2463
|
+
withCredentials: this.configuration.withCredentials,
|
|
2464
|
+
headers: localVarHeaders,
|
|
2465
|
+
observe: observe,
|
|
2466
|
+
transferCache: localVarTransferCache,
|
|
2467
|
+
reportProgress: reportProgress
|
|
2468
|
+
});
|
|
2469
|
+
}
|
|
2470
|
+
getWithdrawalByExternalID(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2471
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2472
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2473
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getWithdrawalByExternalID.');
|
|
2474
|
+
}
|
|
2475
|
+
const externalID = requestParameters?.externalID;
|
|
2476
|
+
if (externalID === null || externalID === undefined) {
|
|
2477
|
+
throw new Error('Required parameter externalID was null or undefined when calling getWithdrawalByExternalID.');
|
|
2478
|
+
}
|
|
2479
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2480
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2481
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2482
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2483
|
+
}
|
|
2484
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2485
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2486
|
+
}
|
|
2487
|
+
// authentication (bearer) required
|
|
2488
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2489
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2490
|
+
'application/json; charset=utf-8'
|
|
2491
|
+
]);
|
|
2492
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2493
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2494
|
+
}
|
|
2495
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2496
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2497
|
+
let responseType_ = 'json';
|
|
2498
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2499
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2500
|
+
responseType_ = 'text';
|
|
2501
|
+
}
|
|
2502
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2503
|
+
responseType_ = 'json';
|
|
2504
|
+
}
|
|
2505
|
+
else {
|
|
2506
|
+
responseType_ = 'blob';
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2509
|
+
let localVarPath = `/external-ids/withdrawals/${this.configuration.encodeParam({ name: "externalID", value: externalID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2510
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2511
|
+
context: localVarHttpContext,
|
|
2512
|
+
responseType: responseType_,
|
|
2513
|
+
withCredentials: this.configuration.withCredentials,
|
|
2514
|
+
headers: localVarHeaders,
|
|
2515
|
+
observe: observe,
|
|
2516
|
+
transferCache: localVarTransferCache,
|
|
2517
|
+
reportProgress: reportProgress
|
|
2518
|
+
});
|
|
2519
|
+
}
|
|
2520
|
+
getWithdrawalEvents(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2521
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2522
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2523
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling getWithdrawalEvents.');
|
|
2524
|
+
}
|
|
2525
|
+
const withdrawalID = requestParameters?.withdrawalID;
|
|
2526
|
+
if (withdrawalID === null || withdrawalID === undefined) {
|
|
2527
|
+
throw new Error('Required parameter withdrawalID was null or undefined when calling getWithdrawalEvents.');
|
|
2528
|
+
}
|
|
2529
|
+
const eventID = requestParameters?.eventID;
|
|
2530
|
+
if (eventID === null || eventID === undefined) {
|
|
2531
|
+
throw new Error('Required parameter eventID was null or undefined when calling getWithdrawalEvents.');
|
|
2532
|
+
}
|
|
2533
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2534
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2535
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2536
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2537
|
+
}
|
|
2538
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2539
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2540
|
+
}
|
|
2541
|
+
// authentication (bearer) required
|
|
2542
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2543
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2544
|
+
'application/json; charset=utf-8'
|
|
2545
|
+
]);
|
|
2546
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2547
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2548
|
+
}
|
|
2549
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2550
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2551
|
+
let responseType_ = 'json';
|
|
2552
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2553
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2554
|
+
responseType_ = 'text';
|
|
2555
|
+
}
|
|
2556
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2557
|
+
responseType_ = 'json';
|
|
2558
|
+
}
|
|
2559
|
+
else {
|
|
2560
|
+
responseType_ = 'blob';
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
let localVarPath = `/withdrawals/${this.configuration.encodeParam({ name: "withdrawalID", value: withdrawalID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/events/${this.configuration.encodeParam({ name: "eventID", value: eventID, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
2564
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2565
|
+
context: localVarHttpContext,
|
|
2566
|
+
responseType: responseType_,
|
|
2567
|
+
withCredentials: this.configuration.withCredentials,
|
|
2568
|
+
headers: localVarHeaders,
|
|
2569
|
+
observe: observe,
|
|
2570
|
+
transferCache: localVarTransferCache,
|
|
2571
|
+
reportProgress: reportProgress
|
|
2572
|
+
});
|
|
2573
|
+
}
|
|
2574
|
+
issueDestinationGrant(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2575
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2576
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2577
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling issueDestinationGrant.');
|
|
2578
|
+
}
|
|
2579
|
+
const destinationID = requestParameters?.destinationID;
|
|
2580
|
+
if (destinationID === null || destinationID === undefined) {
|
|
2581
|
+
throw new Error('Required parameter destinationID was null or undefined when calling issueDestinationGrant.');
|
|
2582
|
+
}
|
|
2583
|
+
const request = requestParameters?.request;
|
|
2584
|
+
if (request === null || request === undefined) {
|
|
2585
|
+
throw new Error('Required parameter request was null or undefined when calling issueDestinationGrant.');
|
|
2586
|
+
}
|
|
2587
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2588
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2589
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2590
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2591
|
+
}
|
|
2592
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2593
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2594
|
+
}
|
|
2595
|
+
// authentication (bearer) required
|
|
2596
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2597
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2598
|
+
'application/json; charset=utf-8'
|
|
2599
|
+
]);
|
|
2600
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2601
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2602
|
+
}
|
|
2603
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2604
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2605
|
+
// to determine the Content-Type header
|
|
2606
|
+
const consumes = [
|
|
2607
|
+
'application/json; charset=utf-8'
|
|
2608
|
+
];
|
|
2609
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2610
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2611
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
2612
|
+
}
|
|
2613
|
+
let responseType_ = 'json';
|
|
2614
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2615
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2616
|
+
responseType_ = 'text';
|
|
2617
|
+
}
|
|
2618
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2619
|
+
responseType_ = 'json';
|
|
2620
|
+
}
|
|
2621
|
+
else {
|
|
2622
|
+
responseType_ = 'blob';
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
let localVarPath = `/destinations/${this.configuration.encodeParam({ name: "destinationID", value: destinationID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/grants`;
|
|
2626
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
2627
|
+
context: localVarHttpContext,
|
|
2628
|
+
body: request,
|
|
2629
|
+
responseType: responseType_,
|
|
2630
|
+
withCredentials: this.configuration.withCredentials,
|
|
2631
|
+
headers: localVarHeaders,
|
|
2632
|
+
observe: observe,
|
|
2633
|
+
transferCache: localVarTransferCache,
|
|
2634
|
+
reportProgress: reportProgress
|
|
2635
|
+
});
|
|
2636
|
+
}
|
|
2637
|
+
listDestinations(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2638
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2639
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2640
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling listDestinations.');
|
|
2641
|
+
}
|
|
2642
|
+
const limit = requestParameters?.limit;
|
|
2643
|
+
if (limit === null || limit === undefined) {
|
|
2644
|
+
throw new Error('Required parameter limit was null or undefined when calling listDestinations.');
|
|
2645
|
+
}
|
|
2646
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2647
|
+
const partyID = requestParameters?.partyID;
|
|
2648
|
+
const identityID = requestParameters?.identityID;
|
|
2649
|
+
const currencyID = requestParameters?.currencyID;
|
|
2650
|
+
const continuationToken = requestParameters?.continuationToken;
|
|
2651
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2652
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, partyID, 'partyID');
|
|
2653
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, identityID, 'identityID');
|
|
2654
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, currencyID, 'currencyID');
|
|
2655
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
|
|
2656
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, continuationToken, 'continuationToken');
|
|
2657
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2658
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2659
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2660
|
+
}
|
|
2661
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2662
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2663
|
+
}
|
|
2664
|
+
// authentication (bearer) required
|
|
2665
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2666
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2667
|
+
'application/json; charset=utf-8'
|
|
2668
|
+
]);
|
|
2669
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2670
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2671
|
+
}
|
|
2672
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2673
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2674
|
+
let responseType_ = 'json';
|
|
2675
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2676
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2677
|
+
responseType_ = 'text';
|
|
2678
|
+
}
|
|
2679
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2680
|
+
responseType_ = 'json';
|
|
2681
|
+
}
|
|
2682
|
+
else {
|
|
2683
|
+
responseType_ = 'blob';
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
let localVarPath = `/destinations`;
|
|
2687
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2688
|
+
context: localVarHttpContext,
|
|
2689
|
+
params: localVarQueryParameters,
|
|
2690
|
+
responseType: responseType_,
|
|
2691
|
+
withCredentials: this.configuration.withCredentials,
|
|
2692
|
+
headers: localVarHeaders,
|
|
2693
|
+
observe: observe,
|
|
2694
|
+
transferCache: localVarTransferCache,
|
|
2695
|
+
reportProgress: reportProgress
|
|
2696
|
+
});
|
|
2697
|
+
}
|
|
2698
|
+
listWithdrawals(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2699
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2700
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2701
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling listWithdrawals.');
|
|
2702
|
+
}
|
|
2703
|
+
const limit = requestParameters?.limit;
|
|
2704
|
+
if (limit === null || limit === undefined) {
|
|
2705
|
+
throw new Error('Required parameter limit was null or undefined when calling listWithdrawals.');
|
|
2706
|
+
}
|
|
2707
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2708
|
+
const partyID = requestParameters?.partyID;
|
|
2709
|
+
const walletID = requestParameters?.walletID;
|
|
2710
|
+
const identityID = requestParameters?.identityID;
|
|
2711
|
+
const withdrawalID = requestParameters?.withdrawalID;
|
|
2712
|
+
const externalID = requestParameters?.externalID;
|
|
2713
|
+
const destinationID = requestParameters?.destinationID;
|
|
2714
|
+
const status = requestParameters?.status;
|
|
2715
|
+
const createdAtFrom = requestParameters?.createdAtFrom;
|
|
2716
|
+
const createdAtTo = requestParameters?.createdAtTo;
|
|
2717
|
+
const amountFrom = requestParameters?.amountFrom;
|
|
2718
|
+
const amountTo = requestParameters?.amountTo;
|
|
2719
|
+
const currencyID = requestParameters?.currencyID;
|
|
2720
|
+
const continuationToken = requestParameters?.continuationToken;
|
|
2721
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2722
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, partyID, 'partyID');
|
|
2723
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, walletID, 'walletID');
|
|
2724
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, identityID, 'identityID');
|
|
2725
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, withdrawalID, 'withdrawalID');
|
|
2726
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, externalID, 'externalID');
|
|
2727
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, destinationID, 'destinationID');
|
|
2728
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, status, 'status');
|
|
2729
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdAtFrom, 'createdAtFrom');
|
|
2730
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, createdAtTo, 'createdAtTo');
|
|
2731
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, amountFrom, 'amountFrom');
|
|
2732
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, amountTo, 'amountTo');
|
|
2733
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, currencyID, 'currencyID');
|
|
2734
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
|
|
2735
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, continuationToken, 'continuationToken');
|
|
2736
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2737
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2738
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2739
|
+
}
|
|
2740
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2741
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2742
|
+
}
|
|
2743
|
+
// authentication (bearer) required
|
|
2744
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2745
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2746
|
+
'application/json; charset=utf-8'
|
|
2747
|
+
]);
|
|
2748
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2749
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2750
|
+
}
|
|
2751
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2752
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2753
|
+
let responseType_ = 'json';
|
|
2754
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2755
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2756
|
+
responseType_ = 'text';
|
|
2757
|
+
}
|
|
2758
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2759
|
+
responseType_ = 'json';
|
|
2760
|
+
}
|
|
2761
|
+
else {
|
|
2762
|
+
responseType_ = 'blob';
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
let localVarPath = `/withdrawals`;
|
|
2766
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2767
|
+
context: localVarHttpContext,
|
|
2768
|
+
params: localVarQueryParameters,
|
|
2769
|
+
responseType: responseType_,
|
|
2770
|
+
withCredentials: this.configuration.withCredentials,
|
|
2771
|
+
headers: localVarHeaders,
|
|
2772
|
+
observe: observe,
|
|
2773
|
+
transferCache: localVarTransferCache,
|
|
2774
|
+
reportProgress: reportProgress
|
|
2775
|
+
});
|
|
2776
|
+
}
|
|
2777
|
+
pollWithdrawalEvents(requestParameters, observe = 'body', reportProgress = false, options) {
|
|
2778
|
+
const xRequestID = requestParameters?.xRequestID;
|
|
2779
|
+
if (xRequestID === null || xRequestID === undefined) {
|
|
2780
|
+
throw new Error('Required parameter xRequestID was null or undefined when calling pollWithdrawalEvents.');
|
|
2781
|
+
}
|
|
2782
|
+
const withdrawalID = requestParameters?.withdrawalID;
|
|
2783
|
+
if (withdrawalID === null || withdrawalID === undefined) {
|
|
2784
|
+
throw new Error('Required parameter withdrawalID was null or undefined when calling pollWithdrawalEvents.');
|
|
2785
|
+
}
|
|
2786
|
+
const limit = requestParameters?.limit;
|
|
2787
|
+
if (limit === null || limit === undefined) {
|
|
2788
|
+
throw new Error('Required parameter limit was null or undefined when calling pollWithdrawalEvents.');
|
|
2789
|
+
}
|
|
2790
|
+
const xRequestDeadline = requestParameters?.xRequestDeadline;
|
|
2791
|
+
const eventCursor = requestParameters?.eventCursor;
|
|
2792
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2793
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
|
|
2794
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, eventCursor, 'eventCursor');
|
|
2795
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2796
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
2797
|
+
localVarHeaders = localVarHeaders.set('X-Request-ID', String(xRequestID));
|
|
2798
|
+
}
|
|
2799
|
+
if (xRequestDeadline !== undefined && xRequestDeadline !== null) {
|
|
2800
|
+
localVarHeaders = localVarHeaders.set('X-Request-Deadline', String(xRequestDeadline));
|
|
2801
|
+
}
|
|
2802
|
+
// authentication (bearer) required
|
|
2803
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders);
|
|
2804
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2805
|
+
'application/json; charset=utf-8'
|
|
2806
|
+
]);
|
|
2807
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2808
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2809
|
+
}
|
|
2810
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2811
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2812
|
+
let responseType_ = 'json';
|
|
2813
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2814
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2815
|
+
responseType_ = 'text';
|
|
2816
|
+
}
|
|
2817
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2818
|
+
responseType_ = 'json';
|
|
2819
|
+
}
|
|
2820
|
+
else {
|
|
2821
|
+
responseType_ = 'blob';
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2824
|
+
let localVarPath = `/withdrawals/${this.configuration.encodeParam({ name: "withdrawalID", value: withdrawalID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/events`;
|
|
2825
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2826
|
+
context: localVarHttpContext,
|
|
2827
|
+
params: localVarQueryParameters,
|
|
2828
|
+
responseType: responseType_,
|
|
2829
|
+
withCredentials: this.configuration.withCredentials,
|
|
2830
|
+
headers: localVarHeaders,
|
|
2831
|
+
observe: observe,
|
|
2832
|
+
transferCache: localVarTransferCache,
|
|
2833
|
+
reportProgress: reportProgress
|
|
2834
|
+
});
|
|
2835
|
+
}
|
|
2836
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WithdrawalsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2837
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WithdrawalsService, providedIn: 'root' });
|
|
2838
|
+
}
|
|
2839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WithdrawalsService, decorators: [{
|
|
2840
|
+
type: Injectable,
|
|
2841
|
+
args: [{
|
|
2842
|
+
providedIn: 'root'
|
|
2843
|
+
}]
|
|
2844
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2845
|
+
type: Optional
|
|
2846
|
+
}, {
|
|
2847
|
+
type: Inject,
|
|
2848
|
+
args: [BASE_PATH]
|
|
2849
|
+
}] }, { type: Configuration, decorators: [{
|
|
2850
|
+
type: Optional
|
|
2851
|
+
}] }] });
|
|
2852
|
+
|
|
2853
|
+
const APIS = [CurrenciesService, DepositsService, DownloadsService, IdentitiesService, ProvidersService, ReportsService, ResidencesService, W2WService, WalletsService, WebhooksService, WithdrawalsService];
|
|
2854
|
+
|
|
2855
|
+
/**
|
|
2856
|
+
* Vality Wallet API
|
|
2857
|
+
*
|
|
2858
|
+
* Contact: support@vality.dev
|
|
2859
|
+
*
|
|
2860
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2861
|
+
* https://openapi-generator.tech
|
|
2862
|
+
* Do not edit the class manually.
|
|
2863
|
+
*/
|
|
2864
|
+
|
|
2865
|
+
/**
|
|
2866
|
+
* Vality Wallet API
|
|
2867
|
+
*
|
|
2868
|
+
* Contact: support@vality.dev
|
|
2869
|
+
*
|
|
2870
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2871
|
+
* https://openapi-generator.tech
|
|
2872
|
+
* Do not edit the class manually.
|
|
2873
|
+
*/
|
|
2874
|
+
var BadRequest;
|
|
2875
|
+
(function (BadRequest) {
|
|
2876
|
+
BadRequest.ErrorTypeEnum = {
|
|
2877
|
+
SchemaViolated: 'SchemaViolated',
|
|
2878
|
+
NotFound: 'NotFound',
|
|
2879
|
+
WrongType: 'WrongType',
|
|
2880
|
+
NotInRange: 'NotInRange',
|
|
2881
|
+
WrongSize: 'WrongSize',
|
|
2882
|
+
WrongLength: 'WrongLength',
|
|
2883
|
+
WrongArray: 'WrongArray',
|
|
2884
|
+
NoMatch: 'NoMatch',
|
|
2885
|
+
InvalidResourceToken: 'InvalidResourceToken',
|
|
2886
|
+
InvalidToken: 'InvalidToken'
|
|
2887
|
+
};
|
|
2888
|
+
})(BadRequest || (BadRequest = {}));
|
|
2889
|
+
|
|
2890
|
+
/**
|
|
2891
|
+
* Vality Wallet API
|
|
2892
|
+
*
|
|
2893
|
+
* Contact: support@vality.dev
|
|
2894
|
+
*
|
|
2895
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2896
|
+
* https://openapi-generator.tech
|
|
2897
|
+
* Do not edit the class manually.
|
|
2898
|
+
*/
|
|
2899
|
+
|
|
2900
|
+
/**
|
|
2901
|
+
* Vality Wallet API
|
|
2902
|
+
*
|
|
2903
|
+
* Contact: support@vality.dev
|
|
2904
|
+
*
|
|
2905
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2906
|
+
* https://openapi-generator.tech
|
|
2907
|
+
* Do not edit the class manually.
|
|
2908
|
+
*/
|
|
2909
|
+
|
|
2910
|
+
/**
|
|
2911
|
+
* Vality Wallet API
|
|
2912
|
+
*
|
|
2913
|
+
* Contact: support@vality.dev
|
|
2914
|
+
*
|
|
2915
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2916
|
+
* https://openapi-generator.tech
|
|
2917
|
+
* Do not edit the class manually.
|
|
2918
|
+
*/
|
|
2919
|
+
|
|
2920
|
+
/**
|
|
2921
|
+
* Vality Wallet API
|
|
2922
|
+
*
|
|
2923
|
+
* Contact: support@vality.dev
|
|
2924
|
+
*
|
|
2925
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2926
|
+
* https://openapi-generator.tech
|
|
2927
|
+
* Do not edit the class manually.
|
|
2928
|
+
*/
|
|
2929
|
+
|
|
2930
|
+
/**
|
|
2931
|
+
* Vality Wallet API
|
|
2932
|
+
*
|
|
2933
|
+
* Contact: support@vality.dev
|
|
2934
|
+
*
|
|
2935
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2936
|
+
* https://openapi-generator.tech
|
|
2937
|
+
* Do not edit the class manually.
|
|
2938
|
+
*/
|
|
2939
|
+
|
|
2940
|
+
var Deposit;
|
|
2941
|
+
(function (Deposit) {
|
|
2942
|
+
Deposit.StatusEnum = {
|
|
2943
|
+
Pending: 'Pending',
|
|
2944
|
+
Succeeded: 'Succeeded',
|
|
2945
|
+
Failed: 'Failed'
|
|
2946
|
+
};
|
|
2947
|
+
})(Deposit || (Deposit = {}));
|
|
2948
|
+
|
|
2949
|
+
var DepositAdjustment;
|
|
2950
|
+
(function (DepositAdjustment) {
|
|
2951
|
+
DepositAdjustment.StatusEnum = {
|
|
2952
|
+
Pending: 'Pending',
|
|
2953
|
+
Succeeded: 'Succeeded',
|
|
2954
|
+
Failed: 'Failed'
|
|
2955
|
+
};
|
|
2956
|
+
})(DepositAdjustment || (DepositAdjustment = {}));
|
|
2957
|
+
|
|
2958
|
+
var DepositAdjustmentStatus;
|
|
2959
|
+
(function (DepositAdjustmentStatus) {
|
|
2960
|
+
DepositAdjustmentStatus.StatusEnum = {
|
|
2961
|
+
Pending: 'Pending',
|
|
2962
|
+
Succeeded: 'Succeeded',
|
|
2963
|
+
Failed: 'Failed'
|
|
2964
|
+
};
|
|
2965
|
+
})(DepositAdjustmentStatus || (DepositAdjustmentStatus = {}));
|
|
2966
|
+
|
|
2967
|
+
/**
|
|
2968
|
+
* Vality Wallet API
|
|
2969
|
+
*
|
|
2970
|
+
* Contact: support@vality.dev
|
|
2971
|
+
*
|
|
2972
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2973
|
+
* https://openapi-generator.tech
|
|
2974
|
+
* Do not edit the class manually.
|
|
2975
|
+
*/
|
|
2976
|
+
|
|
2977
|
+
/**
|
|
2978
|
+
* Vality Wallet API
|
|
2979
|
+
*
|
|
2980
|
+
* Contact: support@vality.dev
|
|
2981
|
+
*
|
|
2982
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2983
|
+
* https://openapi-generator.tech
|
|
2984
|
+
* Do not edit the class manually.
|
|
2985
|
+
*/
|
|
2986
|
+
|
|
2987
|
+
var DepositRevert;
|
|
2988
|
+
(function (DepositRevert) {
|
|
2989
|
+
DepositRevert.StatusEnum = {
|
|
2990
|
+
Pending: 'Pending',
|
|
2991
|
+
Succeeded: 'Succeeded',
|
|
2992
|
+
Failed: 'Failed'
|
|
2993
|
+
};
|
|
2994
|
+
})(DepositRevert || (DepositRevert = {}));
|
|
2995
|
+
|
|
2996
|
+
/**
|
|
2997
|
+
* Vality Wallet API
|
|
2998
|
+
*
|
|
2999
|
+
* Contact: support@vality.dev
|
|
3000
|
+
*
|
|
3001
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3002
|
+
* https://openapi-generator.tech
|
|
3003
|
+
* Do not edit the class manually.
|
|
3004
|
+
*/
|
|
3005
|
+
|
|
3006
|
+
var DepositRevertStatus;
|
|
3007
|
+
(function (DepositRevertStatus) {
|
|
3008
|
+
DepositRevertStatus.StatusEnum = {
|
|
3009
|
+
Pending: 'Pending',
|
|
3010
|
+
Succeeded: 'Succeeded',
|
|
3011
|
+
Failed: 'Failed'
|
|
3012
|
+
};
|
|
3013
|
+
})(DepositRevertStatus || (DepositRevertStatus = {}));
|
|
3014
|
+
|
|
3015
|
+
var DepositStatus;
|
|
3016
|
+
(function (DepositStatus) {
|
|
3017
|
+
DepositStatus.StatusEnum = {
|
|
3018
|
+
Pending: 'Pending',
|
|
3019
|
+
Succeeded: 'Succeeded',
|
|
3020
|
+
Failed: 'Failed'
|
|
3021
|
+
};
|
|
3022
|
+
})(DepositStatus || (DepositStatus = {}));
|
|
3023
|
+
|
|
3024
|
+
var Destination;
|
|
3025
|
+
(function (Destination) {
|
|
3026
|
+
Destination.StatusEnum = {
|
|
3027
|
+
Unauthorized: 'Unauthorized',
|
|
3028
|
+
Authorized: 'Authorized'
|
|
3029
|
+
};
|
|
3030
|
+
})(Destination || (Destination = {}));
|
|
3031
|
+
|
|
3032
|
+
/**
|
|
3033
|
+
* Vality Wallet API
|
|
3034
|
+
*
|
|
3035
|
+
* Contact: support@vality.dev
|
|
3036
|
+
*
|
|
3037
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3038
|
+
* https://openapi-generator.tech
|
|
3039
|
+
* Do not edit the class manually.
|
|
3040
|
+
*/
|
|
3041
|
+
var DestinationAuthData;
|
|
3042
|
+
(function (DestinationAuthData) {
|
|
3043
|
+
DestinationAuthData.TypeEnum = {
|
|
3044
|
+
SenderReceiverDestinationAuthData: 'SenderReceiverDestinationAuthData'
|
|
3045
|
+
};
|
|
3046
|
+
})(DestinationAuthData || (DestinationAuthData = {}));
|
|
3047
|
+
|
|
3048
|
+
/**
|
|
3049
|
+
* Vality Wallet API
|
|
3050
|
+
*
|
|
3051
|
+
* Contact: support@vality.dev
|
|
3052
|
+
*
|
|
3053
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3054
|
+
* https://openapi-generator.tech
|
|
3055
|
+
* Do not edit the class manually.
|
|
3056
|
+
*/
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
* Vality Wallet API
|
|
3060
|
+
*
|
|
3061
|
+
* Contact: support@vality.dev
|
|
3062
|
+
*
|
|
3063
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3064
|
+
* https://openapi-generator.tech
|
|
3065
|
+
* Do not edit the class manually.
|
|
3066
|
+
*/
|
|
3067
|
+
var DestinationResource;
|
|
3068
|
+
(function (DestinationResource) {
|
|
3069
|
+
DestinationResource.TypeEnum = {
|
|
3070
|
+
BankCardDestinationResource: 'BankCardDestinationResource',
|
|
3071
|
+
CryptoWalletDestinationResource: 'CryptoWalletDestinationResource',
|
|
3072
|
+
DigitalWalletDestinationResource: 'DigitalWalletDestinationResource'
|
|
3073
|
+
};
|
|
3074
|
+
})(DestinationResource || (DestinationResource = {}));
|
|
3075
|
+
|
|
3076
|
+
/**
|
|
3077
|
+
* Vality Wallet API
|
|
3078
|
+
*
|
|
3079
|
+
* Contact: support@vality.dev
|
|
3080
|
+
*
|
|
3081
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3082
|
+
* https://openapi-generator.tech
|
|
3083
|
+
* Do not edit the class manually.
|
|
3084
|
+
*/
|
|
3085
|
+
var DestinationStatus;
|
|
3086
|
+
(function (DestinationStatus) {
|
|
3087
|
+
DestinationStatus.StatusEnum = {
|
|
3088
|
+
Unauthorized: 'Unauthorized',
|
|
3089
|
+
Authorized: 'Authorized'
|
|
3090
|
+
};
|
|
3091
|
+
})(DestinationStatus || (DestinationStatus = {}));
|
|
3092
|
+
|
|
3093
|
+
var DestinationsTopic;
|
|
3094
|
+
(function (DestinationsTopic) {
|
|
3095
|
+
DestinationsTopic.EventTypesEnum = {
|
|
3096
|
+
DestinationCreated: 'DestinationCreated',
|
|
3097
|
+
DestinationUnauthorized: 'DestinationUnauthorized',
|
|
3098
|
+
DestinationAuthorized: 'DestinationAuthorized'
|
|
3099
|
+
};
|
|
3100
|
+
})(DestinationsTopic || (DestinationsTopic = {}));
|
|
3101
|
+
|
|
3102
|
+
/**
|
|
3103
|
+
* Vality Wallet API
|
|
3104
|
+
*
|
|
3105
|
+
* Contact: support@vality.dev
|
|
3106
|
+
*
|
|
3107
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3108
|
+
* https://openapi-generator.tech
|
|
3109
|
+
* Do not edit the class manually.
|
|
3110
|
+
*/
|
|
3111
|
+
|
|
3112
|
+
/**
|
|
3113
|
+
* Vality Wallet API
|
|
3114
|
+
*
|
|
3115
|
+
* Contact: support@vality.dev
|
|
3116
|
+
*
|
|
3117
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3118
|
+
* https://openapi-generator.tech
|
|
3119
|
+
* Do not edit the class manually.
|
|
3120
|
+
*/
|
|
3121
|
+
|
|
3122
|
+
/**
|
|
3123
|
+
* Vality Wallet API
|
|
3124
|
+
*
|
|
3125
|
+
* Contact: support@vality.dev
|
|
3126
|
+
*
|
|
3127
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3128
|
+
* https://openapi-generator.tech
|
|
3129
|
+
* Do not edit the class manually.
|
|
3130
|
+
*/
|
|
3131
|
+
|
|
3132
|
+
/**
|
|
3133
|
+
* Vality Wallet API
|
|
3134
|
+
*
|
|
3135
|
+
* Contact: support@vality.dev
|
|
3136
|
+
*
|
|
3137
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3138
|
+
* https://openapi-generator.tech
|
|
3139
|
+
* Do not edit the class manually.
|
|
3140
|
+
*/
|
|
3141
|
+
|
|
3142
|
+
/**
|
|
3143
|
+
* Vality Wallet API
|
|
3144
|
+
*
|
|
3145
|
+
* Contact: support@vality.dev
|
|
3146
|
+
*
|
|
3147
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3148
|
+
* https://openapi-generator.tech
|
|
3149
|
+
* Do not edit the class manually.
|
|
3150
|
+
*/
|
|
3151
|
+
|
|
3152
|
+
/**
|
|
3153
|
+
* Vality Wallet API
|
|
3154
|
+
*
|
|
3155
|
+
* Contact: support@vality.dev
|
|
3156
|
+
*
|
|
3157
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3158
|
+
* https://openapi-generator.tech
|
|
3159
|
+
* Do not edit the class manually.
|
|
3160
|
+
*/
|
|
3161
|
+
|
|
3162
|
+
/**
|
|
3163
|
+
* Vality Wallet API
|
|
3164
|
+
*
|
|
3165
|
+
* Contact: support@vality.dev
|
|
3166
|
+
*
|
|
3167
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3168
|
+
* https://openapi-generator.tech
|
|
3169
|
+
* Do not edit the class manually.
|
|
3170
|
+
*/
|
|
3171
|
+
var ReceiverResource;
|
|
3172
|
+
(function (ReceiverResource) {
|
|
3173
|
+
ReceiverResource.TypeEnum = {
|
|
3174
|
+
BankCardReceiverResource: 'BankCardReceiverResource'
|
|
3175
|
+
};
|
|
3176
|
+
})(ReceiverResource || (ReceiverResource = {}));
|
|
3177
|
+
|
|
3178
|
+
/**
|
|
3179
|
+
* Vality Wallet API
|
|
3180
|
+
*
|
|
3181
|
+
* Contact: support@vality.dev
|
|
3182
|
+
*
|
|
3183
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3184
|
+
* https://openapi-generator.tech
|
|
3185
|
+
* Do not edit the class manually.
|
|
3186
|
+
*/
|
|
3187
|
+
var ReceiverResourceParams;
|
|
3188
|
+
(function (ReceiverResourceParams) {
|
|
3189
|
+
ReceiverResourceParams.TypeEnum = {
|
|
3190
|
+
BankCardReceiverResourceParams: 'BankCardReceiverResourceParams'
|
|
3191
|
+
};
|
|
3192
|
+
})(ReceiverResourceParams || (ReceiverResourceParams = {}));
|
|
3193
|
+
|
|
3194
|
+
var Report;
|
|
3195
|
+
(function (Report) {
|
|
3196
|
+
Report.StatusEnum = {
|
|
3197
|
+
Pending: 'pending',
|
|
3198
|
+
Created: 'created',
|
|
3199
|
+
Canceled: 'canceled'
|
|
3200
|
+
};
|
|
3201
|
+
Report.TypeEnum = {
|
|
3202
|
+
WithdrawalRegistry: 'withdrawalRegistry'
|
|
3203
|
+
};
|
|
3204
|
+
})(Report || (Report = {}));
|
|
3205
|
+
|
|
3206
|
+
/**
|
|
3207
|
+
* Vality Wallet API
|
|
3208
|
+
*
|
|
3209
|
+
* Contact: support@vality.dev
|
|
3210
|
+
*
|
|
3211
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3212
|
+
* https://openapi-generator.tech
|
|
3213
|
+
* Do not edit the class manually.
|
|
3214
|
+
*/
|
|
3215
|
+
|
|
3216
|
+
/**
|
|
3217
|
+
* Vality Wallet API
|
|
3218
|
+
*
|
|
3219
|
+
* Contact: support@vality.dev
|
|
3220
|
+
*
|
|
3221
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3222
|
+
* https://openapi-generator.tech
|
|
3223
|
+
* Do not edit the class manually.
|
|
3224
|
+
*/
|
|
3225
|
+
var ReportParams;
|
|
3226
|
+
(function (ReportParams) {
|
|
3227
|
+
ReportParams.ReportTypeEnum = {
|
|
3228
|
+
WithdrawalRegistry: 'withdrawalRegistry'
|
|
3229
|
+
};
|
|
3230
|
+
})(ReportParams || (ReportParams = {}));
|
|
3231
|
+
|
|
3232
|
+
/**
|
|
3233
|
+
* Vality Wallet API
|
|
3234
|
+
*
|
|
3235
|
+
* Contact: support@vality.dev
|
|
3236
|
+
*
|
|
3237
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3238
|
+
* https://openapi-generator.tech
|
|
3239
|
+
* Do not edit the class manually.
|
|
3240
|
+
*/
|
|
3241
|
+
|
|
3242
|
+
/**
|
|
3243
|
+
* Vality Wallet API
|
|
3244
|
+
*
|
|
3245
|
+
* Contact: support@vality.dev
|
|
3246
|
+
*
|
|
3247
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3248
|
+
* https://openapi-generator.tech
|
|
3249
|
+
* Do not edit the class manually.
|
|
3250
|
+
*/
|
|
3251
|
+
|
|
3252
|
+
/**
|
|
3253
|
+
* Vality Wallet API
|
|
3254
|
+
*
|
|
3255
|
+
* Contact: support@vality.dev
|
|
3256
|
+
*
|
|
3257
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3258
|
+
* https://openapi-generator.tech
|
|
3259
|
+
* Do not edit the class manually.
|
|
3260
|
+
*/
|
|
3261
|
+
var SenderResource;
|
|
3262
|
+
(function (SenderResource) {
|
|
3263
|
+
SenderResource.TypeEnum = {
|
|
3264
|
+
BankCardSenderResource: 'BankCardSenderResource'
|
|
3265
|
+
};
|
|
3266
|
+
})(SenderResource || (SenderResource = {}));
|
|
3267
|
+
|
|
3268
|
+
/**
|
|
3269
|
+
* Vality Wallet API
|
|
3270
|
+
*
|
|
3271
|
+
* Contact: support@vality.dev
|
|
3272
|
+
*
|
|
3273
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3274
|
+
* https://openapi-generator.tech
|
|
3275
|
+
* Do not edit the class manually.
|
|
3276
|
+
*/
|
|
3277
|
+
var SenderResourceParams;
|
|
3278
|
+
(function (SenderResourceParams) {
|
|
3279
|
+
SenderResourceParams.TypeEnum = {
|
|
3280
|
+
BankCardSenderResourceParams: 'BankCardSenderResourceParams'
|
|
3281
|
+
};
|
|
3282
|
+
})(SenderResourceParams || (SenderResourceParams = {}));
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
* Vality Wallet API
|
|
3286
|
+
*
|
|
3287
|
+
* Contact: support@vality.dev
|
|
3288
|
+
*
|
|
3289
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3290
|
+
* https://openapi-generator.tech
|
|
3291
|
+
* Do not edit the class manually.
|
|
3292
|
+
*/
|
|
3293
|
+
|
|
3294
|
+
/**
|
|
3295
|
+
* Vality Wallet API
|
|
3296
|
+
*
|
|
3297
|
+
* Contact: support@vality.dev
|
|
3298
|
+
*
|
|
3299
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3300
|
+
* https://openapi-generator.tech
|
|
3301
|
+
* Do not edit the class manually.
|
|
3302
|
+
*/
|
|
3303
|
+
|
|
3304
|
+
/**
|
|
3305
|
+
* Vality Wallet API
|
|
3306
|
+
*
|
|
3307
|
+
* Contact: support@vality.dev
|
|
3308
|
+
*
|
|
3309
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3310
|
+
* https://openapi-generator.tech
|
|
3311
|
+
* Do not edit the class manually.
|
|
3312
|
+
*/
|
|
3313
|
+
var UserInteractionChange;
|
|
3314
|
+
(function (UserInteractionChange) {
|
|
3315
|
+
UserInteractionChange.ChangeTypeEnum = {
|
|
3316
|
+
UserInteractionCreated: 'UserInteractionCreated',
|
|
3317
|
+
UserInteractionFinished: 'UserInteractionFinished'
|
|
3318
|
+
};
|
|
3319
|
+
})(UserInteractionChange || (UserInteractionChange = {}));
|
|
3320
|
+
|
|
3321
|
+
/**
|
|
3322
|
+
* Vality Wallet API
|
|
3323
|
+
*
|
|
3324
|
+
* Contact: support@vality.dev
|
|
3325
|
+
*
|
|
3326
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3327
|
+
* https://openapi-generator.tech
|
|
3328
|
+
* Do not edit the class manually.
|
|
3329
|
+
*/
|
|
3330
|
+
|
|
3331
|
+
/**
|
|
3332
|
+
* Vality Wallet API
|
|
3333
|
+
*
|
|
3334
|
+
* Contact: support@vality.dev
|
|
3335
|
+
*
|
|
3336
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3337
|
+
* https://openapi-generator.tech
|
|
3338
|
+
* Do not edit the class manually.
|
|
3339
|
+
*/
|
|
3340
|
+
|
|
3341
|
+
var W2WTransferStatus;
|
|
3342
|
+
(function (W2WTransferStatus) {
|
|
3343
|
+
W2WTransferStatus.StatusEnum = {
|
|
3344
|
+
Pending: 'Pending',
|
|
3345
|
+
Succeeded: 'Succeeded',
|
|
3346
|
+
Failed: 'Failed'
|
|
3347
|
+
};
|
|
3348
|
+
})(W2WTransferStatus || (W2WTransferStatus = {}));
|
|
3349
|
+
|
|
3350
|
+
/**
|
|
3351
|
+
* Vality Wallet API
|
|
3352
|
+
*
|
|
3353
|
+
* Contact: support@vality.dev
|
|
3354
|
+
*
|
|
3355
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3356
|
+
* https://openapi-generator.tech
|
|
3357
|
+
* Do not edit the class manually.
|
|
3358
|
+
*/
|
|
3359
|
+
|
|
3360
|
+
/**
|
|
3361
|
+
* Vality Wallet API
|
|
3362
|
+
*
|
|
3363
|
+
* Contact: support@vality.dev
|
|
3364
|
+
*
|
|
3365
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3366
|
+
* https://openapi-generator.tech
|
|
3367
|
+
* Do not edit the class manually.
|
|
3368
|
+
*/
|
|
3369
|
+
|
|
3370
|
+
/**
|
|
3371
|
+
* Vality Wallet API
|
|
3372
|
+
*
|
|
3373
|
+
* Contact: support@vality.dev
|
|
3374
|
+
*
|
|
3375
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3376
|
+
* https://openapi-generator.tech
|
|
3377
|
+
* Do not edit the class manually.
|
|
3378
|
+
*/
|
|
3379
|
+
|
|
3380
|
+
/**
|
|
3381
|
+
* Vality Wallet API
|
|
3382
|
+
*
|
|
3383
|
+
* Contact: support@vality.dev
|
|
3384
|
+
*
|
|
3385
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3386
|
+
* https://openapi-generator.tech
|
|
3387
|
+
* Do not edit the class manually.
|
|
3388
|
+
*/
|
|
3389
|
+
|
|
3390
|
+
/**
|
|
3391
|
+
* Vality Wallet API
|
|
3392
|
+
*
|
|
3393
|
+
* Contact: support@vality.dev
|
|
3394
|
+
*
|
|
3395
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3396
|
+
* https://openapi-generator.tech
|
|
3397
|
+
* Do not edit the class manually.
|
|
3398
|
+
*/
|
|
3399
|
+
var WebhookScope;
|
|
3400
|
+
(function (WebhookScope) {
|
|
3401
|
+
WebhookScope.TopicEnum = {
|
|
3402
|
+
WithdrawalsTopic: 'WithdrawalsTopic',
|
|
3403
|
+
DestinationsTopic: 'DestinationsTopic'
|
|
3404
|
+
};
|
|
3405
|
+
})(WebhookScope || (WebhookScope = {}));
|
|
3406
|
+
|
|
3407
|
+
var Withdrawal;
|
|
3408
|
+
(function (Withdrawal) {
|
|
3409
|
+
Withdrawal.StatusEnum = {
|
|
3410
|
+
Pending: 'Pending',
|
|
3411
|
+
Succeeded: 'Succeeded',
|
|
3412
|
+
Failed: 'Failed'
|
|
3413
|
+
};
|
|
3414
|
+
})(Withdrawal || (Withdrawal = {}));
|
|
3415
|
+
|
|
3416
|
+
/**
|
|
3417
|
+
* Vality Wallet API
|
|
3418
|
+
*
|
|
3419
|
+
* Contact: support@vality.dev
|
|
3420
|
+
*
|
|
3421
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3422
|
+
* https://openapi-generator.tech
|
|
3423
|
+
* Do not edit the class manually.
|
|
3424
|
+
*/
|
|
3425
|
+
|
|
3426
|
+
/**
|
|
3427
|
+
* Vality Wallet API
|
|
3428
|
+
*
|
|
3429
|
+
* Contact: support@vality.dev
|
|
3430
|
+
*
|
|
3431
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3432
|
+
* https://openapi-generator.tech
|
|
3433
|
+
* Do not edit the class manually.
|
|
3434
|
+
*/
|
|
3435
|
+
|
|
3436
|
+
/**
|
|
3437
|
+
* Vality Wallet API
|
|
3438
|
+
*
|
|
3439
|
+
* Contact: support@vality.dev
|
|
3440
|
+
*
|
|
3441
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3442
|
+
* https://openapi-generator.tech
|
|
3443
|
+
* Do not edit the class manually.
|
|
3444
|
+
*/
|
|
3445
|
+
var WithdrawalEventChange;
|
|
3446
|
+
(function (WithdrawalEventChange) {
|
|
3447
|
+
WithdrawalEventChange.TypeEnum = {
|
|
3448
|
+
WithdrawalStatusChanged: 'WithdrawalStatusChanged'
|
|
3449
|
+
};
|
|
3450
|
+
})(WithdrawalEventChange || (WithdrawalEventChange = {}));
|
|
3451
|
+
|
|
3452
|
+
/**
|
|
3453
|
+
* Vality Wallet API
|
|
3454
|
+
*
|
|
3455
|
+
* Contact: support@vality.dev
|
|
3456
|
+
*
|
|
3457
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3458
|
+
* https://openapi-generator.tech
|
|
3459
|
+
* Do not edit the class manually.
|
|
3460
|
+
*/
|
|
3461
|
+
var WithdrawalMethod;
|
|
3462
|
+
(function (WithdrawalMethod) {
|
|
3463
|
+
WithdrawalMethod.MethodEnum = {
|
|
3464
|
+
WithdrawalMethodBankCard: 'WithdrawalMethodBankCard',
|
|
3465
|
+
WithdrawalMethodDigitalWallet: 'WithdrawalMethodDigitalWallet',
|
|
3466
|
+
WithdrawalMethodGeneric: 'WithdrawalMethodGeneric'
|
|
3467
|
+
};
|
|
3468
|
+
})(WithdrawalMethod || (WithdrawalMethod = {}));
|
|
3469
|
+
|
|
3470
|
+
var WithdrawalParameters;
|
|
3471
|
+
(function (WithdrawalParameters) {
|
|
3472
|
+
WithdrawalParameters.StatusEnum = {
|
|
3473
|
+
Pending: 'Pending',
|
|
3474
|
+
Succeeded: 'Succeeded',
|
|
3475
|
+
Failed: 'Failed'
|
|
3476
|
+
};
|
|
3477
|
+
})(WithdrawalParameters || (WithdrawalParameters = {}));
|
|
3478
|
+
|
|
3479
|
+
/**
|
|
3480
|
+
* Vality Wallet API
|
|
3481
|
+
*
|
|
3482
|
+
* Contact: support@vality.dev
|
|
3483
|
+
*
|
|
3484
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3485
|
+
* https://openapi-generator.tech
|
|
3486
|
+
* Do not edit the class manually.
|
|
3487
|
+
*/
|
|
3488
|
+
|
|
3489
|
+
/**
|
|
3490
|
+
* Vality Wallet API
|
|
3491
|
+
*
|
|
3492
|
+
* Contact: support@vality.dev
|
|
3493
|
+
*
|
|
3494
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3495
|
+
* https://openapi-generator.tech
|
|
3496
|
+
* Do not edit the class manually.
|
|
3497
|
+
*/
|
|
3498
|
+
|
|
3499
|
+
/**
|
|
3500
|
+
* Vality Wallet API
|
|
3501
|
+
*
|
|
3502
|
+
* Contact: support@vality.dev
|
|
3503
|
+
*
|
|
3504
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3505
|
+
* https://openapi-generator.tech
|
|
3506
|
+
* Do not edit the class manually.
|
|
3507
|
+
*/
|
|
3508
|
+
|
|
3509
|
+
var WithdrawalStatus;
|
|
3510
|
+
(function (WithdrawalStatus) {
|
|
3511
|
+
WithdrawalStatus.StatusEnum = {
|
|
3512
|
+
Pending: 'Pending',
|
|
3513
|
+
Succeeded: 'Succeeded',
|
|
3514
|
+
Failed: 'Failed'
|
|
3515
|
+
};
|
|
3516
|
+
})(WithdrawalStatus || (WithdrawalStatus = {}));
|
|
3517
|
+
|
|
3518
|
+
var WithdrawalStatusChanged;
|
|
3519
|
+
(function (WithdrawalStatusChanged) {
|
|
3520
|
+
WithdrawalStatusChanged.StatusEnum = {
|
|
3521
|
+
Pending: 'Pending',
|
|
3522
|
+
Succeeded: 'Succeeded',
|
|
3523
|
+
Failed: 'Failed'
|
|
3524
|
+
};
|
|
3525
|
+
})(WithdrawalStatusChanged || (WithdrawalStatusChanged = {}));
|
|
3526
|
+
|
|
3527
|
+
var WithdrawalsTopic;
|
|
3528
|
+
(function (WithdrawalsTopic) {
|
|
3529
|
+
WithdrawalsTopic.EventTypesEnum = {
|
|
3530
|
+
WithdrawalStarted: 'WithdrawalStarted',
|
|
3531
|
+
WithdrawalSucceeded: 'WithdrawalSucceeded',
|
|
3532
|
+
WithdrawalFailed: 'WithdrawalFailed'
|
|
3533
|
+
};
|
|
3534
|
+
})(WithdrawalsTopic || (WithdrawalsTopic = {}));
|
|
3535
|
+
|
|
3536
|
+
class ApiModule {
|
|
3537
|
+
static forRoot(configurationFactory) {
|
|
3538
|
+
return {
|
|
3539
|
+
ngModule: ApiModule,
|
|
3540
|
+
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
3541
|
+
};
|
|
3542
|
+
}
|
|
3543
|
+
constructor(parentModule, http) {
|
|
3544
|
+
if (parentModule) {
|
|
3545
|
+
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
3546
|
+
}
|
|
3547
|
+
if (!http) {
|
|
3548
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
3549
|
+
'See also https://github.com/angular/angular/issues/20575');
|
|
3550
|
+
}
|
|
3551
|
+
}
|
|
3552
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3553
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: ApiModule });
|
|
3554
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ApiModule });
|
|
3555
|
+
}
|
|
3556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ApiModule, decorators: [{
|
|
3557
|
+
type: NgModule,
|
|
3558
|
+
args: [{
|
|
3559
|
+
imports: [],
|
|
3560
|
+
declarations: [],
|
|
3561
|
+
exports: [],
|
|
3562
|
+
providers: []
|
|
3563
|
+
}]
|
|
3564
|
+
}], ctorParameters: () => [{ type: ApiModule, decorators: [{
|
|
3565
|
+
type: Optional
|
|
3566
|
+
}, {
|
|
3567
|
+
type: SkipSelf
|
|
3568
|
+
}] }, { type: i1.HttpClient, decorators: [{
|
|
3569
|
+
type: Optional
|
|
3570
|
+
}] }] });
|
|
3571
|
+
|
|
3572
|
+
/**
|
|
3573
|
+
* Generated bundle index. Do not edit.
|
|
3574
|
+
*/
|
|
3575
|
+
|
|
3576
|
+
export { APIS, ApiModule, BASE_PATH, BadRequest, COLLECTION_FORMATS, Configuration, CurrenciesService, Deposit, DepositAdjustment, DepositAdjustmentStatus, DepositRevert, DepositRevertStatus, DepositStatus, DepositsService, Destination, DestinationAuthData, DestinationResource, DestinationStatus, DestinationsTopic, DownloadsService, IdentitiesService, ProvidersService, ReceiverResource, ReceiverResourceParams, Report, ReportParams, ReportsService, ResidencesService, SenderResource, SenderResourceParams, UserInteractionChange, W2WService, W2WTransferStatus, WalletsService, WebhookScope, WebhooksService, Withdrawal, WithdrawalEventChange, WithdrawalMethod, WithdrawalParameters, WithdrawalStatus, WithdrawalStatusChanged, WithdrawalsService, WithdrawalsTopic };
|
|
3577
|
+
//# sourceMappingURL=vality-swag-wallets.mjs.map
|