@emilgroup/claim-sdk-node 1.39.1-beta.8 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +8 -0
- package/README.md +2 -2
- package/api/claim-limit-usages-api.ts +24 -24
- package/api/claim-partner-roles-api.ts +24 -24
- package/api/claim-partners-api.ts +24 -24
- package/api/claim-positions-api.ts +496 -16
- package/api/claim-regulations-api.ts +24 -24
- package/api/claim-statuses-api.ts +24 -24
- package/api/claims-api.ts +48 -48
- package/api/settlements-api.ts +24 -24
- package/dist/api/claim-limit-usages-api.d.ts +24 -24
- package/dist/api/claim-limit-usages-api.js +18 -18
- package/dist/api/claim-partner-roles-api.d.ts +24 -24
- package/dist/api/claim-partner-roles-api.js +20 -20
- package/dist/api/claim-partners-api.d.ts +24 -24
- package/dist/api/claim-partners-api.js +20 -20
- package/dist/api/claim-positions-api.d.ts +284 -16
- package/dist/api/claim-positions-api.js +416 -12
- package/dist/api/claim-regulations-api.d.ts +24 -24
- package/dist/api/claim-regulations-api.js +20 -20
- package/dist/api/claim-statuses-api.d.ts +24 -24
- package/dist/api/claim-statuses-api.js +20 -20
- package/dist/api/claims-api.d.ts +48 -48
- package/dist/api/claims-api.js +38 -38
- package/dist/api/settlements-api.d.ts +24 -24
- package/dist/api/settlements-api.js +20 -20
- package/dist/models/batch-upsert-claim-position-input-dto.d.ts +72 -0
- package/dist/models/batch-upsert-claim-position-input-dto.js +15 -0
- package/dist/models/batch-upsert-claim-positions-request-dto.d.ts +31 -0
- package/dist/models/batch-upsert-claim-positions-request-dto.js +15 -0
- package/dist/models/batch-upsert-claim-positions-response-class.d.ts +32 -0
- package/dist/models/batch-upsert-claim-positions-response-class.js +15 -0
- package/dist/models/calculate-claim-positions-request-dto.d.ts +31 -0
- package/dist/models/calculate-claim-positions-request-dto.js +15 -0
- package/dist/models/calculate-claim-positions-response-class.d.ts +32 -0
- package/dist/models/calculate-claim-positions-response-class.js +15 -0
- package/dist/models/calculated-claim-position-class.d.ts +74 -0
- package/dist/models/calculated-claim-position-class.js +15 -0
- package/dist/models/calculation-totals-class.d.ts +30 -0
- package/dist/models/calculation-totals-class.js +15 -0
- package/dist/models/claim-applied-deductible-class.d.ts +1 -1
- package/dist/models/claim-class.d.ts +24 -0
- package/dist/models/claim-limit-usage-class.d.ts +8 -0
- package/dist/models/claim-limit-usage-class.js +2 -0
- package/dist/models/claim-position-calculation-input-dto.d.ts +48 -0
- package/dist/models/claim-position-calculation-input-dto.js +15 -0
- package/dist/models/claim-position-class.d.ts +8 -1
- package/dist/models/claim-position-class.js +3 -2
- package/dist/models/create-claim-position-response-class.d.ts +1 -1
- package/dist/models/create-claim-request-dto.d.ts +12 -0
- package/dist/models/create-regulation-item-request-dto.d.ts +4 -3
- package/dist/models/get-claim-position-response-class.d.ts +1 -1
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/list-claim-positions-response-class.d.ts +1 -1
- package/dist/models/patch-claim-request-dto.d.ts +12 -0
- package/dist/models/regulation-item-class.d.ts +6 -0
- package/dist/models/update-claim-position-request-dto.d.ts +6 -0
- package/dist/models/update-claim-position-response-class.d.ts +1 -1
- package/dist/models/update-claim-request-dto.d.ts +12 -0
- package/dist/models/update-regulation-item-request-dto.d.ts +24 -0
- package/dist/models/update-regulation-item-request-dto.js +5 -1
- package/models/batch-upsert-claim-position-input-dto.ts +78 -0
- package/models/batch-upsert-claim-positions-request-dto.ts +37 -0
- package/models/batch-upsert-claim-positions-response-class.ts +38 -0
- package/models/calculate-claim-positions-request-dto.ts +37 -0
- package/models/calculate-claim-positions-response-class.ts +38 -0
- package/models/calculated-claim-position-class.ts +80 -0
- package/models/calculation-totals-class.ts +36 -0
- package/models/claim-applied-deductible-class.ts +1 -1
- package/models/claim-class.ts +24 -0
- package/models/claim-limit-usage-class.ts +8 -0
- package/models/claim-position-calculation-input-dto.ts +54 -0
- package/models/claim-position-class.ts +9 -2
- package/models/create-claim-position-response-class.ts +1 -1
- package/models/create-claim-request-dto.ts +12 -0
- package/models/create-regulation-item-request-dto.ts +4 -3
- package/models/get-claim-position-response-class.ts +1 -1
- package/models/index.ts +8 -0
- package/models/list-claim-positions-response-class.ts +1 -1
- package/models/patch-claim-request-dto.ts +12 -0
- package/models/regulation-item-class.ts +6 -0
- package/models/update-claim-position-request-dto.ts +6 -0
- package/models/update-claim-position-response-class.ts +1 -1
- package/models/update-claim-request-dto.ts +12 -0
- package/models/update-regulation-item-request-dto.ts +25 -0
- package/package.json +1 -1
|
@@ -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
|
+
|
|
@@ -70,6 +70,12 @@ export interface ClaimPositionClass {
|
|
|
70
70
|
* @memberof ClaimPositionClass
|
|
71
71
|
*/
|
|
72
72
|
'status': ClaimPositionClassStatusEnum;
|
|
73
|
+
/**
|
|
74
|
+
* Date on which the procedure was performed.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof ClaimPositionClass
|
|
77
|
+
*/
|
|
78
|
+
'procedureDate': string;
|
|
73
79
|
/**
|
|
74
80
|
* Display order of the position in the list. Lower value appears first.
|
|
75
81
|
* @type {number}
|
|
@@ -151,8 +157,9 @@ export interface ClaimPositionClass {
|
|
|
151
157
|
}
|
|
152
158
|
|
|
153
159
|
export const ClaimPositionClassStatusEnum = {
|
|
154
|
-
|
|
155
|
-
Closed: 'CLOSED'
|
|
160
|
+
Adjusted: 'ADJUSTED',
|
|
161
|
+
Closed: 'CLOSED',
|
|
162
|
+
Open: 'OPEN'
|
|
156
163
|
} as const;
|
|
157
164
|
|
|
158
165
|
export type ClaimPositionClassStatusEnum = typeof ClaimPositionClassStatusEnum[keyof typeof ClaimPositionClassStatusEnum];
|
|
@@ -22,7 +22,7 @@ import { ClaimPositionClass } from './claim-position-class';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface CreateClaimPositionResponseClass {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The claim position.
|
|
26
26
|
* @type {ClaimPositionClass}
|
|
27
27
|
* @memberof CreateClaimPositionResponseClass
|
|
28
28
|
*/
|
|
@@ -98,6 +98,12 @@ export interface CreateClaimRequestDto {
|
|
|
98
98
|
* @memberof CreateClaimRequestDto
|
|
99
99
|
*/
|
|
100
100
|
'adjuster'?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Unique identifier of the adjuster user.
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof CreateClaimRequestDto
|
|
105
|
+
*/
|
|
106
|
+
'adjusterCode'?: string;
|
|
101
107
|
/**
|
|
102
108
|
* A claim reporter is responsible for submitting this claim to the platform. A claim reporter is not necessarily the same as the policy holder.
|
|
103
109
|
* @type {string}
|
|
@@ -140,5 +146,11 @@ export interface CreateClaimRequestDto {
|
|
|
140
146
|
* @memberof CreateClaimRequestDto
|
|
141
147
|
*/
|
|
142
148
|
'damageEndDate'?: string;
|
|
149
|
+
/**
|
|
150
|
+
* The claim type. Must match one of the categories in the selected tariff.
|
|
151
|
+
* @type {string}
|
|
152
|
+
* @memberof CreateClaimRequestDto
|
|
153
|
+
*/
|
|
154
|
+
'claimType'?: string;
|
|
143
155
|
}
|
|
144
156
|
|
|
@@ -39,6 +39,7 @@ export interface CreateRegulationItemRequestDto {
|
|
|
39
39
|
* The currency of the regulation item
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof CreateRegulationItemRequestDto
|
|
42
|
+
* @deprecated
|
|
42
43
|
*/
|
|
43
44
|
'currency': CreateRegulationItemRequestDtoCurrencyEnum;
|
|
44
45
|
/**
|
|
@@ -66,7 +67,7 @@ export interface CreateRegulationItemRequestDto {
|
|
|
66
67
|
*/
|
|
67
68
|
'payoutProvider'?: CreateRegulationItemRequestDtoPayoutProviderEnum;
|
|
68
69
|
/**
|
|
69
|
-
* List of claim position categories
|
|
70
|
+
* List of claim position categories covered by this regulation. For payout, this is only supported when payoutProvider is PAYMENT_SERVICE.
|
|
70
71
|
* @type {Array<string>}
|
|
71
72
|
* @memberof CreateRegulationItemRequestDto
|
|
72
73
|
*/
|
|
@@ -90,11 +91,11 @@ export interface CreateRegulationItemRequestDto {
|
|
|
90
91
|
*/
|
|
91
92
|
'regressDetails'?: RegressDetailsDto;
|
|
92
93
|
/**
|
|
93
|
-
* The partner code to use for the regulation item
|
|
94
|
+
* The partner code to use for the regulation item. Required only when regulationItemType is PAYOUT and payoutProvider is PAYMENT_SERVICE.
|
|
94
95
|
* @type {string}
|
|
95
96
|
* @memberof CreateRegulationItemRequestDto
|
|
96
97
|
*/
|
|
97
|
-
'partnerCode'
|
|
98
|
+
'partnerCode'?: string;
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
export const CreateRegulationItemRequestDtoRegulationItemTypeEnum = {
|
|
@@ -22,7 +22,7 @@ import { ClaimPositionClass } from './claim-position-class';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface GetClaimPositionResponseClass {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The claim position.
|
|
26
26
|
* @type {ClaimPositionClass}
|
|
27
27
|
* @memberof GetClaimPositionResponseClass
|
|
28
28
|
*/
|
package/models/index.ts
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
export * from './batch-upsert-claim-position-input-dto';
|
|
2
|
+
export * from './batch-upsert-claim-positions-request-dto';
|
|
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';
|
|
1
7
|
export * from './calculation-step-result-class';
|
|
8
|
+
export * from './calculation-totals-class';
|
|
2
9
|
export * from './claim-applied-deductible-class';
|
|
3
10
|
export * from './claim-class';
|
|
4
11
|
export * from './claim-limit-usage-class';
|
|
5
12
|
export * from './claim-limit-usage-result-class';
|
|
6
13
|
export * from './claim-partner-class';
|
|
7
14
|
export * from './claim-partner-role-class';
|
|
15
|
+
export * from './claim-position-calculation-input-dto';
|
|
8
16
|
export * from './claim-position-class';
|
|
9
17
|
export * from './claim-status-class';
|
|
10
18
|
export * from './create-claim-partner-request-dto';
|
|
@@ -22,7 +22,7 @@ import { ClaimPositionClass } from './claim-position-class';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface ListClaimPositionsResponseClass {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The claim positions.
|
|
26
26
|
* @type {Array<ClaimPositionClass>}
|
|
27
27
|
* @memberof ListClaimPositionsResponseClass
|
|
28
28
|
*/
|
|
@@ -68,6 +68,12 @@ export interface PatchClaimRequestDto {
|
|
|
68
68
|
* @memberof PatchClaimRequestDto
|
|
69
69
|
*/
|
|
70
70
|
'adjuster'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Unique identifier of the adjuster user.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof PatchClaimRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'adjusterCode'?: string;
|
|
71
77
|
/**
|
|
72
78
|
* The claim\'s description in 5000 characters.
|
|
73
79
|
* @type {string}
|
|
@@ -104,6 +110,12 @@ export interface PatchClaimRequestDto {
|
|
|
104
110
|
* @memberof PatchClaimRequestDto
|
|
105
111
|
*/
|
|
106
112
|
'customFields'?: object;
|
|
113
|
+
/**
|
|
114
|
+
* The claim type. Must match one of the categories in the selected tariff.
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof PatchClaimRequestDto
|
|
117
|
+
*/
|
|
118
|
+
'claimType'?: string;
|
|
107
119
|
/**
|
|
108
120
|
* The current status of the claim.
|
|
109
121
|
* @type {string}
|
|
@@ -42,6 +42,12 @@ export interface RegulationItemClass {
|
|
|
42
42
|
* @memberof RegulationItemClass
|
|
43
43
|
*/
|
|
44
44
|
'amount': number;
|
|
45
|
+
/**
|
|
46
|
+
* The amount of the regulation item in cents
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof RegulationItemClass
|
|
49
|
+
*/
|
|
50
|
+
'amountInCents': number;
|
|
45
51
|
/**
|
|
46
52
|
* The currency of the regulation item
|
|
47
53
|
* @type {string}
|
|
@@ -62,5 +62,11 @@ export interface UpdateClaimPositionRequestDto {
|
|
|
62
62
|
* @memberof UpdateClaimPositionRequestDto
|
|
63
63
|
*/
|
|
64
64
|
'manualAdjustmentAmount'?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Clears the stored manual adjustment amount for this claim position.
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof UpdateClaimPositionRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'clearManualAdjustmentAmount'?: boolean;
|
|
65
71
|
}
|
|
66
72
|
|
|
@@ -68,6 +68,12 @@ export interface UpdateClaimRequestDto {
|
|
|
68
68
|
* @memberof UpdateClaimRequestDto
|
|
69
69
|
*/
|
|
70
70
|
'adjuster'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Unique identifier of the adjuster user.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof UpdateClaimRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'adjusterCode'?: string;
|
|
71
77
|
/**
|
|
72
78
|
* The claim\'s description in 5000 characters.
|
|
73
79
|
* @type {string}
|
|
@@ -104,6 +110,12 @@ export interface UpdateClaimRequestDto {
|
|
|
104
110
|
* @memberof UpdateClaimRequestDto
|
|
105
111
|
*/
|
|
106
112
|
'customFields'?: object;
|
|
113
|
+
/**
|
|
114
|
+
* The claim type. Must match one of the categories in the selected tariff.
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof UpdateClaimRequestDto
|
|
117
|
+
*/
|
|
118
|
+
'claimType'?: string;
|
|
107
119
|
/**
|
|
108
120
|
* The current status of the claim.
|
|
109
121
|
* @type {string}
|
|
@@ -39,6 +39,7 @@ export interface UpdateRegulationItemRequestDto {
|
|
|
39
39
|
* The currency for the regulation item. Must be a valid currency code.
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof UpdateRegulationItemRequestDto
|
|
42
|
+
* @deprecated
|
|
42
43
|
*/
|
|
43
44
|
'currency'?: string;
|
|
44
45
|
/**
|
|
@@ -53,6 +54,18 @@ export interface UpdateRegulationItemRequestDto {
|
|
|
53
54
|
* @memberof UpdateRegulationItemRequestDto
|
|
54
55
|
*/
|
|
55
56
|
'bookingDate'?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The payout provider to use. Defaults to INTERNAL. Use PAYMENT_SERVICE to delegate payout processing to the payment service.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof UpdateRegulationItemRequestDto
|
|
61
|
+
*/
|
|
62
|
+
'payoutProvider'?: UpdateRegulationItemRequestDtoPayoutProviderEnum;
|
|
63
|
+
/**
|
|
64
|
+
* List of claim position categories covered by this regulation. For payout updates, only allowed when payoutProvider is PAYMENT_SERVICE.
|
|
65
|
+
* @type {Array<string>}
|
|
66
|
+
* @memberof UpdateRegulationItemRequestDto
|
|
67
|
+
*/
|
|
68
|
+
'claimPositionCategories'?: Array<string>;
|
|
56
69
|
/**
|
|
57
70
|
* The payout details for the regulation item. Must be a valid payout details object.At least an empty object is required when updating a payout item. But if the regulation item type is not payout, this field is not required.
|
|
58
71
|
* @type {UpdatePayoutDetailsDto}
|
|
@@ -77,6 +90,12 @@ export interface UpdateRegulationItemRequestDto {
|
|
|
77
90
|
* @memberof UpdateRegulationItemRequestDto
|
|
78
91
|
*/
|
|
79
92
|
'status'?: UpdateRegulationItemRequestDtoStatusEnum;
|
|
93
|
+
/**
|
|
94
|
+
* The partner code to use for the regulation item. Required only when regulationItemType is PAYOUT and payoutProvider is PAYMENT_SERVICE.
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof UpdateRegulationItemRequestDto
|
|
97
|
+
*/
|
|
98
|
+
'partnerCode'?: string;
|
|
80
99
|
}
|
|
81
100
|
|
|
82
101
|
export const UpdateRegulationItemRequestDtoRegulationItemTypeEnum = {
|
|
@@ -86,6 +105,12 @@ export const UpdateRegulationItemRequestDtoRegulationItemTypeEnum = {
|
|
|
86
105
|
} as const;
|
|
87
106
|
|
|
88
107
|
export type UpdateRegulationItemRequestDtoRegulationItemTypeEnum = typeof UpdateRegulationItemRequestDtoRegulationItemTypeEnum[keyof typeof UpdateRegulationItemRequestDtoRegulationItemTypeEnum];
|
|
108
|
+
export const UpdateRegulationItemRequestDtoPayoutProviderEnum = {
|
|
109
|
+
Internal: 'INTERNAL',
|
|
110
|
+
PaymentService: 'PAYMENT_SERVICE'
|
|
111
|
+
} as const;
|
|
112
|
+
|
|
113
|
+
export type UpdateRegulationItemRequestDtoPayoutProviderEnum = typeof UpdateRegulationItemRequestDtoPayoutProviderEnum[keyof typeof UpdateRegulationItemRequestDtoPayoutProviderEnum];
|
|
89
114
|
export const UpdateRegulationItemRequestDtoStatusEnum = {
|
|
90
115
|
Open: 'OPEN',
|
|
91
116
|
PendingApproval: 'PENDING_APPROVAL',
|