@emilgroup/billing-sdk-node 1.3.0 → 1.4.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 +7 -0
- package/README.md +2 -2
- package/api/correction-invoices-api.ts +29 -11
- package/api/estimated-invoices-api.ts +17 -9
- package/api/initial-invoices-api.ts +29 -11
- package/api/invoices-api.ts +95 -87
- package/api/recurring-invoices-api.ts +29 -11
- package/api.ts +1 -6
- package/base.ts +6 -5
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/correction-invoices-api.d.ts +21 -8
- package/dist/api/correction-invoices-api.js +21 -11
- package/dist/api/estimated-invoices-api.d.ts +17 -9
- package/dist/api/estimated-invoices-api.js +17 -9
- package/dist/api/initial-invoices-api.d.ts +21 -8
- package/dist/api/initial-invoices-api.js +21 -11
- package/dist/api/invoices-api.d.ts +95 -87
- package/dist/api/invoices-api.js +53 -45
- package/dist/api/recurring-invoices-api.d.ts +21 -8
- package/dist/api/recurring-invoices-api.js +21 -11
- package/dist/api.d.ts +1 -5
- package/dist/api.js +1 -7
- package/dist/base.d.ts +4 -3
- package/dist/base.js +6 -5
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/models/create-correction-invoices-response-class.d.ts +5 -5
- package/dist/models/create-correction-invoices-response-class.js +1 -1
- package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +3 -3
- package/dist/models/create-custom-estimated-invoice-request-dto.js +1 -1
- package/dist/models/create-custom-estimated-invoice-response-class.d.ts +1 -1
- package/dist/models/create-custom-estimated-invoice-response-class.js +1 -1
- package/dist/models/create-estimated-invoice-request-dto.d.ts +3 -3
- package/dist/models/create-estimated-invoice-request-dto.js +1 -1
- package/dist/models/create-estimated-invoice-response-class.d.ts +3 -3
- package/dist/models/create-estimated-invoice-response-class.js +1 -1
- package/dist/models/create-invoice-request-dto.d.ts +16 -14
- package/dist/models/create-invoice-request-dto.js +4 -2
- package/dist/models/create-invoice-response-class.d.ts +5 -5
- package/dist/models/create-invoice-response-class.js +1 -1
- package/dist/models/create-invoice-status-request-dto.d.ts +35 -0
- package/dist/models/create-invoice-status-request-dto.js +20 -0
- package/dist/models/create-termination-invoice-request-dto.d.ts +48 -0
- package/dist/models/create-termination-invoice-request-dto.js +15 -0
- package/dist/models/currency-class.d.ts +48 -0
- package/dist/models/currency-class.js +15 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/invoice-class.d.ts +50 -20
- package/dist/models/invoice-class.js +16 -1
- package/dist/models/invoice-item-class.d.ts +26 -17
- package/dist/models/invoice-item-class.js +10 -1
- package/dist/models/invoice-status-class.d.ts +47 -0
- package/dist/models/invoice-status-class.js +20 -0
- package/dist/models/list-invoices-response-class.d.ts +3 -3
- package/dist/models/list-invoices-response-class.js +1 -1
- package/dist/models/list-policies-billing-dates-response-class.d.ts +6 -5
- package/dist/models/list-policies-billing-dates-response-class.js +1 -1
- package/dist/models/list-request-dto.d.ts +1 -1
- package/dist/models/list-request-dto.js +1 -1
- package/dist/models/omit-type-class.d.ts +144 -0
- package/dist/models/omit-type-class.js +30 -0
- package/dist/models/policy-billing-date-class.d.ts +42 -0
- package/dist/models/policy-billing-date-class.js +15 -0
- package/dist/models/policy-dto.d.ts +62 -25
- package/dist/models/policy-dto.js +8 -1
- package/dist/models/policy-object-dto.d.ts +10 -10
- package/dist/models/policy-object-dto.js +1 -1
- package/dist/models/policy-premium-dto.d.ts +12 -12
- package/dist/models/policy-premium-dto.js +1 -1
- package/dist/models/policy-premium-item-dto.d.ts +20 -14
- package/dist/models/policy-premium-item-dto.js +1 -1
- package/dist/models/policy-version-dto.d.ts +17 -17
- package/dist/models/policy-version-dto.js +1 -1
- package/dist/models/premium-formula-dto.d.ts +20 -20
- package/dist/models/premium-formula-dto.js +1 -1
- package/dist/models/revert-invoice-request-dto.d.ts +24 -0
- package/dist/models/revert-invoice-request-dto.js +15 -0
- package/dist/models/timeslice-dto.d.ts +13 -13
- package/dist/models/timeslice-dto.js +1 -1
- package/index.ts +2 -2
- package/models/create-correction-invoices-response-class.ts +5 -5
- package/models/create-custom-estimated-invoice-request-dto.ts +3 -3
- package/models/create-custom-estimated-invoice-response-class.ts +1 -1
- package/models/create-estimated-invoice-request-dto.ts +3 -3
- package/models/create-estimated-invoice-response-class.ts +3 -3
- package/models/create-invoice-request-dto.ts +17 -15
- package/models/create-invoice-response-class.ts +5 -5
- package/models/create-invoice-status-request-dto.ts +44 -0
- package/models/create-termination-invoice-request-dto.ts +54 -0
- package/models/currency-class.ts +54 -0
- package/models/index.ts +7 -0
- package/models/invoice-class.ts +54 -20
- package/models/invoice-item-class.ts +29 -17
- package/models/invoice-status-class.ts +56 -0
- package/models/list-invoices-response-class.ts +3 -3
- package/models/list-policies-billing-dates-response-class.ts +6 -5
- package/models/list-request-dto.ts +1 -1
- package/models/omit-type-class.ts +154 -0
- package/models/policy-billing-date-class.ts +48 -0
- package/models/policy-dto.ts +65 -25
- package/models/policy-object-dto.ts +10 -10
- package/models/policy-premium-dto.ts +12 -12
- package/models/policy-premium-item-dto.ts +20 -14
- package/models/policy-version-dto.ts +17 -17
- package/models/premium-formula-dto.ts +20 -20
- package/models/revert-invoice-request-dto.ts +30 -0
- package/models/timeslice-dto.ts +13 -13
- package/package.json +1 -1
package/models/invoice-class.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL BillingService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { CurrencyClass } from './currency-class';
|
|
16
17
|
import { InvoiceItemClass } from './invoice-item-class';
|
|
18
|
+
import { InvoiceStatusClass } from './invoice-status-class';
|
|
17
19
|
|
|
18
20
|
/**
|
|
19
21
|
*
|
|
@@ -22,106 +24,138 @@ import { InvoiceItemClass } from './invoice-item-class';
|
|
|
22
24
|
*/
|
|
23
25
|
export interface InvoiceClass {
|
|
24
26
|
/**
|
|
25
|
-
*
|
|
27
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
26
28
|
* @type {number}
|
|
27
29
|
* @memberof InvoiceClass
|
|
28
30
|
*/
|
|
29
31
|
'id': number;
|
|
30
32
|
/**
|
|
31
|
-
* policy
|
|
33
|
+
* Unique identifier of the policy that this object belongs to.
|
|
32
34
|
* @type {string}
|
|
33
35
|
* @memberof InvoiceClass
|
|
34
36
|
*/
|
|
35
37
|
'policyCode': string;
|
|
36
38
|
/**
|
|
37
|
-
* Account number
|
|
39
|
+
* Account number.
|
|
38
40
|
* @type {string}
|
|
39
41
|
* @memberof InvoiceClass
|
|
40
42
|
*/
|
|
41
43
|
'accountNumber': string;
|
|
42
44
|
/**
|
|
43
|
-
*
|
|
45
|
+
* Unique identifier for the object.
|
|
44
46
|
* @type {string}
|
|
45
47
|
* @memberof InvoiceClass
|
|
46
48
|
*/
|
|
47
49
|
'code': string;
|
|
48
50
|
/**
|
|
49
|
-
* Invoice type
|
|
51
|
+
* Invoice type.
|
|
50
52
|
* @type {string}
|
|
51
53
|
* @memberof InvoiceClass
|
|
52
54
|
*/
|
|
53
|
-
'type':
|
|
55
|
+
'type': InvoiceClassTypeEnum;
|
|
54
56
|
/**
|
|
55
|
-
* Invoice number
|
|
57
|
+
* Invoice number.
|
|
56
58
|
* @type {string}
|
|
57
59
|
* @memberof InvoiceClass
|
|
58
60
|
*/
|
|
59
61
|
'invoiceNumber': string;
|
|
60
62
|
/**
|
|
61
|
-
* Net amount
|
|
63
|
+
* Net amount is in cents.
|
|
62
64
|
* @type {number}
|
|
63
65
|
* @memberof InvoiceClass
|
|
64
66
|
*/
|
|
65
67
|
'netAmount': number;
|
|
66
68
|
/**
|
|
67
|
-
* Tax amount
|
|
69
|
+
* Tax amount is in cents.
|
|
68
70
|
* @type {number}
|
|
69
71
|
* @memberof InvoiceClass
|
|
70
72
|
*/
|
|
71
73
|
'taxAmount': number;
|
|
72
74
|
/**
|
|
73
|
-
* Credit amount
|
|
75
|
+
* Credit amount.
|
|
74
76
|
* @type {number}
|
|
75
77
|
* @memberof InvoiceClass
|
|
76
78
|
*/
|
|
77
79
|
'creditAmount': number;
|
|
78
80
|
/**
|
|
79
|
-
* Gross amount
|
|
81
|
+
* Gross amount. This property is sum of taxAmount and netAmount.
|
|
80
82
|
* @type {number}
|
|
81
83
|
* @memberof InvoiceClass
|
|
82
84
|
*/
|
|
83
85
|
'grossAmount': number;
|
|
84
86
|
/**
|
|
85
|
-
* Invoice status
|
|
87
|
+
* Invoice status.
|
|
86
88
|
* @type {string}
|
|
87
89
|
* @memberof InvoiceClass
|
|
88
90
|
*/
|
|
89
|
-
'status':
|
|
91
|
+
'status': InvoiceClassStatusEnum;
|
|
90
92
|
/**
|
|
91
|
-
* Invoice due date
|
|
93
|
+
* Invoice due date.
|
|
92
94
|
* @type {string}
|
|
93
95
|
* @memberof InvoiceClass
|
|
94
96
|
*/
|
|
95
97
|
'dueDate': string;
|
|
96
98
|
/**
|
|
97
|
-
*
|
|
99
|
+
* Metadata contains extra information that the object would need for specific cases.
|
|
98
100
|
* @type {object}
|
|
99
101
|
* @memberof InvoiceClass
|
|
100
102
|
*/
|
|
101
103
|
'metadata': object;
|
|
102
104
|
/**
|
|
103
|
-
*
|
|
105
|
+
* Start date of billing interval.
|
|
104
106
|
* @type {string}
|
|
105
107
|
* @memberof InvoiceClass
|
|
106
108
|
*/
|
|
107
109
|
'billingIntervalFrom': string;
|
|
108
110
|
/**
|
|
109
|
-
*
|
|
111
|
+
* End date of billing interval.
|
|
110
112
|
* @type {string}
|
|
111
113
|
* @memberof InvoiceClass
|
|
112
114
|
*/
|
|
113
115
|
'billingIntervalTo': string;
|
|
114
116
|
/**
|
|
115
|
-
*
|
|
117
|
+
* Time at which the object was created.
|
|
116
118
|
* @type {string}
|
|
117
119
|
* @memberof InvoiceClass
|
|
118
120
|
*/
|
|
119
121
|
'createdAt': string;
|
|
120
122
|
/**
|
|
121
|
-
* Invoice items
|
|
123
|
+
* Invoice items.
|
|
122
124
|
* @type {Array<InvoiceItemClass>}
|
|
123
125
|
* @memberof InvoiceClass
|
|
124
126
|
*/
|
|
125
127
|
'invoiceItems': Array<InvoiceItemClass>;
|
|
128
|
+
/**
|
|
129
|
+
* Invoice statuses.
|
|
130
|
+
* @type {Array<InvoiceStatusClass>}
|
|
131
|
+
* @memberof InvoiceClass
|
|
132
|
+
*/
|
|
133
|
+
'statuses': Array<InvoiceStatusClass>;
|
|
134
|
+
/**
|
|
135
|
+
* Invoice currency. EUR is used by default.
|
|
136
|
+
* @type {CurrencyClass}
|
|
137
|
+
* @memberof InvoiceClass
|
|
138
|
+
*/
|
|
139
|
+
'currency': CurrencyClass;
|
|
126
140
|
}
|
|
127
141
|
|
|
142
|
+
export const InvoiceClassTypeEnum = {
|
|
143
|
+
Initial: 'initial',
|
|
144
|
+
Recurring: 'recurring',
|
|
145
|
+
Correction: 'correction',
|
|
146
|
+
Estimated: 'estimated',
|
|
147
|
+
Penalty: 'penalty',
|
|
148
|
+
Other: 'other',
|
|
149
|
+
Withdraw: 'withdraw',
|
|
150
|
+
Final: 'final'
|
|
151
|
+
} as const;
|
|
152
|
+
|
|
153
|
+
export type InvoiceClassTypeEnum = typeof InvoiceClassTypeEnum[keyof typeof InvoiceClassTypeEnum];
|
|
154
|
+
export const InvoiceClassStatusEnum = {
|
|
155
|
+
Open: 'open',
|
|
156
|
+
Paid: 'paid'
|
|
157
|
+
} as const;
|
|
158
|
+
|
|
159
|
+
export type InvoiceClassStatusEnum = typeof InvoiceClassStatusEnum[keyof typeof InvoiceClassStatusEnum];
|
|
160
|
+
|
|
161
|
+
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL BillingService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -21,94 +21,106 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface InvoiceItemClass {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
25
|
* @type {number}
|
|
26
26
|
* @memberof InvoiceItemClass
|
|
27
27
|
*/
|
|
28
28
|
'id': number;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Unique identifier referencing the premium formula.
|
|
31
31
|
* @type {number}
|
|
32
32
|
* @memberof InvoiceItemClass
|
|
33
33
|
*/
|
|
34
34
|
'premiumFormulaId': number;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Product name.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof InvoiceItemClass
|
|
39
39
|
*/
|
|
40
40
|
'name': string;
|
|
41
41
|
/**
|
|
42
|
-
* tax
|
|
42
|
+
* Unique identifier of the tax that this object belongs to.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof InvoiceItemClass
|
|
45
45
|
*/
|
|
46
46
|
'taxCode': string;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Unit of Premium..Premium units are determined based on time or distance.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof InvoiceItemClass
|
|
51
51
|
*/
|
|
52
|
-
'unit':
|
|
52
|
+
'unit': InvoiceItemClassUnitEnum;
|
|
53
53
|
/**
|
|
54
|
-
* group
|
|
54
|
+
* Invoice group.
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof InvoiceItemClass
|
|
57
57
|
*/
|
|
58
58
|
'group': string;
|
|
59
59
|
/**
|
|
60
|
-
* Item quantity
|
|
60
|
+
* Item quantity. this property determines number of days during the billing interval.
|
|
61
61
|
* @type {number}
|
|
62
62
|
* @memberof InvoiceItemClass
|
|
63
63
|
*/
|
|
64
64
|
'quantity': number;
|
|
65
65
|
/**
|
|
66
|
-
* Item price per unit
|
|
66
|
+
* Item price per unit.
|
|
67
67
|
* @type {number}
|
|
68
68
|
* @memberof InvoiceItemClass
|
|
69
69
|
*/
|
|
70
70
|
'pricePerUnit': number;
|
|
71
71
|
/**
|
|
72
|
-
* Item tax rate
|
|
72
|
+
* Item tax rate.
|
|
73
73
|
* @type {number}
|
|
74
74
|
* @memberof InvoiceItemClass
|
|
75
75
|
*/
|
|
76
76
|
'taxRate': number;
|
|
77
77
|
/**
|
|
78
|
-
* Net amount
|
|
78
|
+
* Net amount is in cents. It is calculated by multiplying the quantity and the price Per unit.
|
|
79
79
|
* @type {number}
|
|
80
80
|
* @memberof InvoiceItemClass
|
|
81
81
|
*/
|
|
82
82
|
'netAmount': number;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* Tax amount is in cents.
|
|
85
85
|
* @type {number}
|
|
86
86
|
* @memberof InvoiceItemClass
|
|
87
87
|
*/
|
|
88
88
|
'taxAmount': number;
|
|
89
89
|
/**
|
|
90
|
-
* Gross amount
|
|
90
|
+
* Gross amount. This property is sum of taxAmount and netAmount.
|
|
91
91
|
* @type {number}
|
|
92
92
|
* @memberof InvoiceItemClass
|
|
93
93
|
*/
|
|
94
94
|
'grossAmount': number;
|
|
95
95
|
/**
|
|
96
|
-
* Credit amount
|
|
96
|
+
* Credit amount.
|
|
97
97
|
* @type {number}
|
|
98
98
|
* @memberof InvoiceItemClass
|
|
99
99
|
*/
|
|
100
100
|
'creditAmount': number;
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* This is the date from which the invoice item interval starts.
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @memberof InvoiceItemClass
|
|
105
105
|
*/
|
|
106
106
|
'billingIntervalFrom': string;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* This is the date that the invoice item interval ends.
|
|
109
109
|
* @type {string}
|
|
110
110
|
* @memberof InvoiceItemClass
|
|
111
111
|
*/
|
|
112
112
|
'billingIntervalTo': string;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
export const InvoiceItemClassUnitEnum = {
|
|
116
|
+
Day: 'day',
|
|
117
|
+
Week: 'week',
|
|
118
|
+
Month: 'month',
|
|
119
|
+
Quarter: 'quarter',
|
|
120
|
+
Year: 'year',
|
|
121
|
+
OneTimePayment: 'oneTimePayment'
|
|
122
|
+
} as const;
|
|
123
|
+
|
|
124
|
+
export type InvoiceItemClassUnitEnum = typeof InvoiceItemClassUnitEnum[keyof typeof InvoiceItemClassUnitEnum];
|
|
125
|
+
|
|
126
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface InvoiceStatusClass
|
|
21
|
+
*/
|
|
22
|
+
export interface InvoiceStatusClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof InvoiceStatusClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier referencing the invoice.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof InvoiceStatusClass
|
|
33
|
+
*/
|
|
34
|
+
'invoiceId': number;
|
|
35
|
+
/**
|
|
36
|
+
* Invoice type.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof InvoiceStatusClass
|
|
39
|
+
*/
|
|
40
|
+
'status': InvoiceStatusClassStatusEnum;
|
|
41
|
+
/**
|
|
42
|
+
* Time at which the object was created.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof InvoiceStatusClass
|
|
45
|
+
*/
|
|
46
|
+
'createdAt': string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const InvoiceStatusClassStatusEnum = {
|
|
50
|
+
Open: 'open',
|
|
51
|
+
Paid: 'paid'
|
|
52
|
+
} as const;
|
|
53
|
+
|
|
54
|
+
export type InvoiceStatusClassStatusEnum = typeof InvoiceStatusClassStatusEnum[keyof typeof InvoiceStatusClassStatusEnum];
|
|
55
|
+
|
|
56
|
+
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL BillingService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -22,13 +22,13 @@ import { InvoiceClass } from './invoice-class';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface ListInvoicesResponseClass {
|
|
24
24
|
/**
|
|
25
|
-
* Invoices list items
|
|
25
|
+
* Invoices list items.
|
|
26
26
|
* @type {Array<InvoiceClass>}
|
|
27
27
|
* @memberof ListInvoicesResponseClass
|
|
28
28
|
*/
|
|
29
29
|
'items': Array<InvoiceClass>;
|
|
30
30
|
/**
|
|
31
|
-
* Next page token
|
|
31
|
+
* Next page token.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ListInvoicesResponseClass
|
|
34
34
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL BillingService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { PolicyBillingDateClass } from './policy-billing-date-class';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -21,13 +22,13 @@
|
|
|
21
22
|
*/
|
|
22
23
|
export interface ListPoliciesBillingDatesResponseClass {
|
|
23
24
|
/**
|
|
24
|
-
* Invoices list items
|
|
25
|
-
* @type {Array<
|
|
25
|
+
* Invoices list items.
|
|
26
|
+
* @type {Array<PolicyBillingDateClass>}
|
|
26
27
|
* @memberof ListPoliciesBillingDatesResponseClass
|
|
27
28
|
*/
|
|
28
|
-
'items': Array<
|
|
29
|
+
'items': Array<PolicyBillingDateClass>;
|
|
29
30
|
/**
|
|
30
|
-
* Next page token
|
|
31
|
+
* Next page token.
|
|
31
32
|
* @type {string}
|
|
32
33
|
* @memberof ListPoliciesBillingDatesResponseClass
|
|
33
34
|
*/
|
|
@@ -0,0 +1,154 @@
|
|
|
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 { CurrencyClass } from './currency-class';
|
|
17
|
+
import { InvoiceItemClass } from './invoice-item-class';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface OmitTypeClass
|
|
23
|
+
*/
|
|
24
|
+
export interface OmitTypeClass {
|
|
25
|
+
/**
|
|
26
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof OmitTypeClass
|
|
29
|
+
*/
|
|
30
|
+
'id': number;
|
|
31
|
+
/**
|
|
32
|
+
* Unique identifier of the policy that this object belongs to.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof OmitTypeClass
|
|
35
|
+
*/
|
|
36
|
+
'policyCode': string;
|
|
37
|
+
/**
|
|
38
|
+
* Account number.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof OmitTypeClass
|
|
41
|
+
*/
|
|
42
|
+
'accountNumber': string;
|
|
43
|
+
/**
|
|
44
|
+
* Unique identifier for the object.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof OmitTypeClass
|
|
47
|
+
*/
|
|
48
|
+
'code': string;
|
|
49
|
+
/**
|
|
50
|
+
* Invoice type.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof OmitTypeClass
|
|
53
|
+
*/
|
|
54
|
+
'type': OmitTypeClassTypeEnum;
|
|
55
|
+
/**
|
|
56
|
+
* Invoice number.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof OmitTypeClass
|
|
59
|
+
*/
|
|
60
|
+
'invoiceNumber': string;
|
|
61
|
+
/**
|
|
62
|
+
* Net amount is in cents.
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof OmitTypeClass
|
|
65
|
+
*/
|
|
66
|
+
'netAmount': number;
|
|
67
|
+
/**
|
|
68
|
+
* Tax amount is in cents.
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof OmitTypeClass
|
|
71
|
+
*/
|
|
72
|
+
'taxAmount': number;
|
|
73
|
+
/**
|
|
74
|
+
* Credit amount.
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof OmitTypeClass
|
|
77
|
+
*/
|
|
78
|
+
'creditAmount': number;
|
|
79
|
+
/**
|
|
80
|
+
* Gross amount. This property is sum of taxAmount and netAmount.
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof OmitTypeClass
|
|
83
|
+
*/
|
|
84
|
+
'grossAmount': number;
|
|
85
|
+
/**
|
|
86
|
+
* Invoice status.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof OmitTypeClass
|
|
89
|
+
*/
|
|
90
|
+
'status': OmitTypeClassStatusEnum;
|
|
91
|
+
/**
|
|
92
|
+
* Invoice due date.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof OmitTypeClass
|
|
95
|
+
*/
|
|
96
|
+
'dueDate': string;
|
|
97
|
+
/**
|
|
98
|
+
* Metadata contains extra information that the object would need for specific cases.
|
|
99
|
+
* @type {object}
|
|
100
|
+
* @memberof OmitTypeClass
|
|
101
|
+
*/
|
|
102
|
+
'metadata': object;
|
|
103
|
+
/**
|
|
104
|
+
* Start date of billing interval.
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof OmitTypeClass
|
|
107
|
+
*/
|
|
108
|
+
'billingIntervalFrom': string;
|
|
109
|
+
/**
|
|
110
|
+
* End date of billing interval.
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof OmitTypeClass
|
|
113
|
+
*/
|
|
114
|
+
'billingIntervalTo': string;
|
|
115
|
+
/**
|
|
116
|
+
* Time at which the object was created.
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof OmitTypeClass
|
|
119
|
+
*/
|
|
120
|
+
'createdAt': string;
|
|
121
|
+
/**
|
|
122
|
+
* Invoice items.
|
|
123
|
+
* @type {Array<InvoiceItemClass>}
|
|
124
|
+
* @memberof OmitTypeClass
|
|
125
|
+
*/
|
|
126
|
+
'invoiceItems': Array<InvoiceItemClass>;
|
|
127
|
+
/**
|
|
128
|
+
* Invoice currency. EUR is used by default.
|
|
129
|
+
* @type {CurrencyClass}
|
|
130
|
+
* @memberof OmitTypeClass
|
|
131
|
+
*/
|
|
132
|
+
'currency': CurrencyClass;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export const OmitTypeClassTypeEnum = {
|
|
136
|
+
Initial: 'initial',
|
|
137
|
+
Recurring: 'recurring',
|
|
138
|
+
Correction: 'correction',
|
|
139
|
+
Estimated: 'estimated',
|
|
140
|
+
Penalty: 'penalty',
|
|
141
|
+
Other: 'other',
|
|
142
|
+
Withdraw: 'withdraw',
|
|
143
|
+
Final: 'final'
|
|
144
|
+
} as const;
|
|
145
|
+
|
|
146
|
+
export type OmitTypeClassTypeEnum = typeof OmitTypeClassTypeEnum[keyof typeof OmitTypeClassTypeEnum];
|
|
147
|
+
export const OmitTypeClassStatusEnum = {
|
|
148
|
+
Open: 'open',
|
|
149
|
+
Paid: 'paid'
|
|
150
|
+
} as const;
|
|
151
|
+
|
|
152
|
+
export type OmitTypeClassStatusEnum = typeof OmitTypeClassStatusEnum[keyof typeof OmitTypeClassStatusEnum];
|
|
153
|
+
|
|
154
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface PolicyBillingDateClass
|
|
21
|
+
*/
|
|
22
|
+
export interface PolicyBillingDateClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof PolicyBillingDateClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier of the policy that this object belongs to.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PolicyBillingDateClass
|
|
33
|
+
*/
|
|
34
|
+
'policyCode': string;
|
|
35
|
+
/**
|
|
36
|
+
* The next billing date this policy will be invoiced.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PolicyBillingDateClass
|
|
39
|
+
*/
|
|
40
|
+
'nextBillingDate': string;
|
|
41
|
+
/**
|
|
42
|
+
* This field will be set to true once an invoice has been created on this specific billing date. It is there to avoid a policy being invoiced multiple times in case of retry.
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof PolicyBillingDateClass
|
|
45
|
+
*/
|
|
46
|
+
'isInvoiced': boolean;
|
|
47
|
+
}
|
|
48
|
+
|