@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.
Files changed (49) hide show
  1. package/.openapi-generator/FILES +8 -3
  2. package/README.md +2 -2
  3. package/api/claim-statuses-api.ts +547 -0
  4. package/api/claims-api.ts +189 -81
  5. package/api/settlements-api.ts +105 -198
  6. package/api.ts +2 -0
  7. package/dist/api/claim-statuses-api.d.ts +309 -0
  8. package/dist/api/claim-statuses-api.js +535 -0
  9. package/dist/api/claims-api.d.ts +124 -59
  10. package/dist/api/claims-api.js +142 -52
  11. package/dist/api/settlements-api.d.ts +85 -140
  12. package/dist/api/settlements-api.js +70 -117
  13. package/dist/api.d.ts +1 -0
  14. package/dist/api.js +1 -0
  15. package/dist/models/claim-class.d.ts +13 -1
  16. package/dist/models/claim-status-class.d.ts +36 -0
  17. package/dist/models/create-claim-request-dto.d.ts +13 -1
  18. package/dist/models/create-claim-status-request-dto.d.ts +30 -0
  19. package/dist/models/{delete-settlement-request-dto.d.ts → create-claim-status-response-class.d.ts} +7 -12
  20. package/dist/models/index.d.ts +7 -3
  21. package/dist/models/index.js +7 -3
  22. package/dist/models/list-claim-statuses-response-class.d.ts +31 -0
  23. package/{models/delete-response-class.ts → dist/models/list-claim-statuses-response-class.js} +2 -17
  24. package/dist/models/{list-claim-response-class.d.ts → list-claims-response-class.d.ts} +4 -4
  25. package/dist/models/list-claims-response-class.js +15 -0
  26. package/dist/models/patch-claim-request-dto.d.ts +126 -0
  27. package/dist/models/patch-claim-request-dto.js +15 -0
  28. package/dist/models/{delete-response-class.d.ts → patch-claim-response-class.d.ts} +7 -6
  29. package/dist/models/patch-claim-response-class.js +15 -0
  30. package/dist/models/settlement-class.d.ts +6 -0
  31. package/dist/models/update-claim-request-dto.d.ts +8 -2
  32. package/dist/models/update-settlement-request-dto.d.ts +6 -0
  33. package/models/claim-class.ts +13 -1
  34. package/models/claim-status-class.ts +42 -0
  35. package/models/create-claim-request-dto.ts +13 -1
  36. package/models/create-claim-status-request-dto.ts +36 -0
  37. package/models/create-claim-status-response-class.ts +31 -0
  38. package/models/index.ts +7 -3
  39. package/models/list-claim-statuses-response-class.ts +37 -0
  40. package/models/{list-claim-response-class.ts → list-claims-response-class.ts} +4 -4
  41. package/models/patch-claim-request-dto.ts +132 -0
  42. package/models/{delete-settlement-request-dto.ts → patch-claim-response-class.ts} +7 -12
  43. package/models/settlement-class.ts +6 -0
  44. package/models/update-claim-request-dto.ts +8 -2
  45. package/models/update-settlement-request-dto.ts +6 -0
  46. package/package.json +2 -2
  47. /package/dist/models/{delete-response-class.js → claim-status-class.js} +0 -0
  48. /package/dist/models/{delete-settlement-request-dto.js → create-claim-status-request-dto.js} +0 -0
  49. /package/dist/models/{list-claim-response-class.js → create-claim-status-response-class.js} +0 -0
@@ -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 (authorization: string, claimCode: string, createSettlementRequestDto: CreateSettlementRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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/claims/{claimCode}/settlements`
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} claimCode
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 (authorization: string, code: string, claimCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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
- // verify required parameter 'claimCode' is not null or undefined
115
- assertParamExists('deleteSettlement', 'claimCode', claimCode)
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 (authorization: string, claimCode: string, code: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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/claims/{claimCode}/settlements/{code}`
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 {string} claimCode
207
- * @param {string} claimCode2 The identifier code of the claim.
208
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
209
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
210
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: claimCode, accountNumber
211
- * @param {string} [search] Searching the response for a pattern to match for specific request results
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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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: string, claimCode: string, claimCode2: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
218
- // verify required parameter 'authorization' is not null or undefined
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 (authorization: string, claimCode: string, code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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/claims/{claimCode}/settlements/{code}`
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(authorization: string, claimCode: string, createSettlementRequestDto: CreateSettlementRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSettlementResponseClass>> {
363
- const localVarAxiosArgs = await localVarAxiosParamCreator.createSettlement(authorization, claimCode, createSettlementRequestDto, options);
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} claimCode
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(authorization: string, code: string, claimCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
376
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettlement(authorization, code, claimCode, options);
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(authorization: string, claimCode: string, code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettlementResponseClass>> {
389
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSettlement(authorization, claimCode, code, options);
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 {string} claimCode
397
- * @param {string} claimCode2 The identifier code of the claim.
398
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
399
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
400
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: claimCode, accountNumber
401
- * @param {string} [search] Searching the response for a pattern to match for specific request results
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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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: string, claimCode: string, claimCode2: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSettlementsResponseClass>> {
408
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSettlements(authorization, claimCode, claimCode2, pageSize, pageToken, filter, search, order, expand, options);
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(authorization: string, claimCode: string, code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSettlementResponseClass>> {
422
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateSettlement(authorization, claimCode, code, updateSettlementRequestDto, options);
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(authorization: string, claimCode: string, createSettlementRequestDto: CreateSettlementRequestDto, options?: any): AxiosPromise<CreateSettlementResponseClass> {
445
- return localVarFp.createSettlement(authorization, claimCode, createSettlementRequestDto, options).then((request) => request(axios, basePath));
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} claimCode
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(authorization: string, code: string, claimCode: string, options?: any): AxiosPromise<DeleteResponseClass> {
457
- return localVarFp.deleteSettlement(authorization, code, claimCode, options).then((request) => request(axios, basePath));
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(authorization: string, claimCode: string, code: string, options?: any): AxiosPromise<GetSettlementResponseClass> {
469
- return localVarFp.getSettlement(authorization, claimCode, code, options).then((request) => request(axios, basePath));
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 {string} claimCode
476
- * @param {string} claimCode2 The identifier code of the claim.
477
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
478
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
479
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: claimCode, accountNumber
480
- * @param {string} [search] Searching the response for a pattern to match for specific request results
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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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: string, claimCode: string, claimCode2: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListSettlementsResponseClass> {
487
- return localVarFp.listSettlements(authorization, claimCode, claimCode2, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
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(authorization: string, claimCode: string, code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, options?: any): AxiosPromise<UpdateSettlementResponseClass> {
500
- return localVarFp.updateSettlement(authorization, claimCode, code, updateSettlementRequestDto, options).then((request) => request(axios, basePath));
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 {string}
462
+ * @type {CreateSettlementRequestDto}
521
463
  * @memberof SettlementsApiCreateSettlement
522
464
  */
523
- readonly claimCode: string
465
+ readonly createSettlementRequestDto: CreateSettlementRequestDto
524
466
 
525
467
  /**
526
- *
527
- * @type {CreateSettlementRequestDto}
468
+ * Bearer Token: provided by the login endpoint under the name accessToken.
469
+ * @type {string}
528
470
  * @memberof SettlementsApiCreateSettlement
529
471
  */
530
- readonly createSettlementRequestDto: CreateSettlementRequestDto
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 claimCode: string
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 claimCode: string
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 code: string
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: string
528
+ readonly authorization?: string
601
529
 
602
530
  /**
603
- *
604
- * @type {string}
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 claimCode: string
535
+ readonly pageSize?: any
608
536
 
609
537
  /**
610
- * The identifier code of the claim.
611
- * @type {string}
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
539
+ * @type {any}
612
540
  * @memberof SettlementsApiListSettlements
613
541
  */
614
- readonly claimCode2: string
542
+ readonly pageToken?: any
615
543
 
616
544
  /**
617
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
618
- * @type {number}
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 pageSize?: number
549
+ readonly filter?: 'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'
622
550
 
623
551
  /**
624
- * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
625
- * @type {string}
552
+ * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
553
+ * @type {any}
626
554
  * @memberof SettlementsApiListSettlements
627
555
  */
628
- readonly pageToken?: string
556
+ readonly search?: any
629
557
 
630
558
  /**
631
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: claimCode, accountNumber
632
- * @type {string}
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?: string
563
+ readonly order?: any
650
564
 
651
565
  /**
652
- * 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.
653
- * @type {string}
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?: string
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 claimCode: string
584
+ readonly code: string
678
585
 
679
586
  /**
680
587
  *
681
- * @type {string}
588
+ * @type {UpdateSettlementRequestDto}
682
589
  * @memberof SettlementsApiUpdateSettlement
683
590
  */
684
- readonly code: string
591
+ readonly updateSettlementRequestDto: UpdateSettlementRequestDto
685
592
 
686
593
  /**
687
- *
688
- * @type {UpdateSettlementRequestDto}
594
+ * Bearer Token: provided by the login endpoint under the name accessToken.
595
+ * @type {string}
689
596
  * @memberof SettlementsApiUpdateSettlement
690
597
  */
691
- readonly updateSettlementRequestDto: UpdateSettlementRequestDto
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.authorization, requestParameters.claimCode, requestParameters.createSettlementRequestDto, options).then((request) => request(this.axios, this.basePath));
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.authorization, requestParameters.code, requestParameters.claimCode, options).then((request) => request(this.axios, this.basePath));
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.authorization, requestParameters.claimCode, requestParameters.code, options).then((request) => request(this.axios, this.basePath));
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.claimCode, requestParameters.claimCode2, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
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.authorization, requestParameters.claimCode, requestParameters.code, requestParameters.updateSettlementRequestDto, options).then((request) => request(this.axios, this.basePath));
665
+ return SettlementsApiFp(this.configuration).updateSettlement(requestParameters.code, requestParameters.updateSettlementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
759
666
  }
760
667
  }