@emilgroup/insurance-sdk-node 1.57.0 → 1.58.0

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 (42) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-items-api.ts +712 -0
  4. package/api/commission-agreement-products-api.ts +4 -4
  5. package/api/commission-agreement-versions-api.ts +4 -4
  6. package/api/commission-agreements-api.ts +4 -4
  7. package/api/commission-recipients-api.ts +4 -4
  8. package/api.ts +2 -0
  9. package/dist/api/commission-agreement-items-api.d.ts +403 -0
  10. package/dist/api/commission-agreement-items-api.js +654 -0
  11. package/dist/api/commission-agreement-products-api.d.ts +4 -4
  12. package/dist/api/commission-agreement-products-api.js +3 -3
  13. package/dist/api/commission-agreement-versions-api.d.ts +4 -4
  14. package/dist/api/commission-agreement-versions-api.js +3 -3
  15. package/dist/api/commission-agreements-api.d.ts +4 -4
  16. package/dist/api/commission-agreements-api.js +3 -3
  17. package/dist/api/commission-recipients-api.d.ts +4 -4
  18. package/dist/api/commission-recipients-api.js +3 -3
  19. package/dist/api.d.ts +1 -0
  20. package/dist/api.js +1 -0
  21. package/dist/models/create-commission-agreement-item-request-dto.d.ts +36 -0
  22. package/dist/models/create-commission-agreement-item-request-dto.js +15 -0
  23. package/dist/models/create-commission-agreement-item-response-class.d.ts +25 -0
  24. package/dist/models/create-commission-agreement-item-response-class.js +15 -0
  25. package/dist/models/get-commission-agreement-item-response-class.d.ts +25 -0
  26. package/dist/models/get-commission-agreement-item-response-class.js +15 -0
  27. package/dist/models/index.d.ts +6 -0
  28. package/dist/models/index.js +6 -0
  29. package/dist/models/list-commission-agreement-items-response-class.d.ts +31 -0
  30. package/dist/models/list-commission-agreement-items-response-class.js +15 -0
  31. package/dist/models/update-commission-agreement-item-request-dto.d.ts +36 -0
  32. package/dist/models/update-commission-agreement-item-request-dto.js +15 -0
  33. package/dist/models/update-commission-agreement-item-response-class.d.ts +25 -0
  34. package/dist/models/update-commission-agreement-item-response-class.js +15 -0
  35. package/models/create-commission-agreement-item-request-dto.ts +42 -0
  36. package/models/create-commission-agreement-item-response-class.ts +31 -0
  37. package/models/get-commission-agreement-item-response-class.ts +31 -0
  38. package/models/index.ts +6 -0
  39. package/models/list-commission-agreement-items-response-class.ts +37 -0
  40. package/models/update-commission-agreement-item-request-dto.ts +42 -0
  41. package/models/update-commission-agreement-item-response-class.ts +31 -0
  42. package/package.json +1 -1
@@ -0,0 +1,712 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL InsuranceService
5
+ * The EMIL InsuranceService 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 { CreateCommissionAgreementItemRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateCommissionAgreementItemResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { DeleteResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { GetCommissionAgreementItemResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListCommissionAgreementItemsResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateCommissionAgreementItemRequestDto } from '../models';
35
+ // @ts-ignore
36
+ import { UpdateCommissionAgreementItemResponseClass } from '../models';
37
+ // URLSearchParams not necessarily used
38
+ // @ts-ignore
39
+ import { URL, URLSearchParams } from 'url';
40
+ const FormData = require('form-data');
41
+ /**
42
+ * CommissionAgreementItemsApi - axios parameter creator
43
+ * @export
44
+ */
45
+ export const CommissionAgreementItemsApiAxiosParamCreator = function (configuration?: Configuration) {
46
+ return {
47
+ /**
48
+ * This will create the commission agreement item.
49
+ * @summary Create the Commission agreement item
50
+ * @param {string} code
51
+ * @param {CreateCommissionAgreementItemRequestDto} createCommissionAgreementItemRequestDto
52
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ createCommissionAgreementItem: async (code: string, createCommissionAgreementItemRequestDto: CreateCommissionAgreementItemRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
57
+ // verify required parameter 'code' is not null or undefined
58
+ assertParamExists('createCommissionAgreementItem', 'code', code)
59
+ // verify required parameter 'createCommissionAgreementItemRequestDto' is not null or undefined
60
+ assertParamExists('createCommissionAgreementItem', 'createCommissionAgreementItemRequestDto', createCommissionAgreementItemRequestDto)
61
+ const localVarPath = `/insuranceservice/v1/commission-agreements/versions/{code}/items`
62
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
63
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
64
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
65
+ let baseOptions;
66
+ let baseAccessToken;
67
+ if (configuration) {
68
+ baseOptions = configuration.baseOptions;
69
+ baseAccessToken = configuration.accessToken;
70
+ }
71
+
72
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
73
+ const localVarHeaderParameter = {} as any;
74
+ const localVarQueryParameter = {} as any;
75
+
76
+ // authentication bearer required
77
+ // http bearer authentication required
78
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
79
+
80
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
81
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
82
+ }
83
+
84
+
85
+
86
+ localVarHeaderParameter['Content-Type'] = 'application/json';
87
+
88
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
89
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
91
+ localVarRequestOptions.data = serializeDataIfNeeded(createCommissionAgreementItemRequestDto, localVarRequestOptions, configuration)
92
+
93
+ return {
94
+ url: toPathString(localVarUrlObj),
95
+ options: localVarRequestOptions,
96
+ };
97
+ },
98
+ /**
99
+ * Permanently deletes the commission agreement item. Supply the unique code that was returned when you created the commission agreement item and this will delete it.
100
+ * @summary Delete the commission agreement item
101
+ * @param {string} code
102
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ deleteCommissionAgreementItem: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
107
+ // verify required parameter 'code' is not null or undefined
108
+ assertParamExists('deleteCommissionAgreementItem', 'code', code)
109
+ const localVarPath = `/insuranceservice/v1/commission-agreements/versions/items/{code}`
110
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
113
+ let baseOptions;
114
+ let baseAccessToken;
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ baseAccessToken = configuration.accessToken;
118
+ }
119
+
120
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
121
+ const localVarHeaderParameter = {} as any;
122
+ const localVarQueryParameter = {} as any;
123
+
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
127
+
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+
132
+
133
+
134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
137
+
138
+ return {
139
+ url: toPathString(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ };
142
+ },
143
+ /**
144
+ * Retrieves the details of the commission agreement item that was previously created. Supply the unique commission agreement item code that was returned when you created it and Emil Api will return the corresponding commission agreement item information.
145
+ * @summary Retrieve the commission agreement item
146
+ * @param {string} code
147
+ * @param {string} expand
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ getCommissionAgreementItem: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
153
+ // verify required parameter 'code' is not null or undefined
154
+ assertParamExists('getCommissionAgreementItem', 'code', code)
155
+ // verify required parameter 'expand' is not null or undefined
156
+ assertParamExists('getCommissionAgreementItem', 'expand', expand)
157
+ const localVarPath = `/insuranceservice/v1/commission-agreements/versions/items/{code}`
158
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
160
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
161
+ let baseOptions;
162
+ let baseAccessToken;
163
+ if (configuration) {
164
+ baseOptions = configuration.baseOptions;
165
+ baseAccessToken = configuration.accessToken;
166
+ }
167
+
168
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
169
+ const localVarHeaderParameter = {} as any;
170
+ const localVarQueryParameter = {} as any;
171
+
172
+ // authentication bearer required
173
+ // http bearer authentication required
174
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
175
+
176
+ if (expand !== undefined) {
177
+ localVarQueryParameter['expand'] = expand;
178
+ }
179
+
180
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
181
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
182
+ }
183
+
184
+
185
+
186
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
187
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
188
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
189
+
190
+ return {
191
+ url: toPathString(localVarUrlObj),
192
+ options: localVarRequestOptions,
193
+ };
194
+ },
195
+ /**
196
+ * Returns a list of commission agreement items you have previously created. The commission agreement items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
197
+ * @summary List commission agreement items
198
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
199
+ * @param {number} [pageSize] Page size.
200
+ * @param {string} [pageToken] Page token.
201
+ * @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: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
202
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: itemName, itemDescription, commissionFormula, code&lt;/i&gt;
203
+ * @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, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt&lt;/i&gt;
204
+ * @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; &lt;i&gt;Allowed values: &lt;i&gt;
205
+ * @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: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ listCommissionAgreementItems: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
210
+ const localVarPath = `/insuranceservice/v1/commission-agreements/versions/items`;
211
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
212
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
213
+ let baseOptions;
214
+ let baseAccessToken;
215
+ if (configuration) {
216
+ baseOptions = configuration.baseOptions;
217
+ baseAccessToken = configuration.accessToken;
218
+ }
219
+
220
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
221
+ const localVarHeaderParameter = {} as any;
222
+ const localVarQueryParameter = {} as any;
223
+
224
+ // authentication bearer required
225
+ // http bearer authentication required
226
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
227
+
228
+ if (pageSize !== undefined) {
229
+ localVarQueryParameter['pageSize'] = pageSize;
230
+ }
231
+
232
+ if (pageToken !== undefined) {
233
+ localVarQueryParameter['pageToken'] = pageToken;
234
+ }
235
+
236
+ if (filter !== undefined) {
237
+ localVarQueryParameter['filter'] = filter;
238
+ }
239
+
240
+ if (search !== undefined) {
241
+ localVarQueryParameter['search'] = search;
242
+ }
243
+
244
+ if (order !== undefined) {
245
+ localVarQueryParameter['order'] = order;
246
+ }
247
+
248
+ if (expand !== undefined) {
249
+ localVarQueryParameter['expand'] = expand;
250
+ }
251
+
252
+ if (filters !== undefined) {
253
+ localVarQueryParameter['filters'] = filters;
254
+ }
255
+
256
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
257
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
258
+ }
259
+
260
+
261
+
262
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
263
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
264
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
265
+
266
+ return {
267
+ url: toPathString(localVarUrlObj),
268
+ options: localVarRequestOptions,
269
+ };
270
+ },
271
+ /**
272
+ * Updates the specified commission agreement item by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
273
+ * @summary Update the commission agreement item
274
+ * @param {string} code
275
+ * @param {UpdateCommissionAgreementItemRequestDto} updateCommissionAgreementItemRequestDto
276
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
277
+ * @param {*} [options] Override http request option.
278
+ * @throws {RequiredError}
279
+ */
280
+ updateCommissionAgreementItem: async (code: string, updateCommissionAgreementItemRequestDto: UpdateCommissionAgreementItemRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
281
+ // verify required parameter 'code' is not null or undefined
282
+ assertParamExists('updateCommissionAgreementItem', 'code', code)
283
+ // verify required parameter 'updateCommissionAgreementItemRequestDto' is not null or undefined
284
+ assertParamExists('updateCommissionAgreementItem', 'updateCommissionAgreementItemRequestDto', updateCommissionAgreementItemRequestDto)
285
+ const localVarPath = `/insuranceservice/v1/commission-agreements/versions/items/{code}`
286
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
287
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
288
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
289
+ let baseOptions;
290
+ let baseAccessToken;
291
+ if (configuration) {
292
+ baseOptions = configuration.baseOptions;
293
+ baseAccessToken = configuration.accessToken;
294
+ }
295
+
296
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
297
+ const localVarHeaderParameter = {} as any;
298
+ const localVarQueryParameter = {} as any;
299
+
300
+ // authentication bearer required
301
+ // http bearer authentication required
302
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
303
+
304
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
306
+ }
307
+
308
+
309
+
310
+ localVarHeaderParameter['Content-Type'] = 'application/json';
311
+
312
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
313
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
314
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
315
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCommissionAgreementItemRequestDto, localVarRequestOptions, configuration)
316
+
317
+ return {
318
+ url: toPathString(localVarUrlObj),
319
+ options: localVarRequestOptions,
320
+ };
321
+ },
322
+ }
323
+ };
324
+
325
+ /**
326
+ * CommissionAgreementItemsApi - functional programming interface
327
+ * @export
328
+ */
329
+ export const CommissionAgreementItemsApiFp = function(configuration?: Configuration) {
330
+ const localVarAxiosParamCreator = CommissionAgreementItemsApiAxiosParamCreator(configuration)
331
+ return {
332
+ /**
333
+ * This will create the commission agreement item.
334
+ * @summary Create the Commission agreement item
335
+ * @param {string} code
336
+ * @param {CreateCommissionAgreementItemRequestDto} createCommissionAgreementItemRequestDto
337
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
338
+ * @param {*} [options] Override http request option.
339
+ * @throws {RequiredError}
340
+ */
341
+ async createCommissionAgreementItem(code: string, createCommissionAgreementItemRequestDto: CreateCommissionAgreementItemRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionAgreementItemResponseClass>> {
342
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionAgreementItem(code, createCommissionAgreementItemRequestDto, authorization, options);
343
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
344
+ },
345
+ /**
346
+ * Permanently deletes the commission agreement item. Supply the unique code that was returned when you created the commission agreement item and this will delete it.
347
+ * @summary Delete the commission agreement item
348
+ * @param {string} code
349
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ */
353
+ async deleteCommissionAgreementItem(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
354
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionAgreementItem(code, authorization, options);
355
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
356
+ },
357
+ /**
358
+ * Retrieves the details of the commission agreement item that was previously created. Supply the unique commission agreement item code that was returned when you created it and Emil Api will return the corresponding commission agreement item information.
359
+ * @summary Retrieve the commission agreement item
360
+ * @param {string} code
361
+ * @param {string} expand
362
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ */
366
+ async getCommissionAgreementItem(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionAgreementItemResponseClass>> {
367
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionAgreementItem(code, expand, authorization, options);
368
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
369
+ },
370
+ /**
371
+ * Returns a list of commission agreement items you have previously created. The commission agreement items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
372
+ * @summary List commission agreement items
373
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
374
+ * @param {number} [pageSize] Page size.
375
+ * @param {string} [pageToken] Page token.
376
+ * @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: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
377
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: itemName, itemDescription, commissionFormula, code&lt;/i&gt;
378
+ * @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, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt&lt;/i&gt;
379
+ * @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; &lt;i&gt;Allowed values: &lt;i&gt;
380
+ * @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: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
381
+ * @param {*} [options] Override http request option.
382
+ * @throws {RequiredError}
383
+ */
384
+ async listCommissionAgreementItems(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementItemsResponseClass>> {
385
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementItems(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
386
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
387
+ },
388
+ /**
389
+ * Updates the specified commission agreement item by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
390
+ * @summary Update the commission agreement item
391
+ * @param {string} code
392
+ * @param {UpdateCommissionAgreementItemRequestDto} updateCommissionAgreementItemRequestDto
393
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ async updateCommissionAgreementItem(code: string, updateCommissionAgreementItemRequestDto: UpdateCommissionAgreementItemRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementItemResponseClass>> {
398
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreementItem(code, updateCommissionAgreementItemRequestDto, authorization, options);
399
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
400
+ },
401
+ }
402
+ };
403
+
404
+ /**
405
+ * CommissionAgreementItemsApi - factory interface
406
+ * @export
407
+ */
408
+ export const CommissionAgreementItemsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
409
+ const localVarFp = CommissionAgreementItemsApiFp(configuration)
410
+ return {
411
+ /**
412
+ * This will create the commission agreement item.
413
+ * @summary Create the Commission agreement item
414
+ * @param {string} code
415
+ * @param {CreateCommissionAgreementItemRequestDto} createCommissionAgreementItemRequestDto
416
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ createCommissionAgreementItem(code: string, createCommissionAgreementItemRequestDto: CreateCommissionAgreementItemRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionAgreementItemResponseClass> {
421
+ return localVarFp.createCommissionAgreementItem(code, createCommissionAgreementItemRequestDto, authorization, options).then((request) => request(axios, basePath));
422
+ },
423
+ /**
424
+ * Permanently deletes the commission agreement item. Supply the unique code that was returned when you created the commission agreement item and this will delete it.
425
+ * @summary Delete the commission agreement item
426
+ * @param {string} code
427
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
428
+ * @param {*} [options] Override http request option.
429
+ * @throws {RequiredError}
430
+ */
431
+ deleteCommissionAgreementItem(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
432
+ return localVarFp.deleteCommissionAgreementItem(code, authorization, options).then((request) => request(axios, basePath));
433
+ },
434
+ /**
435
+ * Retrieves the details of the commission agreement item that was previously created. Supply the unique commission agreement item code that was returned when you created it and Emil Api will return the corresponding commission agreement item information.
436
+ * @summary Retrieve the commission agreement item
437
+ * @param {string} code
438
+ * @param {string} expand
439
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ getCommissionAgreementItem(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionAgreementItemResponseClass> {
444
+ return localVarFp.getCommissionAgreementItem(code, expand, authorization, options).then((request) => request(axios, basePath));
445
+ },
446
+ /**
447
+ * Returns a list of commission agreement items you have previously created. The commission agreement items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
448
+ * @summary List commission agreement items
449
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
450
+ * @param {number} [pageSize] Page size.
451
+ * @param {string} [pageToken] Page token.
452
+ * @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: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
453
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: itemName, itemDescription, commissionFormula, code&lt;/i&gt;
454
+ * @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, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt&lt;/i&gt;
455
+ * @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; &lt;i&gt;Allowed values: &lt;i&gt;
456
+ * @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: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ */
460
+ listCommissionAgreementItems(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementItemsResponseClass> {
461
+ return localVarFp.listCommissionAgreementItems(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
462
+ },
463
+ /**
464
+ * Updates the specified commission agreement item by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
465
+ * @summary Update the commission agreement item
466
+ * @param {string} code
467
+ * @param {UpdateCommissionAgreementItemRequestDto} updateCommissionAgreementItemRequestDto
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
+ updateCommissionAgreementItem(code: string, updateCommissionAgreementItemRequestDto: UpdateCommissionAgreementItemRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementItemResponseClass> {
473
+ return localVarFp.updateCommissionAgreementItem(code, updateCommissionAgreementItemRequestDto, authorization, options).then((request) => request(axios, basePath));
474
+ },
475
+ };
476
+ };
477
+
478
+ /**
479
+ * Request parameters for createCommissionAgreementItem operation in CommissionAgreementItemsApi.
480
+ * @export
481
+ * @interface CommissionAgreementItemsApiCreateCommissionAgreementItemRequest
482
+ */
483
+ export interface CommissionAgreementItemsApiCreateCommissionAgreementItemRequest {
484
+ /**
485
+ *
486
+ * @type {string}
487
+ * @memberof CommissionAgreementItemsApiCreateCommissionAgreementItem
488
+ */
489
+ readonly code: string
490
+
491
+ /**
492
+ *
493
+ * @type {CreateCommissionAgreementItemRequestDto}
494
+ * @memberof CommissionAgreementItemsApiCreateCommissionAgreementItem
495
+ */
496
+ readonly createCommissionAgreementItemRequestDto: CreateCommissionAgreementItemRequestDto
497
+
498
+ /**
499
+ * Bearer Token: provided by the login endpoint under the name accessToken.
500
+ * @type {string}
501
+ * @memberof CommissionAgreementItemsApiCreateCommissionAgreementItem
502
+ */
503
+ readonly authorization?: string
504
+ }
505
+
506
+ /**
507
+ * Request parameters for deleteCommissionAgreementItem operation in CommissionAgreementItemsApi.
508
+ * @export
509
+ * @interface CommissionAgreementItemsApiDeleteCommissionAgreementItemRequest
510
+ */
511
+ export interface CommissionAgreementItemsApiDeleteCommissionAgreementItemRequest {
512
+ /**
513
+ *
514
+ * @type {string}
515
+ * @memberof CommissionAgreementItemsApiDeleteCommissionAgreementItem
516
+ */
517
+ readonly code: string
518
+
519
+ /**
520
+ * Bearer Token: provided by the login endpoint under the name accessToken.
521
+ * @type {string}
522
+ * @memberof CommissionAgreementItemsApiDeleteCommissionAgreementItem
523
+ */
524
+ readonly authorization?: string
525
+ }
526
+
527
+ /**
528
+ * Request parameters for getCommissionAgreementItem operation in CommissionAgreementItemsApi.
529
+ * @export
530
+ * @interface CommissionAgreementItemsApiGetCommissionAgreementItemRequest
531
+ */
532
+ export interface CommissionAgreementItemsApiGetCommissionAgreementItemRequest {
533
+ /**
534
+ *
535
+ * @type {string}
536
+ * @memberof CommissionAgreementItemsApiGetCommissionAgreementItem
537
+ */
538
+ readonly code: string
539
+
540
+ /**
541
+ *
542
+ * @type {string}
543
+ * @memberof CommissionAgreementItemsApiGetCommissionAgreementItem
544
+ */
545
+ readonly expand: string
546
+
547
+ /**
548
+ * Bearer Token: provided by the login endpoint under the name accessToken.
549
+ * @type {string}
550
+ * @memberof CommissionAgreementItemsApiGetCommissionAgreementItem
551
+ */
552
+ readonly authorization?: string
553
+ }
554
+
555
+ /**
556
+ * Request parameters for listCommissionAgreementItems operation in CommissionAgreementItemsApi.
557
+ * @export
558
+ * @interface CommissionAgreementItemsApiListCommissionAgreementItemsRequest
559
+ */
560
+ export interface CommissionAgreementItemsApiListCommissionAgreementItemsRequest {
561
+ /**
562
+ * Bearer Token: provided by the login endpoint under the name accessToken.
563
+ * @type {string}
564
+ * @memberof CommissionAgreementItemsApiListCommissionAgreementItems
565
+ */
566
+ readonly authorization?: string
567
+
568
+ /**
569
+ * Page size.
570
+ * @type {number}
571
+ * @memberof CommissionAgreementItemsApiListCommissionAgreementItems
572
+ */
573
+ readonly pageSize?: number
574
+
575
+ /**
576
+ * Page token.
577
+ * @type {string}
578
+ * @memberof CommissionAgreementItemsApiListCommissionAgreementItems
579
+ */
580
+ readonly pageToken?: string
581
+
582
+ /**
583
+ * 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: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
584
+ * @type {string}
585
+ * @memberof CommissionAgreementItemsApiListCommissionAgreementItems
586
+ */
587
+ readonly filter?: string
588
+
589
+ /**
590
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: itemName, itemDescription, commissionFormula, code&lt;/i&gt;
591
+ * @type {string}
592
+ * @memberof CommissionAgreementItemsApiListCommissionAgreementItems
593
+ */
594
+ readonly search?: string
595
+
596
+ /**
597
+ * 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, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt&lt;/i&gt;
598
+ * @type {string}
599
+ * @memberof CommissionAgreementItemsApiListCommissionAgreementItems
600
+ */
601
+ readonly order?: string
602
+
603
+ /**
604
+ * 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; &lt;i&gt;Allowed values: &lt;i&gt;
605
+ * @type {string}
606
+ * @memberof CommissionAgreementItemsApiListCommissionAgreementItems
607
+ */
608
+ readonly expand?: string
609
+
610
+ /**
611
+ * 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: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
612
+ * @type {string}
613
+ * @memberof CommissionAgreementItemsApiListCommissionAgreementItems
614
+ */
615
+ readonly filters?: string
616
+ }
617
+
618
+ /**
619
+ * Request parameters for updateCommissionAgreementItem operation in CommissionAgreementItemsApi.
620
+ * @export
621
+ * @interface CommissionAgreementItemsApiUpdateCommissionAgreementItemRequest
622
+ */
623
+ export interface CommissionAgreementItemsApiUpdateCommissionAgreementItemRequest {
624
+ /**
625
+ *
626
+ * @type {string}
627
+ * @memberof CommissionAgreementItemsApiUpdateCommissionAgreementItem
628
+ */
629
+ readonly code: string
630
+
631
+ /**
632
+ *
633
+ * @type {UpdateCommissionAgreementItemRequestDto}
634
+ * @memberof CommissionAgreementItemsApiUpdateCommissionAgreementItem
635
+ */
636
+ readonly updateCommissionAgreementItemRequestDto: UpdateCommissionAgreementItemRequestDto
637
+
638
+ /**
639
+ * Bearer Token: provided by the login endpoint under the name accessToken.
640
+ * @type {string}
641
+ * @memberof CommissionAgreementItemsApiUpdateCommissionAgreementItem
642
+ */
643
+ readonly authorization?: string
644
+ }
645
+
646
+ /**
647
+ * CommissionAgreementItemsApi - object-oriented interface
648
+ * @export
649
+ * @class CommissionAgreementItemsApi
650
+ * @extends {BaseAPI}
651
+ */
652
+ export class CommissionAgreementItemsApi extends BaseAPI {
653
+ /**
654
+ * This will create the commission agreement item.
655
+ * @summary Create the Commission agreement item
656
+ * @param {CommissionAgreementItemsApiCreateCommissionAgreementItemRequest} requestParameters Request parameters.
657
+ * @param {*} [options] Override http request option.
658
+ * @throws {RequiredError}
659
+ * @memberof CommissionAgreementItemsApi
660
+ */
661
+ public createCommissionAgreementItem(requestParameters: CommissionAgreementItemsApiCreateCommissionAgreementItemRequest, options?: AxiosRequestConfig) {
662
+ return CommissionAgreementItemsApiFp(this.configuration).createCommissionAgreementItem(requestParameters.code, requestParameters.createCommissionAgreementItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
663
+ }
664
+
665
+ /**
666
+ * Permanently deletes the commission agreement item. Supply the unique code that was returned when you created the commission agreement item and this will delete it.
667
+ * @summary Delete the commission agreement item
668
+ * @param {CommissionAgreementItemsApiDeleteCommissionAgreementItemRequest} requestParameters Request parameters.
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ * @memberof CommissionAgreementItemsApi
672
+ */
673
+ public deleteCommissionAgreementItem(requestParameters: CommissionAgreementItemsApiDeleteCommissionAgreementItemRequest, options?: AxiosRequestConfig) {
674
+ return CommissionAgreementItemsApiFp(this.configuration).deleteCommissionAgreementItem(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
675
+ }
676
+
677
+ /**
678
+ * Retrieves the details of the commission agreement item that was previously created. Supply the unique commission agreement item code that was returned when you created it and Emil Api will return the corresponding commission agreement item information.
679
+ * @summary Retrieve the commission agreement item
680
+ * @param {CommissionAgreementItemsApiGetCommissionAgreementItemRequest} requestParameters Request parameters.
681
+ * @param {*} [options] Override http request option.
682
+ * @throws {RequiredError}
683
+ * @memberof CommissionAgreementItemsApi
684
+ */
685
+ public getCommissionAgreementItem(requestParameters: CommissionAgreementItemsApiGetCommissionAgreementItemRequest, options?: AxiosRequestConfig) {
686
+ return CommissionAgreementItemsApiFp(this.configuration).getCommissionAgreementItem(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
687
+ }
688
+
689
+ /**
690
+ * Returns a list of commission agreement items you have previously created. The commission agreement items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
691
+ * @summary List commission agreement items
692
+ * @param {CommissionAgreementItemsApiListCommissionAgreementItemsRequest} requestParameters Request parameters.
693
+ * @param {*} [options] Override http request option.
694
+ * @throws {RequiredError}
695
+ * @memberof CommissionAgreementItemsApi
696
+ */
697
+ public listCommissionAgreementItems(requestParameters: CommissionAgreementItemsApiListCommissionAgreementItemsRequest = {}, options?: AxiosRequestConfig) {
698
+ return CommissionAgreementItemsApiFp(this.configuration).listCommissionAgreementItems(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
699
+ }
700
+
701
+ /**
702
+ * Updates the specified commission agreement item by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
703
+ * @summary Update the commission agreement item
704
+ * @param {CommissionAgreementItemsApiUpdateCommissionAgreementItemRequest} requestParameters Request parameters.
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ * @memberof CommissionAgreementItemsApi
708
+ */
709
+ public updateCommissionAgreementItem(requestParameters: CommissionAgreementItemsApiUpdateCommissionAgreementItemRequest, options?: AxiosRequestConfig) {
710
+ return CommissionAgreementItemsApiFp(this.configuration).updateCommissionAgreementItem(requestParameters.code, requestParameters.updateCommissionAgreementItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
711
+ }
712
+ }