@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,784 @@
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 { CreateBlacklistReasonRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateBlacklistReasonResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { DeleteResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { GetBlacklistReasonResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListBlacklistReasonsResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateBlacklistReasonRequestDto } from '../models';
35
+ // @ts-ignore
36
+ import { UpdateBlacklistReasonResponseClass } from '../models';
37
+ // URLSearchParams not necessarily used
38
+ // @ts-ignore
39
+ import { URL, URLSearchParams } from 'url';
40
+ const FormData = require('form-data');
41
+ /**
42
+ * BlacklistReasonsApi - axios parameter creator
43
+ * @export
44
+ */
45
+ export const BlacklistReasonsApiAxiosParamCreator = function (configuration?: Configuration) {
46
+ return {
47
+ /**
48
+ * Create a new blacklist reason. **Required Permissions** \"partner-management.partners.create\"
49
+ * @summary Create the blacklist reason
50
+ * @param {CreateBlacklistReasonRequestDto} createBlacklistReasonRequestDto
51
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ createBlacklistReason: async (createBlacklistReasonRequestDto: CreateBlacklistReasonRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
56
+ // verify required parameter 'createBlacklistReasonRequestDto' is not null or undefined
57
+ assertParamExists('createBlacklistReason', 'createBlacklistReasonRequestDto', createBlacklistReasonRequestDto)
58
+ const localVarPath = `/partnerservice/v1/blacklist-reasons`;
59
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
60
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
61
+ let baseOptions;
62
+ let baseAccessToken;
63
+ if (configuration) {
64
+ baseOptions = configuration.baseOptions;
65
+ baseAccessToken = configuration.accessToken;
66
+ }
67
+
68
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
69
+ const localVarHeaderParameter = {} as any;
70
+ const localVarQueryParameter = {} as any;
71
+
72
+ // authentication bearer required
73
+ // http bearer authentication required
74
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
+
76
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
78
+ }
79
+
80
+
81
+
82
+ localVarHeaderParameter['Content-Type'] = 'application/json';
83
+
84
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
85
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
86
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
87
+ localVarRequestOptions.data = serializeDataIfNeeded(createBlacklistReasonRequestDto, localVarRequestOptions, configuration)
88
+
89
+ return {
90
+ url: toPathString(localVarUrlObj),
91
+ options: localVarRequestOptions,
92
+ };
93
+ },
94
+ /**
95
+ * Permanently deletes the blacklist reason. Supply the unique code that was returned when you created the blacklist reason and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
96
+ * @summary Delete the blacklist reason
97
+ * @param {string} code Unique identifier for the object.
98
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ deleteBlacklistReason: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
103
+ // verify required parameter 'code' is not null or undefined
104
+ assertParamExists('deleteBlacklistReason', 'code', code)
105
+ const localVarPath = `/partnerservice/v1/blacklist-reasons/{code}`
106
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
107
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
108
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
109
+ let baseOptions;
110
+ let baseAccessToken;
111
+ if (configuration) {
112
+ baseOptions = configuration.baseOptions;
113
+ baseAccessToken = configuration.accessToken;
114
+ }
115
+
116
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
117
+ const localVarHeaderParameter = {} as any;
118
+ const localVarQueryParameter = {} as any;
119
+
120
+ // authentication bearer required
121
+ // http bearer authentication required
122
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
+
124
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
126
+ }
127
+
128
+
129
+
130
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
131
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
132
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
133
+
134
+ return {
135
+ url: toPathString(localVarUrlObj),
136
+ options: localVarRequestOptions,
137
+ };
138
+ },
139
+ /**
140
+ * Retrieves the details of the blacklist reason that was previously created. Supply the unique blacklist reason code that was returned when you created it and Emil Api will return the corresponding blacklist reason information. **Required Permissions** \"partner-management.partners.view\"
141
+ * @summary Retrieve the blacklist reason
142
+ * @param {string} code Unique identifier for the object.
143
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ getBlacklistReason: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
+ // verify required parameter 'code' is not null or undefined
149
+ assertParamExists('getBlacklistReason', 'code', code)
150
+ const localVarPath = `/partnerservice/v1/blacklist-reasons/{code}`
151
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
154
+ let baseOptions;
155
+ let baseAccessToken;
156
+ if (configuration) {
157
+ baseOptions = configuration.baseOptions;
158
+ baseAccessToken = configuration.accessToken;
159
+ }
160
+
161
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
162
+ const localVarHeaderParameter = {} as any;
163
+ const localVarQueryParameter = {} as any;
164
+
165
+ // authentication bearer required
166
+ // http bearer authentication required
167
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
+
169
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
171
+ }
172
+
173
+
174
+
175
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
176
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
177
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
178
+
179
+ return {
180
+ url: toPathString(localVarUrlObj),
181
+ options: localVarRequestOptions,
182
+ };
183
+ },
184
+ /**
185
+ * Returns a list of blacklist-reasons you have previously created. The blacklist-reasons 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\"
186
+ * @summary List blacklist-reasons
187
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
188
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
189
+ * @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.
190
+ * @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: id, code, key, label, isActive, createdAt, updatedAt&lt;/i&gt;
191
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
192
+ * @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: id, code, key, label, createdAt, updatedAt&lt;/i&gt;
193
+ * @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;
194
+ * @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: id, code, key, label, isActive, createdAt, updatedAt&lt;/i&gt;
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ listBlacklistReasons: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
199
+ const localVarPath = `/partnerservice/v1/blacklist-reasons`;
200
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
201
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
202
+ let baseOptions;
203
+ let baseAccessToken;
204
+ if (configuration) {
205
+ baseOptions = configuration.baseOptions;
206
+ baseAccessToken = configuration.accessToken;
207
+ }
208
+
209
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
210
+ const localVarHeaderParameter = {} as any;
211
+ const localVarQueryParameter = {} as any;
212
+
213
+ // authentication bearer required
214
+ // http bearer authentication required
215
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
216
+
217
+ if (pageSize !== undefined) {
218
+ localVarQueryParameter['pageSize'] = pageSize;
219
+ }
220
+
221
+ if (pageToken !== undefined) {
222
+ localVarQueryParameter['pageToken'] = pageToken;
223
+ }
224
+
225
+ if (filter !== undefined) {
226
+ localVarQueryParameter['filter'] = filter;
227
+ }
228
+
229
+ if (search !== undefined) {
230
+ localVarQueryParameter['search'] = search;
231
+ }
232
+
233
+ if (order !== undefined) {
234
+ localVarQueryParameter['order'] = order;
235
+ }
236
+
237
+ if (expand !== undefined) {
238
+ localVarQueryParameter['expand'] = expand;
239
+ }
240
+
241
+ if (filters !== undefined) {
242
+ localVarQueryParameter['filters'] = filters;
243
+ }
244
+
245
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
247
+ }
248
+
249
+
250
+
251
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
253
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
254
+
255
+ return {
256
+ url: toPathString(localVarUrlObj),
257
+ options: localVarRequestOptions,
258
+ };
259
+ },
260
+ /**
261
+ * Partially updates the specified blacklist reason by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
262
+ * @summary Update the blacklist reason
263
+ * @param {string} code Unique identifier for the object.
264
+ * @param {UpdateBlacklistReasonRequestDto} updateBlacklistReasonRequestDto
265
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ updateBlacklistReason: async (code: string, updateBlacklistReasonRequestDto: UpdateBlacklistReasonRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
270
+ // verify required parameter 'code' is not null or undefined
271
+ assertParamExists('updateBlacklistReason', 'code', code)
272
+ // verify required parameter 'updateBlacklistReasonRequestDto' is not null or undefined
273
+ assertParamExists('updateBlacklistReason', 'updateBlacklistReasonRequestDto', updateBlacklistReasonRequestDto)
274
+ const localVarPath = `/partnerservice/v1/blacklist-reasons/{code}`
275
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
276
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
277
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
278
+ let baseOptions;
279
+ let baseAccessToken;
280
+ if (configuration) {
281
+ baseOptions = configuration.baseOptions;
282
+ baseAccessToken = configuration.accessToken;
283
+ }
284
+
285
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
286
+ const localVarHeaderParameter = {} as any;
287
+ const localVarQueryParameter = {} as any;
288
+
289
+ // authentication bearer required
290
+ // http bearer authentication required
291
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
292
+
293
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
294
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
295
+ }
296
+
297
+
298
+
299
+ localVarHeaderParameter['Content-Type'] = 'application/json';
300
+
301
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
302
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
303
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
304
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBlacklistReasonRequestDto, localVarRequestOptions, configuration)
305
+
306
+ return {
307
+ url: toPathString(localVarUrlObj),
308
+ options: localVarRequestOptions,
309
+ };
310
+ },
311
+ /**
312
+ * Partially updates the specified blacklist reason by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
313
+ * @summary Update blacklist reason status
314
+ * @param {string} code Unique identifier for the object.
315
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ updateBlacklistReasonStatus: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
320
+ // verify required parameter 'code' is not null or undefined
321
+ assertParamExists('updateBlacklistReasonStatus', 'code', code)
322
+ const localVarPath = `/partnerservice/v1/blacklist-reasons/{code}/status`
323
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
324
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
325
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
326
+ let baseOptions;
327
+ let baseAccessToken;
328
+ if (configuration) {
329
+ baseOptions = configuration.baseOptions;
330
+ baseAccessToken = configuration.accessToken;
331
+ }
332
+
333
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
334
+ const localVarHeaderParameter = {} as any;
335
+ const localVarQueryParameter = {} as any;
336
+
337
+ // authentication bearer required
338
+ // http bearer authentication required
339
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
340
+
341
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
342
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
343
+ }
344
+
345
+
346
+
347
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
348
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
349
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
350
+
351
+ return {
352
+ url: toPathString(localVarUrlObj),
353
+ options: localVarRequestOptions,
354
+ };
355
+ },
356
+ }
357
+ };
358
+
359
+ /**
360
+ * BlacklistReasonsApi - functional programming interface
361
+ * @export
362
+ */
363
+ export const BlacklistReasonsApiFp = function(configuration?: Configuration) {
364
+ const localVarAxiosParamCreator = BlacklistReasonsApiAxiosParamCreator(configuration)
365
+ return {
366
+ /**
367
+ * Create a new blacklist reason. **Required Permissions** \"partner-management.partners.create\"
368
+ * @summary Create the blacklist reason
369
+ * @param {CreateBlacklistReasonRequestDto} createBlacklistReasonRequestDto
370
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ async createBlacklistReason(createBlacklistReasonRequestDto: CreateBlacklistReasonRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBlacklistReasonResponseClass>> {
375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBlacklistReason(createBlacklistReasonRequestDto, authorization, options);
376
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
377
+ },
378
+ /**
379
+ * Permanently deletes the blacklist reason. Supply the unique code that was returned when you created the blacklist reason and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
380
+ * @summary Delete the blacklist reason
381
+ * @param {string} code Unique identifier for the object.
382
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ async deleteBlacklistReason(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
387
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBlacklistReason(code, authorization, options);
388
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
389
+ },
390
+ /**
391
+ * Retrieves the details of the blacklist reason that was previously created. Supply the unique blacklist reason code that was returned when you created it and Emil Api will return the corresponding blacklist reason information. **Required Permissions** \"partner-management.partners.view\"
392
+ * @summary Retrieve the blacklist reason
393
+ * @param {string} code Unique identifier for the object.
394
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
395
+ * @param {*} [options] Override http request option.
396
+ * @throws {RequiredError}
397
+ */
398
+ async getBlacklistReason(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBlacklistReasonResponseClass>> {
399
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBlacklistReason(code, authorization, options);
400
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
401
+ },
402
+ /**
403
+ * Returns a list of blacklist-reasons you have previously created. The blacklist-reasons 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\"
404
+ * @summary List blacklist-reasons
405
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
406
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
407
+ * @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.
408
+ * @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: id, code, key, label, isActive, createdAt, updatedAt&lt;/i&gt;
409
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
410
+ * @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: id, code, key, label, createdAt, updatedAt&lt;/i&gt;
411
+ * @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;
412
+ * @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: id, code, key, label, isActive, createdAt, updatedAt&lt;/i&gt;
413
+ * @param {*} [options] Override http request option.
414
+ * @throws {RequiredError}
415
+ */
416
+ async listBlacklistReasons(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBlacklistReasonsResponseClass>> {
417
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBlacklistReasons(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
418
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
419
+ },
420
+ /**
421
+ * Partially updates the specified blacklist reason by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
422
+ * @summary Update the blacklist reason
423
+ * @param {string} code Unique identifier for the object.
424
+ * @param {UpdateBlacklistReasonRequestDto} updateBlacklistReasonRequestDto
425
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ */
429
+ async updateBlacklistReason(code: string, updateBlacklistReasonRequestDto: UpdateBlacklistReasonRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBlacklistReasonResponseClass>> {
430
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBlacklistReason(code, updateBlacklistReasonRequestDto, authorization, options);
431
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
432
+ },
433
+ /**
434
+ * Partially updates the specified blacklist reason by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
435
+ * @summary Update blacklist reason status
436
+ * @param {string} code Unique identifier for the object.
437
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ */
441
+ async updateBlacklistReasonStatus(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBlacklistReasonResponseClass>> {
442
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBlacklistReasonStatus(code, authorization, options);
443
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
444
+ },
445
+ }
446
+ };
447
+
448
+ /**
449
+ * BlacklistReasonsApi - factory interface
450
+ * @export
451
+ */
452
+ export const BlacklistReasonsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
453
+ const localVarFp = BlacklistReasonsApiFp(configuration)
454
+ return {
455
+ /**
456
+ * Create a new blacklist reason. **Required Permissions** \"partner-management.partners.create\"
457
+ * @summary Create the blacklist reason
458
+ * @param {CreateBlacklistReasonRequestDto} createBlacklistReasonRequestDto
459
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ */
463
+ createBlacklistReason(createBlacklistReasonRequestDto: CreateBlacklistReasonRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBlacklistReasonResponseClass> {
464
+ return localVarFp.createBlacklistReason(createBlacklistReasonRequestDto, authorization, options).then((request) => request(axios, basePath));
465
+ },
466
+ /**
467
+ * Permanently deletes the blacklist reason. Supply the unique code that was returned when you created the blacklist reason and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
468
+ * @summary Delete the blacklist reason
469
+ * @param {string} code Unique identifier for the object.
470
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
471
+ * @param {*} [options] Override http request option.
472
+ * @throws {RequiredError}
473
+ */
474
+ deleteBlacklistReason(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
475
+ return localVarFp.deleteBlacklistReason(code, authorization, options).then((request) => request(axios, basePath));
476
+ },
477
+ /**
478
+ * Retrieves the details of the blacklist reason that was previously created. Supply the unique blacklist reason code that was returned when you created it and Emil Api will return the corresponding blacklist reason information. **Required Permissions** \"partner-management.partners.view\"
479
+ * @summary Retrieve the blacklist reason
480
+ * @param {string} code Unique identifier for the object.
481
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
482
+ * @param {*} [options] Override http request option.
483
+ * @throws {RequiredError}
484
+ */
485
+ getBlacklistReason(code: string, authorization?: string, options?: any): AxiosPromise<GetBlacklistReasonResponseClass> {
486
+ return localVarFp.getBlacklistReason(code, authorization, options).then((request) => request(axios, basePath));
487
+ },
488
+ /**
489
+ * Returns a list of blacklist-reasons you have previously created. The blacklist-reasons 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\"
490
+ * @summary List blacklist-reasons
491
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
492
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
493
+ * @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.
494
+ * @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: id, code, key, label, isActive, createdAt, updatedAt&lt;/i&gt;
495
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
496
+ * @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: id, code, key, label, createdAt, updatedAt&lt;/i&gt;
497
+ * @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;
498
+ * @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: id, code, key, label, isActive, createdAt, updatedAt&lt;/i&gt;
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ listBlacklistReasons(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBlacklistReasonsResponseClass> {
503
+ return localVarFp.listBlacklistReasons(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
504
+ },
505
+ /**
506
+ * Partially updates the specified blacklist reason by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
507
+ * @summary Update the blacklist reason
508
+ * @param {string} code Unique identifier for the object.
509
+ * @param {UpdateBlacklistReasonRequestDto} updateBlacklistReasonRequestDto
510
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ */
514
+ updateBlacklistReason(code: string, updateBlacklistReasonRequestDto: UpdateBlacklistReasonRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBlacklistReasonResponseClass> {
515
+ return localVarFp.updateBlacklistReason(code, updateBlacklistReasonRequestDto, authorization, options).then((request) => request(axios, basePath));
516
+ },
517
+ /**
518
+ * Partially updates the specified blacklist reason by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
519
+ * @summary Update blacklist reason status
520
+ * @param {string} code Unique identifier for the object.
521
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ */
525
+ updateBlacklistReasonStatus(code: string, authorization?: string, options?: any): AxiosPromise<UpdateBlacklistReasonResponseClass> {
526
+ return localVarFp.updateBlacklistReasonStatus(code, authorization, options).then((request) => request(axios, basePath));
527
+ },
528
+ };
529
+ };
530
+
531
+ /**
532
+ * Request parameters for createBlacklistReason operation in BlacklistReasonsApi.
533
+ * @export
534
+ * @interface BlacklistReasonsApiCreateBlacklistReasonRequest
535
+ */
536
+ export interface BlacklistReasonsApiCreateBlacklistReasonRequest {
537
+ /**
538
+ *
539
+ * @type {CreateBlacklistReasonRequestDto}
540
+ * @memberof BlacklistReasonsApiCreateBlacklistReason
541
+ */
542
+ readonly createBlacklistReasonRequestDto: CreateBlacklistReasonRequestDto
543
+
544
+ /**
545
+ * Bearer Token: provided by the login endpoint under the name accessToken.
546
+ * @type {string}
547
+ * @memberof BlacklistReasonsApiCreateBlacklistReason
548
+ */
549
+ readonly authorization?: string
550
+ }
551
+
552
+ /**
553
+ * Request parameters for deleteBlacklistReason operation in BlacklistReasonsApi.
554
+ * @export
555
+ * @interface BlacklistReasonsApiDeleteBlacklistReasonRequest
556
+ */
557
+ export interface BlacklistReasonsApiDeleteBlacklistReasonRequest {
558
+ /**
559
+ * Unique identifier for the object.
560
+ * @type {string}
561
+ * @memberof BlacklistReasonsApiDeleteBlacklistReason
562
+ */
563
+ readonly code: string
564
+
565
+ /**
566
+ * Bearer Token: provided by the login endpoint under the name accessToken.
567
+ * @type {string}
568
+ * @memberof BlacklistReasonsApiDeleteBlacklistReason
569
+ */
570
+ readonly authorization?: string
571
+ }
572
+
573
+ /**
574
+ * Request parameters for getBlacklistReason operation in BlacklistReasonsApi.
575
+ * @export
576
+ * @interface BlacklistReasonsApiGetBlacklistReasonRequest
577
+ */
578
+ export interface BlacklistReasonsApiGetBlacklistReasonRequest {
579
+ /**
580
+ * Unique identifier for the object.
581
+ * @type {string}
582
+ * @memberof BlacklistReasonsApiGetBlacklistReason
583
+ */
584
+ readonly code: string
585
+
586
+ /**
587
+ * Bearer Token: provided by the login endpoint under the name accessToken.
588
+ * @type {string}
589
+ * @memberof BlacklistReasonsApiGetBlacklistReason
590
+ */
591
+ readonly authorization?: string
592
+ }
593
+
594
+ /**
595
+ * Request parameters for listBlacklistReasons operation in BlacklistReasonsApi.
596
+ * @export
597
+ * @interface BlacklistReasonsApiListBlacklistReasonsRequest
598
+ */
599
+ export interface BlacklistReasonsApiListBlacklistReasonsRequest {
600
+ /**
601
+ * Bearer Token: provided by the login endpoint under the name accessToken.
602
+ * @type {string}
603
+ * @memberof BlacklistReasonsApiListBlacklistReasons
604
+ */
605
+ readonly authorization?: string
606
+
607
+ /**
608
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
609
+ * @type {number}
610
+ * @memberof BlacklistReasonsApiListBlacklistReasons
611
+ */
612
+ readonly pageSize?: number
613
+
614
+ /**
615
+ * 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.
616
+ * @type {string}
617
+ * @memberof BlacklistReasonsApiListBlacklistReasons
618
+ */
619
+ readonly pageToken?: string
620
+
621
+ /**
622
+ * 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: id, code, key, label, isActive, createdAt, updatedAt&lt;/i&gt;
623
+ * @type {string}
624
+ * @memberof BlacklistReasonsApiListBlacklistReasons
625
+ */
626
+ readonly filter?: string
627
+
628
+ /**
629
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
630
+ * @type {string}
631
+ * @memberof BlacklistReasonsApiListBlacklistReasons
632
+ */
633
+ readonly search?: string
634
+
635
+ /**
636
+ * 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: id, code, key, label, createdAt, updatedAt&lt;/i&gt;
637
+ * @type {string}
638
+ * @memberof BlacklistReasonsApiListBlacklistReasons
639
+ */
640
+ readonly order?: string
641
+
642
+ /**
643
+ * 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;
644
+ * @type {string}
645
+ * @memberof BlacklistReasonsApiListBlacklistReasons
646
+ */
647
+ readonly expand?: string
648
+
649
+ /**
650
+ * 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: id, code, key, label, isActive, createdAt, updatedAt&lt;/i&gt;
651
+ * @type {string}
652
+ * @memberof BlacklistReasonsApiListBlacklistReasons
653
+ */
654
+ readonly filters?: string
655
+ }
656
+
657
+ /**
658
+ * Request parameters for updateBlacklistReason operation in BlacklistReasonsApi.
659
+ * @export
660
+ * @interface BlacklistReasonsApiUpdateBlacklistReasonRequest
661
+ */
662
+ export interface BlacklistReasonsApiUpdateBlacklistReasonRequest {
663
+ /**
664
+ * Unique identifier for the object.
665
+ * @type {string}
666
+ * @memberof BlacklistReasonsApiUpdateBlacklistReason
667
+ */
668
+ readonly code: string
669
+
670
+ /**
671
+ *
672
+ * @type {UpdateBlacklistReasonRequestDto}
673
+ * @memberof BlacklistReasonsApiUpdateBlacklistReason
674
+ */
675
+ readonly updateBlacklistReasonRequestDto: UpdateBlacklistReasonRequestDto
676
+
677
+ /**
678
+ * Bearer Token: provided by the login endpoint under the name accessToken.
679
+ * @type {string}
680
+ * @memberof BlacklistReasonsApiUpdateBlacklistReason
681
+ */
682
+ readonly authorization?: string
683
+ }
684
+
685
+ /**
686
+ * Request parameters for updateBlacklistReasonStatus operation in BlacklistReasonsApi.
687
+ * @export
688
+ * @interface BlacklistReasonsApiUpdateBlacklistReasonStatusRequest
689
+ */
690
+ export interface BlacklistReasonsApiUpdateBlacklistReasonStatusRequest {
691
+ /**
692
+ * Unique identifier for the object.
693
+ * @type {string}
694
+ * @memberof BlacklistReasonsApiUpdateBlacklistReasonStatus
695
+ */
696
+ readonly code: string
697
+
698
+ /**
699
+ * Bearer Token: provided by the login endpoint under the name accessToken.
700
+ * @type {string}
701
+ * @memberof BlacklistReasonsApiUpdateBlacklistReasonStatus
702
+ */
703
+ readonly authorization?: string
704
+ }
705
+
706
+ /**
707
+ * BlacklistReasonsApi - object-oriented interface
708
+ * @export
709
+ * @class BlacklistReasonsApi
710
+ * @extends {BaseAPI}
711
+ */
712
+ export class BlacklistReasonsApi extends BaseAPI {
713
+ /**
714
+ * Create a new blacklist reason. **Required Permissions** \"partner-management.partners.create\"
715
+ * @summary Create the blacklist reason
716
+ * @param {BlacklistReasonsApiCreateBlacklistReasonRequest} requestParameters Request parameters.
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ * @memberof BlacklistReasonsApi
720
+ */
721
+ public createBlacklistReason(requestParameters: BlacklistReasonsApiCreateBlacklistReasonRequest, options?: AxiosRequestConfig) {
722
+ return BlacklistReasonsApiFp(this.configuration).createBlacklistReason(requestParameters.createBlacklistReasonRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
723
+ }
724
+
725
+ /**
726
+ * Permanently deletes the blacklist reason. Supply the unique code that was returned when you created the blacklist reason and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
727
+ * @summary Delete the blacklist reason
728
+ * @param {BlacklistReasonsApiDeleteBlacklistReasonRequest} requestParameters Request parameters.
729
+ * @param {*} [options] Override http request option.
730
+ * @throws {RequiredError}
731
+ * @memberof BlacklistReasonsApi
732
+ */
733
+ public deleteBlacklistReason(requestParameters: BlacklistReasonsApiDeleteBlacklistReasonRequest, options?: AxiosRequestConfig) {
734
+ return BlacklistReasonsApiFp(this.configuration).deleteBlacklistReason(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
735
+ }
736
+
737
+ /**
738
+ * Retrieves the details of the blacklist reason that was previously created. Supply the unique blacklist reason code that was returned when you created it and Emil Api will return the corresponding blacklist reason information. **Required Permissions** \"partner-management.partners.view\"
739
+ * @summary Retrieve the blacklist reason
740
+ * @param {BlacklistReasonsApiGetBlacklistReasonRequest} requestParameters Request parameters.
741
+ * @param {*} [options] Override http request option.
742
+ * @throws {RequiredError}
743
+ * @memberof BlacklistReasonsApi
744
+ */
745
+ public getBlacklistReason(requestParameters: BlacklistReasonsApiGetBlacklistReasonRequest, options?: AxiosRequestConfig) {
746
+ return BlacklistReasonsApiFp(this.configuration).getBlacklistReason(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
747
+ }
748
+
749
+ /**
750
+ * Returns a list of blacklist-reasons you have previously created. The blacklist-reasons 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\"
751
+ * @summary List blacklist-reasons
752
+ * @param {BlacklistReasonsApiListBlacklistReasonsRequest} requestParameters Request parameters.
753
+ * @param {*} [options] Override http request option.
754
+ * @throws {RequiredError}
755
+ * @memberof BlacklistReasonsApi
756
+ */
757
+ public listBlacklistReasons(requestParameters: BlacklistReasonsApiListBlacklistReasonsRequest = {}, options?: AxiosRequestConfig) {
758
+ return BlacklistReasonsApiFp(this.configuration).listBlacklistReasons(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
759
+ }
760
+
761
+ /**
762
+ * Partially updates the specified blacklist reason by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
763
+ * @summary Update the blacklist reason
764
+ * @param {BlacklistReasonsApiUpdateBlacklistReasonRequest} requestParameters Request parameters.
765
+ * @param {*} [options] Override http request option.
766
+ * @throws {RequiredError}
767
+ * @memberof BlacklistReasonsApi
768
+ */
769
+ public updateBlacklistReason(requestParameters: BlacklistReasonsApiUpdateBlacklistReasonRequest, options?: AxiosRequestConfig) {
770
+ return BlacklistReasonsApiFp(this.configuration).updateBlacklistReason(requestParameters.code, requestParameters.updateBlacklistReasonRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
771
+ }
772
+
773
+ /**
774
+ * Partially updates the specified blacklist reason by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
775
+ * @summary Update blacklist reason status
776
+ * @param {BlacklistReasonsApiUpdateBlacklistReasonStatusRequest} requestParameters Request parameters.
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ * @memberof BlacklistReasonsApi
780
+ */
781
+ public updateBlacklistReasonStatus(requestParameters: BlacklistReasonsApiUpdateBlacklistReasonStatusRequest, options?: AxiosRequestConfig) {
782
+ return BlacklistReasonsApiFp(this.configuration).updateBlacklistReasonStatus(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
783
+ }
784
+ }