@emilgroup/claim-sdk-node 1.3.0 → 1.3.1

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 (75) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/api/claims-api.ts +182 -61
  4. package/api/settlements-api.ts +760 -0
  5. package/api.ts +3 -1
  6. package/base.ts +2 -2
  7. package/common.ts +2 -2
  8. package/configuration.ts +1 -1
  9. package/dist/api/claims-api.d.ts +110 -50
  10. package/dist/api/claims-api.js +145 -44
  11. package/dist/api/settlements-api.d.ts +430 -0
  12. package/dist/api/settlements-api.js +681 -0
  13. package/dist/api.d.ts +2 -1
  14. package/dist/api.js +2 -1
  15. package/dist/base.d.ts +1 -1
  16. package/dist/base.js +2 -2
  17. package/dist/common.d.ts +2 -2
  18. package/dist/common.js +1 -1
  19. package/dist/configuration.d.ts +1 -1
  20. package/dist/configuration.js +1 -1
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/models/claim-class.d.ts +138 -0
  24. package/dist/models/claim-class.js +15 -0
  25. package/dist/models/create-claim-request-dto.d.ts +7 -7
  26. package/dist/models/create-claim-request-dto.js +1 -1
  27. package/dist/models/create-claim-response-class.d.ts +25 -0
  28. package/dist/models/create-claim-response-class.js +15 -0
  29. package/dist/models/create-settlement-request-dto.d.ts +48 -0
  30. package/dist/models/create-settlement-request-dto.js +15 -0
  31. package/dist/models/create-settlement-response-class.d.ts +25 -0
  32. package/dist/models/create-settlement-response-class.js +15 -0
  33. package/dist/models/delete-response-class.d.ts +24 -0
  34. package/dist/models/delete-response-class.js +15 -0
  35. package/dist/models/delete-settlement-request-dto.d.ts +30 -0
  36. package/dist/models/delete-settlement-request-dto.js +15 -0
  37. package/dist/models/get-claim-response-class.d.ts +25 -0
  38. package/dist/models/get-claim-response-class.js +15 -0
  39. package/dist/models/get-settlement-response-class.d.ts +25 -0
  40. package/dist/models/get-settlement-response-class.js +15 -0
  41. package/dist/models/index.d.ts +14 -0
  42. package/dist/models/index.js +14 -0
  43. package/dist/models/list-claim-response-class.d.ts +31 -0
  44. package/dist/models/list-claim-response-class.js +15 -0
  45. package/dist/models/list-settlements-response-class.d.ts +31 -0
  46. package/dist/models/list-settlements-response-class.js +15 -0
  47. package/dist/models/settlement-class.d.ts +72 -0
  48. package/dist/models/settlement-class.js +15 -0
  49. package/dist/models/update-claim-request-dto.d.ts +7 -7
  50. package/dist/models/update-claim-request-dto.js +1 -1
  51. package/dist/models/update-claim-response-class.d.ts +25 -0
  52. package/dist/models/update-claim-response-class.js +15 -0
  53. package/dist/models/update-settlement-request-dto.d.ts +48 -0
  54. package/dist/models/update-settlement-request-dto.js +15 -0
  55. package/dist/models/update-settlement-response-class.d.ts +25 -0
  56. package/dist/models/update-settlement-response-class.js +15 -0
  57. package/index.ts +1 -1
  58. package/models/claim-class.ts +144 -0
  59. package/models/create-claim-request-dto.ts +7 -7
  60. package/models/create-claim-response-class.ts +31 -0
  61. package/models/create-settlement-request-dto.ts +54 -0
  62. package/models/create-settlement-response-class.ts +31 -0
  63. package/models/delete-response-class.ts +30 -0
  64. package/models/delete-settlement-request-dto.ts +36 -0
  65. package/models/get-claim-response-class.ts +31 -0
  66. package/models/get-settlement-response-class.ts +31 -0
  67. package/models/index.ts +14 -0
  68. package/models/list-claim-response-class.ts +37 -0
  69. package/models/list-settlements-response-class.ts +37 -0
  70. package/models/settlement-class.ts +78 -0
  71. package/models/update-claim-request-dto.ts +7 -7
  72. package/models/update-claim-response-class.ts +31 -0
  73. package/models/update-settlement-request-dto.ts +54 -0
  74. package/models/update-settlement-response-class.ts +31 -0
  75. package/package.json +1 -1
@@ -0,0 +1,760 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL ClaimService
5
+ * The EMIL ClaimService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateSettlementRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateSettlementResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { DeleteResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { GetSettlementResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListSettlementsResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateSettlementRequestDto } from '../models';
35
+ // @ts-ignore
36
+ import { UpdateSettlementResponseClass } from '../models';
37
+ // URLSearchParams not necessarily used
38
+ // @ts-ignore
39
+ import { URL, URLSearchParams } from 'url';
40
+ const FormData = require('form-data');
41
+ /**
42
+ * SettlementsApi - axios parameter creator
43
+ * @export
44
+ */
45
+ export const SettlementsApiAxiosParamCreator = function (configuration?: Configuration) {
46
+ return {
47
+ /**
48
+ * This will create a settlement against a claim in the database
49
+ * @summary Create the settlement
50
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
51
+ * @param {string} claimCode
52
+ * @param {CreateSettlementRequestDto} createSettlementRequestDto
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
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)
61
+ // verify required parameter 'createSettlementRequestDto' is not null or undefined
62
+ assertParamExists('createSettlement', 'createSettlementRequestDto', createSettlementRequestDto)
63
+ const localVarPath = `/v1/claims/{claimCode}/settlements`
64
+ .replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)));
65
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
66
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
67
+ let baseOptions;
68
+ let baseAccessToken;
69
+ if (configuration) {
70
+ baseOptions = configuration.baseOptions;
71
+ baseAccessToken = configuration.accessToken;
72
+ }
73
+
74
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
75
+ const localVarHeaderParameter = {} as any;
76
+ const localVarQueryParameter = {} as any;
77
+
78
+ // authentication bearer required
79
+ // http bearer authentication required
80
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
81
+
82
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
83
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
84
+ }
85
+
86
+
87
+
88
+ localVarHeaderParameter['Content-Type'] = 'application/json';
89
+
90
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
91
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
92
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
93
+ localVarRequestOptions.data = serializeDataIfNeeded(createSettlementRequestDto, localVarRequestOptions, configuration)
94
+
95
+ return {
96
+ url: toPathString(localVarUrlObj),
97
+ options: localVarRequestOptions,
98
+ };
99
+ },
100
+ /**
101
+ * This will delete the requested settlement from the database.
102
+ * @summary Delete the settlement
103
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {string} code
105
+ * @param {string} claimCode
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
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)
112
+ // verify required parameter 'code' is not null or undefined
113
+ 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)));
119
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
121
+ let baseOptions;
122
+ let baseAccessToken;
123
+ if (configuration) {
124
+ baseOptions = configuration.baseOptions;
125
+ baseAccessToken = configuration.accessToken;
126
+ }
127
+
128
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
129
+ const localVarHeaderParameter = {} as any;
130
+ const localVarQueryParameter = {} as any;
131
+
132
+ // authentication bearer required
133
+ // http bearer authentication required
134
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
135
+
136
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ }
139
+
140
+
141
+
142
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
143
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
144
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
145
+
146
+ return {
147
+ url: toPathString(localVarUrlObj),
148
+ options: localVarRequestOptions,
149
+ };
150
+ },
151
+ /**
152
+ * 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
+ * @summary Retrieve the settlement
154
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
155
+ * @param {string} claimCode
156
+ * @param {string} code
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
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)
165
+ // verify required parameter 'code' is not null or undefined
166
+ assertParamExists('getSettlement', 'code', code)
167
+ const localVarPath = `/v1/claims/{claimCode}/settlements/{code}`
168
+ .replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)))
169
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
170
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
171
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
172
+ let baseOptions;
173
+ let baseAccessToken;
174
+ if (configuration) {
175
+ baseOptions = configuration.baseOptions;
176
+ baseAccessToken = configuration.accessToken;
177
+ }
178
+
179
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
180
+ const localVarHeaderParameter = {} as any;
181
+ const localVarQueryParameter = {} as any;
182
+
183
+ // authentication bearer required
184
+ // http bearer authentication required
185
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
186
+
187
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
188
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
189
+ }
190
+
191
+
192
+
193
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
194
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
195
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
196
+
197
+ return {
198
+ url: toPathString(localVarUrlObj),
199
+ options: localVarRequestOptions,
200
+ };
201
+ },
202
+ /**
203
+ * 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
+ * @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.
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
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)));
226
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
227
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
228
+ let baseOptions;
229
+ let baseAccessToken;
230
+ if (configuration) {
231
+ baseOptions = configuration.baseOptions;
232
+ baseAccessToken = configuration.accessToken;
233
+ }
234
+
235
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
236
+ const localVarHeaderParameter = {} as any;
237
+ const localVarQueryParameter = {} as any;
238
+
239
+ // authentication bearer required
240
+ // http bearer authentication required
241
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
242
+
243
+ if (claimCode2 !== undefined) {
244
+ localVarQueryParameter['claimCode'] = claimCode2;
245
+ }
246
+
247
+ if (pageSize !== undefined) {
248
+ localVarQueryParameter['pageSize'] = pageSize;
249
+ }
250
+
251
+ if (pageToken !== undefined) {
252
+ localVarQueryParameter['pageToken'] = pageToken;
253
+ }
254
+
255
+ if (filter !== undefined) {
256
+ localVarQueryParameter['filter'] = filter;
257
+ }
258
+
259
+ if (search !== undefined) {
260
+ localVarQueryParameter['search'] = search;
261
+ }
262
+
263
+ if (order !== undefined) {
264
+ localVarQueryParameter['order'] = order;
265
+ }
266
+
267
+ if (expand !== undefined) {
268
+ localVarQueryParameter['expand'] = expand;
269
+ }
270
+
271
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
272
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
273
+ }
274
+
275
+
276
+
277
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
278
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
279
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
280
+
281
+ return {
282
+ url: toPathString(localVarUrlObj),
283
+ options: localVarRequestOptions,
284
+ };
285
+ },
286
+ /**
287
+ * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
288
+ * @summary Update the settlement
289
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
290
+ * @param {string} claimCode
291
+ * @param {string} code
292
+ * @param {UpdateSettlementRequestDto} updateSettlementRequestDto
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
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)
301
+ // verify required parameter 'code' is not null or undefined
302
+ assertParamExists('updateSettlement', 'code', code)
303
+ // verify required parameter 'updateSettlementRequestDto' is not null or undefined
304
+ assertParamExists('updateSettlement', 'updateSettlementRequestDto', updateSettlementRequestDto)
305
+ const localVarPath = `/v1/claims/{claimCode}/settlements/{code}`
306
+ .replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)))
307
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
308
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
309
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
310
+ let baseOptions;
311
+ let baseAccessToken;
312
+ if (configuration) {
313
+ baseOptions = configuration.baseOptions;
314
+ baseAccessToken = configuration.accessToken;
315
+ }
316
+
317
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
318
+ const localVarHeaderParameter = {} as any;
319
+ const localVarQueryParameter = {} as any;
320
+
321
+ // authentication bearer required
322
+ // http bearer authentication required
323
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
324
+
325
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
326
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
327
+ }
328
+
329
+
330
+
331
+ localVarHeaderParameter['Content-Type'] = 'application/json';
332
+
333
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
334
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
335
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
336
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSettlementRequestDto, localVarRequestOptions, configuration)
337
+
338
+ return {
339
+ url: toPathString(localVarUrlObj),
340
+ options: localVarRequestOptions,
341
+ };
342
+ },
343
+ }
344
+ };
345
+
346
+ /**
347
+ * SettlementsApi - functional programming interface
348
+ * @export
349
+ */
350
+ export const SettlementsApiFp = function(configuration?: Configuration) {
351
+ const localVarAxiosParamCreator = SettlementsApiAxiosParamCreator(configuration)
352
+ return {
353
+ /**
354
+ * This will create a settlement against a claim in the database
355
+ * @summary Create the settlement
356
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
357
+ * @param {string} claimCode
358
+ * @param {CreateSettlementRequestDto} createSettlementRequestDto
359
+ * @param {*} [options] Override http request option.
360
+ * @throws {RequiredError}
361
+ */
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);
364
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
365
+ },
366
+ /**
367
+ * This will delete the requested settlement from the database.
368
+ * @summary Delete the settlement
369
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
370
+ * @param {string} code
371
+ * @param {string} claimCode
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ */
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);
377
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
378
+ },
379
+ /**
380
+ * 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
+ * @summary Retrieve the settlement
382
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
383
+ * @param {string} claimCode
384
+ * @param {string} code
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
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);
390
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
391
+ },
392
+ /**
393
+ * 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
+ * @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.
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ */
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);
409
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
410
+ },
411
+ /**
412
+ * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
413
+ * @summary Update the settlement
414
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
415
+ * @param {string} claimCode
416
+ * @param {string} code
417
+ * @param {UpdateSettlementRequestDto} updateSettlementRequestDto
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ */
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);
423
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
424
+ },
425
+ }
426
+ };
427
+
428
+ /**
429
+ * SettlementsApi - factory interface
430
+ * @export
431
+ */
432
+ export const SettlementsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
433
+ const localVarFp = SettlementsApiFp(configuration)
434
+ return {
435
+ /**
436
+ * This will create a settlement against a claim in the database
437
+ * @summary Create the settlement
438
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
439
+ * @param {string} claimCode
440
+ * @param {CreateSettlementRequestDto} createSettlementRequestDto
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ */
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));
446
+ },
447
+ /**
448
+ * This will delete the requested settlement from the database.
449
+ * @summary Delete the settlement
450
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
451
+ * @param {string} code
452
+ * @param {string} claimCode
453
+ * @param {*} [options] Override http request option.
454
+ * @throws {RequiredError}
455
+ */
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));
458
+ },
459
+ /**
460
+ * 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
+ * @summary Retrieve the settlement
462
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
463
+ * @param {string} claimCode
464
+ * @param {string} code
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ */
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));
470
+ },
471
+ /**
472
+ * 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
+ * @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.
483
+ * @param {*} [options] Override http request option.
484
+ * @throws {RequiredError}
485
+ */
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));
488
+ },
489
+ /**
490
+ * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
491
+ * @summary Update the settlement
492
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
493
+ * @param {string} claimCode
494
+ * @param {string} code
495
+ * @param {UpdateSettlementRequestDto} updateSettlementRequestDto
496
+ * @param {*} [options] Override http request option.
497
+ * @throws {RequiredError}
498
+ */
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));
501
+ },
502
+ };
503
+ };
504
+
505
+ /**
506
+ * Request parameters for createSettlement operation in SettlementsApi.
507
+ * @export
508
+ * @interface SettlementsApiCreateSettlementRequest
509
+ */
510
+ 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
+ /**
519
+ *
520
+ * @type {string}
521
+ * @memberof SettlementsApiCreateSettlement
522
+ */
523
+ readonly claimCode: string
524
+
525
+ /**
526
+ *
527
+ * @type {CreateSettlementRequestDto}
528
+ * @memberof SettlementsApiCreateSettlement
529
+ */
530
+ readonly createSettlementRequestDto: CreateSettlementRequestDto
531
+ }
532
+
533
+ /**
534
+ * Request parameters for deleteSettlement operation in SettlementsApi.
535
+ * @export
536
+ * @interface SettlementsApiDeleteSettlementRequest
537
+ */
538
+ 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
+ /**
547
+ *
548
+ * @type {string}
549
+ * @memberof SettlementsApiDeleteSettlement
550
+ */
551
+ readonly code: string
552
+
553
+ /**
554
+ *
555
+ * @type {string}
556
+ * @memberof SettlementsApiDeleteSettlement
557
+ */
558
+ readonly claimCode: string
559
+ }
560
+
561
+ /**
562
+ * Request parameters for getSettlement operation in SettlementsApi.
563
+ * @export
564
+ * @interface SettlementsApiGetSettlementRequest
565
+ */
566
+ 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
+ /**
575
+ *
576
+ * @type {string}
577
+ * @memberof SettlementsApiGetSettlement
578
+ */
579
+ readonly claimCode: string
580
+
581
+ /**
582
+ *
583
+ * @type {string}
584
+ * @memberof SettlementsApiGetSettlement
585
+ */
586
+ readonly code: string
587
+ }
588
+
589
+ /**
590
+ * Request parameters for listSettlements operation in SettlementsApi.
591
+ * @export
592
+ * @interface SettlementsApiListSettlementsRequest
593
+ */
594
+ export interface SettlementsApiListSettlementsRequest {
595
+ /**
596
+ * Bearer Token: provided by the login endpoint under the name accessToken.
597
+ * @type {string}
598
+ * @memberof SettlementsApiListSettlements
599
+ */
600
+ readonly authorization: string
601
+
602
+ /**
603
+ *
604
+ * @type {string}
605
+ * @memberof SettlementsApiListSettlements
606
+ */
607
+ readonly claimCode: string
608
+
609
+ /**
610
+ * The identifier code of the claim.
611
+ * @type {string}
612
+ * @memberof SettlementsApiListSettlements
613
+ */
614
+ readonly claimCode2: string
615
+
616
+ /**
617
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
618
+ * @type {number}
619
+ * @memberof SettlementsApiListSettlements
620
+ */
621
+ readonly pageSize?: number
622
+
623
+ /**
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}
626
+ * @memberof SettlementsApiListSettlements
627
+ */
628
+ readonly pageToken?: string
629
+
630
+ /**
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}
647
+ * @memberof SettlementsApiListSettlements
648
+ */
649
+ readonly order?: string
650
+
651
+ /**
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}
654
+ * @memberof SettlementsApiListSettlements
655
+ */
656
+ readonly expand?: string
657
+ }
658
+
659
+ /**
660
+ * Request parameters for updateSettlement operation in SettlementsApi.
661
+ * @export
662
+ * @interface SettlementsApiUpdateSettlementRequest
663
+ */
664
+ 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
+ /**
673
+ *
674
+ * @type {string}
675
+ * @memberof SettlementsApiUpdateSettlement
676
+ */
677
+ readonly claimCode: string
678
+
679
+ /**
680
+ *
681
+ * @type {string}
682
+ * @memberof SettlementsApiUpdateSettlement
683
+ */
684
+ readonly code: string
685
+
686
+ /**
687
+ *
688
+ * @type {UpdateSettlementRequestDto}
689
+ * @memberof SettlementsApiUpdateSettlement
690
+ */
691
+ readonly updateSettlementRequestDto: UpdateSettlementRequestDto
692
+ }
693
+
694
+ /**
695
+ * SettlementsApi - object-oriented interface
696
+ * @export
697
+ * @class SettlementsApi
698
+ * @extends {BaseAPI}
699
+ */
700
+ export class SettlementsApi extends BaseAPI {
701
+ /**
702
+ * This will create a settlement against a claim in the database
703
+ * @summary Create the settlement
704
+ * @param {SettlementsApiCreateSettlementRequest} requestParameters Request parameters.
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ * @memberof SettlementsApi
708
+ */
709
+ 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));
711
+ }
712
+
713
+ /**
714
+ * This will delete the requested settlement from the database.
715
+ * @summary Delete the settlement
716
+ * @param {SettlementsApiDeleteSettlementRequest} requestParameters Request parameters.
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ * @memberof SettlementsApi
720
+ */
721
+ 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));
723
+ }
724
+
725
+ /**
726
+ * 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.
727
+ * @summary Retrieve the settlement
728
+ * @param {SettlementsApiGetSettlementRequest} requestParameters Request parameters.
729
+ * @param {*} [options] Override http request option.
730
+ * @throws {RequiredError}
731
+ * @memberof SettlementsApi
732
+ */
733
+ 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));
735
+ }
736
+
737
+ /**
738
+ * 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.
739
+ * @summary List settlements
740
+ * @param {SettlementsApiListSettlementsRequest} requestParameters Request parameters.
741
+ * @param {*} [options] Override http request option.
742
+ * @throws {RequiredError}
743
+ * @memberof SettlementsApi
744
+ */
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));
747
+ }
748
+
749
+ /**
750
+ * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
751
+ * @summary Update the settlement
752
+ * @param {SettlementsApiUpdateSettlementRequest} requestParameters Request parameters.
753
+ * @param {*} [options] Override http request option.
754
+ * @throws {RequiredError}
755
+ * @memberof SettlementsApi
756
+ */
757
+ 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));
759
+ }
760
+ }