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