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

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