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