@emilgroup/partner-sdk 1.22.1-beta.13 → 1.22.1-beta.14

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