@emilgroup/partner-sdk-node 1.22.1-beta.6 → 1.22.1-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +16 -1
  2. package/README.md +2 -2
  3. package/api/blacklist-api.ts +666 -0
  4. package/api/blacklist-reasons-api.ts +784 -0
  5. package/api/{default-api.ts → health-api.ts} +13 -13
  6. package/api.ts +6 -2
  7. package/dist/api/blacklist-api.d.ts +375 -0
  8. package/dist/api/blacklist-api.js +633 -0
  9. package/dist/api/blacklist-reasons-api.d.ts +440 -0
  10. package/dist/api/blacklist-reasons-api.js +732 -0
  11. package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
  12. package/dist/api/{default-api.js → health-api.js} +22 -22
  13. package/dist/api.d.ts +3 -1
  14. package/dist/api.js +3 -1
  15. package/dist/models/blacklist-item-class.d.ts +78 -0
  16. package/dist/models/blacklist-item-class.js +15 -0
  17. package/dist/models/blacklist-reason-class.d.ts +78 -0
  18. package/dist/models/blacklist-reason-class.js +15 -0
  19. package/dist/models/create-blacklist-item-request-dto.d.ts +36 -0
  20. package/dist/models/create-blacklist-item-request-dto.js +15 -0
  21. package/dist/models/create-blacklist-item-response-class.d.ts +25 -0
  22. package/dist/models/create-blacklist-item-response-class.js +15 -0
  23. package/dist/models/create-blacklist-reason-request-dto.d.ts +36 -0
  24. package/dist/models/create-blacklist-reason-request-dto.js +15 -0
  25. package/dist/models/create-blacklist-reason-response-class.d.ts +25 -0
  26. package/dist/models/create-blacklist-reason-response-class.js +15 -0
  27. package/dist/models/get-blacklist-item-response-class.d.ts +25 -0
  28. package/dist/models/get-blacklist-item-response-class.js +15 -0
  29. package/dist/models/get-blacklist-reason-response-class.d.ts +25 -0
  30. package/dist/models/get-blacklist-reason-response-class.js +15 -0
  31. package/dist/models/index.d.ts +13 -0
  32. package/dist/models/index.js +13 -0
  33. package/dist/models/is-blacklisted-response-class.d.ts +54 -0
  34. package/dist/models/is-blacklisted-response-class.js +15 -0
  35. package/dist/models/list-blacklist-items-response-class.d.ts +43 -0
  36. package/dist/models/list-blacklist-items-response-class.js +15 -0
  37. package/dist/models/list-blacklist-reasons-response-class.d.ts +43 -0
  38. package/dist/models/list-blacklist-reasons-response-class.js +15 -0
  39. package/dist/models/update-blacklist-reason-request-dto.d.ts +30 -0
  40. package/dist/models/update-blacklist-reason-request-dto.js +15 -0
  41. package/dist/models/update-blacklist-reason-response-class.d.ts +25 -0
  42. package/dist/models/update-blacklist-reason-response-class.js +15 -0
  43. package/models/blacklist-item-class.ts +84 -0
  44. package/models/blacklist-reason-class.ts +84 -0
  45. package/models/create-blacklist-item-request-dto.ts +42 -0
  46. package/models/create-blacklist-item-response-class.ts +31 -0
  47. package/models/create-blacklist-reason-request-dto.ts +42 -0
  48. package/models/create-blacklist-reason-response-class.ts +31 -0
  49. package/models/get-blacklist-item-response-class.ts +31 -0
  50. package/models/get-blacklist-reason-response-class.ts +31 -0
  51. package/models/index.ts +13 -0
  52. package/models/is-blacklisted-response-class.ts +60 -0
  53. package/models/list-blacklist-items-response-class.ts +49 -0
  54. package/models/list-blacklist-reasons-response-class.ts +49 -0
  55. package/models/update-blacklist-reason-request-dto.ts +36 -0
  56. package/models/update-blacklist-reason-response-class.ts +31 -0
  57. package/package.json +1 -1
@@ -0,0 +1,666 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerService
5
+ * The EMIL PartnerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateBlacklistItemRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateBlacklistItemResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { DeleteResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { GetBlacklistItemResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { IsBlacklistedResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { ListBlacklistItemsResponseClass } from '../models';
35
+ // URLSearchParams not necessarily used
36
+ // @ts-ignore
37
+ import { URL, URLSearchParams } from 'url';
38
+ const FormData = require('form-data');
39
+ /**
40
+ * BlacklistApi - axios parameter creator
41
+ * @export
42
+ */
43
+ export const BlacklistApiAxiosParamCreator = function (configuration?: Configuration) {
44
+ return {
45
+ /**
46
+ * Add a partner to the blacklist. **Required Permissions** \"partner-management.partners.create\"
47
+ * @summary Create the blacklist item
48
+ * @param {CreateBlacklistItemRequestDto} createBlacklistItemRequestDto
49
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ createBlacklistItem: async (createBlacklistItemRequestDto: CreateBlacklistItemRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
+ // verify required parameter 'createBlacklistItemRequestDto' is not null or undefined
55
+ assertParamExists('createBlacklistItem', 'createBlacklistItemRequestDto', createBlacklistItemRequestDto)
56
+ const localVarPath = `/partnerservice/v1/partner-blacklist`;
57
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
+ let baseOptions;
60
+ let baseAccessToken;
61
+ if (configuration) {
62
+ baseOptions = configuration.baseOptions;
63
+ baseAccessToken = configuration.accessToken;
64
+ }
65
+
66
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
67
+ const localVarHeaderParameter = {} as any;
68
+ const localVarQueryParameter = {} as any;
69
+
70
+ // authentication bearer required
71
+ // http bearer authentication required
72
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
+
74
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
75
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ }
77
+
78
+
79
+
80
+ localVarHeaderParameter['Content-Type'] = 'application/json';
81
+
82
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
83
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
85
+ localVarRequestOptions.data = serializeDataIfNeeded(createBlacklistItemRequestDto, localVarRequestOptions, configuration)
86
+
87
+ return {
88
+ url: toPathString(localVarUrlObj),
89
+ options: localVarRequestOptions,
90
+ };
91
+ },
92
+ /**
93
+ * Permanently deletes the blacklist item. Supply the unique code that was returned when you created the blacklist item and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
94
+ * @summary Delete the blacklist item
95
+ * @param {string} code Unique identifier for the object.
96
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ deleteBlacklistItem: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ // verify required parameter 'code' is not null or undefined
102
+ assertParamExists('deleteBlacklistItem', 'code', code)
103
+ const localVarPath = `/partnerservice/v1/partner-blacklist/{code}`
104
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ let baseAccessToken;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ baseAccessToken = configuration.accessToken;
112
+ }
113
+
114
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
115
+ const localVarHeaderParameter = {} as any;
116
+ const localVarQueryParameter = {} as any;
117
+
118
+ // authentication bearer required
119
+ // http bearer authentication required
120
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
+
122
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
123
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
+ }
125
+
126
+
127
+
128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
131
+
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ },
137
+ /**
138
+ * Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
139
+ * @summary Retrieve the blacklist item
140
+ * @param {string} code Unique identifier for the object.
141
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ getBlacklistItem: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ // verify required parameter 'code' is not null or undefined
147
+ assertParamExists('getBlacklistItem', 'code', code)
148
+ const localVarPath = `/partnerservice/v1/partner-blacklist/{code}`
149
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
150
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
151
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
152
+ let baseOptions;
153
+ let baseAccessToken;
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ baseAccessToken = configuration.accessToken;
157
+ }
158
+
159
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
160
+ const localVarHeaderParameter = {} as any;
161
+ const localVarQueryParameter = {} as any;
162
+
163
+ // authentication bearer required
164
+ // http bearer authentication required
165
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
166
+
167
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
168
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
169
+ }
170
+
171
+
172
+
173
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
174
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
175
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
176
+
177
+ return {
178
+ url: toPathString(localVarUrlObj),
179
+ options: localVarRequestOptions,
180
+ };
181
+ },
182
+ /**
183
+ * Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
184
+ * @summary Check if a partner is blacklisted
185
+ * @param {string} partnerCode
186
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ isBlacklisted: async (partnerCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
191
+ // verify required parameter 'partnerCode' is not null or undefined
192
+ assertParamExists('isBlacklisted', 'partnerCode', partnerCode)
193
+ const localVarPath = `/partnerservice/v1/partner-blacklist/by-partner/{partnerCode}`
194
+ .replace(`{${"partnerCode"}}`, encodeURIComponent(String(partnerCode)));
195
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
196
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
197
+ let baseOptions;
198
+ let baseAccessToken;
199
+ if (configuration) {
200
+ baseOptions = configuration.baseOptions;
201
+ baseAccessToken = configuration.accessToken;
202
+ }
203
+
204
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
205
+ const localVarHeaderParameter = {} as any;
206
+ const localVarQueryParameter = {} as any;
207
+
208
+ // authentication bearer required
209
+ // http bearer authentication required
210
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
211
+
212
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
213
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
214
+ }
215
+
216
+
217
+
218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
220
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
221
+
222
+ return {
223
+ url: toPathString(localVarUrlObj),
224
+ options: localVarRequestOptions,
225
+ };
226
+ },
227
+ /**
228
+ * Returns a list of blacklist-items you have previously created. The blacklist-items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
229
+ * @summary List blacklist-items
230
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
231
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
232
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
233
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerCode, reasonCode, blockedFrom&lt;/i&gt;
234
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
235
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerCode, reasonCode, blockedFrom, createdAt, updatedAt&lt;/i&gt;
236
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
237
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerCode, reasonCode, blockedFrom&lt;/i&gt;
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ listBlacklistItems: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
242
+ const localVarPath = `/partnerservice/v1/partner-blacklist`;
243
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
244
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
245
+ let baseOptions;
246
+ let baseAccessToken;
247
+ if (configuration) {
248
+ baseOptions = configuration.baseOptions;
249
+ baseAccessToken = configuration.accessToken;
250
+ }
251
+
252
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
253
+ const localVarHeaderParameter = {} as any;
254
+ const localVarQueryParameter = {} as any;
255
+
256
+ // authentication bearer required
257
+ // http bearer authentication required
258
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
259
+
260
+ if (pageSize !== undefined) {
261
+ localVarQueryParameter['pageSize'] = pageSize;
262
+ }
263
+
264
+ if (pageToken !== undefined) {
265
+ localVarQueryParameter['pageToken'] = pageToken;
266
+ }
267
+
268
+ if (filter !== undefined) {
269
+ localVarQueryParameter['filter'] = filter;
270
+ }
271
+
272
+ if (search !== undefined) {
273
+ localVarQueryParameter['search'] = search;
274
+ }
275
+
276
+ if (order !== undefined) {
277
+ localVarQueryParameter['order'] = order;
278
+ }
279
+
280
+ if (expand !== undefined) {
281
+ localVarQueryParameter['expand'] = expand;
282
+ }
283
+
284
+ if (filters !== undefined) {
285
+ localVarQueryParameter['filters'] = filters;
286
+ }
287
+
288
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
289
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
290
+ }
291
+
292
+
293
+
294
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
295
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
296
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
297
+
298
+ return {
299
+ url: toPathString(localVarUrlObj),
300
+ options: localVarRequestOptions,
301
+ };
302
+ },
303
+ }
304
+ };
305
+
306
+ /**
307
+ * BlacklistApi - functional programming interface
308
+ * @export
309
+ */
310
+ export const BlacklistApiFp = function(configuration?: Configuration) {
311
+ const localVarAxiosParamCreator = BlacklistApiAxiosParamCreator(configuration)
312
+ return {
313
+ /**
314
+ * Add a partner to the blacklist. **Required Permissions** \"partner-management.partners.create\"
315
+ * @summary Create the blacklist item
316
+ * @param {CreateBlacklistItemRequestDto} createBlacklistItemRequestDto
317
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ */
321
+ async createBlacklistItem(createBlacklistItemRequestDto: CreateBlacklistItemRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBlacklistItemResponseClass>> {
322
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBlacklistItem(createBlacklistItemRequestDto, authorization, options);
323
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
324
+ },
325
+ /**
326
+ * Permanently deletes the blacklist item. Supply the unique code that was returned when you created the blacklist item and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
327
+ * @summary Delete the blacklist item
328
+ * @param {string} code Unique identifier for the object.
329
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
330
+ * @param {*} [options] Override http request option.
331
+ * @throws {RequiredError}
332
+ */
333
+ async deleteBlacklistItem(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
334
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBlacklistItem(code, authorization, options);
335
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
336
+ },
337
+ /**
338
+ * Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
339
+ * @summary Retrieve the blacklist item
340
+ * @param {string} code Unique identifier for the object.
341
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ async getBlacklistItem(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBlacklistItemResponseClass>> {
346
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBlacklistItem(code, authorization, options);
347
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
348
+ },
349
+ /**
350
+ * Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
351
+ * @summary Check if a partner is blacklisted
352
+ * @param {string} partnerCode
353
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ async isBlacklisted(partnerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IsBlacklistedResponseClass>> {
358
+ const localVarAxiosArgs = await localVarAxiosParamCreator.isBlacklisted(partnerCode, authorization, options);
359
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
360
+ },
361
+ /**
362
+ * Returns a list of blacklist-items you have previously created. The blacklist-items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
363
+ * @summary List blacklist-items
364
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
365
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
366
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
367
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerCode, reasonCode, blockedFrom&lt;/i&gt;
368
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
369
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerCode, reasonCode, blockedFrom, createdAt, updatedAt&lt;/i&gt;
370
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
371
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerCode, reasonCode, blockedFrom&lt;/i&gt;
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ */
375
+ async listBlacklistItems(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBlacklistItemsResponseClass>> {
376
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBlacklistItems(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
377
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
378
+ },
379
+ }
380
+ };
381
+
382
+ /**
383
+ * BlacklistApi - factory interface
384
+ * @export
385
+ */
386
+ export const BlacklistApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
387
+ const localVarFp = BlacklistApiFp(configuration)
388
+ return {
389
+ /**
390
+ * Add a partner to the blacklist. **Required Permissions** \"partner-management.partners.create\"
391
+ * @summary Create the blacklist item
392
+ * @param {CreateBlacklistItemRequestDto} createBlacklistItemRequestDto
393
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ createBlacklistItem(createBlacklistItemRequestDto: CreateBlacklistItemRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBlacklistItemResponseClass> {
398
+ return localVarFp.createBlacklistItem(createBlacklistItemRequestDto, authorization, options).then((request) => request(axios, basePath));
399
+ },
400
+ /**
401
+ * Permanently deletes the blacklist item. Supply the unique code that was returned when you created the blacklist item and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
402
+ * @summary Delete the blacklist item
403
+ * @param {string} code Unique identifier for the object.
404
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ */
408
+ deleteBlacklistItem(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
409
+ return localVarFp.deleteBlacklistItem(code, authorization, options).then((request) => request(axios, basePath));
410
+ },
411
+ /**
412
+ * Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
413
+ * @summary Retrieve the blacklist item
414
+ * @param {string} code Unique identifier for the object.
415
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
416
+ * @param {*} [options] Override http request option.
417
+ * @throws {RequiredError}
418
+ */
419
+ getBlacklistItem(code: string, authorization?: string, options?: any): AxiosPromise<GetBlacklistItemResponseClass> {
420
+ return localVarFp.getBlacklistItem(code, authorization, options).then((request) => request(axios, basePath));
421
+ },
422
+ /**
423
+ * Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
424
+ * @summary Check if a partner is blacklisted
425
+ * @param {string} partnerCode
426
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
427
+ * @param {*} [options] Override http request option.
428
+ * @throws {RequiredError}
429
+ */
430
+ isBlacklisted(partnerCode: string, authorization?: string, options?: any): AxiosPromise<IsBlacklistedResponseClass> {
431
+ return localVarFp.isBlacklisted(partnerCode, authorization, options).then((request) => request(axios, basePath));
432
+ },
433
+ /**
434
+ * Returns a list of blacklist-items you have previously created. The blacklist-items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
435
+ * @summary List blacklist-items
436
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
437
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
438
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
439
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerCode, reasonCode, blockedFrom&lt;/i&gt;
440
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
441
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerCode, reasonCode, blockedFrom, createdAt, updatedAt&lt;/i&gt;
442
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
443
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerCode, reasonCode, blockedFrom&lt;/i&gt;
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ listBlacklistItems(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBlacklistItemsResponseClass> {
448
+ return localVarFp.listBlacklistItems(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
449
+ },
450
+ };
451
+ };
452
+
453
+ /**
454
+ * Request parameters for createBlacklistItem operation in BlacklistApi.
455
+ * @export
456
+ * @interface BlacklistApiCreateBlacklistItemRequest
457
+ */
458
+ export interface BlacklistApiCreateBlacklistItemRequest {
459
+ /**
460
+ *
461
+ * @type {CreateBlacklistItemRequestDto}
462
+ * @memberof BlacklistApiCreateBlacklistItem
463
+ */
464
+ readonly createBlacklistItemRequestDto: CreateBlacklistItemRequestDto
465
+
466
+ /**
467
+ * Bearer Token: provided by the login endpoint under the name accessToken.
468
+ * @type {string}
469
+ * @memberof BlacklistApiCreateBlacklistItem
470
+ */
471
+ readonly authorization?: string
472
+ }
473
+
474
+ /**
475
+ * Request parameters for deleteBlacklistItem operation in BlacklistApi.
476
+ * @export
477
+ * @interface BlacklistApiDeleteBlacklistItemRequest
478
+ */
479
+ export interface BlacklistApiDeleteBlacklistItemRequest {
480
+ /**
481
+ * Unique identifier for the object.
482
+ * @type {string}
483
+ * @memberof BlacklistApiDeleteBlacklistItem
484
+ */
485
+ readonly code: string
486
+
487
+ /**
488
+ * Bearer Token: provided by the login endpoint under the name accessToken.
489
+ * @type {string}
490
+ * @memberof BlacklistApiDeleteBlacklistItem
491
+ */
492
+ readonly authorization?: string
493
+ }
494
+
495
+ /**
496
+ * Request parameters for getBlacklistItem operation in BlacklistApi.
497
+ * @export
498
+ * @interface BlacklistApiGetBlacklistItemRequest
499
+ */
500
+ export interface BlacklistApiGetBlacklistItemRequest {
501
+ /**
502
+ * Unique identifier for the object.
503
+ * @type {string}
504
+ * @memberof BlacklistApiGetBlacklistItem
505
+ */
506
+ readonly code: string
507
+
508
+ /**
509
+ * Bearer Token: provided by the login endpoint under the name accessToken.
510
+ * @type {string}
511
+ * @memberof BlacklistApiGetBlacklistItem
512
+ */
513
+ readonly authorization?: string
514
+ }
515
+
516
+ /**
517
+ * Request parameters for isBlacklisted operation in BlacklistApi.
518
+ * @export
519
+ * @interface BlacklistApiIsBlacklistedRequest
520
+ */
521
+ export interface BlacklistApiIsBlacklistedRequest {
522
+ /**
523
+ *
524
+ * @type {string}
525
+ * @memberof BlacklistApiIsBlacklisted
526
+ */
527
+ readonly partnerCode: string
528
+
529
+ /**
530
+ * Bearer Token: provided by the login endpoint under the name accessToken.
531
+ * @type {string}
532
+ * @memberof BlacklistApiIsBlacklisted
533
+ */
534
+ readonly authorization?: string
535
+ }
536
+
537
+ /**
538
+ * Request parameters for listBlacklistItems operation in BlacklistApi.
539
+ * @export
540
+ * @interface BlacklistApiListBlacklistItemsRequest
541
+ */
542
+ export interface BlacklistApiListBlacklistItemsRequest {
543
+ /**
544
+ * Bearer Token: provided by the login endpoint under the name accessToken.
545
+ * @type {string}
546
+ * @memberof BlacklistApiListBlacklistItems
547
+ */
548
+ readonly authorization?: string
549
+
550
+ /**
551
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
552
+ * @type {number}
553
+ * @memberof BlacklistApiListBlacklistItems
554
+ */
555
+ readonly pageSize?: number
556
+
557
+ /**
558
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
559
+ * @type {string}
560
+ * @memberof BlacklistApiListBlacklistItems
561
+ */
562
+ readonly pageToken?: string
563
+
564
+ /**
565
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerCode, reasonCode, blockedFrom&lt;/i&gt;
566
+ * @type {string}
567
+ * @memberof BlacklistApiListBlacklistItems
568
+ */
569
+ readonly filter?: string
570
+
571
+ /**
572
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
573
+ * @type {string}
574
+ * @memberof BlacklistApiListBlacklistItems
575
+ */
576
+ readonly search?: string
577
+
578
+ /**
579
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerCode, reasonCode, blockedFrom, createdAt, updatedAt&lt;/i&gt;
580
+ * @type {string}
581
+ * @memberof BlacklistApiListBlacklistItems
582
+ */
583
+ readonly order?: string
584
+
585
+ /**
586
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
587
+ * @type {string}
588
+ * @memberof BlacklistApiListBlacklistItems
589
+ */
590
+ readonly expand?: string
591
+
592
+ /**
593
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerCode, reasonCode, blockedFrom&lt;/i&gt;
594
+ * @type {string}
595
+ * @memberof BlacklistApiListBlacklistItems
596
+ */
597
+ readonly filters?: string
598
+ }
599
+
600
+ /**
601
+ * BlacklistApi - object-oriented interface
602
+ * @export
603
+ * @class BlacklistApi
604
+ * @extends {BaseAPI}
605
+ */
606
+ export class BlacklistApi extends BaseAPI {
607
+ /**
608
+ * Add a partner to the blacklist. **Required Permissions** \"partner-management.partners.create\"
609
+ * @summary Create the blacklist item
610
+ * @param {BlacklistApiCreateBlacklistItemRequest} requestParameters Request parameters.
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ * @memberof BlacklistApi
614
+ */
615
+ public createBlacklistItem(requestParameters: BlacklistApiCreateBlacklistItemRequest, options?: AxiosRequestConfig) {
616
+ return BlacklistApiFp(this.configuration).createBlacklistItem(requestParameters.createBlacklistItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
617
+ }
618
+
619
+ /**
620
+ * Permanently deletes the blacklist item. Supply the unique code that was returned when you created the blacklist item and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
621
+ * @summary Delete the blacklist item
622
+ * @param {BlacklistApiDeleteBlacklistItemRequest} requestParameters Request parameters.
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ * @memberof BlacklistApi
626
+ */
627
+ public deleteBlacklistItem(requestParameters: BlacklistApiDeleteBlacklistItemRequest, options?: AxiosRequestConfig) {
628
+ return BlacklistApiFp(this.configuration).deleteBlacklistItem(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
629
+ }
630
+
631
+ /**
632
+ * Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
633
+ * @summary Retrieve the blacklist item
634
+ * @param {BlacklistApiGetBlacklistItemRequest} requestParameters Request parameters.
635
+ * @param {*} [options] Override http request option.
636
+ * @throws {RequiredError}
637
+ * @memberof BlacklistApi
638
+ */
639
+ public getBlacklistItem(requestParameters: BlacklistApiGetBlacklistItemRequest, options?: AxiosRequestConfig) {
640
+ return BlacklistApiFp(this.configuration).getBlacklistItem(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
641
+ }
642
+
643
+ /**
644
+ * Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
645
+ * @summary Check if a partner is blacklisted
646
+ * @param {BlacklistApiIsBlacklistedRequest} requestParameters Request parameters.
647
+ * @param {*} [options] Override http request option.
648
+ * @throws {RequiredError}
649
+ * @memberof BlacklistApi
650
+ */
651
+ public isBlacklisted(requestParameters: BlacklistApiIsBlacklistedRequest, options?: AxiosRequestConfig) {
652
+ return BlacklistApiFp(this.configuration).isBlacklisted(requestParameters.partnerCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
653
+ }
654
+
655
+ /**
656
+ * Returns a list of blacklist-items you have previously created. The blacklist-items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
657
+ * @summary List blacklist-items
658
+ * @param {BlacklistApiListBlacklistItemsRequest} requestParameters Request parameters.
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ * @memberof BlacklistApi
662
+ */
663
+ public listBlacklistItems(requestParameters: BlacklistApiListBlacklistItemsRequest = {}, options?: AxiosRequestConfig) {
664
+ return BlacklistApiFp(this.configuration).listBlacklistItems(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
665
+ }
666
+ }