@emilgroup/claim-sdk 1.17.2-beta.0 → 1.17.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +2 -2
  3. package/api/claim-partner-roles-api.ts +41 -41
  4. package/api/claim-partners-api.ts +55 -55
  5. package/api/claim-regulations-api.ts +364 -0
  6. package/api/claim-statuses-api.ts +39 -39
  7. package/api/claims-api.ts +37 -37
  8. package/api/settlements-api.ts +39 -39
  9. package/api.ts +2 -0
  10. package/base.ts +5 -1
  11. package/dist/api/claim-partner-roles-api.d.ts +41 -41
  12. package/dist/api/claim-partner-roles-api.js +23 -23
  13. package/dist/api/claim-partners-api.d.ts +51 -51
  14. package/dist/api/claim-partners-api.js +32 -32
  15. package/dist/api/claim-regulations-api.d.ts +215 -0
  16. package/dist/api/claim-regulations-api.js +358 -0
  17. package/dist/api/claim-statuses-api.d.ts +39 -39
  18. package/dist/api/claim-statuses-api.js +23 -23
  19. package/dist/api/claims-api.d.ts +37 -37
  20. package/dist/api/claims-api.js +19 -19
  21. package/dist/api/settlements-api.d.ts +39 -39
  22. package/dist/api/settlements-api.js +23 -23
  23. package/dist/api.d.ts +1 -0
  24. package/dist/api.js +1 -0
  25. package/dist/base.d.ts +1 -0
  26. package/dist/base.js +4 -1
  27. package/dist/models/create-regulation-item-request-dto.d.ts +75 -0
  28. package/dist/models/create-regulation-item-request-dto.js +21 -0
  29. package/dist/models/index.d.ts +9 -0
  30. package/dist/models/index.js +9 -0
  31. package/dist/models/payout-details-class.d.ts +90 -0
  32. package/dist/models/payout-details-class.js +26 -0
  33. package/dist/models/payout-details-dto.d.ts +60 -0
  34. package/dist/models/payout-details-dto.js +26 -0
  35. package/dist/models/regress-details-class.d.ts +81 -0
  36. package/dist/models/regress-details-class.js +29 -0
  37. package/dist/models/regress-details-dto.d.ts +51 -0
  38. package/dist/models/regress-details-dto.js +29 -0
  39. package/dist/models/regulation-item-class.d.ts +125 -0
  40. package/dist/models/regulation-item-class.js +34 -0
  41. package/dist/models/regulation-item-response-class.d.ts +25 -0
  42. package/dist/models/regulation-item-response-class.js +15 -0
  43. package/dist/models/reserve-details-class.d.ts +59 -0
  44. package/dist/models/reserve-details-class.js +20 -0
  45. package/dist/models/reserve-details-dto.d.ts +29 -0
  46. package/dist/models/reserve-details-dto.js +20 -0
  47. package/models/create-regulation-item-request-dto.ts +84 -0
  48. package/models/index.ts +9 -0
  49. package/models/payout-details-class.ts +100 -0
  50. package/models/payout-details-dto.ts +70 -0
  51. package/models/regress-details-class.ts +91 -0
  52. package/models/regress-details-dto.ts +61 -0
  53. package/models/regulation-item-class.ts +135 -0
  54. package/models/regulation-item-response-class.ts +31 -0
  55. package/models/reserve-details-class.ts +68 -0
  56. package/models/reserve-details-dto.ts +38 -0
  57. package/package.json +1 -1
@@ -0,0 +1,364 @@
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 { RegulationItemResponseClass } from '../models';
27
+ /**
28
+ * ClaimRegulationsApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ * This endpoint will create a new regulation item for a claim
35
+ * @summary Create the claim regulation item
36
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
37
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ createClaimRegulation: async (createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
+ // verify required parameter 'createRegulationItemRequestDto' is not null or undefined
43
+ assertParamExists('createClaimRegulation', 'createRegulationItemRequestDto', createRegulationItemRequestDto)
44
+ const localVarPath = `/v1/claims/regulations`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ let baseAccessToken;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ baseAccessToken = configuration.accessToken;
52
+ }
53
+
54
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
55
+ const localVarHeaderParameter = {} as any;
56
+ const localVarQueryParameter = {} as any;
57
+
58
+ // authentication bearer required
59
+ // http bearer authentication required
60
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
61
+
62
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
63
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
64
+ }
65
+
66
+
67
+
68
+ localVarHeaderParameter['Content-Type'] = 'application/json';
69
+
70
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
71
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
73
+ localVarRequestOptions.data = serializeDataIfNeeded(createRegulationItemRequestDto, localVarRequestOptions, configuration)
74
+
75
+ return {
76
+ url: toPathString(localVarUrlObj),
77
+ options: localVarRequestOptions,
78
+ };
79
+ },
80
+ /**
81
+ * 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.
82
+ * @summary Retrieve the claim regulation item
83
+ * @param {string} code
84
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
85
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
86
+ * @param {any} [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.
87
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
88
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
89
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
90
+ * @param {'partners'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
91
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ getClaimRegulation: async (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partners', filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
96
+ // verify required parameter 'code' is not null or undefined
97
+ assertParamExists('getClaimRegulation', 'code', code)
98
+ const localVarPath = `/v1/claims/regulations/{code}`
99
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
100
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
101
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
102
+ let baseOptions;
103
+ let baseAccessToken;
104
+ if (configuration) {
105
+ baseOptions = configuration.baseOptions;
106
+ baseAccessToken = configuration.accessToken;
107
+ }
108
+
109
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
110
+ const localVarHeaderParameter = {} as any;
111
+ const localVarQueryParameter = {} as any;
112
+
113
+ // authentication bearer required
114
+ // http bearer authentication required
115
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
116
+
117
+ if (pageSize !== undefined) {
118
+ localVarQueryParameter['pageSize'] = pageSize;
119
+ }
120
+
121
+ if (pageToken !== undefined) {
122
+ localVarQueryParameter['pageToken'] = pageToken;
123
+ }
124
+
125
+ if (filter !== undefined) {
126
+ localVarQueryParameter['filter'] = filter;
127
+ }
128
+
129
+ if (search !== undefined) {
130
+ localVarQueryParameter['search'] = search;
131
+ }
132
+
133
+ if (order !== undefined) {
134
+ localVarQueryParameter['order'] = order;
135
+ }
136
+
137
+ if (expand !== undefined) {
138
+ localVarQueryParameter['expand'] = expand;
139
+ }
140
+
141
+ if (filters !== undefined) {
142
+ localVarQueryParameter['filters'] = filters;
143
+ }
144
+
145
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
146
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
147
+ }
148
+
149
+
150
+
151
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
152
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
154
+
155
+ return {
156
+ url: toPathString(localVarUrlObj),
157
+ options: localVarRequestOptions,
158
+ };
159
+ },
160
+ }
161
+ };
162
+
163
+ /**
164
+ * ClaimRegulationsApi - functional programming interface
165
+ * @export
166
+ */
167
+ export const ClaimRegulationsApiFp = function(configuration?: Configuration) {
168
+ const localVarAxiosParamCreator = ClaimRegulationsApiAxiosParamCreator(configuration)
169
+ return {
170
+ /**
171
+ * This endpoint will create a new regulation item for a claim
172
+ * @summary Create the claim regulation item
173
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
174
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
175
+ * @param {*} [options] Override http request option.
176
+ * @throws {RequiredError}
177
+ */
178
+ async createClaimRegulation(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
179
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createClaimRegulation(createRegulationItemRequestDto, authorization, options);
180
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
181
+ },
182
+ /**
183
+ * 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.
184
+ * @summary Retrieve the claim regulation item
185
+ * @param {string} code
186
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
188
+ * @param {any} [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.
189
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
190
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
191
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
192
+ * @param {'partners'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
193
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ async getClaimRegulation(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partners', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
198
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimRegulation(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
199
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
200
+ },
201
+ }
202
+ };
203
+
204
+ /**
205
+ * ClaimRegulationsApi - factory interface
206
+ * @export
207
+ */
208
+ export const ClaimRegulationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
209
+ const localVarFp = ClaimRegulationsApiFp(configuration)
210
+ return {
211
+ /**
212
+ * This endpoint will create a new regulation item for a claim
213
+ * @summary Create the claim regulation item
214
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
215
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ createClaimRegulation(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
220
+ return localVarFp.createClaimRegulation(createRegulationItemRequestDto, authorization, options).then((request) => request(axios, basePath));
221
+ },
222
+ /**
223
+ * 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.
224
+ * @summary Retrieve the claim regulation item
225
+ * @param {string} code
226
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
227
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
228
+ * @param {any} [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.
229
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
230
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
231
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
232
+ * @param {'partners'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
233
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ getClaimRegulation(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partners', filters?: any, options?: any): AxiosPromise<RegulationItemResponseClass> {
238
+ return localVarFp.getClaimRegulation(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
239
+ },
240
+ };
241
+ };
242
+
243
+ /**
244
+ * Request parameters for createClaimRegulation operation in ClaimRegulationsApi.
245
+ * @export
246
+ * @interface ClaimRegulationsApiCreateClaimRegulationRequest
247
+ */
248
+ export interface ClaimRegulationsApiCreateClaimRegulationRequest {
249
+ /**
250
+ *
251
+ * @type {CreateRegulationItemRequestDto}
252
+ * @memberof ClaimRegulationsApiCreateClaimRegulation
253
+ */
254
+ readonly createRegulationItemRequestDto: CreateRegulationItemRequestDto
255
+
256
+ /**
257
+ * Bearer Token: provided by the login endpoint under the name accessToken.
258
+ * @type {string}
259
+ * @memberof ClaimRegulationsApiCreateClaimRegulation
260
+ */
261
+ readonly authorization?: string
262
+ }
263
+
264
+ /**
265
+ * Request parameters for getClaimRegulation operation in ClaimRegulationsApi.
266
+ * @export
267
+ * @interface ClaimRegulationsApiGetClaimRegulationRequest
268
+ */
269
+ export interface ClaimRegulationsApiGetClaimRegulationRequest {
270
+ /**
271
+ *
272
+ * @type {string}
273
+ * @memberof ClaimRegulationsApiGetClaimRegulation
274
+ */
275
+ readonly code: string
276
+
277
+ /**
278
+ * Bearer Token: provided by the login endpoint under the name accessToken.
279
+ * @type {string}
280
+ * @memberof ClaimRegulationsApiGetClaimRegulation
281
+ */
282
+ readonly authorization?: string
283
+
284
+ /**
285
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
286
+ * @type {any}
287
+ * @memberof ClaimRegulationsApiGetClaimRegulation
288
+ */
289
+ readonly pageSize?: any
290
+
291
+ /**
292
+ * 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.
293
+ * @type {any}
294
+ * @memberof ClaimRegulationsApiGetClaimRegulation
295
+ */
296
+ readonly pageToken?: any
297
+
298
+ /**
299
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
300
+ * @type {any}
301
+ * @memberof ClaimRegulationsApiGetClaimRegulation
302
+ */
303
+ readonly filter?: any
304
+
305
+ /**
306
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
307
+ * @type {any}
308
+ * @memberof ClaimRegulationsApiGetClaimRegulation
309
+ */
310
+ readonly search?: any
311
+
312
+ /**
313
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
314
+ * @type {any}
315
+ * @memberof ClaimRegulationsApiGetClaimRegulation
316
+ */
317
+ readonly order?: any
318
+
319
+ /**
320
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
321
+ * @type {'partners'}
322
+ * @memberof ClaimRegulationsApiGetClaimRegulation
323
+ */
324
+ readonly expand?: 'partners'
325
+
326
+ /**
327
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
328
+ * @type {any}
329
+ * @memberof ClaimRegulationsApiGetClaimRegulation
330
+ */
331
+ readonly filters?: any
332
+ }
333
+
334
+ /**
335
+ * ClaimRegulationsApi - object-oriented interface
336
+ * @export
337
+ * @class ClaimRegulationsApi
338
+ * @extends {BaseAPI}
339
+ */
340
+ export class ClaimRegulationsApi extends BaseAPI {
341
+ /**
342
+ * This endpoint will create a new regulation item for a claim
343
+ * @summary Create the claim regulation item
344
+ * @param {ClaimRegulationsApiCreateClaimRegulationRequest} requestParameters Request parameters.
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ * @memberof ClaimRegulationsApi
348
+ */
349
+ public createClaimRegulation(requestParameters: ClaimRegulationsApiCreateClaimRegulationRequest, options?: AxiosRequestConfig) {
350
+ return ClaimRegulationsApiFp(this.configuration).createClaimRegulation(requestParameters.createRegulationItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
351
+ }
352
+
353
+ /**
354
+ * 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.
355
+ * @summary Retrieve the claim regulation item
356
+ * @param {ClaimRegulationsApiGetClaimRegulationRequest} requestParameters Request parameters.
357
+ * @param {*} [options] Override http request option.
358
+ * @throws {RequiredError}
359
+ * @memberof ClaimRegulationsApi
360
+ */
361
+ public getClaimRegulation(requestParameters: ClaimRegulationsApiGetClaimRegulationRequest, options?: AxiosRequestConfig) {
362
+ return ClaimRegulationsApiFp(this.configuration).getClaimRegulation(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
363
+ }
364
+ }
@@ -127,7 +127,7 @@ export const ClaimStatusesApiAxiosParamCreator = function (configuration?: Confi
127
127
  };
128
128
  },
129
129
  /**
130
- * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
130
+ * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
131
131
  * @summary Retrieve the claim status
132
132
  * @param {number} id
133
133
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -172,20 +172,20 @@ export const ClaimStatusesApiAxiosParamCreator = function (configuration?: Confi
172
172
  };
173
173
  },
174
174
  /**
175
- * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
175
+ * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
176
176
  * @summary List claim statuses
177
177
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
178
178
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
179
179
  * @param {any} [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.
180
- * @param {'id' | 'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
181
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
182
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
183
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
184
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
180
+ * @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, name, productSlug&lt;/i&gt;
181
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
182
+ * @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&lt;/i&gt;
183
+ * @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;
184
+ * @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, name, productSlug&lt;/i&gt;
185
185
  * @param {*} [options] Override http request option.
186
186
  * @throws {RequiredError}
187
187
  */
188
- listClaimStatuses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
188
+ listClaimStatuses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
189
189
  const localVarPath = `/v1/claim-statuses`;
190
190
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
191
191
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -282,7 +282,7 @@ export const ClaimStatusesApiFp = function(configuration?: Configuration) {
282
282
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
283
283
  },
284
284
  /**
285
- * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
285
+ * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
286
286
  * @summary Retrieve the claim status
287
287
  * @param {number} id
288
288
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -294,20 +294,20 @@ export const ClaimStatusesApiFp = function(configuration?: Configuration) {
294
294
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
295
295
  },
296
296
  /**
297
- * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
297
+ * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
298
298
  * @summary List claim statuses
299
299
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
300
300
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
301
301
  * @param {any} [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.
302
- * @param {'id' | 'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
303
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
304
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
305
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
306
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
302
+ * @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, name, productSlug&lt;/i&gt;
303
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
304
+ * @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&lt;/i&gt;
305
+ * @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;
306
+ * @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, name, productSlug&lt;/i&gt;
307
307
  * @param {*} [options] Override http request option.
308
308
  * @throws {RequiredError}
309
309
  */
310
- async listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClaimStatusesResponseClass>> {
310
+ async listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClaimStatusesResponseClass>> {
311
311
  const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimStatuses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
312
312
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
313
313
  },
@@ -344,7 +344,7 @@ export const ClaimStatusesApiFactory = function (configuration?: Configuration,
344
344
  return localVarFp.deleteClaimStatus(id, authorization, options).then((request) => request(axios, basePath));
345
345
  },
346
346
  /**
347
- * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
347
+ * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
348
348
  * @summary Retrieve the claim status
349
349
  * @param {number} id
350
350
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -355,20 +355,20 @@ export const ClaimStatusesApiFactory = function (configuration?: Configuration,
355
355
  return localVarFp.getClaimStatus(id, authorization, options).then((request) => request(axios, basePath));
356
356
  },
357
357
  /**
358
- * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
358
+ * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
359
359
  * @summary List claim statuses
360
360
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
361
361
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
362
362
  * @param {any} [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.
363
- * @param {'id' | 'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
364
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
365
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
366
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
367
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
363
+ * @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, name, productSlug&lt;/i&gt;
364
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
365
+ * @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&lt;/i&gt;
366
+ * @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;
367
+ * @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, name, productSlug&lt;/i&gt;
368
368
  * @param {*} [options] Override http request option.
369
369
  * @throws {RequiredError}
370
370
  */
371
- listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListClaimStatusesResponseClass> {
371
+ listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListClaimStatusesResponseClass> {
372
372
  return localVarFp.listClaimStatuses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
373
373
  },
374
374
  };
@@ -465,39 +465,39 @@ export interface ClaimStatusesApiListClaimStatusesRequest {
465
465
  readonly pageToken?: any
466
466
 
467
467
  /**
468
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
469
- * @type {'id' | 'name' | 'productSlug'}
468
+ * 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, name, productSlug&lt;/i&gt;
469
+ * @type {string}
470
470
  * @memberof ClaimStatusesApiListClaimStatuses
471
471
  */
472
- readonly filter?: 'id' | 'name' | 'productSlug'
472
+ readonly filter?: string
473
473
 
474
474
  /**
475
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
475
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
476
476
  * @type {any}
477
477
  * @memberof ClaimStatusesApiListClaimStatuses
478
478
  */
479
479
  readonly search?: any
480
480
 
481
481
  /**
482
- * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
483
- * @type {any}
482
+ * 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&lt;/i&gt;
483
+ * @type {string}
484
484
  * @memberof ClaimStatusesApiListClaimStatuses
485
485
  */
486
- readonly order?: any
486
+ readonly order?: string
487
487
 
488
488
  /**
489
- * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
490
- * @type {any}
489
+ * 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;
490
+ * @type {string}
491
491
  * @memberof ClaimStatusesApiListClaimStatuses
492
492
  */
493
- readonly expand?: any
493
+ readonly expand?: string
494
494
 
495
495
  /**
496
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
497
- * @type {any}
496
+ * 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, name, productSlug&lt;/i&gt;
497
+ * @type {string}
498
498
  * @memberof ClaimStatusesApiListClaimStatuses
499
499
  */
500
- readonly filters?: any
500
+ readonly filters?: string
501
501
  }
502
502
 
503
503
  /**
@@ -532,7 +532,7 @@ export class ClaimStatusesApi extends BaseAPI {
532
532
  }
533
533
 
534
534
  /**
535
- * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
535
+ * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
536
536
  * @summary Retrieve the claim status
537
537
  * @param {ClaimStatusesApiGetClaimStatusRequest} requestParameters Request parameters.
538
538
  * @param {*} [options] Override http request option.
@@ -544,7 +544,7 @@ export class ClaimStatusesApi extends BaseAPI {
544
544
  }
545
545
 
546
546
  /**
547
- * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
547
+ * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
548
548
  * @summary List claim statuses
549
549
  * @param {ClaimStatusesApiListClaimStatusesRequest} requestParameters Request parameters.
550
550
  * @param {*} [options] Override http request option.