@emilgroup/partner-sdk 1.21.1-beta.2 → 1.21.1-beta.4

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