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

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