@emilgroup/claim-sdk-node 1.39.1-beta.14 → 1.39.1-beta.16

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.
@@ -20,6 +20,9 @@ index.ts
20
20
  models/batch-upsert-claim-position-input-dto.ts
21
21
  models/batch-upsert-claim-positions-request-dto.ts
22
22
  models/batch-upsert-claim-positions-response-class.ts
23
+ models/calculate-claim-positions-request-dto.ts
24
+ models/calculate-claim-positions-response-class.ts
25
+ models/calculated-claim-position-class.ts
23
26
  models/calculation-step-result-class.ts
24
27
  models/calculation-totals-class.ts
25
28
  models/claim-applied-deductible-class.ts
@@ -28,6 +31,7 @@ models/claim-limit-usage-class.ts
28
31
  models/claim-limit-usage-result-class.ts
29
32
  models/claim-partner-class.ts
30
33
  models/claim-partner-role-class.ts
34
+ models/claim-position-calculation-input-dto.ts
31
35
  models/claim-position-class.ts
32
36
  models/claim-status-class.ts
33
37
  models/create-claim-partner-request-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/claim-sdk-node@1.39.1-beta.14 --save
20
+ npm install @emilgroup/claim-sdk-node@1.39.1-beta.16 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/claim-sdk-node@1.39.1-beta.14
24
+ yarn add @emilgroup/claim-sdk-node@1.39.1-beta.16
25
25
  ```
26
26
 
27
27
  And then you can import `ClaimsApi`.
@@ -25,6 +25,10 @@ import { BatchUpsertClaimPositionsRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { BatchUpsertClaimPositionsResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { CalculateClaimPositionsRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { CalculateClaimPositionsResponseClass } from '../models';
31
+ // @ts-ignore
28
32
  import { CreateClaimPositionRequestDto } from '../models';
29
33
  // @ts-ignore
30
34
  import { CreateClaimPositionResponseClass } from '../models';
@@ -149,6 +153,109 @@ export const ClaimPositionsApiAxiosParamCreator = function (configuration?: Conf
149
153
  options: localVarRequestOptions,
150
154
  };
151
155
  },
156
+ /**
157
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
158
+ * @summary Calculate claim positions
159
+ * @param {string} claimCode Unique identifier for the object.
160
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
161
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ calculateClaimPositions: async (claimCode: string, calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
166
+ // verify required parameter 'claimCode' is not null or undefined
167
+ assertParamExists('calculateClaimPositions', 'claimCode', claimCode)
168
+ // verify required parameter 'calculateClaimPositionsRequestDto' is not null or undefined
169
+ assertParamExists('calculateClaimPositions', 'calculateClaimPositionsRequestDto', calculateClaimPositionsRequestDto)
170
+ const localVarPath = `/claimservice/v1/claim-positions/calculate/{claimCode}`
171
+ .replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)));
172
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
173
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
174
+ let baseOptions;
175
+ let baseAccessToken;
176
+ if (configuration) {
177
+ baseOptions = configuration.baseOptions;
178
+ baseAccessToken = configuration.accessToken;
179
+ }
180
+
181
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
182
+ const localVarHeaderParameter = {} as any;
183
+ const localVarQueryParameter = {} as any;
184
+
185
+ // authentication bearer required
186
+ // http bearer authentication required
187
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
188
+
189
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
190
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
191
+ }
192
+
193
+
194
+
195
+ localVarHeaderParameter['Content-Type'] = 'application/json';
196
+
197
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
198
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
199
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
200
+ localVarRequestOptions.data = serializeDataIfNeeded(calculateClaimPositionsRequestDto, localVarRequestOptions, configuration)
201
+
202
+ return {
203
+ url: toPathString(localVarUrlObj),
204
+ options: localVarRequestOptions,
205
+ };
206
+ },
207
+ /**
208
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
209
+ * @summary Calculate claim positions
210
+ * @param {string} claimCode Unique identifier for the object.
211
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
212
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
213
+ * @param {*} [options] Override http request option.
214
+ * @deprecated
215
+ * @throws {RequiredError}
216
+ */
217
+ calculateClaimPositions1: async (claimCode: string, calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
218
+ // verify required parameter 'claimCode' is not null or undefined
219
+ assertParamExists('calculateClaimPositions1', 'claimCode', claimCode)
220
+ // verify required parameter 'calculateClaimPositionsRequestDto' is not null or undefined
221
+ assertParamExists('calculateClaimPositions1', 'calculateClaimPositionsRequestDto', calculateClaimPositionsRequestDto)
222
+ const localVarPath = `/v1/claim-positions/calculate/{claimCode}`
223
+ .replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)));
224
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
225
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
226
+ let baseOptions;
227
+ let baseAccessToken;
228
+ if (configuration) {
229
+ baseOptions = configuration.baseOptions;
230
+ baseAccessToken = configuration.accessToken;
231
+ }
232
+
233
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
234
+ const localVarHeaderParameter = {} as any;
235
+ const localVarQueryParameter = {} as any;
236
+
237
+ // authentication bearer required
238
+ // http bearer authentication required
239
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
240
+
241
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
242
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
243
+ }
244
+
245
+
246
+
247
+ localVarHeaderParameter['Content-Type'] = 'application/json';
248
+
249
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
250
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
251
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
252
+ localVarRequestOptions.data = serializeDataIfNeeded(calculateClaimPositionsRequestDto, localVarRequestOptions, configuration)
253
+
254
+ return {
255
+ url: toPathString(localVarUrlObj),
256
+ options: localVarRequestOptions,
257
+ };
258
+ },
152
259
  /**
153
260
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
154
261
  * @summary Create the claim position
@@ -733,6 +840,33 @@ export const ClaimPositionsApiFp = function(configuration?: Configuration) {
733
840
  const localVarAxiosArgs = await localVarAxiosParamCreator.batchUpsertClaimPositions1(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options);
734
841
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
735
842
  },
843
+ /**
844
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
845
+ * @summary Calculate claim positions
846
+ * @param {string} claimCode Unique identifier for the object.
847
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
848
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ */
852
+ async calculateClaimPositions(claimCode: string, calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalculateClaimPositionsResponseClass>> {
853
+ const localVarAxiosArgs = await localVarAxiosParamCreator.calculateClaimPositions(claimCode, calculateClaimPositionsRequestDto, authorization, options);
854
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
855
+ },
856
+ /**
857
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
858
+ * @summary Calculate claim positions
859
+ * @param {string} claimCode Unique identifier for the object.
860
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
861
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
862
+ * @param {*} [options] Override http request option.
863
+ * @deprecated
864
+ * @throws {RequiredError}
865
+ */
866
+ async calculateClaimPositions1(claimCode: string, calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalculateClaimPositionsResponseClass>> {
867
+ const localVarAxiosArgs = await localVarAxiosParamCreator.calculateClaimPositions1(claimCode, calculateClaimPositionsRequestDto, authorization, options);
868
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
869
+ },
736
870
  /**
737
871
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
738
872
  * @summary Create the claim position
@@ -909,6 +1043,31 @@ export const ClaimPositionsApiFactory = function (configuration?: Configuration,
909
1043
  batchUpsertClaimPositions1(claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: any): AxiosPromise<BatchUpsertClaimPositionsResponseClass> {
910
1044
  return localVarFp.batchUpsertClaimPositions1(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options).then((request) => request(axios, basePath));
911
1045
  },
1046
+ /**
1047
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
1048
+ * @summary Calculate claim positions
1049
+ * @param {string} claimCode Unique identifier for the object.
1050
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
1051
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1052
+ * @param {*} [options] Override http request option.
1053
+ * @throws {RequiredError}
1054
+ */
1055
+ calculateClaimPositions(claimCode: string, calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto, authorization?: string, options?: any): AxiosPromise<CalculateClaimPositionsResponseClass> {
1056
+ return localVarFp.calculateClaimPositions(claimCode, calculateClaimPositionsRequestDto, authorization, options).then((request) => request(axios, basePath));
1057
+ },
1058
+ /**
1059
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1060
+ * @summary Calculate claim positions
1061
+ * @param {string} claimCode Unique identifier for the object.
1062
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
1063
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1064
+ * @param {*} [options] Override http request option.
1065
+ * @deprecated
1066
+ * @throws {RequiredError}
1067
+ */
1068
+ calculateClaimPositions1(claimCode: string, calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto, authorization?: string, options?: any): AxiosPromise<CalculateClaimPositionsResponseClass> {
1069
+ return localVarFp.calculateClaimPositions1(claimCode, calculateClaimPositionsRequestDto, authorization, options).then((request) => request(axios, basePath));
1070
+ },
912
1071
  /**
913
1072
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
914
1073
  * @summary Create the claim position
@@ -1099,6 +1258,62 @@ export interface ClaimPositionsApiBatchUpsertClaimPositions1Request {
1099
1258
  readonly authorization?: string
1100
1259
  }
1101
1260
 
1261
+ /**
1262
+ * Request parameters for calculateClaimPositions operation in ClaimPositionsApi.
1263
+ * @export
1264
+ * @interface ClaimPositionsApiCalculateClaimPositionsRequest
1265
+ */
1266
+ export interface ClaimPositionsApiCalculateClaimPositionsRequest {
1267
+ /**
1268
+ * Unique identifier for the object.
1269
+ * @type {string}
1270
+ * @memberof ClaimPositionsApiCalculateClaimPositions
1271
+ */
1272
+ readonly claimCode: string
1273
+
1274
+ /**
1275
+ *
1276
+ * @type {CalculateClaimPositionsRequestDto}
1277
+ * @memberof ClaimPositionsApiCalculateClaimPositions
1278
+ */
1279
+ readonly calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto
1280
+
1281
+ /**
1282
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1283
+ * @type {string}
1284
+ * @memberof ClaimPositionsApiCalculateClaimPositions
1285
+ */
1286
+ readonly authorization?: string
1287
+ }
1288
+
1289
+ /**
1290
+ * Request parameters for calculateClaimPositions1 operation in ClaimPositionsApi.
1291
+ * @export
1292
+ * @interface ClaimPositionsApiCalculateClaimPositions1Request
1293
+ */
1294
+ export interface ClaimPositionsApiCalculateClaimPositions1Request {
1295
+ /**
1296
+ * Unique identifier for the object.
1297
+ * @type {string}
1298
+ * @memberof ClaimPositionsApiCalculateClaimPositions1
1299
+ */
1300
+ readonly claimCode: string
1301
+
1302
+ /**
1303
+ *
1304
+ * @type {CalculateClaimPositionsRequestDto}
1305
+ * @memberof ClaimPositionsApiCalculateClaimPositions1
1306
+ */
1307
+ readonly calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto
1308
+
1309
+ /**
1310
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1311
+ * @type {string}
1312
+ * @memberof ClaimPositionsApiCalculateClaimPositions1
1313
+ */
1314
+ readonly authorization?: string
1315
+ }
1316
+
1102
1317
  /**
1103
1318
  * Request parameters for createClaimPosition operation in ClaimPositionsApi.
1104
1319
  * @export
@@ -1453,6 +1668,31 @@ export class ClaimPositionsApi extends BaseAPI {
1453
1668
  return ClaimPositionsApiFp(this.configuration).batchUpsertClaimPositions1(requestParameters.claimCode, requestParameters.batchUpsertClaimPositionsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1454
1669
  }
1455
1670
 
1671
+ /**
1672
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
1673
+ * @summary Calculate claim positions
1674
+ * @param {ClaimPositionsApiCalculateClaimPositionsRequest} requestParameters Request parameters.
1675
+ * @param {*} [options] Override http request option.
1676
+ * @throws {RequiredError}
1677
+ * @memberof ClaimPositionsApi
1678
+ */
1679
+ public calculateClaimPositions(requestParameters: ClaimPositionsApiCalculateClaimPositionsRequest, options?: AxiosRequestConfig) {
1680
+ return ClaimPositionsApiFp(this.configuration).calculateClaimPositions(requestParameters.claimCode, requestParameters.calculateClaimPositionsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1681
+ }
1682
+
1683
+ /**
1684
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1685
+ * @summary Calculate claim positions
1686
+ * @param {ClaimPositionsApiCalculateClaimPositions1Request} requestParameters Request parameters.
1687
+ * @param {*} [options] Override http request option.
1688
+ * @deprecated
1689
+ * @throws {RequiredError}
1690
+ * @memberof ClaimPositionsApi
1691
+ */
1692
+ public calculateClaimPositions1(requestParameters: ClaimPositionsApiCalculateClaimPositions1Request, options?: AxiosRequestConfig) {
1693
+ return ClaimPositionsApiFp(this.configuration).calculateClaimPositions1(requestParameters.claimCode, requestParameters.calculateClaimPositionsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1694
+ }
1695
+
1456
1696
  /**
1457
1697
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
1458
1698
  * @summary Create the claim position
@@ -14,6 +14,8 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { BatchUpsertClaimPositionsRequestDto } from '../models';
16
16
  import { BatchUpsertClaimPositionsResponseClass } from '../models';
17
+ import { CalculateClaimPositionsRequestDto } from '../models';
18
+ import { CalculateClaimPositionsResponseClass } from '../models';
17
19
  import { CreateClaimPositionRequestDto } from '../models';
18
20
  import { CreateClaimPositionResponseClass } from '../models';
19
21
  import { GetClaimPositionResponseClass } from '../models';
@@ -46,6 +48,27 @@ export declare const ClaimPositionsApiAxiosParamCreator: (configuration?: Config
46
48
  * @throws {RequiredError}
47
49
  */
48
50
  batchUpsertClaimPositions1: (claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
51
+ /**
52
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
53
+ * @summary Calculate claim positions
54
+ * @param {string} claimCode Unique identifier for the object.
55
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
56
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ calculateClaimPositions: (claimCode: string, calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
61
+ /**
62
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
63
+ * @summary Calculate claim positions
64
+ * @param {string} claimCode Unique identifier for the object.
65
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
66
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
67
+ * @param {*} [options] Override http request option.
68
+ * @deprecated
69
+ * @throws {RequiredError}
70
+ */
71
+ calculateClaimPositions1: (claimCode: string, calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
49
72
  /**
50
73
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
51
74
  * @summary Create the claim position
@@ -184,6 +207,27 @@ export declare const ClaimPositionsApiFp: (configuration?: Configuration) => {
184
207
  * @throws {RequiredError}
185
208
  */
186
209
  batchUpsertClaimPositions1(claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchUpsertClaimPositionsResponseClass>>;
210
+ /**
211
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
212
+ * @summary Calculate claim positions
213
+ * @param {string} claimCode Unique identifier for the object.
214
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
215
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ calculateClaimPositions(claimCode: string, calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalculateClaimPositionsResponseClass>>;
220
+ /**
221
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
222
+ * @summary Calculate claim positions
223
+ * @param {string} claimCode Unique identifier for the object.
224
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
225
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
226
+ * @param {*} [options] Override http request option.
227
+ * @deprecated
228
+ * @throws {RequiredError}
229
+ */
230
+ calculateClaimPositions1(claimCode: string, calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalculateClaimPositionsResponseClass>>;
187
231
  /**
188
232
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
189
233
  * @summary Create the claim position
@@ -322,6 +366,27 @@ export declare const ClaimPositionsApiFactory: (configuration?: Configuration, b
322
366
  * @throws {RequiredError}
323
367
  */
324
368
  batchUpsertClaimPositions1(claimCode: string, batchUpsertClaimPositionsRequestDto: BatchUpsertClaimPositionsRequestDto, authorization?: string, options?: any): AxiosPromise<BatchUpsertClaimPositionsResponseClass>;
369
+ /**
370
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
371
+ * @summary Calculate claim positions
372
+ * @param {string} claimCode Unique identifier for the object.
373
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
374
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ calculateClaimPositions(claimCode: string, calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto, authorization?: string, options?: any): AxiosPromise<CalculateClaimPositionsResponseClass>;
379
+ /**
380
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
381
+ * @summary Calculate claim positions
382
+ * @param {string} claimCode Unique identifier for the object.
383
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
384
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
385
+ * @param {*} [options] Override http request option.
386
+ * @deprecated
387
+ * @throws {RequiredError}
388
+ */
389
+ calculateClaimPositions1(claimCode: string, calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto, authorization?: string, options?: any): AxiosPromise<CalculateClaimPositionsResponseClass>;
325
390
  /**
326
391
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
327
392
  * @summary Create the claim position
@@ -484,6 +549,56 @@ export interface ClaimPositionsApiBatchUpsertClaimPositions1Request {
484
549
  */
485
550
  readonly authorization?: string;
486
551
  }
552
+ /**
553
+ * Request parameters for calculateClaimPositions operation in ClaimPositionsApi.
554
+ * @export
555
+ * @interface ClaimPositionsApiCalculateClaimPositionsRequest
556
+ */
557
+ export interface ClaimPositionsApiCalculateClaimPositionsRequest {
558
+ /**
559
+ * Unique identifier for the object.
560
+ * @type {string}
561
+ * @memberof ClaimPositionsApiCalculateClaimPositions
562
+ */
563
+ readonly claimCode: string;
564
+ /**
565
+ *
566
+ * @type {CalculateClaimPositionsRequestDto}
567
+ * @memberof ClaimPositionsApiCalculateClaimPositions
568
+ */
569
+ readonly calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto;
570
+ /**
571
+ * Bearer Token: provided by the login endpoint under the name accessToken.
572
+ * @type {string}
573
+ * @memberof ClaimPositionsApiCalculateClaimPositions
574
+ */
575
+ readonly authorization?: string;
576
+ }
577
+ /**
578
+ * Request parameters for calculateClaimPositions1 operation in ClaimPositionsApi.
579
+ * @export
580
+ * @interface ClaimPositionsApiCalculateClaimPositions1Request
581
+ */
582
+ export interface ClaimPositionsApiCalculateClaimPositions1Request {
583
+ /**
584
+ * Unique identifier for the object.
585
+ * @type {string}
586
+ * @memberof ClaimPositionsApiCalculateClaimPositions1
587
+ */
588
+ readonly claimCode: string;
589
+ /**
590
+ *
591
+ * @type {CalculateClaimPositionsRequestDto}
592
+ * @memberof ClaimPositionsApiCalculateClaimPositions1
593
+ */
594
+ readonly calculateClaimPositionsRequestDto: CalculateClaimPositionsRequestDto;
595
+ /**
596
+ * Bearer Token: provided by the login endpoint under the name accessToken.
597
+ * @type {string}
598
+ * @memberof ClaimPositionsApiCalculateClaimPositions1
599
+ */
600
+ readonly authorization?: string;
601
+ }
487
602
  /**
488
603
  * Request parameters for createClaimPosition operation in ClaimPositionsApi.
489
604
  * @export
@@ -796,6 +911,25 @@ export declare class ClaimPositionsApi extends BaseAPI {
796
911
  * @memberof ClaimPositionsApi
797
912
  */
798
913
  batchUpsertClaimPositions1(requestParameters: ClaimPositionsApiBatchUpsertClaimPositions1Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BatchUpsertClaimPositionsResponseClass, any, {}>>;
914
+ /**
915
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
916
+ * @summary Calculate claim positions
917
+ * @param {ClaimPositionsApiCalculateClaimPositionsRequest} requestParameters Request parameters.
918
+ * @param {*} [options] Override http request option.
919
+ * @throws {RequiredError}
920
+ * @memberof ClaimPositionsApi
921
+ */
922
+ calculateClaimPositions(requestParameters: ClaimPositionsApiCalculateClaimPositionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CalculateClaimPositionsResponseClass, any, {}>>;
923
+ /**
924
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
925
+ * @summary Calculate claim positions
926
+ * @param {ClaimPositionsApiCalculateClaimPositions1Request} requestParameters Request parameters.
927
+ * @param {*} [options] Override http request option.
928
+ * @deprecated
929
+ * @throws {RequiredError}
930
+ * @memberof ClaimPositionsApi
931
+ */
932
+ calculateClaimPositions1(requestParameters: ClaimPositionsApiCalculateClaimPositions1Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CalculateClaimPositionsResponseClass, any, {}>>;
799
933
  /**
800
934
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
801
935
  * @summary Create the claim position
@@ -203,6 +203,113 @@ var ClaimPositionsApiAxiosParamCreator = function (configuration) {
203
203
  });
204
204
  });
205
205
  },
206
+ /**
207
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
208
+ * @summary Calculate claim positions
209
+ * @param {string} claimCode Unique identifier for the object.
210
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
211
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
212
+ * @param {*} [options] Override http request option.
213
+ * @throws {RequiredError}
214
+ */
215
+ calculateClaimPositions: function (claimCode, calculateClaimPositionsRequestDto, authorization, options) {
216
+ if (options === void 0) { options = {}; }
217
+ return __awaiter(_this, void 0, void 0, function () {
218
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
219
+ return __generator(this, function (_a) {
220
+ switch (_a.label) {
221
+ case 0:
222
+ // verify required parameter 'claimCode' is not null or undefined
223
+ (0, common_1.assertParamExists)('calculateClaimPositions', 'claimCode', claimCode);
224
+ // verify required parameter 'calculateClaimPositionsRequestDto' is not null or undefined
225
+ (0, common_1.assertParamExists)('calculateClaimPositions', 'calculateClaimPositionsRequestDto', calculateClaimPositionsRequestDto);
226
+ localVarPath = "/claimservice/v1/claim-positions/calculate/{claimCode}"
227
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
228
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
229
+ if (configuration) {
230
+ baseOptions = configuration.baseOptions;
231
+ baseAccessToken = configuration.accessToken;
232
+ }
233
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
234
+ localVarHeaderParameter = {};
235
+ localVarQueryParameter = {};
236
+ // authentication bearer required
237
+ // http bearer authentication required
238
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
239
+ case 1:
240
+ // authentication bearer required
241
+ // http bearer authentication required
242
+ _a.sent();
243
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
244
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
245
+ }
246
+ localVarHeaderParameter['Content-Type'] = 'application/json';
247
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
248
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
249
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
250
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(calculateClaimPositionsRequestDto, localVarRequestOptions, configuration);
251
+ return [2 /*return*/, {
252
+ url: (0, common_1.toPathString)(localVarUrlObj),
253
+ options: localVarRequestOptions,
254
+ }];
255
+ }
256
+ });
257
+ });
258
+ },
259
+ /**
260
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
261
+ * @summary Calculate claim positions
262
+ * @param {string} claimCode Unique identifier for the object.
263
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
264
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
265
+ * @param {*} [options] Override http request option.
266
+ * @deprecated
267
+ * @throws {RequiredError}
268
+ */
269
+ calculateClaimPositions1: function (claimCode, calculateClaimPositionsRequestDto, authorization, options) {
270
+ if (options === void 0) { options = {}; }
271
+ return __awaiter(_this, void 0, void 0, function () {
272
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
273
+ return __generator(this, function (_a) {
274
+ switch (_a.label) {
275
+ case 0:
276
+ // verify required parameter 'claimCode' is not null or undefined
277
+ (0, common_1.assertParamExists)('calculateClaimPositions1', 'claimCode', claimCode);
278
+ // verify required parameter 'calculateClaimPositionsRequestDto' is not null or undefined
279
+ (0, common_1.assertParamExists)('calculateClaimPositions1', 'calculateClaimPositionsRequestDto', calculateClaimPositionsRequestDto);
280
+ localVarPath = "/v1/claim-positions/calculate/{claimCode}"
281
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
282
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
283
+ if (configuration) {
284
+ baseOptions = configuration.baseOptions;
285
+ baseAccessToken = configuration.accessToken;
286
+ }
287
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
288
+ localVarHeaderParameter = {};
289
+ localVarQueryParameter = {};
290
+ // authentication bearer required
291
+ // http bearer authentication required
292
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
293
+ case 1:
294
+ // authentication bearer required
295
+ // http bearer authentication required
296
+ _a.sent();
297
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
298
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
299
+ }
300
+ localVarHeaderParameter['Content-Type'] = 'application/json';
301
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
302
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
303
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
304
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(calculateClaimPositionsRequestDto, localVarRequestOptions, configuration);
305
+ return [2 /*return*/, {
306
+ url: (0, common_1.toPathString)(localVarUrlObj),
307
+ options: localVarRequestOptions,
308
+ }];
309
+ }
310
+ });
311
+ });
312
+ },
206
313
  /**
207
314
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
208
315
  * @summary Create the claim position
@@ -815,6 +922,51 @@ var ClaimPositionsApiFp = function (configuration) {
815
922
  });
816
923
  });
817
924
  },
925
+ /**
926
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
927
+ * @summary Calculate claim positions
928
+ * @param {string} claimCode Unique identifier for the object.
929
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
930
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
931
+ * @param {*} [options] Override http request option.
932
+ * @throws {RequiredError}
933
+ */
934
+ calculateClaimPositions: function (claimCode, calculateClaimPositionsRequestDto, authorization, options) {
935
+ return __awaiter(this, void 0, void 0, function () {
936
+ var localVarAxiosArgs;
937
+ return __generator(this, function (_a) {
938
+ switch (_a.label) {
939
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.calculateClaimPositions(claimCode, calculateClaimPositionsRequestDto, authorization, options)];
940
+ case 1:
941
+ localVarAxiosArgs = _a.sent();
942
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
943
+ }
944
+ });
945
+ });
946
+ },
947
+ /**
948
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
949
+ * @summary Calculate claim positions
950
+ * @param {string} claimCode Unique identifier for the object.
951
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
952
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
953
+ * @param {*} [options] Override http request option.
954
+ * @deprecated
955
+ * @throws {RequiredError}
956
+ */
957
+ calculateClaimPositions1: function (claimCode, calculateClaimPositionsRequestDto, authorization, options) {
958
+ return __awaiter(this, void 0, void 0, function () {
959
+ var localVarAxiosArgs;
960
+ return __generator(this, function (_a) {
961
+ switch (_a.label) {
962
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.calculateClaimPositions1(claimCode, calculateClaimPositionsRequestDto, authorization, options)];
963
+ case 1:
964
+ localVarAxiosArgs = _a.sent();
965
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
966
+ }
967
+ });
968
+ });
969
+ },
818
970
  /**
819
971
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
820
972
  * @summary Create the claim position
@@ -1081,6 +1233,31 @@ var ClaimPositionsApiFactory = function (configuration, basePath, axios) {
1081
1233
  batchUpsertClaimPositions1: function (claimCode, batchUpsertClaimPositionsRequestDto, authorization, options) {
1082
1234
  return localVarFp.batchUpsertClaimPositions1(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1083
1235
  },
1236
+ /**
1237
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
1238
+ * @summary Calculate claim positions
1239
+ * @param {string} claimCode Unique identifier for the object.
1240
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
1241
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1242
+ * @param {*} [options] Override http request option.
1243
+ * @throws {RequiredError}
1244
+ */
1245
+ calculateClaimPositions: function (claimCode, calculateClaimPositionsRequestDto, authorization, options) {
1246
+ return localVarFp.calculateClaimPositions(claimCode, calculateClaimPositionsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1247
+ },
1248
+ /**
1249
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1250
+ * @summary Calculate claim positions
1251
+ * @param {string} claimCode Unique identifier for the object.
1252
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
1253
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1254
+ * @param {*} [options] Override http request option.
1255
+ * @deprecated
1256
+ * @throws {RequiredError}
1257
+ */
1258
+ calculateClaimPositions1: function (claimCode, calculateClaimPositionsRequestDto, authorization, options) {
1259
+ return localVarFp.calculateClaimPositions1(claimCode, calculateClaimPositionsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1260
+ },
1084
1261
  /**
1085
1262
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
1086
1263
  * @summary Create the claim position
@@ -1251,6 +1428,31 @@ var ClaimPositionsApi = /** @class */ (function (_super) {
1251
1428
  var _this = this;
1252
1429
  return (0, exports.ClaimPositionsApiFp)(this.configuration).batchUpsertClaimPositions1(requestParameters.claimCode, requestParameters.batchUpsertClaimPositionsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1253
1430
  };
1431
+ /**
1432
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
1433
+ * @summary Calculate claim positions
1434
+ * @param {ClaimPositionsApiCalculateClaimPositionsRequest} requestParameters Request parameters.
1435
+ * @param {*} [options] Override http request option.
1436
+ * @throws {RequiredError}
1437
+ * @memberof ClaimPositionsApi
1438
+ */
1439
+ ClaimPositionsApi.prototype.calculateClaimPositions = function (requestParameters, options) {
1440
+ var _this = this;
1441
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).calculateClaimPositions(requestParameters.claimCode, requestParameters.calculateClaimPositionsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1442
+ };
1443
+ /**
1444
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1445
+ * @summary Calculate claim positions
1446
+ * @param {ClaimPositionsApiCalculateClaimPositions1Request} requestParameters Request parameters.
1447
+ * @param {*} [options] Override http request option.
1448
+ * @deprecated
1449
+ * @throws {RequiredError}
1450
+ * @memberof ClaimPositionsApi
1451
+ */
1452
+ ClaimPositionsApi.prototype.calculateClaimPositions1 = function (requestParameters, options) {
1453
+ var _this = this;
1454
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).calculateClaimPositions1(requestParameters.claimCode, requestParameters.calculateClaimPositionsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1455
+ };
1254
1456
  /**
1255
1457
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
1256
1458
  * @summary Create the claim position
@@ -0,0 +1,31 @@
1
+ /**
2
+ * EMIL ClaimService
3
+ * The EMIL ClaimService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ClaimPositionCalculationInputDto } from './claim-position-calculation-input-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CalculateClaimPositionsRequestDto
17
+ */
18
+ export interface CalculateClaimPositionsRequestDto {
19
+ /**
20
+ * Code of the claim.
21
+ * @type {string}
22
+ * @memberof CalculateClaimPositionsRequestDto
23
+ */
24
+ 'claimCode': string;
25
+ /**
26
+ * Positions to calculate.
27
+ * @type {Array<ClaimPositionCalculationInputDto>}
28
+ * @memberof CalculateClaimPositionsRequestDto
29
+ */
30
+ 'positions': Array<ClaimPositionCalculationInputDto>;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ClaimService
6
+ * The EMIL ClaimService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ /**
2
+ * EMIL ClaimService
3
+ * The EMIL ClaimService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CalculatedClaimPositionClass } from './calculated-claim-position-class';
13
+ import { CalculationTotalsClass } from './calculation-totals-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CalculateClaimPositionsResponseClass
18
+ */
19
+ export interface CalculateClaimPositionsResponseClass {
20
+ /**
21
+ * The calculated claim positions.
22
+ * @type {Array<CalculatedClaimPositionClass>}
23
+ * @memberof CalculateClaimPositionsResponseClass
24
+ */
25
+ 'calculatedClaimPositions': Array<CalculatedClaimPositionClass>;
26
+ /**
27
+ * The totals of the claim positions.
28
+ * @type {CalculationTotalsClass}
29
+ * @memberof CalculateClaimPositionsResponseClass
30
+ */
31
+ 'totals': CalculationTotalsClass;
32
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ClaimService
6
+ * The EMIL ClaimService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,74 @@
1
+ /**
2
+ * EMIL ClaimService
3
+ * The EMIL ClaimService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CalculationStepResultClass } from './calculation-step-result-class';
13
+ import { ClaimLimitUsageResultClass } from './claim-limit-usage-result-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CalculatedClaimPositionClass
18
+ */
19
+ export interface CalculatedClaimPositionClass {
20
+ /**
21
+ * The code of the claim position.
22
+ * @type {string}
23
+ * @memberof CalculatedClaimPositionClass
24
+ */
25
+ 'code': string;
26
+ /**
27
+ * The order of the claim position.
28
+ * @type {number}
29
+ * @memberof CalculatedClaimPositionClass
30
+ */
31
+ 'order': number;
32
+ /**
33
+ * The category key of the claim position.
34
+ * @type {string}
35
+ * @memberof CalculatedClaimPositionClass
36
+ */
37
+ 'categoryKey': string;
38
+ /**
39
+ * The cost of the claim position.
40
+ * @type {number}
41
+ * @memberof CalculatedClaimPositionClass
42
+ */
43
+ 'cost': number;
44
+ /**
45
+ * The reimbursement amount of the claim position.
46
+ * @type {number}
47
+ * @memberof CalculatedClaimPositionClass
48
+ */
49
+ 'reimbursementAmount': number;
50
+ /**
51
+ * The manual adjustment input amount of the claim position.
52
+ * @type {number}
53
+ * @memberof CalculatedClaimPositionClass
54
+ */
55
+ 'manualAdjustmentInputAmount': number;
56
+ /**
57
+ * The manual adjustment applied amount of the claim position.
58
+ * @type {number}
59
+ * @memberof CalculatedClaimPositionClass
60
+ */
61
+ 'manualAdjustmentAppliedAmount': number;
62
+ /**
63
+ * The calculation steps of the claim position.
64
+ * @type {Array<CalculationStepResultClass>}
65
+ * @memberof CalculatedClaimPositionClass
66
+ */
67
+ 'calculationSteps': Array<CalculationStepResultClass>;
68
+ /**
69
+ * The limit usage results of the claim position.
70
+ * @type {Array<ClaimLimitUsageResultClass>}
71
+ * @memberof CalculatedClaimPositionClass
72
+ */
73
+ 'limitUsageResults': Array<ClaimLimitUsageResultClass>;
74
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ClaimService
6
+ * The EMIL ClaimService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,48 @@
1
+ /**
2
+ * EMIL ClaimService
3
+ * The EMIL ClaimService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ClaimPositionCalculationInputDto
16
+ */
17
+ export interface ClaimPositionCalculationInputDto {
18
+ /**
19
+ * Code of the claim position.
20
+ * @type {string}
21
+ * @memberof ClaimPositionCalculationInputDto
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * Cost of the claim position.
26
+ * @type {number}
27
+ * @memberof ClaimPositionCalculationInputDto
28
+ */
29
+ 'cost': number;
30
+ /**
31
+ * Order of the claim position.
32
+ * @type {number}
33
+ * @memberof ClaimPositionCalculationInputDto
34
+ */
35
+ 'order': number;
36
+ /**
37
+ * Category key of the claim position.
38
+ * @type {string}
39
+ * @memberof ClaimPositionCalculationInputDto
40
+ */
41
+ 'categoryKey': string;
42
+ /**
43
+ * Manual adjustment amount of the claim position.
44
+ * @type {number}
45
+ * @memberof ClaimPositionCalculationInputDto
46
+ */
47
+ 'manualAdjustmentAmount'?: number;
48
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ClaimService
6
+ * The EMIL ClaimService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,9 @@
1
1
  export * from './batch-upsert-claim-position-input-dto';
2
2
  export * from './batch-upsert-claim-positions-request-dto';
3
3
  export * from './batch-upsert-claim-positions-response-class';
4
+ export * from './calculate-claim-positions-request-dto';
5
+ export * from './calculate-claim-positions-response-class';
6
+ export * from './calculated-claim-position-class';
4
7
  export * from './calculation-step-result-class';
5
8
  export * from './calculation-totals-class';
6
9
  export * from './claim-applied-deductible-class';
@@ -9,6 +12,7 @@ export * from './claim-limit-usage-class';
9
12
  export * from './claim-limit-usage-result-class';
10
13
  export * from './claim-partner-class';
11
14
  export * from './claim-partner-role-class';
15
+ export * from './claim-position-calculation-input-dto';
12
16
  export * from './claim-position-class';
13
17
  export * from './claim-status-class';
14
18
  export * from './create-claim-partner-request-dto';
@@ -17,6 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./batch-upsert-claim-position-input-dto"), exports);
18
18
  __exportStar(require("./batch-upsert-claim-positions-request-dto"), exports);
19
19
  __exportStar(require("./batch-upsert-claim-positions-response-class"), exports);
20
+ __exportStar(require("./calculate-claim-positions-request-dto"), exports);
21
+ __exportStar(require("./calculate-claim-positions-response-class"), exports);
22
+ __exportStar(require("./calculated-claim-position-class"), exports);
20
23
  __exportStar(require("./calculation-step-result-class"), exports);
21
24
  __exportStar(require("./calculation-totals-class"), exports);
22
25
  __exportStar(require("./claim-applied-deductible-class"), exports);
@@ -25,6 +28,7 @@ __exportStar(require("./claim-limit-usage-class"), exports);
25
28
  __exportStar(require("./claim-limit-usage-result-class"), exports);
26
29
  __exportStar(require("./claim-partner-class"), exports);
27
30
  __exportStar(require("./claim-partner-role-class"), exports);
31
+ __exportStar(require("./claim-position-calculation-input-dto"), exports);
28
32
  __exportStar(require("./claim-position-class"), exports);
29
33
  __exportStar(require("./claim-status-class"), exports);
30
34
  __exportStar(require("./create-claim-partner-request-dto"), exports);
@@ -0,0 +1,37 @@
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 { ClaimPositionCalculationInputDto } from './claim-position-calculation-input-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CalculateClaimPositionsRequestDto
22
+ */
23
+ export interface CalculateClaimPositionsRequestDto {
24
+ /**
25
+ * Code of the claim.
26
+ * @type {string}
27
+ * @memberof CalculateClaimPositionsRequestDto
28
+ */
29
+ 'claimCode': string;
30
+ /**
31
+ * Positions to calculate.
32
+ * @type {Array<ClaimPositionCalculationInputDto>}
33
+ * @memberof CalculateClaimPositionsRequestDto
34
+ */
35
+ 'positions': Array<ClaimPositionCalculationInputDto>;
36
+ }
37
+
@@ -0,0 +1,38 @@
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 { CalculatedClaimPositionClass } from './calculated-claim-position-class';
17
+ import { CalculationTotalsClass } from './calculation-totals-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface CalculateClaimPositionsResponseClass
23
+ */
24
+ export interface CalculateClaimPositionsResponseClass {
25
+ /**
26
+ * The calculated claim positions.
27
+ * @type {Array<CalculatedClaimPositionClass>}
28
+ * @memberof CalculateClaimPositionsResponseClass
29
+ */
30
+ 'calculatedClaimPositions': Array<CalculatedClaimPositionClass>;
31
+ /**
32
+ * The totals of the claim positions.
33
+ * @type {CalculationTotalsClass}
34
+ * @memberof CalculateClaimPositionsResponseClass
35
+ */
36
+ 'totals': CalculationTotalsClass;
37
+ }
38
+
@@ -0,0 +1,80 @@
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 { CalculationStepResultClass } from './calculation-step-result-class';
17
+ import { ClaimLimitUsageResultClass } from './claim-limit-usage-result-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface CalculatedClaimPositionClass
23
+ */
24
+ export interface CalculatedClaimPositionClass {
25
+ /**
26
+ * The code of the claim position.
27
+ * @type {string}
28
+ * @memberof CalculatedClaimPositionClass
29
+ */
30
+ 'code': string;
31
+ /**
32
+ * The order of the claim position.
33
+ * @type {number}
34
+ * @memberof CalculatedClaimPositionClass
35
+ */
36
+ 'order': number;
37
+ /**
38
+ * The category key of the claim position.
39
+ * @type {string}
40
+ * @memberof CalculatedClaimPositionClass
41
+ */
42
+ 'categoryKey': string;
43
+ /**
44
+ * The cost of the claim position.
45
+ * @type {number}
46
+ * @memberof CalculatedClaimPositionClass
47
+ */
48
+ 'cost': number;
49
+ /**
50
+ * The reimbursement amount of the claim position.
51
+ * @type {number}
52
+ * @memberof CalculatedClaimPositionClass
53
+ */
54
+ 'reimbursementAmount': number;
55
+ /**
56
+ * The manual adjustment input amount of the claim position.
57
+ * @type {number}
58
+ * @memberof CalculatedClaimPositionClass
59
+ */
60
+ 'manualAdjustmentInputAmount': number;
61
+ /**
62
+ * The manual adjustment applied amount of the claim position.
63
+ * @type {number}
64
+ * @memberof CalculatedClaimPositionClass
65
+ */
66
+ 'manualAdjustmentAppliedAmount': number;
67
+ /**
68
+ * The calculation steps of the claim position.
69
+ * @type {Array<CalculationStepResultClass>}
70
+ * @memberof CalculatedClaimPositionClass
71
+ */
72
+ 'calculationSteps': Array<CalculationStepResultClass>;
73
+ /**
74
+ * The limit usage results of the claim position.
75
+ * @type {Array<ClaimLimitUsageResultClass>}
76
+ * @memberof CalculatedClaimPositionClass
77
+ */
78
+ 'limitUsageResults': Array<ClaimLimitUsageResultClass>;
79
+ }
80
+
@@ -0,0 +1,54 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ClaimPositionCalculationInputDto
21
+ */
22
+ export interface ClaimPositionCalculationInputDto {
23
+ /**
24
+ * Code of the claim position.
25
+ * @type {string}
26
+ * @memberof ClaimPositionCalculationInputDto
27
+ */
28
+ 'code': string;
29
+ /**
30
+ * Cost of the claim position.
31
+ * @type {number}
32
+ * @memberof ClaimPositionCalculationInputDto
33
+ */
34
+ 'cost': number;
35
+ /**
36
+ * Order of the claim position.
37
+ * @type {number}
38
+ * @memberof ClaimPositionCalculationInputDto
39
+ */
40
+ 'order': number;
41
+ /**
42
+ * Category key of the claim position.
43
+ * @type {string}
44
+ * @memberof ClaimPositionCalculationInputDto
45
+ */
46
+ 'categoryKey': string;
47
+ /**
48
+ * Manual adjustment amount of the claim position.
49
+ * @type {number}
50
+ * @memberof ClaimPositionCalculationInputDto
51
+ */
52
+ 'manualAdjustmentAmount'?: number;
53
+ }
54
+
package/models/index.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  export * from './batch-upsert-claim-position-input-dto';
2
2
  export * from './batch-upsert-claim-positions-request-dto';
3
3
  export * from './batch-upsert-claim-positions-response-class';
4
+ export * from './calculate-claim-positions-request-dto';
5
+ export * from './calculate-claim-positions-response-class';
6
+ export * from './calculated-claim-position-class';
4
7
  export * from './calculation-step-result-class';
5
8
  export * from './calculation-totals-class';
6
9
  export * from './claim-applied-deductible-class';
@@ -9,6 +12,7 @@ export * from './claim-limit-usage-class';
9
12
  export * from './claim-limit-usage-result-class';
10
13
  export * from './claim-partner-class';
11
14
  export * from './claim-partner-role-class';
15
+ export * from './claim-position-calculation-input-dto';
12
16
  export * from './claim-position-class';
13
17
  export * from './claim-status-class';
14
18
  export * from './create-claim-partner-request-dto';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/claim-sdk-node",
3
- "version": "1.39.1-beta.14",
3
+ "version": "1.39.1-beta.16",
4
4
  "description": "OpenAPI client for @emilgroup/claim-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [