@emilgroup/claim-sdk-node 1.3.1 → 1.5.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 (51) hide show
  1. package/.openapi-generator/FILES +8 -3
  2. package/README.md +2 -2
  3. package/api/claim-statuses-api.ts +547 -0
  4. package/api/claims-api.ts +189 -81
  5. package/api/settlements-api.ts +105 -198
  6. package/api.ts +2 -0
  7. package/base.ts +1 -1
  8. package/dist/api/claim-statuses-api.d.ts +309 -0
  9. package/dist/api/claim-statuses-api.js +535 -0
  10. package/dist/api/claims-api.d.ts +124 -59
  11. package/dist/api/claims-api.js +142 -52
  12. package/dist/api/settlements-api.d.ts +85 -140
  13. package/dist/api/settlements-api.js +70 -117
  14. package/dist/api.d.ts +1 -0
  15. package/dist/api.js +1 -0
  16. package/dist/base.js +1 -1
  17. package/dist/models/claim-class.d.ts +18 -0
  18. package/dist/models/claim-status-class.d.ts +36 -0
  19. package/dist/models/create-claim-request-dto.d.ts +13 -1
  20. package/dist/models/create-claim-status-request-dto.d.ts +30 -0
  21. package/dist/models/{delete-settlement-request-dto.d.ts → create-claim-status-response-class.d.ts} +7 -12
  22. package/dist/models/index.d.ts +7 -3
  23. package/dist/models/index.js +7 -3
  24. package/dist/models/list-claim-statuses-response-class.d.ts +31 -0
  25. package/{models/delete-response-class.ts → dist/models/list-claim-statuses-response-class.js} +2 -17
  26. package/dist/models/{list-claim-response-class.d.ts → list-claims-response-class.d.ts} +4 -4
  27. package/dist/models/list-claims-response-class.js +15 -0
  28. package/dist/models/patch-claim-request-dto.d.ts +126 -0
  29. package/dist/models/patch-claim-request-dto.js +15 -0
  30. package/dist/models/{delete-response-class.d.ts → patch-claim-response-class.d.ts} +7 -6
  31. package/dist/models/patch-claim-response-class.js +15 -0
  32. package/dist/models/settlement-class.d.ts +6 -0
  33. package/dist/models/update-claim-request-dto.d.ts +8 -2
  34. package/dist/models/update-settlement-request-dto.d.ts +6 -0
  35. package/models/claim-class.ts +18 -0
  36. package/models/claim-status-class.ts +42 -0
  37. package/models/create-claim-request-dto.ts +13 -1
  38. package/models/create-claim-status-request-dto.ts +36 -0
  39. package/models/create-claim-status-response-class.ts +31 -0
  40. package/models/index.ts +7 -3
  41. package/models/list-claim-statuses-response-class.ts +37 -0
  42. package/models/{list-claim-response-class.ts → list-claims-response-class.ts} +4 -4
  43. package/models/patch-claim-request-dto.ts +132 -0
  44. package/models/{delete-settlement-request-dto.ts → patch-claim-response-class.ts} +7 -12
  45. package/models/settlement-class.ts +6 -0
  46. package/models/update-claim-request-dto.ts +8 -2
  47. package/models/update-settlement-request-dto.ts +6 -0
  48. package/package.json +2 -2
  49. /package/dist/models/{delete-response-class.js → claim-status-class.js} +0 -0
  50. /package/dist/models/{delete-settlement-request-dto.js → create-claim-status-request-dto.js} +0 -0
  51. /package/dist/models/{list-claim-response-class.js → create-claim-status-response-class.js} +0 -0
@@ -3,6 +3,7 @@
3
3
  .openapi-generator-ignore
4
4
  README.md
5
5
  api.ts
6
+ api/claim-statuses-api.ts
6
7
  api/claims-api.ts
7
8
  api/settlements-api.ts
8
9
  base.ts
@@ -11,17 +12,21 @@ configuration.ts
11
12
  git_push.sh
12
13
  index.ts
13
14
  models/claim-class.ts
15
+ models/claim-status-class.ts
14
16
  models/create-claim-request-dto.ts
15
17
  models/create-claim-response-class.ts
18
+ models/create-claim-status-request-dto.ts
19
+ models/create-claim-status-response-class.ts
16
20
  models/create-settlement-request-dto.ts
17
21
  models/create-settlement-response-class.ts
18
- models/delete-response-class.ts
19
- models/delete-settlement-request-dto.ts
20
22
  models/get-claim-response-class.ts
21
23
  models/get-settlement-response-class.ts
22
24
  models/index.ts
23
- models/list-claim-response-class.ts
25
+ models/list-claim-statuses-response-class.ts
26
+ models/list-claims-response-class.ts
24
27
  models/list-settlements-response-class.ts
28
+ models/patch-claim-request-dto.ts
29
+ models/patch-claim-response-class.ts
25
30
  models/settlement-class.ts
26
31
  models/update-claim-request-dto.ts
27
32
  models/update-claim-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/claim-sdk-node@1.3.1 --save
20
+ npm install @emilgroup/claim-sdk-node@1.5.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/claim-sdk-node@1.3.1
24
+ yarn add @emilgroup/claim-sdk-node@1.5.0
25
25
  ```
26
26
 
27
27
  And then you can import `ClaimsApi`.
@@ -0,0 +1,547 @@
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 { CreateClaimStatusRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateClaimStatusResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetClaimResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListClaimStatusesResponseClass } from '../models';
31
+ // URLSearchParams not necessarily used
32
+ // @ts-ignore
33
+ import { URL, URLSearchParams } from 'url';
34
+ const FormData = require('form-data');
35
+ /**
36
+ * ClaimStatusesApi - axios parameter creator
37
+ * @export
38
+ */
39
+ export const ClaimStatusesApiAxiosParamCreator = function (configuration?: Configuration) {
40
+ return {
41
+ /**
42
+ * This creates a claim status in the database
43
+ * @summary Create the claim status
44
+ * @param {CreateClaimStatusRequestDto} createClaimStatusRequestDto
45
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ createClaimStatus: async (createClaimStatusRequestDto: CreateClaimStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ // verify required parameter 'createClaimStatusRequestDto' is not null or undefined
51
+ assertParamExists('createClaimStatus', 'createClaimStatusRequestDto', createClaimStatusRequestDto)
52
+ const localVarPath = `/v1/claim-statuses`;
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ let baseAccessToken;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ baseAccessToken = configuration.accessToken;
60
+ }
61
+
62
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
63
+ const localVarHeaderParameter = {} as any;
64
+ const localVarQueryParameter = {} as any;
65
+
66
+ // authentication bearer required
67
+ // http bearer authentication required
68
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
+
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ }
73
+
74
+
75
+
76
+ localVarHeaderParameter['Content-Type'] = 'application/json';
77
+
78
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
81
+ localVarRequestOptions.data = serializeDataIfNeeded(createClaimStatusRequestDto, localVarRequestOptions, configuration)
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
90
+ * @summary Delete the claim status
91
+ * @param {number} id
92
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ deleteClaimStatus: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ // verify required parameter 'id' is not null or undefined
98
+ assertParamExists('deleteClaimStatus', 'id', id)
99
+ const localVarPath = `/v1/claim-statuses/{id}`
100
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
101
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
102
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
103
+ let baseOptions;
104
+ let baseAccessToken;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ baseAccessToken = configuration.accessToken;
108
+ }
109
+
110
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
111
+ const localVarHeaderParameter = {} as any;
112
+ const localVarQueryParameter = {} as any;
113
+
114
+ // authentication bearer required
115
+ // http bearer authentication required
116
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
+
118
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
120
+ }
121
+
122
+
123
+
124
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
127
+
128
+ return {
129
+ url: toPathString(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ };
132
+ },
133
+ /**
134
+ * 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.
135
+ * @summary Retrieve the claim status
136
+ * @param {number} id
137
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ getClaimStatus: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
142
+ // verify required parameter 'id' is not null or undefined
143
+ assertParamExists('getClaimStatus', 'id', id)
144
+ const localVarPath = `/v1/claim-statuses/{id}`
145
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ let baseAccessToken;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ baseAccessToken = configuration.accessToken;
153
+ }
154
+
155
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
156
+ const localVarHeaderParameter = {} as any;
157
+ const localVarQueryParameter = {} as any;
158
+
159
+ // authentication bearer required
160
+ // http bearer authentication required
161
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
+
163
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
164
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
165
+ }
166
+
167
+
168
+
169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
172
+
173
+ return {
174
+ url: toPathString(localVarUrlObj),
175
+ options: localVarRequestOptions,
176
+ };
177
+ },
178
+ /**
179
+ * 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.
180
+ * @summary List claim statuses
181
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
182
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
183
+ * @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.
184
+ * @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.
185
+ * @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.
186
+ * @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.
187
+ * @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.
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ */
191
+ listClaimStatuses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
192
+ const localVarPath = `/v1/claim-statuses`;
193
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
194
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
195
+ let baseOptions;
196
+ let baseAccessToken;
197
+ if (configuration) {
198
+ baseOptions = configuration.baseOptions;
199
+ baseAccessToken = configuration.accessToken;
200
+ }
201
+
202
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
203
+ const localVarHeaderParameter = {} as any;
204
+ const localVarQueryParameter = {} as any;
205
+
206
+ // authentication bearer required
207
+ // http bearer authentication required
208
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
209
+
210
+ if (pageSize !== undefined) {
211
+ localVarQueryParameter['pageSize'] = pageSize;
212
+ }
213
+
214
+ if (pageToken !== undefined) {
215
+ localVarQueryParameter['pageToken'] = pageToken;
216
+ }
217
+
218
+ if (filter !== undefined) {
219
+ localVarQueryParameter['filter'] = filter;
220
+ }
221
+
222
+ if (search !== undefined) {
223
+ localVarQueryParameter['search'] = search;
224
+ }
225
+
226
+ if (order !== undefined) {
227
+ localVarQueryParameter['order'] = order;
228
+ }
229
+
230
+ if (expand !== undefined) {
231
+ localVarQueryParameter['expand'] = expand;
232
+ }
233
+
234
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
235
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
236
+ }
237
+
238
+
239
+
240
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
241
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
242
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
243
+
244
+ return {
245
+ url: toPathString(localVarUrlObj),
246
+ options: localVarRequestOptions,
247
+ };
248
+ },
249
+ }
250
+ };
251
+
252
+ /**
253
+ * ClaimStatusesApi - functional programming interface
254
+ * @export
255
+ */
256
+ export const ClaimStatusesApiFp = function(configuration?: Configuration) {
257
+ const localVarAxiosParamCreator = ClaimStatusesApiAxiosParamCreator(configuration)
258
+ return {
259
+ /**
260
+ * This creates a claim status in the database
261
+ * @summary Create the claim status
262
+ * @param {CreateClaimStatusRequestDto} createClaimStatusRequestDto
263
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ async createClaimStatus(createClaimStatusRequestDto: CreateClaimStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateClaimStatusResponseClass>> {
268
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createClaimStatus(createClaimStatusRequestDto, authorization, options);
269
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
270
+ },
271
+ /**
272
+ * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
273
+ * @summary Delete the claim status
274
+ * @param {number} id
275
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ async deleteClaimStatus(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
280
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaimStatus(id, authorization, options);
281
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
282
+ },
283
+ /**
284
+ * 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
+ * @summary Retrieve the claim status
286
+ * @param {number} id
287
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ async getClaimStatus(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClaimResponseClass>> {
292
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimStatus(id, authorization, options);
293
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
294
+ },
295
+ /**
296
+ * 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
+ * @summary List claim statuses
298
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
299
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
300
+ * @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.
301
+ * @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.
302
+ * @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.
303
+ * @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.
304
+ * @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.
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ */
308
+ async listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClaimStatusesResponseClass>> {
309
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimStatuses(authorization, pageSize, pageToken, filter, search, order, expand, options);
310
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
311
+ },
312
+ }
313
+ };
314
+
315
+ /**
316
+ * ClaimStatusesApi - factory interface
317
+ * @export
318
+ */
319
+ export const ClaimStatusesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
320
+ const localVarFp = ClaimStatusesApiFp(configuration)
321
+ return {
322
+ /**
323
+ * This creates a claim status in the database
324
+ * @summary Create the claim status
325
+ * @param {CreateClaimStatusRequestDto} createClaimStatusRequestDto
326
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ */
330
+ createClaimStatus(createClaimStatusRequestDto: CreateClaimStatusRequestDto, authorization?: string, options?: any): AxiosPromise<CreateClaimStatusResponseClass> {
331
+ return localVarFp.createClaimStatus(createClaimStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
332
+ },
333
+ /**
334
+ * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
335
+ * @summary Delete the claim status
336
+ * @param {number} id
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
+ deleteClaimStatus(id: number, authorization?: string, options?: any): AxiosPromise<void> {
342
+ return localVarFp.deleteClaimStatus(id, authorization, options).then((request) => request(axios, basePath));
343
+ },
344
+ /**
345
+ * 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.
346
+ * @summary Retrieve the claim status
347
+ * @param {number} id
348
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
349
+ * @param {*} [options] Override http request option.
350
+ * @throws {RequiredError}
351
+ */
352
+ getClaimStatus(id: number, authorization?: string, options?: any): AxiosPromise<GetClaimResponseClass> {
353
+ return localVarFp.getClaimStatus(id, authorization, options).then((request) => request(axios, basePath));
354
+ },
355
+ /**
356
+ * 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.
357
+ * @summary List claim statuses
358
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
359
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
360
+ * @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.
361
+ * @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.
362
+ * @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.
363
+ * @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.
364
+ * @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.
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListClaimStatusesResponseClass> {
369
+ return localVarFp.listClaimStatuses(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
370
+ },
371
+ };
372
+ };
373
+
374
+ /**
375
+ * Request parameters for createClaimStatus operation in ClaimStatusesApi.
376
+ * @export
377
+ * @interface ClaimStatusesApiCreateClaimStatusRequest
378
+ */
379
+ export interface ClaimStatusesApiCreateClaimStatusRequest {
380
+ /**
381
+ *
382
+ * @type {CreateClaimStatusRequestDto}
383
+ * @memberof ClaimStatusesApiCreateClaimStatus
384
+ */
385
+ readonly createClaimStatusRequestDto: CreateClaimStatusRequestDto
386
+
387
+ /**
388
+ * Bearer Token: provided by the login endpoint under the name accessToken.
389
+ * @type {string}
390
+ * @memberof ClaimStatusesApiCreateClaimStatus
391
+ */
392
+ readonly authorization?: string
393
+ }
394
+
395
+ /**
396
+ * Request parameters for deleteClaimStatus operation in ClaimStatusesApi.
397
+ * @export
398
+ * @interface ClaimStatusesApiDeleteClaimStatusRequest
399
+ */
400
+ export interface ClaimStatusesApiDeleteClaimStatusRequest {
401
+ /**
402
+ *
403
+ * @type {number}
404
+ * @memberof ClaimStatusesApiDeleteClaimStatus
405
+ */
406
+ readonly id: number
407
+
408
+ /**
409
+ * Bearer Token: provided by the login endpoint under the name accessToken.
410
+ * @type {string}
411
+ * @memberof ClaimStatusesApiDeleteClaimStatus
412
+ */
413
+ readonly authorization?: string
414
+ }
415
+
416
+ /**
417
+ * Request parameters for getClaimStatus operation in ClaimStatusesApi.
418
+ * @export
419
+ * @interface ClaimStatusesApiGetClaimStatusRequest
420
+ */
421
+ export interface ClaimStatusesApiGetClaimStatusRequest {
422
+ /**
423
+ *
424
+ * @type {number}
425
+ * @memberof ClaimStatusesApiGetClaimStatus
426
+ */
427
+ readonly id: number
428
+
429
+ /**
430
+ * Bearer Token: provided by the login endpoint under the name accessToken.
431
+ * @type {string}
432
+ * @memberof ClaimStatusesApiGetClaimStatus
433
+ */
434
+ readonly authorization?: string
435
+ }
436
+
437
+ /**
438
+ * Request parameters for listClaimStatuses operation in ClaimStatusesApi.
439
+ * @export
440
+ * @interface ClaimStatusesApiListClaimStatusesRequest
441
+ */
442
+ export interface ClaimStatusesApiListClaimStatusesRequest {
443
+ /**
444
+ * Bearer Token: provided by the login endpoint under the name accessToken.
445
+ * @type {string}
446
+ * @memberof ClaimStatusesApiListClaimStatuses
447
+ */
448
+ readonly authorization?: string
449
+
450
+ /**
451
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
452
+ * @type {any}
453
+ * @memberof ClaimStatusesApiListClaimStatuses
454
+ */
455
+ readonly pageSize?: any
456
+
457
+ /**
458
+ * 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.
459
+ * @type {any}
460
+ * @memberof ClaimStatusesApiListClaimStatuses
461
+ */
462
+ readonly pageToken?: any
463
+
464
+ /**
465
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
466
+ * @type {'id' | 'name' | 'productSlug'}
467
+ * @memberof ClaimStatusesApiListClaimStatuses
468
+ */
469
+ readonly filter?: 'id' | 'name' | 'productSlug'
470
+
471
+ /**
472
+ * 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.
473
+ * @type {any}
474
+ * @memberof ClaimStatusesApiListClaimStatuses
475
+ */
476
+ readonly search?: any
477
+
478
+ /**
479
+ * 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.
480
+ * @type {any}
481
+ * @memberof ClaimStatusesApiListClaimStatuses
482
+ */
483
+ readonly order?: any
484
+
485
+ /**
486
+ * 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.
487
+ * @type {any}
488
+ * @memberof ClaimStatusesApiListClaimStatuses
489
+ */
490
+ readonly expand?: any
491
+ }
492
+
493
+ /**
494
+ * ClaimStatusesApi - object-oriented interface
495
+ * @export
496
+ * @class ClaimStatusesApi
497
+ * @extends {BaseAPI}
498
+ */
499
+ export class ClaimStatusesApi extends BaseAPI {
500
+ /**
501
+ * This creates a claim status in the database
502
+ * @summary Create the claim status
503
+ * @param {ClaimStatusesApiCreateClaimStatusRequest} requestParameters Request parameters.
504
+ * @param {*} [options] Override http request option.
505
+ * @throws {RequiredError}
506
+ * @memberof ClaimStatusesApi
507
+ */
508
+ public createClaimStatus(requestParameters: ClaimStatusesApiCreateClaimStatusRequest, options?: AxiosRequestConfig) {
509
+ return ClaimStatusesApiFp(this.configuration).createClaimStatus(requestParameters.createClaimStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
510
+ }
511
+
512
+ /**
513
+ * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
514
+ * @summary Delete the claim status
515
+ * @param {ClaimStatusesApiDeleteClaimStatusRequest} requestParameters Request parameters.
516
+ * @param {*} [options] Override http request option.
517
+ * @throws {RequiredError}
518
+ * @memberof ClaimStatusesApi
519
+ */
520
+ public deleteClaimStatus(requestParameters: ClaimStatusesApiDeleteClaimStatusRequest, options?: AxiosRequestConfig) {
521
+ return ClaimStatusesApiFp(this.configuration).deleteClaimStatus(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
522
+ }
523
+
524
+ /**
525
+ * 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.
526
+ * @summary Retrieve the claim status
527
+ * @param {ClaimStatusesApiGetClaimStatusRequest} requestParameters Request parameters.
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ * @memberof ClaimStatusesApi
531
+ */
532
+ public getClaimStatus(requestParameters: ClaimStatusesApiGetClaimStatusRequest, options?: AxiosRequestConfig) {
533
+ return ClaimStatusesApiFp(this.configuration).getClaimStatus(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
534
+ }
535
+
536
+ /**
537
+ * 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.
538
+ * @summary List claim statuses
539
+ * @param {ClaimStatusesApiListClaimStatusesRequest} requestParameters Request parameters.
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ * @memberof ClaimStatusesApi
543
+ */
544
+ public listClaimStatuses(requestParameters: ClaimStatusesApiListClaimStatusesRequest = {}, options?: AxiosRequestConfig) {
545
+ return ClaimStatusesApiFp(this.configuration).listClaimStatuses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
546
+ }
547
+ }