@emilgroup/claim-sdk 1.17.2-beta.1 → 1.17.2-beta.3

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