@emilgroup/claim-sdk-node 1.4.0 → 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.
- package/.openapi-generator/FILES +8 -3
- package/README.md +2 -2
- package/api/claim-statuses-api.ts +547 -0
- package/api/claims-api.ts +189 -81
- package/api/settlements-api.ts +105 -198
- package/api.ts +2 -0
- package/dist/api/claim-statuses-api.d.ts +309 -0
- package/dist/api/claim-statuses-api.js +535 -0
- package/dist/api/claims-api.d.ts +124 -59
- package/dist/api/claims-api.js +142 -52
- package/dist/api/settlements-api.d.ts +85 -140
- package/dist/api/settlements-api.js +70 -117
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/claim-class.d.ts +13 -1
- package/dist/models/claim-status-class.d.ts +36 -0
- package/dist/models/create-claim-request-dto.d.ts +13 -1
- package/dist/models/create-claim-status-request-dto.d.ts +30 -0
- package/dist/models/{delete-settlement-request-dto.d.ts → create-claim-status-response-class.d.ts} +7 -12
- package/dist/models/index.d.ts +7 -3
- package/dist/models/index.js +7 -3
- package/dist/models/list-claim-statuses-response-class.d.ts +31 -0
- package/{models/delete-response-class.ts → dist/models/list-claim-statuses-response-class.js} +2 -17
- package/dist/models/{list-claim-response-class.d.ts → list-claims-response-class.d.ts} +4 -4
- package/dist/models/list-claims-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/{delete-response-class.d.ts → patch-claim-response-class.d.ts} +7 -6
- package/dist/models/patch-claim-response-class.js +15 -0
- package/dist/models/settlement-class.d.ts +6 -0
- package/dist/models/update-claim-request-dto.d.ts +8 -2
- package/dist/models/update-settlement-request-dto.d.ts +6 -0
- package/models/claim-class.ts +13 -1
- package/models/claim-status-class.ts +42 -0
- package/models/create-claim-request-dto.ts +13 -1
- package/models/create-claim-status-request-dto.ts +36 -0
- package/models/create-claim-status-response-class.ts +31 -0
- package/models/index.ts +7 -3
- package/models/list-claim-statuses-response-class.ts +37 -0
- package/models/{list-claim-response-class.ts → list-claims-response-class.ts} +4 -4
- package/models/patch-claim-request-dto.ts +132 -0
- package/models/{delete-settlement-request-dto.ts → patch-claim-response-class.ts} +7 -12
- package/models/settlement-class.ts +6 -0
- package/models/update-claim-request-dto.ts +8 -2
- package/models/update-settlement-request-dto.ts +6 -0
- package/package.json +2 -2
- /package/dist/models/{delete-response-class.js → claim-status-class.js} +0 -0
- /package/dist/models/{delete-settlement-request-dto.js → create-claim-status-request-dto.js} +0 -0
- /package/dist/models/{list-claim-response-class.js → create-claim-status-response-class.js} +0 -0
package/api/settlements-api.ts
CHANGED
|
@@ -25,8 +25,6 @@ import { CreateSettlementRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateSettlementResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import { DeleteResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
28
|
import { GetSettlementResponseClass } from '../models';
|
|
31
29
|
// @ts-ignore
|
|
32
30
|
import { ListSettlementsResponseClass } from '../models';
|
|
@@ -47,21 +45,15 @@ export const SettlementsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
47
45
|
/**
|
|
48
46
|
* This will create a settlement against a claim in the database
|
|
49
47
|
* @summary Create the settlement
|
|
50
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
51
|
-
* @param {string} claimCode
|
|
52
48
|
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
49
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
53
50
|
* @param {*} [options] Override http request option.
|
|
54
51
|
* @throws {RequiredError}
|
|
55
52
|
*/
|
|
56
|
-
createSettlement: async (
|
|
57
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
58
|
-
assertParamExists('createSettlement', 'authorization', authorization)
|
|
59
|
-
// verify required parameter 'claimCode' is not null or undefined
|
|
60
|
-
assertParamExists('createSettlement', 'claimCode', claimCode)
|
|
53
|
+
createSettlement: async (createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
61
54
|
// verify required parameter 'createSettlementRequestDto' is not null or undefined
|
|
62
55
|
assertParamExists('createSettlement', 'createSettlementRequestDto', createSettlementRequestDto)
|
|
63
|
-
const localVarPath = `/v1/
|
|
64
|
-
.replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)));
|
|
56
|
+
const localVarPath = `/v1/settlements`;
|
|
65
57
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
66
58
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
67
59
|
let baseOptions;
|
|
@@ -100,22 +92,16 @@ export const SettlementsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
100
92
|
/**
|
|
101
93
|
* This will delete the requested settlement from the database.
|
|
102
94
|
* @summary Delete the settlement
|
|
103
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
95
|
* @param {string} code
|
|
105
|
-
* @param {string}
|
|
96
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
106
97
|
* @param {*} [options] Override http request option.
|
|
107
98
|
* @throws {RequiredError}
|
|
108
99
|
*/
|
|
109
|
-
deleteSettlement: async (
|
|
110
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
111
|
-
assertParamExists('deleteSettlement', 'authorization', authorization)
|
|
100
|
+
deleteSettlement: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
112
101
|
// verify required parameter 'code' is not null or undefined
|
|
113
102
|
assertParamExists('deleteSettlement', 'code', code)
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
const localVarPath = `/v1/claims/{claimCode}/settlements/{code}`
|
|
117
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
118
|
-
.replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)));
|
|
103
|
+
const localVarPath = `/v1/settlements/{code}`
|
|
104
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
119
105
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
120
106
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
121
107
|
let baseOptions;
|
|
@@ -151,21 +137,15 @@ export const SettlementsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
151
137
|
/**
|
|
152
138
|
* Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
|
|
153
139
|
* @summary Retrieve the settlement
|
|
154
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
155
|
-
* @param {string} claimCode
|
|
156
140
|
* @param {string} code
|
|
141
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
157
142
|
* @param {*} [options] Override http request option.
|
|
158
143
|
* @throws {RequiredError}
|
|
159
144
|
*/
|
|
160
|
-
getSettlement: async (
|
|
161
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
162
|
-
assertParamExists('getSettlement', 'authorization', authorization)
|
|
163
|
-
// verify required parameter 'claimCode' is not null or undefined
|
|
164
|
-
assertParamExists('getSettlement', 'claimCode', claimCode)
|
|
145
|
+
getSettlement: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
165
146
|
// verify required parameter 'code' is not null or undefined
|
|
166
147
|
assertParamExists('getSettlement', 'code', code)
|
|
167
|
-
const localVarPath = `/v1/
|
|
168
|
-
.replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)))
|
|
148
|
+
const localVarPath = `/v1/settlements/{code}`
|
|
169
149
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
170
150
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
171
151
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -202,27 +182,18 @@ export const SettlementsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
202
182
|
/**
|
|
203
183
|
* Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
204
184
|
* @summary List settlements
|
|
205
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
206
|
-
* @param {
|
|
207
|
-
* @param {
|
|
208
|
-
* @param {
|
|
209
|
-
* @param {
|
|
210
|
-
* @param {
|
|
211
|
-
* @param {
|
|
212
|
-
* @param {string} [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
|
|
213
|
-
* @param {string} [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. Parameters: claim.
|
|
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' | 'claimCode' | 'InsuredObjectId'} [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.
|
|
214
192
|
* @param {*} [options] Override http request option.
|
|
215
193
|
* @throws {RequiredError}
|
|
216
194
|
*/
|
|
217
|
-
listSettlements: async (authorization
|
|
218
|
-
|
|
219
|
-
assertParamExists('listSettlements', 'authorization', authorization)
|
|
220
|
-
// verify required parameter 'claimCode' is not null or undefined
|
|
221
|
-
assertParamExists('listSettlements', 'claimCode', claimCode)
|
|
222
|
-
// verify required parameter 'claimCode2' is not null or undefined
|
|
223
|
-
assertParamExists('listSettlements', 'claimCode2', claimCode2)
|
|
224
|
-
const localVarPath = `/v1/claims/{claimCode}/settlements`
|
|
225
|
-
.replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)));
|
|
195
|
+
listSettlements: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId', search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
196
|
+
const localVarPath = `/v1/settlements`;
|
|
226
197
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
227
198
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
228
199
|
let baseOptions;
|
|
@@ -240,10 +211,6 @@ export const SettlementsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
240
211
|
// http bearer authentication required
|
|
241
212
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
242
213
|
|
|
243
|
-
if (claimCode2 !== undefined) {
|
|
244
|
-
localVarQueryParameter['claimCode'] = claimCode2;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
214
|
if (pageSize !== undefined) {
|
|
248
215
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
249
216
|
}
|
|
@@ -286,24 +253,18 @@ export const SettlementsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
286
253
|
/**
|
|
287
254
|
* Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
288
255
|
* @summary Update the settlement
|
|
289
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
290
|
-
* @param {string} claimCode
|
|
291
256
|
* @param {string} code
|
|
292
257
|
* @param {UpdateSettlementRequestDto} updateSettlementRequestDto
|
|
258
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
293
259
|
* @param {*} [options] Override http request option.
|
|
294
260
|
* @throws {RequiredError}
|
|
295
261
|
*/
|
|
296
|
-
updateSettlement: async (
|
|
297
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
298
|
-
assertParamExists('updateSettlement', 'authorization', authorization)
|
|
299
|
-
// verify required parameter 'claimCode' is not null or undefined
|
|
300
|
-
assertParamExists('updateSettlement', 'claimCode', claimCode)
|
|
262
|
+
updateSettlement: async (code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
301
263
|
// verify required parameter 'code' is not null or undefined
|
|
302
264
|
assertParamExists('updateSettlement', 'code', code)
|
|
303
265
|
// verify required parameter 'updateSettlementRequestDto' is not null or undefined
|
|
304
266
|
assertParamExists('updateSettlement', 'updateSettlementRequestDto', updateSettlementRequestDto)
|
|
305
|
-
const localVarPath = `/v1/
|
|
306
|
-
.replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)))
|
|
267
|
+
const localVarPath = `/v1/settlements/{code}`
|
|
307
268
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
308
269
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
309
270
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -353,73 +314,67 @@ export const SettlementsApiFp = function(configuration?: Configuration) {
|
|
|
353
314
|
/**
|
|
354
315
|
* This will create a settlement against a claim in the database
|
|
355
316
|
* @summary Create the settlement
|
|
356
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
357
|
-
* @param {string} claimCode
|
|
358
317
|
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
318
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
359
319
|
* @param {*} [options] Override http request option.
|
|
360
320
|
* @throws {RequiredError}
|
|
361
321
|
*/
|
|
362
|
-
async createSettlement(
|
|
363
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createSettlement(
|
|
322
|
+
async createSettlement(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSettlementResponseClass>> {
|
|
323
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSettlement(createSettlementRequestDto, authorization, options);
|
|
364
324
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
365
325
|
},
|
|
366
326
|
/**
|
|
367
327
|
* This will delete the requested settlement from the database.
|
|
368
328
|
* @summary Delete the settlement
|
|
369
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
370
329
|
* @param {string} code
|
|
371
|
-
* @param {string}
|
|
330
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
372
331
|
* @param {*} [options] Override http request option.
|
|
373
332
|
* @throws {RequiredError}
|
|
374
333
|
*/
|
|
375
|
-
async deleteSettlement(
|
|
376
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettlement(
|
|
334
|
+
async deleteSettlement(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
335
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettlement(code, authorization, options);
|
|
377
336
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
378
337
|
},
|
|
379
338
|
/**
|
|
380
339
|
* Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
|
|
381
340
|
* @summary Retrieve the settlement
|
|
382
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
383
|
-
* @param {string} claimCode
|
|
384
341
|
* @param {string} code
|
|
342
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
385
343
|
* @param {*} [options] Override http request option.
|
|
386
344
|
* @throws {RequiredError}
|
|
387
345
|
*/
|
|
388
|
-
async getSettlement(
|
|
389
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getSettlement(
|
|
346
|
+
async getSettlement(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettlementResponseClass>> {
|
|
347
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSettlement(code, authorization, options);
|
|
390
348
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
391
349
|
},
|
|
392
350
|
/**
|
|
393
351
|
* Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
394
352
|
* @summary List settlements
|
|
395
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
396
|
-
* @param {
|
|
397
|
-
* @param {
|
|
398
|
-
* @param {
|
|
399
|
-
* @param {
|
|
400
|
-
* @param {
|
|
401
|
-
* @param {
|
|
402
|
-
* @param {string} [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
|
|
403
|
-
* @param {string} [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. Parameters: claim.
|
|
353
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
354
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
355
|
+
* @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.
|
|
356
|
+
* @param {'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
357
|
+
* @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.
|
|
358
|
+
* @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.
|
|
359
|
+
* @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.
|
|
404
360
|
* @param {*} [options] Override http request option.
|
|
405
361
|
* @throws {RequiredError}
|
|
406
362
|
*/
|
|
407
|
-
async listSettlements(authorization
|
|
408
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSettlements(authorization,
|
|
363
|
+
async listSettlements(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId', search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSettlementsResponseClass>> {
|
|
364
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSettlements(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
409
365
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
410
366
|
},
|
|
411
367
|
/**
|
|
412
368
|
* Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
413
369
|
* @summary Update the settlement
|
|
414
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
415
|
-
* @param {string} claimCode
|
|
416
370
|
* @param {string} code
|
|
417
371
|
* @param {UpdateSettlementRequestDto} updateSettlementRequestDto
|
|
372
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
418
373
|
* @param {*} [options] Override http request option.
|
|
419
374
|
* @throws {RequiredError}
|
|
420
375
|
*/
|
|
421
|
-
async updateSettlement(
|
|
422
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSettlement(
|
|
376
|
+
async updateSettlement(code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSettlementResponseClass>> {
|
|
377
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSettlement(code, updateSettlementRequestDto, authorization, options);
|
|
423
378
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
424
379
|
},
|
|
425
380
|
}
|
|
@@ -435,69 +390,63 @@ export const SettlementsApiFactory = function (configuration?: Configuration, ba
|
|
|
435
390
|
/**
|
|
436
391
|
* This will create a settlement against a claim in the database
|
|
437
392
|
* @summary Create the settlement
|
|
438
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
439
|
-
* @param {string} claimCode
|
|
440
393
|
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
394
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
441
395
|
* @param {*} [options] Override http request option.
|
|
442
396
|
* @throws {RequiredError}
|
|
443
397
|
*/
|
|
444
|
-
createSettlement(
|
|
445
|
-
return localVarFp.createSettlement(
|
|
398
|
+
createSettlement(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSettlementResponseClass> {
|
|
399
|
+
return localVarFp.createSettlement(createSettlementRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
446
400
|
},
|
|
447
401
|
/**
|
|
448
402
|
* This will delete the requested settlement from the database.
|
|
449
403
|
* @summary Delete the settlement
|
|
450
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
451
404
|
* @param {string} code
|
|
452
|
-
* @param {string}
|
|
405
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
453
406
|
* @param {*} [options] Override http request option.
|
|
454
407
|
* @throws {RequiredError}
|
|
455
408
|
*/
|
|
456
|
-
deleteSettlement(
|
|
457
|
-
return localVarFp.deleteSettlement(
|
|
409
|
+
deleteSettlement(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
410
|
+
return localVarFp.deleteSettlement(code, authorization, options).then((request) => request(axios, basePath));
|
|
458
411
|
},
|
|
459
412
|
/**
|
|
460
413
|
* Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
|
|
461
414
|
* @summary Retrieve the settlement
|
|
462
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
463
|
-
* @param {string} claimCode
|
|
464
415
|
* @param {string} code
|
|
416
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
465
417
|
* @param {*} [options] Override http request option.
|
|
466
418
|
* @throws {RequiredError}
|
|
467
419
|
*/
|
|
468
|
-
getSettlement(
|
|
469
|
-
return localVarFp.getSettlement(
|
|
420
|
+
getSettlement(code: string, authorization?: string, options?: any): AxiosPromise<GetSettlementResponseClass> {
|
|
421
|
+
return localVarFp.getSettlement(code, authorization, options).then((request) => request(axios, basePath));
|
|
470
422
|
},
|
|
471
423
|
/**
|
|
472
424
|
* Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
473
425
|
* @summary List settlements
|
|
474
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
475
|
-
* @param {
|
|
476
|
-
* @param {
|
|
477
|
-
* @param {
|
|
478
|
-
* @param {
|
|
479
|
-
* @param {
|
|
480
|
-
* @param {
|
|
481
|
-
* @param {string} [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
|
|
482
|
-
* @param {string} [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. Parameters: claim.
|
|
426
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
427
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
428
|
+
* @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.
|
|
429
|
+
* @param {'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
430
|
+
* @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.
|
|
431
|
+
* @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.
|
|
432
|
+
* @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.
|
|
483
433
|
* @param {*} [options] Override http request option.
|
|
484
434
|
* @throws {RequiredError}
|
|
485
435
|
*/
|
|
486
|
-
listSettlements(authorization
|
|
487
|
-
return localVarFp.listSettlements(authorization,
|
|
436
|
+
listSettlements(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId', search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListSettlementsResponseClass> {
|
|
437
|
+
return localVarFp.listSettlements(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
488
438
|
},
|
|
489
439
|
/**
|
|
490
440
|
* Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
491
441
|
* @summary Update the settlement
|
|
492
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
493
|
-
* @param {string} claimCode
|
|
494
442
|
* @param {string} code
|
|
495
443
|
* @param {UpdateSettlementRequestDto} updateSettlementRequestDto
|
|
444
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
496
445
|
* @param {*} [options] Override http request option.
|
|
497
446
|
* @throws {RequiredError}
|
|
498
447
|
*/
|
|
499
|
-
updateSettlement(
|
|
500
|
-
return localVarFp.updateSettlement(
|
|
448
|
+
updateSettlement(code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateSettlementResponseClass> {
|
|
449
|
+
return localVarFp.updateSettlement(code, updateSettlementRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
501
450
|
},
|
|
502
451
|
};
|
|
503
452
|
};
|
|
@@ -508,26 +457,19 @@ export const SettlementsApiFactory = function (configuration?: Configuration, ba
|
|
|
508
457
|
* @interface SettlementsApiCreateSettlementRequest
|
|
509
458
|
*/
|
|
510
459
|
export interface SettlementsApiCreateSettlementRequest {
|
|
511
|
-
/**
|
|
512
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
513
|
-
* @type {string}
|
|
514
|
-
* @memberof SettlementsApiCreateSettlement
|
|
515
|
-
*/
|
|
516
|
-
readonly authorization: string
|
|
517
|
-
|
|
518
460
|
/**
|
|
519
461
|
*
|
|
520
|
-
* @type {
|
|
462
|
+
* @type {CreateSettlementRequestDto}
|
|
521
463
|
* @memberof SettlementsApiCreateSettlement
|
|
522
464
|
*/
|
|
523
|
-
readonly
|
|
465
|
+
readonly createSettlementRequestDto: CreateSettlementRequestDto
|
|
524
466
|
|
|
525
467
|
/**
|
|
526
|
-
*
|
|
527
|
-
* @type {
|
|
468
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
469
|
+
* @type {string}
|
|
528
470
|
* @memberof SettlementsApiCreateSettlement
|
|
529
471
|
*/
|
|
530
|
-
readonly
|
|
472
|
+
readonly authorization?: string
|
|
531
473
|
}
|
|
532
474
|
|
|
533
475
|
/**
|
|
@@ -536,13 +478,6 @@ export interface SettlementsApiCreateSettlementRequest {
|
|
|
536
478
|
* @interface SettlementsApiDeleteSettlementRequest
|
|
537
479
|
*/
|
|
538
480
|
export interface SettlementsApiDeleteSettlementRequest {
|
|
539
|
-
/**
|
|
540
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
541
|
-
* @type {string}
|
|
542
|
-
* @memberof SettlementsApiDeleteSettlement
|
|
543
|
-
*/
|
|
544
|
-
readonly authorization: string
|
|
545
|
-
|
|
546
481
|
/**
|
|
547
482
|
*
|
|
548
483
|
* @type {string}
|
|
@@ -551,11 +486,11 @@ export interface SettlementsApiDeleteSettlementRequest {
|
|
|
551
486
|
readonly code: string
|
|
552
487
|
|
|
553
488
|
/**
|
|
554
|
-
*
|
|
489
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
555
490
|
* @type {string}
|
|
556
491
|
* @memberof SettlementsApiDeleteSettlement
|
|
557
492
|
*/
|
|
558
|
-
readonly
|
|
493
|
+
readonly authorization?: string
|
|
559
494
|
}
|
|
560
495
|
|
|
561
496
|
/**
|
|
@@ -564,26 +499,19 @@ export interface SettlementsApiDeleteSettlementRequest {
|
|
|
564
499
|
* @interface SettlementsApiGetSettlementRequest
|
|
565
500
|
*/
|
|
566
501
|
export interface SettlementsApiGetSettlementRequest {
|
|
567
|
-
/**
|
|
568
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
569
|
-
* @type {string}
|
|
570
|
-
* @memberof SettlementsApiGetSettlement
|
|
571
|
-
*/
|
|
572
|
-
readonly authorization: string
|
|
573
|
-
|
|
574
502
|
/**
|
|
575
503
|
*
|
|
576
504
|
* @type {string}
|
|
577
505
|
* @memberof SettlementsApiGetSettlement
|
|
578
506
|
*/
|
|
579
|
-
readonly
|
|
507
|
+
readonly code: string
|
|
580
508
|
|
|
581
509
|
/**
|
|
582
|
-
*
|
|
510
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
583
511
|
* @type {string}
|
|
584
512
|
* @memberof SettlementsApiGetSettlement
|
|
585
513
|
*/
|
|
586
|
-
readonly
|
|
514
|
+
readonly authorization?: string
|
|
587
515
|
}
|
|
588
516
|
|
|
589
517
|
/**
|
|
@@ -597,63 +525,49 @@ export interface SettlementsApiListSettlementsRequest {
|
|
|
597
525
|
* @type {string}
|
|
598
526
|
* @memberof SettlementsApiListSettlements
|
|
599
527
|
*/
|
|
600
|
-
readonly authorization
|
|
528
|
+
readonly authorization?: string
|
|
601
529
|
|
|
602
530
|
/**
|
|
603
|
-
*
|
|
604
|
-
* @type {
|
|
531
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
532
|
+
* @type {any}
|
|
605
533
|
* @memberof SettlementsApiListSettlements
|
|
606
534
|
*/
|
|
607
|
-
readonly
|
|
535
|
+
readonly pageSize?: any
|
|
608
536
|
|
|
609
537
|
/**
|
|
610
|
-
*
|
|
611
|
-
* @type {
|
|
538
|
+
* 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.
|
|
539
|
+
* @type {any}
|
|
612
540
|
* @memberof SettlementsApiListSettlements
|
|
613
541
|
*/
|
|
614
|
-
readonly
|
|
542
|
+
readonly pageToken?: any
|
|
615
543
|
|
|
616
544
|
/**
|
|
617
|
-
*
|
|
618
|
-
* @type {
|
|
545
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
546
|
+
* @type {'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'}
|
|
619
547
|
* @memberof SettlementsApiListSettlements
|
|
620
548
|
*/
|
|
621
|
-
readonly
|
|
549
|
+
readonly filter?: 'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'
|
|
622
550
|
|
|
623
551
|
/**
|
|
624
|
-
*
|
|
625
|
-
* @type {
|
|
552
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
553
|
+
* @type {any}
|
|
626
554
|
* @memberof SettlementsApiListSettlements
|
|
627
555
|
*/
|
|
628
|
-
readonly
|
|
556
|
+
readonly search?: any
|
|
629
557
|
|
|
630
558
|
/**
|
|
631
|
-
*
|
|
632
|
-
* @type {
|
|
633
|
-
* @memberof SettlementsApiListSettlements
|
|
634
|
-
*/
|
|
635
|
-
readonly filter?: string
|
|
636
|
-
|
|
637
|
-
/**
|
|
638
|
-
* Searching the response for a pattern to match for specific request results
|
|
639
|
-
* @type {string}
|
|
640
|
-
* @memberof SettlementsApiListSettlements
|
|
641
|
-
*/
|
|
642
|
-
readonly search?: string
|
|
643
|
-
|
|
644
|
-
/**
|
|
645
|
-
* 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
|
|
646
|
-
* @type {string}
|
|
559
|
+
* 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.
|
|
560
|
+
* @type {any}
|
|
647
561
|
* @memberof SettlementsApiListSettlements
|
|
648
562
|
*/
|
|
649
|
-
readonly order?:
|
|
563
|
+
readonly order?: any
|
|
650
564
|
|
|
651
565
|
/**
|
|
652
|
-
* Use this parameter to fetch additional information about the list items.
|
|
653
|
-
* @type {
|
|
566
|
+
* 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.
|
|
567
|
+
* @type {any}
|
|
654
568
|
* @memberof SettlementsApiListSettlements
|
|
655
569
|
*/
|
|
656
|
-
readonly expand?:
|
|
570
|
+
readonly expand?: any
|
|
657
571
|
}
|
|
658
572
|
|
|
659
573
|
/**
|
|
@@ -662,33 +576,26 @@ export interface SettlementsApiListSettlementsRequest {
|
|
|
662
576
|
* @interface SettlementsApiUpdateSettlementRequest
|
|
663
577
|
*/
|
|
664
578
|
export interface SettlementsApiUpdateSettlementRequest {
|
|
665
|
-
/**
|
|
666
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
667
|
-
* @type {string}
|
|
668
|
-
* @memberof SettlementsApiUpdateSettlement
|
|
669
|
-
*/
|
|
670
|
-
readonly authorization: string
|
|
671
|
-
|
|
672
579
|
/**
|
|
673
580
|
*
|
|
674
581
|
* @type {string}
|
|
675
582
|
* @memberof SettlementsApiUpdateSettlement
|
|
676
583
|
*/
|
|
677
|
-
readonly
|
|
584
|
+
readonly code: string
|
|
678
585
|
|
|
679
586
|
/**
|
|
680
587
|
*
|
|
681
|
-
* @type {
|
|
588
|
+
* @type {UpdateSettlementRequestDto}
|
|
682
589
|
* @memberof SettlementsApiUpdateSettlement
|
|
683
590
|
*/
|
|
684
|
-
readonly
|
|
591
|
+
readonly updateSettlementRequestDto: UpdateSettlementRequestDto
|
|
685
592
|
|
|
686
593
|
/**
|
|
687
|
-
*
|
|
688
|
-
* @type {
|
|
594
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
595
|
+
* @type {string}
|
|
689
596
|
* @memberof SettlementsApiUpdateSettlement
|
|
690
597
|
*/
|
|
691
|
-
readonly
|
|
598
|
+
readonly authorization?: string
|
|
692
599
|
}
|
|
693
600
|
|
|
694
601
|
/**
|
|
@@ -707,7 +614,7 @@ export class SettlementsApi extends BaseAPI {
|
|
|
707
614
|
* @memberof SettlementsApi
|
|
708
615
|
*/
|
|
709
616
|
public createSettlement(requestParameters: SettlementsApiCreateSettlementRequest, options?: AxiosRequestConfig) {
|
|
710
|
-
return SettlementsApiFp(this.configuration).createSettlement(requestParameters.
|
|
617
|
+
return SettlementsApiFp(this.configuration).createSettlement(requestParameters.createSettlementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
711
618
|
}
|
|
712
619
|
|
|
713
620
|
/**
|
|
@@ -719,7 +626,7 @@ export class SettlementsApi extends BaseAPI {
|
|
|
719
626
|
* @memberof SettlementsApi
|
|
720
627
|
*/
|
|
721
628
|
public deleteSettlement(requestParameters: SettlementsApiDeleteSettlementRequest, options?: AxiosRequestConfig) {
|
|
722
|
-
return SettlementsApiFp(this.configuration).deleteSettlement(requestParameters.
|
|
629
|
+
return SettlementsApiFp(this.configuration).deleteSettlement(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
723
630
|
}
|
|
724
631
|
|
|
725
632
|
/**
|
|
@@ -731,7 +638,7 @@ export class SettlementsApi extends BaseAPI {
|
|
|
731
638
|
* @memberof SettlementsApi
|
|
732
639
|
*/
|
|
733
640
|
public getSettlement(requestParameters: SettlementsApiGetSettlementRequest, options?: AxiosRequestConfig) {
|
|
734
|
-
return SettlementsApiFp(this.configuration).getSettlement(requestParameters.
|
|
641
|
+
return SettlementsApiFp(this.configuration).getSettlement(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
735
642
|
}
|
|
736
643
|
|
|
737
644
|
/**
|
|
@@ -742,8 +649,8 @@ export class SettlementsApi extends BaseAPI {
|
|
|
742
649
|
* @throws {RequiredError}
|
|
743
650
|
* @memberof SettlementsApi
|
|
744
651
|
*/
|
|
745
|
-
public listSettlements(requestParameters: SettlementsApiListSettlementsRequest, options?: AxiosRequestConfig) {
|
|
746
|
-
return SettlementsApiFp(this.configuration).listSettlements(requestParameters.authorization, requestParameters.
|
|
652
|
+
public listSettlements(requestParameters: SettlementsApiListSettlementsRequest = {}, options?: AxiosRequestConfig) {
|
|
653
|
+
return SettlementsApiFp(this.configuration).listSettlements(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
747
654
|
}
|
|
748
655
|
|
|
749
656
|
/**
|
|
@@ -755,6 +662,6 @@ export class SettlementsApi extends BaseAPI {
|
|
|
755
662
|
* @memberof SettlementsApi
|
|
756
663
|
*/
|
|
757
664
|
public updateSettlement(requestParameters: SettlementsApiUpdateSettlementRequest, options?: AxiosRequestConfig) {
|
|
758
|
-
return SettlementsApiFp(this.configuration).updateSettlement(requestParameters.
|
|
665
|
+
return SettlementsApiFp(this.configuration).updateSettlement(requestParameters.code, requestParameters.updateSettlementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
759
666
|
}
|
|
760
667
|
}
|