@emilgroup/billing-sdk 1.63.1-beta.7 → 1.63.1-beta.9
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 +1 -1
- package/README.md +2 -2
- package/dist/models/create-correction-invoices-response-class.d.ts +3 -3
- package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +4 -2
- package/dist/models/create-draft-invoice-request-dto.d.ts +4 -2
- package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +4 -2
- package/dist/models/create-estimated-invoice-request-dto.d.ts +4 -2
- package/dist/models/create-invoice-for-policy-request-dto.d.ts +4 -2
- package/dist/models/create-invoice-request-dto.d.ts +4 -2
- package/dist/models/create-invoice-response-class.d.ts +3 -3
- package/dist/models/create-termination-invoice-request-dto.d.ts +4 -2
- package/dist/models/get-invoice-response-class.d.ts +3 -3
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/{omit-type-class.d.ts → omit-invoice-class-statuses.d.ts} +37 -37
- package/dist/models/{omit-type-class.js → omit-invoice-class-statuses.js} +3 -3
- package/dist/models/policy-object-dto.d.ts +4 -2
- package/dist/models/policy-version-dto.d.ts +4 -2
- package/models/create-correction-invoices-response-class.ts +3 -3
- package/models/create-custom-estimated-invoice-request-dto.ts +2 -2
- package/models/create-draft-invoice-request-dto.ts +2 -2
- package/models/create-estimated-invoice-for-interval-request-dto.ts +2 -2
- package/models/create-estimated-invoice-request-dto.ts +2 -2
- package/models/create-invoice-for-policy-request-dto.ts +2 -2
- package/models/create-invoice-request-dto.ts +2 -2
- package/models/create-invoice-response-class.ts +3 -3
- package/models/create-termination-invoice-request-dto.ts +2 -2
- package/models/get-invoice-response-class.ts +3 -3
- package/models/index.ts +1 -1
- package/models/{omit-type-class.ts → omit-invoice-class-statuses.ts} +37 -37
- package/models/policy-object-dto.ts +2 -2
- package/models/policy-version-dto.ts +2 -2
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -48,7 +48,7 @@ models/invoice-status-class.ts
|
|
|
48
48
|
models/list-invoices-response-class.ts
|
|
49
49
|
models/list-policies-billings-response-class.ts
|
|
50
50
|
models/list-request-dto.ts
|
|
51
|
-
models/omit-
|
|
51
|
+
models/omit-invoice-class-statuses.ts
|
|
52
52
|
models/policy-billing-class.ts
|
|
53
53
|
models/policy-dto.ts
|
|
54
54
|
models/policy-object-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/billing-sdk@1.63.1-beta.
|
|
20
|
+
npm install @emilgroup/billing-sdk@1.63.1-beta.9 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/billing-sdk@1.63.1-beta.
|
|
24
|
+
yarn add @emilgroup/billing-sdk@1.63.1-beta.9
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `InvoicesApi`.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { OmitInvoiceClassStatuses } from './omit-invoice-class-statuses';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,8 +18,8 @@ import { OmitTypeClass } from './omit-type-class';
|
|
|
18
18
|
export interface CreateCorrectionInvoicesResponseClass {
|
|
19
19
|
/**
|
|
20
20
|
* Correction invoices response.
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {OmitInvoiceClassStatuses}
|
|
22
22
|
* @memberof CreateCorrectionInvoicesResponseClass
|
|
23
23
|
*/
|
|
24
|
-
'invoices':
|
|
24
|
+
'invoices': OmitInvoiceClassStatuses;
|
|
25
25
|
}
|
|
@@ -17,10 +17,12 @@
|
|
|
17
17
|
export interface CreateCustomEstimatedInvoiceRequestDto {
|
|
18
18
|
/**
|
|
19
19
|
* Required data to create a custom application.
|
|
20
|
-
* @type {object}
|
|
20
|
+
* @type {{ [key: string]: object; }}
|
|
21
21
|
* @memberof CreateCustomEstimatedInvoiceRequestDto
|
|
22
22
|
*/
|
|
23
|
-
'data':
|
|
23
|
+
'data': {
|
|
24
|
+
[key: string]: object;
|
|
25
|
+
};
|
|
24
26
|
/**
|
|
25
27
|
* Custom premium provider.
|
|
26
28
|
* @type {string}
|
|
@@ -41,10 +41,12 @@ export interface CreateDraftInvoiceRequestDto {
|
|
|
41
41
|
'accountNumber': string;
|
|
42
42
|
/**
|
|
43
43
|
* Metadata contains extra information that the object would need for specific cases.
|
|
44
|
-
* @type {object}
|
|
44
|
+
* @type {{ [key: string]: object; }}
|
|
45
45
|
* @memberof CreateDraftInvoiceRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'metadata'
|
|
47
|
+
'metadata'?: {
|
|
48
|
+
[key: string]: object;
|
|
49
|
+
};
|
|
48
50
|
/**
|
|
49
51
|
* This is the date from which the invoice interval starts.
|
|
50
52
|
* @type {string}
|
|
@@ -24,10 +24,12 @@ export interface CreateEstimatedInvoiceForIntervalRequestDto {
|
|
|
24
24
|
'policy': PolicyDto;
|
|
25
25
|
/**
|
|
26
26
|
* Metadata contains extra information that the object would need for specific cases.
|
|
27
|
-
* @type {object}
|
|
27
|
+
* @type {{ [key: string]: object; }}
|
|
28
28
|
* @memberof CreateEstimatedInvoiceForIntervalRequestDto
|
|
29
29
|
*/
|
|
30
|
-
'metadata'?:
|
|
30
|
+
'metadata'?: {
|
|
31
|
+
[key: string]: object;
|
|
32
|
+
};
|
|
31
33
|
/**
|
|
32
34
|
* 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.
|
|
33
35
|
* @type {boolean}
|
|
@@ -24,10 +24,12 @@ export interface CreateEstimatedInvoiceRequestDto {
|
|
|
24
24
|
'policy': PolicyDto;
|
|
25
25
|
/**
|
|
26
26
|
* Metadata contains extra information that the object would need for specific cases.
|
|
27
|
-
* @type {object}
|
|
27
|
+
* @type {{ [key: string]: object; }}
|
|
28
28
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
29
29
|
*/
|
|
30
|
-
'metadata'?:
|
|
30
|
+
'metadata'?: {
|
|
31
|
+
[key: string]: object;
|
|
32
|
+
};
|
|
31
33
|
/**
|
|
32
34
|
*
|
|
33
35
|
* @type {boolean}
|
|
@@ -47,10 +47,12 @@ export interface CreateInvoiceForPolicyRequestDto {
|
|
|
47
47
|
'type'?: CreateInvoiceForPolicyRequestDtoTypeEnum;
|
|
48
48
|
/**
|
|
49
49
|
* Metadata contains extra information that the object would need for specific cases.
|
|
50
|
-
* @type {object}
|
|
50
|
+
* @type {{ [key: string]: object; }}
|
|
51
51
|
* @memberof CreateInvoiceForPolicyRequestDto
|
|
52
52
|
*/
|
|
53
|
-
'metadata'?:
|
|
53
|
+
'metadata'?: {
|
|
54
|
+
[key: string]: object;
|
|
55
|
+
};
|
|
54
56
|
/**
|
|
55
57
|
* This is the date from which the invoice interval starts.
|
|
56
58
|
* @type {string}
|
|
@@ -36,10 +36,12 @@ export interface CreateInvoiceRequestDto {
|
|
|
36
36
|
'type': CreateInvoiceRequestDtoTypeEnum;
|
|
37
37
|
/**
|
|
38
38
|
* Metadata contains extra information that the object would need for specific cases.
|
|
39
|
-
* @type {object}
|
|
39
|
+
* @type {{ [key: string]: object; }}
|
|
40
40
|
* @memberof CreateInvoiceRequestDto
|
|
41
41
|
*/
|
|
42
|
-
'metadata'
|
|
42
|
+
'metadata'?: {
|
|
43
|
+
[key: string]: object;
|
|
44
|
+
};
|
|
43
45
|
/**
|
|
44
46
|
* This is the date from which the invoice interval starts.
|
|
45
47
|
* @type {string}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { OmitInvoiceClassStatuses } from './omit-invoice-class-statuses';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,8 +18,8 @@ import { OmitTypeClass } from './omit-type-class';
|
|
|
18
18
|
export interface CreateInvoiceResponseClass {
|
|
19
19
|
/**
|
|
20
20
|
* Invoice response.
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {OmitInvoiceClassStatuses}
|
|
22
22
|
* @memberof CreateInvoiceResponseClass
|
|
23
23
|
*/
|
|
24
|
-
'invoice':
|
|
24
|
+
'invoice': OmitInvoiceClassStatuses;
|
|
25
25
|
}
|
|
@@ -29,10 +29,12 @@ export interface CreateTerminationInvoiceRequestDto {
|
|
|
29
29
|
'accountNumber': string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {object}
|
|
32
|
+
* @type {{ [key: string]: object; }}
|
|
33
33
|
* @memberof CreateTerminationInvoiceRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'metadata'?:
|
|
35
|
+
'metadata'?: {
|
|
36
|
+
[key: string]: object;
|
|
37
|
+
};
|
|
36
38
|
/**
|
|
37
39
|
*
|
|
38
40
|
* @type {string}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { OmitInvoiceClassStatuses } from './omit-invoice-class-statuses';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,8 +18,8 @@ import { OmitTypeClass } from './omit-type-class';
|
|
|
18
18
|
export interface GetInvoiceResponseClass {
|
|
19
19
|
/**
|
|
20
20
|
* Invoice response.
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {OmitInvoiceClassStatuses}
|
|
22
22
|
* @memberof GetInvoiceResponseClass
|
|
23
23
|
*/
|
|
24
|
-
'invoice':
|
|
24
|
+
'invoice': OmitInvoiceClassStatuses;
|
|
25
25
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export * from './invoice-status-class';
|
|
|
28
28
|
export * from './list-invoices-response-class';
|
|
29
29
|
export * from './list-policies-billings-response-class';
|
|
30
30
|
export * from './list-request-dto';
|
|
31
|
-
export * from './omit-
|
|
31
|
+
export * from './omit-invoice-class-statuses';
|
|
32
32
|
export * from './policy-billing-class';
|
|
33
33
|
export * from './policy-dto';
|
|
34
34
|
export * from './policy-object-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -44,7 +44,7 @@ __exportStar(require("./invoice-status-class"), exports);
|
|
|
44
44
|
__exportStar(require("./list-invoices-response-class"), exports);
|
|
45
45
|
__exportStar(require("./list-policies-billings-response-class"), exports);
|
|
46
46
|
__exportStar(require("./list-request-dto"), exports);
|
|
47
|
-
__exportStar(require("./omit-
|
|
47
|
+
__exportStar(require("./omit-invoice-class-statuses"), exports);
|
|
48
48
|
__exportStar(require("./policy-billing-class"), exports);
|
|
49
49
|
__exportStar(require("./policy-dto"), exports);
|
|
50
50
|
__exportStar(require("./policy-object-dto"), exports);
|
|
@@ -14,185 +14,185 @@ import { InvoicePaymentsClass } from './invoice-payments-class';
|
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
17
|
-
* @interface
|
|
17
|
+
* @interface OmitInvoiceClassStatuses
|
|
18
18
|
*/
|
|
19
|
-
export interface
|
|
19
|
+
export interface OmitInvoiceClassStatuses {
|
|
20
20
|
/**
|
|
21
21
|
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
22
22
|
* @type {number}
|
|
23
|
-
* @memberof
|
|
23
|
+
* @memberof OmitInvoiceClassStatuses
|
|
24
24
|
*/
|
|
25
25
|
'id': number;
|
|
26
26
|
/**
|
|
27
27
|
* Unique identifier of the policy that this object belongs to.
|
|
28
28
|
* @type {string}
|
|
29
|
-
* @memberof
|
|
29
|
+
* @memberof OmitInvoiceClassStatuses
|
|
30
30
|
*/
|
|
31
31
|
'policyCode': string;
|
|
32
32
|
/**
|
|
33
33
|
* Account number.
|
|
34
34
|
* @type {string}
|
|
35
|
-
* @memberof
|
|
35
|
+
* @memberof OmitInvoiceClassStatuses
|
|
36
36
|
*/
|
|
37
37
|
'accountNumber': string;
|
|
38
38
|
/**
|
|
39
39
|
* Policy number.
|
|
40
40
|
* @type {string}
|
|
41
|
-
* @memberof
|
|
41
|
+
* @memberof OmitInvoiceClassStatuses
|
|
42
42
|
*/
|
|
43
43
|
'policyNumber': string;
|
|
44
44
|
/**
|
|
45
45
|
* Unique identifier for the object.
|
|
46
46
|
* @type {string}
|
|
47
|
-
* @memberof
|
|
47
|
+
* @memberof OmitInvoiceClassStatuses
|
|
48
48
|
*/
|
|
49
49
|
'code': string;
|
|
50
50
|
/**
|
|
51
51
|
* Invoice type.
|
|
52
52
|
* @type {string}
|
|
53
|
-
* @memberof
|
|
53
|
+
* @memberof OmitInvoiceClassStatuses
|
|
54
54
|
*/
|
|
55
|
-
'type':
|
|
55
|
+
'type': OmitInvoiceClassStatusesTypeEnum;
|
|
56
56
|
/**
|
|
57
57
|
* Invoice number.
|
|
58
58
|
* @type {string}
|
|
59
|
-
* @memberof
|
|
59
|
+
* @memberof OmitInvoiceClassStatuses
|
|
60
60
|
*/
|
|
61
61
|
'invoiceNumber': string;
|
|
62
62
|
/**
|
|
63
63
|
* Net amount is in cents.
|
|
64
64
|
* @type {number}
|
|
65
|
-
* @memberof
|
|
65
|
+
* @memberof OmitInvoiceClassStatuses
|
|
66
66
|
*/
|
|
67
67
|
'netAmount': number;
|
|
68
68
|
/**
|
|
69
69
|
* Tax amount is in cents.
|
|
70
70
|
* @type {number}
|
|
71
|
-
* @memberof
|
|
71
|
+
* @memberof OmitInvoiceClassStatuses
|
|
72
72
|
*/
|
|
73
73
|
'taxAmount': number;
|
|
74
74
|
/**
|
|
75
75
|
* Credit amount.
|
|
76
76
|
* @type {number}
|
|
77
|
-
* @memberof
|
|
77
|
+
* @memberof OmitInvoiceClassStatuses
|
|
78
78
|
*/
|
|
79
79
|
'creditAmount': number;
|
|
80
80
|
/**
|
|
81
81
|
* Gross amount. This property is sum of taxAmount and netAmount.
|
|
82
82
|
* @type {number}
|
|
83
|
-
* @memberof
|
|
83
|
+
* @memberof OmitInvoiceClassStatuses
|
|
84
84
|
*/
|
|
85
85
|
'grossAmount': number;
|
|
86
86
|
/**
|
|
87
87
|
* Paid amount. This property is amount paid by this invoice. The amount corresponds to the sum (positives and negatives) of all payments relating to that invoice.
|
|
88
88
|
* @type {number}
|
|
89
|
-
* @memberof
|
|
89
|
+
* @memberof OmitInvoiceClassStatuses
|
|
90
90
|
*/
|
|
91
91
|
'paidAmount': number;
|
|
92
92
|
/**
|
|
93
93
|
* Invoice status.
|
|
94
94
|
* @type {string}
|
|
95
|
-
* @memberof
|
|
95
|
+
* @memberof OmitInvoiceClassStatuses
|
|
96
96
|
*/
|
|
97
|
-
'status':
|
|
97
|
+
'status': OmitInvoiceClassStatusesStatusEnum;
|
|
98
98
|
/**
|
|
99
99
|
* Invoice due date.
|
|
100
100
|
* @type {string}
|
|
101
|
-
* @memberof
|
|
101
|
+
* @memberof OmitInvoiceClassStatuses
|
|
102
102
|
*/
|
|
103
103
|
'dueDate': string;
|
|
104
104
|
/**
|
|
105
105
|
* Metadata contains extra information that the object would need for specific cases.
|
|
106
106
|
* @type {object}
|
|
107
|
-
* @memberof
|
|
107
|
+
* @memberof OmitInvoiceClassStatuses
|
|
108
108
|
*/
|
|
109
109
|
'metadata': object;
|
|
110
110
|
/**
|
|
111
111
|
* Start date of billing interval.
|
|
112
112
|
* @type {string}
|
|
113
|
-
* @memberof
|
|
113
|
+
* @memberof OmitInvoiceClassStatuses
|
|
114
114
|
*/
|
|
115
115
|
'billingIntervalFrom': string;
|
|
116
116
|
/**
|
|
117
117
|
* End date of billing interval.
|
|
118
118
|
* @type {string}
|
|
119
|
-
* @memberof
|
|
119
|
+
* @memberof OmitInvoiceClassStatuses
|
|
120
120
|
*/
|
|
121
121
|
'billingIntervalTo': string;
|
|
122
122
|
/**
|
|
123
123
|
* Time at which the object was created.
|
|
124
124
|
* @type {string}
|
|
125
|
-
* @memberof
|
|
125
|
+
* @memberof OmitInvoiceClassStatuses
|
|
126
126
|
*/
|
|
127
127
|
'createdAt': string;
|
|
128
128
|
/**
|
|
129
129
|
* Invoice items.
|
|
130
130
|
* @type {Array<InvoiceItemClass>}
|
|
131
|
-
* @memberof
|
|
131
|
+
* @memberof OmitInvoiceClassStatuses
|
|
132
132
|
*/
|
|
133
133
|
'invoiceItems': Array<InvoiceItemClass>;
|
|
134
134
|
/**
|
|
135
135
|
* Invoice currency. EUR is used by default.
|
|
136
136
|
* @type {string}
|
|
137
|
-
* @memberof
|
|
137
|
+
* @memberof OmitInvoiceClassStatuses
|
|
138
138
|
*/
|
|
139
139
|
'currency': string;
|
|
140
140
|
/**
|
|
141
141
|
* Invoice payments.
|
|
142
142
|
* @type {InvoicePaymentsClass}
|
|
143
|
-
* @memberof
|
|
143
|
+
* @memberof OmitInvoiceClassStatuses
|
|
144
144
|
*/
|
|
145
145
|
'payments': InvoicePaymentsClass;
|
|
146
146
|
/**
|
|
147
147
|
* Identifier of the user who created the record.
|
|
148
148
|
* @type {string}
|
|
149
|
-
* @memberof
|
|
149
|
+
* @memberof OmitInvoiceClassStatuses
|
|
150
150
|
*/
|
|
151
151
|
'createdBy': string;
|
|
152
152
|
/**
|
|
153
153
|
* Identifier of the user who last updated the record.
|
|
154
154
|
* @type {string}
|
|
155
|
-
* @memberof
|
|
155
|
+
* @memberof OmitInvoiceClassStatuses
|
|
156
156
|
*/
|
|
157
157
|
'updatedBy': string;
|
|
158
158
|
/**
|
|
159
159
|
* Invoice payment method code.
|
|
160
160
|
* @type {string}
|
|
161
|
-
* @memberof
|
|
161
|
+
* @memberof OmitInvoiceClassStatuses
|
|
162
162
|
*/
|
|
163
163
|
'paymentMethodCode': string;
|
|
164
164
|
/**
|
|
165
165
|
* Invoice payment method Payment Service Provider.
|
|
166
166
|
* @type {string}
|
|
167
|
-
* @memberof
|
|
167
|
+
* @memberof OmitInvoiceClassStatuses
|
|
168
168
|
*/
|
|
169
169
|
'paymentMethodPsp': string;
|
|
170
170
|
/**
|
|
171
171
|
* Invoice payment method type (e.g. card, bank transfer, etc.).
|
|
172
172
|
* @type {string}
|
|
173
|
-
* @memberof
|
|
173
|
+
* @memberof OmitInvoiceClassStatuses
|
|
174
174
|
*/
|
|
175
175
|
'paymentMethodType': string;
|
|
176
176
|
/**
|
|
177
177
|
* Dunning fees.
|
|
178
178
|
* @type {number}
|
|
179
|
-
* @memberof
|
|
179
|
+
* @memberof OmitInvoiceClassStatuses
|
|
180
180
|
*/
|
|
181
181
|
'dunningFees': number;
|
|
182
182
|
/**
|
|
183
183
|
* Total amount.
|
|
184
184
|
* @type {number}
|
|
185
|
-
* @memberof
|
|
185
|
+
* @memberof OmitInvoiceClassStatuses
|
|
186
186
|
*/
|
|
187
187
|
'totalAmount': number;
|
|
188
188
|
/**
|
|
189
189
|
* Open amount.
|
|
190
190
|
* @type {number}
|
|
191
|
-
* @memberof
|
|
191
|
+
* @memberof OmitInvoiceClassStatuses
|
|
192
192
|
*/
|
|
193
193
|
'openAmount': number;
|
|
194
194
|
}
|
|
195
|
-
export declare const
|
|
195
|
+
export declare const OmitInvoiceClassStatusesTypeEnum: {
|
|
196
196
|
readonly Initial: "initial";
|
|
197
197
|
readonly Recurring: "recurring";
|
|
198
198
|
readonly Correction: "correction";
|
|
@@ -202,11 +202,11 @@ export declare const OmitTypeClassTypeEnum: {
|
|
|
202
202
|
readonly Withdraw: "withdraw";
|
|
203
203
|
readonly Final: "final";
|
|
204
204
|
};
|
|
205
|
-
export type
|
|
206
|
-
export declare const
|
|
205
|
+
export type OmitInvoiceClassStatusesTypeEnum = typeof OmitInvoiceClassStatusesTypeEnum[keyof typeof OmitInvoiceClassStatusesTypeEnum];
|
|
206
|
+
export declare const OmitInvoiceClassStatusesStatusEnum: {
|
|
207
207
|
readonly Open: "open";
|
|
208
208
|
readonly Paid: "paid";
|
|
209
209
|
readonly PartiallyPaid: "partially-paid";
|
|
210
210
|
readonly Refunded: "refunded";
|
|
211
211
|
};
|
|
212
|
-
export type
|
|
212
|
+
export type OmitInvoiceClassStatusesStatusEnum = typeof OmitInvoiceClassStatusesStatusEnum[keyof typeof OmitInvoiceClassStatusesStatusEnum];
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
16
|
+
exports.OmitInvoiceClassStatusesStatusEnum = exports.OmitInvoiceClassStatusesTypeEnum = void 0;
|
|
17
|
+
exports.OmitInvoiceClassStatusesTypeEnum = {
|
|
18
18
|
Initial: 'initial',
|
|
19
19
|
Recurring: 'recurring',
|
|
20
20
|
Correction: 'correction',
|
|
@@ -24,7 +24,7 @@ exports.OmitTypeClassTypeEnum = {
|
|
|
24
24
|
Withdraw: 'withdraw',
|
|
25
25
|
Final: 'final'
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
27
|
+
exports.OmitInvoiceClassStatusesStatusEnum = {
|
|
28
28
|
Open: 'open',
|
|
29
29
|
Paid: 'paid',
|
|
30
30
|
PartiallyPaid: 'partially-paid',
|
|
@@ -47,10 +47,12 @@ export interface PolicyObjectDto {
|
|
|
47
47
|
'summary': string;
|
|
48
48
|
/**
|
|
49
49
|
* Insured object data.
|
|
50
|
-
* @type {object}
|
|
50
|
+
* @type {{ [key: string]: object; }}
|
|
51
51
|
* @memberof PolicyObjectDto
|
|
52
52
|
*/
|
|
53
|
-
'data':
|
|
53
|
+
'data': {
|
|
54
|
+
[key: string]: object;
|
|
55
|
+
};
|
|
54
56
|
/**
|
|
55
57
|
* Time at which the object was created.
|
|
56
58
|
* @type {string}
|
|
@@ -30,10 +30,12 @@ export interface PolicyVersionDto {
|
|
|
30
30
|
'isCurrent': boolean;
|
|
31
31
|
/**
|
|
32
32
|
* Metadata contains extra information that the object would need for specific cases.
|
|
33
|
-
* @type {object}
|
|
33
|
+
* @type {{ [key: string]: object; }}
|
|
34
34
|
* @memberof PolicyVersionDto
|
|
35
35
|
*/
|
|
36
|
-
'metadata'?:
|
|
36
|
+
'metadata'?: {
|
|
37
|
+
[key: string]: object;
|
|
38
|
+
};
|
|
37
39
|
/**
|
|
38
40
|
* Time at which the object was created.
|
|
39
41
|
* @type {string}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import { OmitInvoiceClassStatuses } from './omit-invoice-class-statuses';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
@@ -23,9 +23,9 @@ import { OmitTypeClass } from './omit-type-class';
|
|
|
23
23
|
export interface CreateCorrectionInvoicesResponseClass {
|
|
24
24
|
/**
|
|
25
25
|
* Correction invoices response.
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {OmitInvoiceClassStatuses}
|
|
27
27
|
* @memberof CreateCorrectionInvoicesResponseClass
|
|
28
28
|
*/
|
|
29
|
-
'invoices':
|
|
29
|
+
'invoices': OmitInvoiceClassStatuses;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
export interface CreateCustomEstimatedInvoiceRequestDto {
|
|
23
23
|
/**
|
|
24
24
|
* Required data to create a custom application.
|
|
25
|
-
* @type {object}
|
|
25
|
+
* @type {{ [key: string]: object; }}
|
|
26
26
|
* @memberof CreateCustomEstimatedInvoiceRequestDto
|
|
27
27
|
*/
|
|
28
|
-
'data': object;
|
|
28
|
+
'data': { [key: string]: object; };
|
|
29
29
|
/**
|
|
30
30
|
* Custom premium provider.
|
|
31
31
|
* @type {string}
|
|
@@ -46,10 +46,10 @@ export interface CreateDraftInvoiceRequestDto {
|
|
|
46
46
|
'accountNumber': string;
|
|
47
47
|
/**
|
|
48
48
|
* Metadata contains extra information that the object would need for specific cases.
|
|
49
|
-
* @type {object}
|
|
49
|
+
* @type {{ [key: string]: object; }}
|
|
50
50
|
* @memberof CreateDraftInvoiceRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'metadata': object;
|
|
52
|
+
'metadata'?: { [key: string]: object; };
|
|
53
53
|
/**
|
|
54
54
|
* This is the date from which the invoice interval starts.
|
|
55
55
|
* @type {string}
|
|
@@ -29,10 +29,10 @@ export interface CreateEstimatedInvoiceForIntervalRequestDto {
|
|
|
29
29
|
'policy': PolicyDto;
|
|
30
30
|
/**
|
|
31
31
|
* Metadata contains extra information that the object would need for specific cases.
|
|
32
|
-
* @type {object}
|
|
32
|
+
* @type {{ [key: string]: object; }}
|
|
33
33
|
* @memberof CreateEstimatedInvoiceForIntervalRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'metadata'?: object;
|
|
35
|
+
'metadata'?: { [key: string]: object; };
|
|
36
36
|
/**
|
|
37
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
38
|
* @type {boolean}
|
|
@@ -29,10 +29,10 @@ export interface CreateEstimatedInvoiceRequestDto {
|
|
|
29
29
|
'policy': PolicyDto;
|
|
30
30
|
/**
|
|
31
31
|
* Metadata contains extra information that the object would need for specific cases.
|
|
32
|
-
* @type {object}
|
|
32
|
+
* @type {{ [key: string]: object; }}
|
|
33
33
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'metadata'?: object;
|
|
35
|
+
'metadata'?: { [key: string]: object; };
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {boolean}
|
|
@@ -52,10 +52,10 @@ export interface CreateInvoiceForPolicyRequestDto {
|
|
|
52
52
|
'type'?: CreateInvoiceForPolicyRequestDtoTypeEnum;
|
|
53
53
|
/**
|
|
54
54
|
* Metadata contains extra information that the object would need for specific cases.
|
|
55
|
-
* @type {object}
|
|
55
|
+
* @type {{ [key: string]: object; }}
|
|
56
56
|
* @memberof CreateInvoiceForPolicyRequestDto
|
|
57
57
|
*/
|
|
58
|
-
'metadata'?: object;
|
|
58
|
+
'metadata'?: { [key: string]: object; };
|
|
59
59
|
/**
|
|
60
60
|
* This is the date from which the invoice interval starts.
|
|
61
61
|
* @type {string}
|
|
@@ -41,10 +41,10 @@ export interface CreateInvoiceRequestDto {
|
|
|
41
41
|
'type': CreateInvoiceRequestDtoTypeEnum;
|
|
42
42
|
/**
|
|
43
43
|
* Metadata contains extra information that the object would need for specific cases.
|
|
44
|
-
* @type {object}
|
|
44
|
+
* @type {{ [key: string]: object; }}
|
|
45
45
|
* @memberof CreateInvoiceRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'metadata': object;
|
|
47
|
+
'metadata'?: { [key: string]: object; };
|
|
48
48
|
/**
|
|
49
49
|
* This is the date from which the invoice interval starts.
|
|
50
50
|
* @type {string}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import { OmitInvoiceClassStatuses } from './omit-invoice-class-statuses';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
@@ -23,9 +23,9 @@ import { OmitTypeClass } from './omit-type-class';
|
|
|
23
23
|
export interface CreateInvoiceResponseClass {
|
|
24
24
|
/**
|
|
25
25
|
* Invoice response.
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {OmitInvoiceClassStatuses}
|
|
27
27
|
* @memberof CreateInvoiceResponseClass
|
|
28
28
|
*/
|
|
29
|
-
'invoice':
|
|
29
|
+
'invoice': OmitInvoiceClassStatuses;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -34,10 +34,10 @@ export interface CreateTerminationInvoiceRequestDto {
|
|
|
34
34
|
'accountNumber': string;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {object}
|
|
37
|
+
* @type {{ [key: string]: object; }}
|
|
38
38
|
* @memberof CreateTerminationInvoiceRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'metadata'?: object;
|
|
40
|
+
'metadata'?: { [key: string]: object; };
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {string}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import { OmitInvoiceClassStatuses } from './omit-invoice-class-statuses';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
@@ -23,9 +23,9 @@ import { OmitTypeClass } from './omit-type-class';
|
|
|
23
23
|
export interface GetInvoiceResponseClass {
|
|
24
24
|
/**
|
|
25
25
|
* Invoice response.
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {OmitInvoiceClassStatuses}
|
|
27
27
|
* @memberof GetInvoiceResponseClass
|
|
28
28
|
*/
|
|
29
|
-
'invoice':
|
|
29
|
+
'invoice': OmitInvoiceClassStatuses;
|
|
30
30
|
}
|
|
31
31
|
|
package/models/index.ts
CHANGED
|
@@ -28,7 +28,7 @@ export * from './invoice-status-class';
|
|
|
28
28
|
export * from './list-invoices-response-class';
|
|
29
29
|
export * from './list-policies-billings-response-class';
|
|
30
30
|
export * from './list-request-dto';
|
|
31
|
-
export * from './omit-
|
|
31
|
+
export * from './omit-invoice-class-statuses';
|
|
32
32
|
export * from './policy-billing-class';
|
|
33
33
|
export * from './policy-dto';
|
|
34
34
|
export * from './policy-object-dto';
|
|
@@ -19,186 +19,186 @@ import { InvoicePaymentsClass } from './invoice-payments-class';
|
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
* @export
|
|
22
|
-
* @interface
|
|
22
|
+
* @interface OmitInvoiceClassStatuses
|
|
23
23
|
*/
|
|
24
|
-
export interface
|
|
24
|
+
export interface OmitInvoiceClassStatuses {
|
|
25
25
|
/**
|
|
26
26
|
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
27
27
|
* @type {number}
|
|
28
|
-
* @memberof
|
|
28
|
+
* @memberof OmitInvoiceClassStatuses
|
|
29
29
|
*/
|
|
30
30
|
'id': number;
|
|
31
31
|
/**
|
|
32
32
|
* Unique identifier of the policy that this object belongs to.
|
|
33
33
|
* @type {string}
|
|
34
|
-
* @memberof
|
|
34
|
+
* @memberof OmitInvoiceClassStatuses
|
|
35
35
|
*/
|
|
36
36
|
'policyCode': string;
|
|
37
37
|
/**
|
|
38
38
|
* Account number.
|
|
39
39
|
* @type {string}
|
|
40
|
-
* @memberof
|
|
40
|
+
* @memberof OmitInvoiceClassStatuses
|
|
41
41
|
*/
|
|
42
42
|
'accountNumber': string;
|
|
43
43
|
/**
|
|
44
44
|
* Policy number.
|
|
45
45
|
* @type {string}
|
|
46
|
-
* @memberof
|
|
46
|
+
* @memberof OmitInvoiceClassStatuses
|
|
47
47
|
*/
|
|
48
48
|
'policyNumber': string;
|
|
49
49
|
/**
|
|
50
50
|
* Unique identifier for the object.
|
|
51
51
|
* @type {string}
|
|
52
|
-
* @memberof
|
|
52
|
+
* @memberof OmitInvoiceClassStatuses
|
|
53
53
|
*/
|
|
54
54
|
'code': string;
|
|
55
55
|
/**
|
|
56
56
|
* Invoice type.
|
|
57
57
|
* @type {string}
|
|
58
|
-
* @memberof
|
|
58
|
+
* @memberof OmitInvoiceClassStatuses
|
|
59
59
|
*/
|
|
60
|
-
'type':
|
|
60
|
+
'type': OmitInvoiceClassStatusesTypeEnum;
|
|
61
61
|
/**
|
|
62
62
|
* Invoice number.
|
|
63
63
|
* @type {string}
|
|
64
|
-
* @memberof
|
|
64
|
+
* @memberof OmitInvoiceClassStatuses
|
|
65
65
|
*/
|
|
66
66
|
'invoiceNumber': string;
|
|
67
67
|
/**
|
|
68
68
|
* Net amount is in cents.
|
|
69
69
|
* @type {number}
|
|
70
|
-
* @memberof
|
|
70
|
+
* @memberof OmitInvoiceClassStatuses
|
|
71
71
|
*/
|
|
72
72
|
'netAmount': number;
|
|
73
73
|
/**
|
|
74
74
|
* Tax amount is in cents.
|
|
75
75
|
* @type {number}
|
|
76
|
-
* @memberof
|
|
76
|
+
* @memberof OmitInvoiceClassStatuses
|
|
77
77
|
*/
|
|
78
78
|
'taxAmount': number;
|
|
79
79
|
/**
|
|
80
80
|
* Credit amount.
|
|
81
81
|
* @type {number}
|
|
82
|
-
* @memberof
|
|
82
|
+
* @memberof OmitInvoiceClassStatuses
|
|
83
83
|
*/
|
|
84
84
|
'creditAmount': number;
|
|
85
85
|
/**
|
|
86
86
|
* Gross amount. This property is sum of taxAmount and netAmount.
|
|
87
87
|
* @type {number}
|
|
88
|
-
* @memberof
|
|
88
|
+
* @memberof OmitInvoiceClassStatuses
|
|
89
89
|
*/
|
|
90
90
|
'grossAmount': number;
|
|
91
91
|
/**
|
|
92
92
|
* Paid amount. This property is amount paid by this invoice. The amount corresponds to the sum (positives and negatives) of all payments relating to that invoice.
|
|
93
93
|
* @type {number}
|
|
94
|
-
* @memberof
|
|
94
|
+
* @memberof OmitInvoiceClassStatuses
|
|
95
95
|
*/
|
|
96
96
|
'paidAmount': number;
|
|
97
97
|
/**
|
|
98
98
|
* Invoice status.
|
|
99
99
|
* @type {string}
|
|
100
|
-
* @memberof
|
|
100
|
+
* @memberof OmitInvoiceClassStatuses
|
|
101
101
|
*/
|
|
102
|
-
'status':
|
|
102
|
+
'status': OmitInvoiceClassStatusesStatusEnum;
|
|
103
103
|
/**
|
|
104
104
|
* Invoice due date.
|
|
105
105
|
* @type {string}
|
|
106
|
-
* @memberof
|
|
106
|
+
* @memberof OmitInvoiceClassStatuses
|
|
107
107
|
*/
|
|
108
108
|
'dueDate': string;
|
|
109
109
|
/**
|
|
110
110
|
* Metadata contains extra information that the object would need for specific cases.
|
|
111
111
|
* @type {object}
|
|
112
|
-
* @memberof
|
|
112
|
+
* @memberof OmitInvoiceClassStatuses
|
|
113
113
|
*/
|
|
114
114
|
'metadata': object;
|
|
115
115
|
/**
|
|
116
116
|
* Start date of billing interval.
|
|
117
117
|
* @type {string}
|
|
118
|
-
* @memberof
|
|
118
|
+
* @memberof OmitInvoiceClassStatuses
|
|
119
119
|
*/
|
|
120
120
|
'billingIntervalFrom': string;
|
|
121
121
|
/**
|
|
122
122
|
* End date of billing interval.
|
|
123
123
|
* @type {string}
|
|
124
|
-
* @memberof
|
|
124
|
+
* @memberof OmitInvoiceClassStatuses
|
|
125
125
|
*/
|
|
126
126
|
'billingIntervalTo': string;
|
|
127
127
|
/**
|
|
128
128
|
* Time at which the object was created.
|
|
129
129
|
* @type {string}
|
|
130
|
-
* @memberof
|
|
130
|
+
* @memberof OmitInvoiceClassStatuses
|
|
131
131
|
*/
|
|
132
132
|
'createdAt': string;
|
|
133
133
|
/**
|
|
134
134
|
* Invoice items.
|
|
135
135
|
* @type {Array<InvoiceItemClass>}
|
|
136
|
-
* @memberof
|
|
136
|
+
* @memberof OmitInvoiceClassStatuses
|
|
137
137
|
*/
|
|
138
138
|
'invoiceItems': Array<InvoiceItemClass>;
|
|
139
139
|
/**
|
|
140
140
|
* Invoice currency. EUR is used by default.
|
|
141
141
|
* @type {string}
|
|
142
|
-
* @memberof
|
|
142
|
+
* @memberof OmitInvoiceClassStatuses
|
|
143
143
|
*/
|
|
144
144
|
'currency': string;
|
|
145
145
|
/**
|
|
146
146
|
* Invoice payments.
|
|
147
147
|
* @type {InvoicePaymentsClass}
|
|
148
|
-
* @memberof
|
|
148
|
+
* @memberof OmitInvoiceClassStatuses
|
|
149
149
|
*/
|
|
150
150
|
'payments': InvoicePaymentsClass;
|
|
151
151
|
/**
|
|
152
152
|
* Identifier of the user who created the record.
|
|
153
153
|
* @type {string}
|
|
154
|
-
* @memberof
|
|
154
|
+
* @memberof OmitInvoiceClassStatuses
|
|
155
155
|
*/
|
|
156
156
|
'createdBy': string;
|
|
157
157
|
/**
|
|
158
158
|
* Identifier of the user who last updated the record.
|
|
159
159
|
* @type {string}
|
|
160
|
-
* @memberof
|
|
160
|
+
* @memberof OmitInvoiceClassStatuses
|
|
161
161
|
*/
|
|
162
162
|
'updatedBy': string;
|
|
163
163
|
/**
|
|
164
164
|
* Invoice payment method code.
|
|
165
165
|
* @type {string}
|
|
166
|
-
* @memberof
|
|
166
|
+
* @memberof OmitInvoiceClassStatuses
|
|
167
167
|
*/
|
|
168
168
|
'paymentMethodCode': string;
|
|
169
169
|
/**
|
|
170
170
|
* Invoice payment method Payment Service Provider.
|
|
171
171
|
* @type {string}
|
|
172
|
-
* @memberof
|
|
172
|
+
* @memberof OmitInvoiceClassStatuses
|
|
173
173
|
*/
|
|
174
174
|
'paymentMethodPsp': string;
|
|
175
175
|
/**
|
|
176
176
|
* Invoice payment method type (e.g. card, bank transfer, etc.).
|
|
177
177
|
* @type {string}
|
|
178
|
-
* @memberof
|
|
178
|
+
* @memberof OmitInvoiceClassStatuses
|
|
179
179
|
*/
|
|
180
180
|
'paymentMethodType': string;
|
|
181
181
|
/**
|
|
182
182
|
* Dunning fees.
|
|
183
183
|
* @type {number}
|
|
184
|
-
* @memberof
|
|
184
|
+
* @memberof OmitInvoiceClassStatuses
|
|
185
185
|
*/
|
|
186
186
|
'dunningFees': number;
|
|
187
187
|
/**
|
|
188
188
|
* Total amount.
|
|
189
189
|
* @type {number}
|
|
190
|
-
* @memberof
|
|
190
|
+
* @memberof OmitInvoiceClassStatuses
|
|
191
191
|
*/
|
|
192
192
|
'totalAmount': number;
|
|
193
193
|
/**
|
|
194
194
|
* Open amount.
|
|
195
195
|
* @type {number}
|
|
196
|
-
* @memberof
|
|
196
|
+
* @memberof OmitInvoiceClassStatuses
|
|
197
197
|
*/
|
|
198
198
|
'openAmount': number;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
export const
|
|
201
|
+
export const OmitInvoiceClassStatusesTypeEnum = {
|
|
202
202
|
Initial: 'initial',
|
|
203
203
|
Recurring: 'recurring',
|
|
204
204
|
Correction: 'correction',
|
|
@@ -209,14 +209,14 @@ export const OmitTypeClassTypeEnum = {
|
|
|
209
209
|
Final: 'final'
|
|
210
210
|
} as const;
|
|
211
211
|
|
|
212
|
-
export type
|
|
213
|
-
export const
|
|
212
|
+
export type OmitInvoiceClassStatusesTypeEnum = typeof OmitInvoiceClassStatusesTypeEnum[keyof typeof OmitInvoiceClassStatusesTypeEnum];
|
|
213
|
+
export const OmitInvoiceClassStatusesStatusEnum = {
|
|
214
214
|
Open: 'open',
|
|
215
215
|
Paid: 'paid',
|
|
216
216
|
PartiallyPaid: 'partially-paid',
|
|
217
217
|
Refunded: 'refunded'
|
|
218
218
|
} as const;
|
|
219
219
|
|
|
220
|
-
export type
|
|
220
|
+
export type OmitInvoiceClassStatusesStatusEnum = typeof OmitInvoiceClassStatusesStatusEnum[keyof typeof OmitInvoiceClassStatusesStatusEnum];
|
|
221
221
|
|
|
222
222
|
|
|
@@ -52,10 +52,10 @@ export interface PolicyObjectDto {
|
|
|
52
52
|
'summary': string;
|
|
53
53
|
/**
|
|
54
54
|
* Insured object data.
|
|
55
|
-
* @type {object}
|
|
55
|
+
* @type {{ [key: string]: object; }}
|
|
56
56
|
* @memberof PolicyObjectDto
|
|
57
57
|
*/
|
|
58
|
-
'data': object;
|
|
58
|
+
'data': { [key: string]: object; };
|
|
59
59
|
/**
|
|
60
60
|
* Time at which the object was created.
|
|
61
61
|
* @type {string}
|
|
@@ -35,10 +35,10 @@ export interface PolicyVersionDto {
|
|
|
35
35
|
'isCurrent': boolean;
|
|
36
36
|
/**
|
|
37
37
|
* Metadata contains extra information that the object would need for specific cases.
|
|
38
|
-
* @type {object}
|
|
38
|
+
* @type {{ [key: string]: object; }}
|
|
39
39
|
* @memberof PolicyVersionDto
|
|
40
40
|
*/
|
|
41
|
-
'metadata'?: object;
|
|
41
|
+
'metadata'?: { [key: string]: object; };
|
|
42
42
|
/**
|
|
43
43
|
* Time at which the object was created.
|
|
44
44
|
* @type {string}
|