@emilgroup/billing-sdk-node 1.11.0 → 1.17.1-beta.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.
- package/.openapi-generator/FILES +2 -0
- package/README.md +2 -2
- package/api/estimated-invoices-api.ts +111 -4
- package/api/invoices-api.ts +48 -20
- package/dist/api/estimated-invoices-api.d.ts +61 -4
- package/dist/api/estimated-invoices-api.js +97 -4
- package/dist/api/invoices-api.d.ts +32 -14
- package/dist/api/invoices-api.js +30 -18
- package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
- package/dist/models/create-estimated-invoice-for-interval-request-dto.js +15 -0
- package/dist/models/create-estimated-invoice-for-interval-response-class.d.ts +25 -0
- package/dist/models/create-estimated-invoice-for-interval-response-class.js +15 -0
- package/dist/models/create-estimated-invoice-request-dto.d.ts +7 -1
- package/dist/models/create-invoice-request-dto.d.ts +1 -1
- package/dist/models/create-invoice-status-request-dto.d.ts +1 -0
- package/dist/models/create-invoice-status-request-dto.js +2 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/invoice-class.d.ts +1 -0
- package/dist/models/invoice-class.js +2 -1
- package/dist/models/invoice-payment-class.d.ts +6 -0
- package/dist/models/invoice-status-class.d.ts +1 -0
- package/dist/models/invoice-status-class.js +2 -1
- package/dist/models/omit-type-class.d.ts +1 -0
- package/dist/models/omit-type-class.js +2 -1
- package/dist/models/policy-dto.d.ts +3 -2
- package/dist/models/policy-dto.js +3 -2
- package/dist/models/policy-object-dto.d.ts +24 -0
- package/dist/models/policy-version-dto.d.ts +9 -3
- package/dist/models/timeslice-dto.d.ts +1 -1
- package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
- package/models/create-estimated-invoice-for-interval-response-class.ts +31 -0
- package/models/create-estimated-invoice-request-dto.ts +7 -1
- package/models/create-invoice-request-dto.ts +1 -1
- package/models/create-invoice-status-request-dto.ts +2 -1
- package/models/index.ts +2 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/invoice-class.ts +2 -1
- package/models/invoice-payment-class.ts +6 -0
- package/models/invoice-status-class.ts +2 -1
- package/models/omit-type-class.ts +2 -1
- package/models/policy-dto.ts +4 -3
- package/models/policy-object-dto.ts +24 -0
- package/models/policy-version-dto.ts +9 -3
- package/models/timeslice-dto.ts +1 -1
- package/package.json +2 -2
|
@@ -44,7 +44,7 @@ export interface CreateInvoiceRequestDto {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CreateInvoiceRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'type'
|
|
47
|
+
'type'?: CreateInvoiceRequestDtoTypeEnum;
|
|
48
48
|
/**
|
|
49
49
|
* Metadata contains extra information that the object would need for specific cases.
|
|
50
50
|
* @type {object}
|
|
@@ -32,5 +32,6 @@ export declare const CreateInvoiceStatusRequestDtoStatusEnum: {
|
|
|
32
32
|
readonly Open: "open";
|
|
33
33
|
readonly Paid: "paid";
|
|
34
34
|
readonly PartiallyPaid: "partially-paid";
|
|
35
|
+
readonly Refunded: "refunded";
|
|
35
36
|
};
|
|
36
37
|
export type CreateInvoiceStatusRequestDtoStatusEnum = typeof CreateInvoiceStatusRequestDtoStatusEnum[keyof typeof CreateInvoiceStatusRequestDtoStatusEnum];
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './create-correction-invoices-response-class';
|
|
2
2
|
export * from './create-custom-estimated-invoice-request-dto';
|
|
3
3
|
export * from './create-custom-estimated-invoice-response-class';
|
|
4
|
+
export * from './create-estimated-invoice-for-interval-request-dto';
|
|
5
|
+
export * from './create-estimated-invoice-for-interval-response-class';
|
|
4
6
|
export * from './create-estimated-invoice-request-dto';
|
|
5
7
|
export * from './create-estimated-invoice-response-class';
|
|
6
8
|
export * from './create-invoice-payment-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./create-correction-invoices-response-class"), exports);
|
|
18
18
|
__exportStar(require("./create-custom-estimated-invoice-request-dto"), exports);
|
|
19
19
|
__exportStar(require("./create-custom-estimated-invoice-response-class"), exports);
|
|
20
|
+
__exportStar(require("./create-estimated-invoice-for-interval-request-dto"), exports);
|
|
21
|
+
__exportStar(require("./create-estimated-invoice-for-interval-response-class"), exports);
|
|
20
22
|
__exportStar(require("./create-estimated-invoice-request-dto"), exports);
|
|
21
23
|
__exportStar(require("./create-estimated-invoice-response-class"), exports);
|
|
22
24
|
__exportStar(require("./create-invoice-payment-request-dto"), exports);
|
|
@@ -23,32 +23,32 @@ export interface InlineResponse200 {
|
|
|
23
23
|
'status'?: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {{ [key: string]: { [key: string]:
|
|
26
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
27
27
|
* @memberof InlineResponse200
|
|
28
28
|
*/
|
|
29
29
|
'info'?: {
|
|
30
30
|
[key: string]: {
|
|
31
|
-
[key: string]:
|
|
31
|
+
[key: string]: object;
|
|
32
32
|
};
|
|
33
33
|
} | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {{ [key: string]: { [key: string]:
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
37
37
|
* @memberof InlineResponse200
|
|
38
38
|
*/
|
|
39
39
|
'error'?: {
|
|
40
40
|
[key: string]: {
|
|
41
|
-
[key: string]:
|
|
41
|
+
[key: string]: object;
|
|
42
42
|
};
|
|
43
43
|
} | null;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {{ [key: string]: { [key: string]:
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
47
47
|
* @memberof InlineResponse200
|
|
48
48
|
*/
|
|
49
49
|
'details'?: {
|
|
50
50
|
[key: string]: {
|
|
51
|
-
[key: string]:
|
|
51
|
+
[key: string]: object;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -23,32 +23,32 @@ export interface InlineResponse503 {
|
|
|
23
23
|
'status'?: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {{ [key: string]: { [key: string]:
|
|
26
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
27
27
|
* @memberof InlineResponse503
|
|
28
28
|
*/
|
|
29
29
|
'info'?: {
|
|
30
30
|
[key: string]: {
|
|
31
|
-
[key: string]:
|
|
31
|
+
[key: string]: object;
|
|
32
32
|
};
|
|
33
33
|
} | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {{ [key: string]: { [key: string]:
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
37
37
|
* @memberof InlineResponse503
|
|
38
38
|
*/
|
|
39
39
|
'error'?: {
|
|
40
40
|
[key: string]: {
|
|
41
|
-
[key: string]:
|
|
41
|
+
[key: string]: object;
|
|
42
42
|
};
|
|
43
43
|
} | null;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {{ [key: string]: { [key: string]:
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
47
47
|
* @memberof InlineResponse503
|
|
48
48
|
*/
|
|
49
49
|
'details'?: {
|
|
50
50
|
[key: string]: {
|
|
51
|
-
[key: string]:
|
|
51
|
+
[key: string]: object;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -166,5 +166,6 @@ export declare const InvoiceClassStatusEnum: {
|
|
|
166
166
|
readonly Open: "open";
|
|
167
167
|
readonly Paid: "paid";
|
|
168
168
|
readonly PartiallyPaid: "partially-paid";
|
|
169
|
+
readonly Refunded: "refunded";
|
|
169
170
|
};
|
|
170
171
|
export type InvoiceClassStatusEnum = typeof InvoiceClassStatusEnum[keyof typeof InvoiceClassStatusEnum];
|
|
@@ -87,6 +87,12 @@ export interface InvoicePaymentClass {
|
|
|
87
87
|
* @memberof InvoicePaymentClass
|
|
88
88
|
*/
|
|
89
89
|
'newInvoiceStatus': string;
|
|
90
|
+
/**
|
|
91
|
+
* Id of the payment linked to the invoice.
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof InvoicePaymentClass
|
|
94
|
+
*/
|
|
95
|
+
'paymentId': number;
|
|
90
96
|
/**
|
|
91
97
|
* Time at which the object was created.
|
|
92
98
|
* @type {string}
|
|
@@ -44,5 +44,6 @@ export declare const InvoiceStatusClassStatusEnum: {
|
|
|
44
44
|
readonly Open: "open";
|
|
45
45
|
readonly Paid: "paid";
|
|
46
46
|
readonly PartiallyPaid: "partially-paid";
|
|
47
|
+
readonly Refunded: "refunded";
|
|
47
48
|
};
|
|
48
49
|
export type InvoiceStatusClassStatusEnum = typeof InvoiceStatusClassStatusEnum[keyof typeof InvoiceStatusClassStatusEnum];
|
|
@@ -159,5 +159,6 @@ export declare const OmitTypeClassStatusEnum: {
|
|
|
159
159
|
readonly Open: "open";
|
|
160
160
|
readonly Paid: "paid";
|
|
161
161
|
readonly PartiallyPaid: "partially-paid";
|
|
162
|
+
readonly Refunded: "refunded";
|
|
162
163
|
};
|
|
163
164
|
export type OmitTypeClassStatusEnum = typeof OmitTypeClassStatusEnum[keyof typeof OmitTypeClassStatusEnum];
|
|
@@ -95,7 +95,7 @@ export interface PolicyDto {
|
|
|
95
95
|
*/
|
|
96
96
|
'productName': string;
|
|
97
97
|
/**
|
|
98
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
98
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
99
99
|
* @type {string}
|
|
100
100
|
* @memberof PolicyDto
|
|
101
101
|
*/
|
|
@@ -115,8 +115,9 @@ export interface PolicyDto {
|
|
|
115
115
|
}
|
|
116
116
|
export declare const PolicyDtoStatusEnum: {
|
|
117
117
|
readonly Active: "ACTIVE";
|
|
118
|
-
readonly
|
|
118
|
+
readonly Withdrawn: "WITHDRAWN";
|
|
119
119
|
readonly Terminated: "TERMINATED";
|
|
120
120
|
readonly Suspended: "SUSPENDED";
|
|
121
|
+
readonly Pending: "PENDING";
|
|
121
122
|
};
|
|
122
123
|
export type PolicyDtoStatusEnum = typeof PolicyDtoStatusEnum[keyof typeof PolicyDtoStatusEnum];
|
|
@@ -16,7 +16,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.PolicyDtoStatusEnum = void 0;
|
|
17
17
|
exports.PolicyDtoStatusEnum = {
|
|
18
18
|
Active: 'ACTIVE',
|
|
19
|
-
|
|
19
|
+
Withdrawn: 'WITHDRAWN',
|
|
20
20
|
Terminated: 'TERMINATED',
|
|
21
|
-
Suspended: 'SUSPENDED'
|
|
21
|
+
Suspended: 'SUSPENDED',
|
|
22
|
+
Pending: 'PENDING'
|
|
22
23
|
};
|
|
@@ -27,6 +27,18 @@ export interface PolicyObjectDto {
|
|
|
27
27
|
* @memberof PolicyObjectDto
|
|
28
28
|
*/
|
|
29
29
|
'insuredObjectName': string;
|
|
30
|
+
/**
|
|
31
|
+
* Insured object label.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PolicyObjectDto
|
|
34
|
+
*/
|
|
35
|
+
'insuredObjectLabel': string;
|
|
36
|
+
/**
|
|
37
|
+
* A boolean value indicating whether the insured object accepts multiple objects.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof PolicyObjectDto
|
|
40
|
+
*/
|
|
41
|
+
'isMultiInsuredObject': boolean;
|
|
30
42
|
/**
|
|
31
43
|
* Insured object summary.
|
|
32
44
|
* @type {string}
|
|
@@ -39,6 +51,18 @@ export interface PolicyObjectDto {
|
|
|
39
51
|
* @memberof PolicyObjectDto
|
|
40
52
|
*/
|
|
41
53
|
'data': object;
|
|
54
|
+
/**
|
|
55
|
+
* Time at which the object was created.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PolicyObjectDto
|
|
58
|
+
*/
|
|
59
|
+
'createdAt'?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Time at which the object was updated.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PolicyObjectDto
|
|
64
|
+
*/
|
|
65
|
+
'updatedAt'?: string;
|
|
42
66
|
/**
|
|
43
67
|
*
|
|
44
68
|
* @type {string}
|
|
@@ -33,23 +33,29 @@ export interface PolicyVersionDto {
|
|
|
33
33
|
* @type {object}
|
|
34
34
|
* @memberof PolicyVersionDto
|
|
35
35
|
*/
|
|
36
|
-
'metadata'
|
|
36
|
+
'metadata'?: object;
|
|
37
37
|
/**
|
|
38
38
|
* Time at which the object was created.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof PolicyVersionDto
|
|
41
41
|
*/
|
|
42
|
-
'createdAt'
|
|
42
|
+
'createdAt'?: string;
|
|
43
43
|
/**
|
|
44
44
|
* Time at which the object was updated.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof PolicyVersionDto
|
|
47
47
|
*/
|
|
48
|
-
'updatedAt'
|
|
48
|
+
'updatedAt'?: string;
|
|
49
49
|
/**
|
|
50
50
|
* Policy timeline.
|
|
51
51
|
* @type {Array<TimesliceDto>}
|
|
52
52
|
* @memberof PolicyVersionDto
|
|
53
53
|
*/
|
|
54
54
|
'timeline': Array<TimesliceDto>;
|
|
55
|
+
/**
|
|
56
|
+
* Is this a draft policy version?
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof PolicyVersionDto
|
|
59
|
+
*/
|
|
60
|
+
'isDraft': boolean;
|
|
55
61
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL BillingService
|
|
5
|
+
* The EMIL BillingService 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 { PolicyDto } from './policy-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateEstimatedInvoiceForIntervalRequestDto
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateEstimatedInvoiceForIntervalRequestDto {
|
|
24
|
+
/**
|
|
25
|
+
* The policy object that the invoice is attached to. This contains all relevant policy details associated with this invoice.
|
|
26
|
+
* @type {PolicyDto}
|
|
27
|
+
* @memberof CreateEstimatedInvoiceForIntervalRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'policy': PolicyDto;
|
|
30
|
+
/**
|
|
31
|
+
* Metadata contains extra information that the object would need for specific cases.
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof CreateEstimatedInvoiceForIntervalRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'metadata'?: object;
|
|
36
|
+
/**
|
|
37
|
+
* A boolean flag indicating whether the invoice should be calculated on a pro rata basis. When true, the invoice amount is adjusted proportionally based on the duration of service.
|
|
38
|
+
* @type {object}
|
|
39
|
+
* @memberof CreateEstimatedInvoiceForIntervalRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'calculateProRata'?: object;
|
|
42
|
+
/**
|
|
43
|
+
* The start date of the billing interval. This is the date from which the invoice period begins.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateEstimatedInvoiceForIntervalRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'billingIntervalFrom': string;
|
|
48
|
+
/**
|
|
49
|
+
* The end date of the billing interval. This is the date until which the invoice period runs. Together with billingIntervalFrom, it defines the time period for which the invoice is issued.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateEstimatedInvoiceForIntervalRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'billingIntervalTo': string;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL BillingService
|
|
5
|
+
* The EMIL BillingService 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 { InvoiceClass } from './invoice-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateEstimatedInvoiceForIntervalResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateEstimatedInvoiceForIntervalResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Estimated invoice response
|
|
26
|
+
* @type {InvoiceClass}
|
|
27
|
+
* @memberof CreateEstimatedInvoiceForIntervalResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'invoice': InvoiceClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -32,6 +32,12 @@ export interface CreateEstimatedInvoiceRequestDto {
|
|
|
32
32
|
* @type {object}
|
|
33
33
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'metadata'
|
|
35
|
+
'metadata'?: object;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof CreateEstimatedInvoiceRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'calculateProRata'?: boolean;
|
|
36
42
|
}
|
|
37
43
|
|
|
@@ -49,7 +49,7 @@ export interface CreateInvoiceRequestDto {
|
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof CreateInvoiceRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'type'
|
|
52
|
+
'type'?: CreateInvoiceRequestDtoTypeEnum;
|
|
53
53
|
/**
|
|
54
54
|
* Metadata contains extra information that the object would need for specific cases.
|
|
55
55
|
* @type {object}
|
|
@@ -37,7 +37,8 @@ export interface CreateInvoiceStatusRequestDto {
|
|
|
37
37
|
export const CreateInvoiceStatusRequestDtoStatusEnum = {
|
|
38
38
|
Open: 'open',
|
|
39
39
|
Paid: 'paid',
|
|
40
|
-
PartiallyPaid: 'partially-paid'
|
|
40
|
+
PartiallyPaid: 'partially-paid',
|
|
41
|
+
Refunded: 'refunded'
|
|
41
42
|
} as const;
|
|
42
43
|
|
|
43
44
|
export type CreateInvoiceStatusRequestDtoStatusEnum = typeof CreateInvoiceStatusRequestDtoStatusEnum[keyof typeof CreateInvoiceStatusRequestDtoStatusEnum];
|
package/models/index.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './create-correction-invoices-response-class';
|
|
2
2
|
export * from './create-custom-estimated-invoice-request-dto';
|
|
3
3
|
export * from './create-custom-estimated-invoice-response-class';
|
|
4
|
+
export * from './create-estimated-invoice-for-interval-request-dto';
|
|
5
|
+
export * from './create-estimated-invoice-for-interval-response-class';
|
|
4
6
|
export * from './create-estimated-invoice-request-dto';
|
|
5
7
|
export * from './create-estimated-invoice-response-class';
|
|
6
8
|
export * from './create-invoice-payment-request-dto';
|
|
@@ -28,21 +28,21 @@ export interface InlineResponse200 {
|
|
|
28
28
|
'status'?: string;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @type {{ [key: string]: { [key: string]:
|
|
31
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
32
32
|
* @memberof InlineResponse200
|
|
33
33
|
*/
|
|
34
|
-
'info'?: { [key: string]: { [key: string]:
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {{ [key: string]: { [key: string]:
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
38
38
|
* @memberof InlineResponse200
|
|
39
39
|
*/
|
|
40
|
-
'error'?: { [key: string]: { [key: string]:
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {{ [key: string]: { [key: string]:
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
44
44
|
* @memberof InlineResponse200
|
|
45
45
|
*/
|
|
46
|
-
'details'?: { [key: string]: { [key: string]:
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: object; }; };
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -28,21 +28,21 @@ export interface InlineResponse503 {
|
|
|
28
28
|
'status'?: string;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @type {{ [key: string]: { [key: string]:
|
|
31
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
32
32
|
* @memberof InlineResponse503
|
|
33
33
|
*/
|
|
34
|
-
'info'?: { [key: string]: { [key: string]:
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {{ [key: string]: { [key: string]:
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
38
38
|
* @memberof InlineResponse503
|
|
39
39
|
*/
|
|
40
|
-
'error'?: { [key: string]: { [key: string]:
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {{ [key: string]: { [key: string]:
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
44
44
|
* @memberof InlineResponse503
|
|
45
45
|
*/
|
|
46
|
-
'details'?: { [key: string]: { [key: string]:
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: object; }; };
|
|
47
47
|
}
|
|
48
48
|
|
package/models/invoice-class.ts
CHANGED
|
@@ -172,7 +172,8 @@ export type InvoiceClassTypeEnum = typeof InvoiceClassTypeEnum[keyof typeof Invo
|
|
|
172
172
|
export const InvoiceClassStatusEnum = {
|
|
173
173
|
Open: 'open',
|
|
174
174
|
Paid: 'paid',
|
|
175
|
-
PartiallyPaid: 'partially-paid'
|
|
175
|
+
PartiallyPaid: 'partially-paid',
|
|
176
|
+
Refunded: 'refunded'
|
|
176
177
|
} as const;
|
|
177
178
|
|
|
178
179
|
export type InvoiceClassStatusEnum = typeof InvoiceClassStatusEnum[keyof typeof InvoiceClassStatusEnum];
|
|
@@ -92,6 +92,12 @@ export interface InvoicePaymentClass {
|
|
|
92
92
|
* @memberof InvoicePaymentClass
|
|
93
93
|
*/
|
|
94
94
|
'newInvoiceStatus': string;
|
|
95
|
+
/**
|
|
96
|
+
* Id of the payment linked to the invoice.
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof InvoicePaymentClass
|
|
99
|
+
*/
|
|
100
|
+
'paymentId': number;
|
|
95
101
|
/**
|
|
96
102
|
* Time at which the object was created.
|
|
97
103
|
* @type {string}
|
|
@@ -49,7 +49,8 @@ export interface InvoiceStatusClass {
|
|
|
49
49
|
export const InvoiceStatusClassStatusEnum = {
|
|
50
50
|
Open: 'open',
|
|
51
51
|
Paid: 'paid',
|
|
52
|
-
PartiallyPaid: 'partially-paid'
|
|
52
|
+
PartiallyPaid: 'partially-paid',
|
|
53
|
+
Refunded: 'refunded'
|
|
53
54
|
} as const;
|
|
54
55
|
|
|
55
56
|
export type InvoiceStatusClassStatusEnum = typeof InvoiceStatusClassStatusEnum[keyof typeof InvoiceStatusClassStatusEnum];
|
|
@@ -165,7 +165,8 @@ export type OmitTypeClassTypeEnum = typeof OmitTypeClassTypeEnum[keyof typeof Om
|
|
|
165
165
|
export const OmitTypeClassStatusEnum = {
|
|
166
166
|
Open: 'open',
|
|
167
167
|
Paid: 'paid',
|
|
168
|
-
PartiallyPaid: 'partially-paid'
|
|
168
|
+
PartiallyPaid: 'partially-paid',
|
|
169
|
+
Refunded: 'refunded'
|
|
169
170
|
} as const;
|
|
170
171
|
|
|
171
172
|
export type OmitTypeClassStatusEnum = typeof OmitTypeClassStatusEnum[keyof typeof OmitTypeClassStatusEnum];
|
package/models/policy-dto.ts
CHANGED
|
@@ -100,7 +100,7 @@ export interface PolicyDto {
|
|
|
100
100
|
*/
|
|
101
101
|
'productName': string;
|
|
102
102
|
/**
|
|
103
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
103
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
104
104
|
* @type {string}
|
|
105
105
|
* @memberof PolicyDto
|
|
106
106
|
*/
|
|
@@ -121,9 +121,10 @@ export interface PolicyDto {
|
|
|
121
121
|
|
|
122
122
|
export const PolicyDtoStatusEnum = {
|
|
123
123
|
Active: 'ACTIVE',
|
|
124
|
-
|
|
124
|
+
Withdrawn: 'WITHDRAWN',
|
|
125
125
|
Terminated: 'TERMINATED',
|
|
126
|
-
Suspended: 'SUSPENDED'
|
|
126
|
+
Suspended: 'SUSPENDED',
|
|
127
|
+
Pending: 'PENDING'
|
|
127
128
|
} as const;
|
|
128
129
|
|
|
129
130
|
export type PolicyDtoStatusEnum = typeof PolicyDtoStatusEnum[keyof typeof PolicyDtoStatusEnum];
|
|
@@ -32,6 +32,18 @@ export interface PolicyObjectDto {
|
|
|
32
32
|
* @memberof PolicyObjectDto
|
|
33
33
|
*/
|
|
34
34
|
'insuredObjectName': string;
|
|
35
|
+
/**
|
|
36
|
+
* Insured object label.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PolicyObjectDto
|
|
39
|
+
*/
|
|
40
|
+
'insuredObjectLabel': string;
|
|
41
|
+
/**
|
|
42
|
+
* A boolean value indicating whether the insured object accepts multiple objects.
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof PolicyObjectDto
|
|
45
|
+
*/
|
|
46
|
+
'isMultiInsuredObject': boolean;
|
|
35
47
|
/**
|
|
36
48
|
* Insured object summary.
|
|
37
49
|
* @type {string}
|
|
@@ -44,6 +56,18 @@ export interface PolicyObjectDto {
|
|
|
44
56
|
* @memberof PolicyObjectDto
|
|
45
57
|
*/
|
|
46
58
|
'data': object;
|
|
59
|
+
/**
|
|
60
|
+
* Time at which the object was created.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof PolicyObjectDto
|
|
63
|
+
*/
|
|
64
|
+
'createdAt'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Time at which the object was updated.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof PolicyObjectDto
|
|
69
|
+
*/
|
|
70
|
+
'updatedAt'?: string;
|
|
47
71
|
/**
|
|
48
72
|
*
|
|
49
73
|
* @type {string}
|
|
@@ -38,24 +38,30 @@ export interface PolicyVersionDto {
|
|
|
38
38
|
* @type {object}
|
|
39
39
|
* @memberof PolicyVersionDto
|
|
40
40
|
*/
|
|
41
|
-
'metadata'
|
|
41
|
+
'metadata'?: object;
|
|
42
42
|
/**
|
|
43
43
|
* Time at which the object was created.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof PolicyVersionDto
|
|
46
46
|
*/
|
|
47
|
-
'createdAt'
|
|
47
|
+
'createdAt'?: string;
|
|
48
48
|
/**
|
|
49
49
|
* Time at which the object was updated.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof PolicyVersionDto
|
|
52
52
|
*/
|
|
53
|
-
'updatedAt'
|
|
53
|
+
'updatedAt'?: string;
|
|
54
54
|
/**
|
|
55
55
|
* Policy timeline.
|
|
56
56
|
* @type {Array<TimesliceDto>}
|
|
57
57
|
* @memberof PolicyVersionDto
|
|
58
58
|
*/
|
|
59
59
|
'timeline': Array<TimesliceDto>;
|
|
60
|
+
/**
|
|
61
|
+
* Is this a draft policy version?
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof PolicyVersionDto
|
|
64
|
+
*/
|
|
65
|
+
'isDraft': boolean;
|
|
60
66
|
}
|
|
61
67
|
|