@emilgroup/billing-sdk-node 1.18.0 → 1.19.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 +17 -0
- package/README.md +2 -2
- package/api/correction-invoices-api.ts +4 -2
- package/api/estimated-invoices-api.ts +12 -6
- package/api/initial-invoices-api.ts +4 -2
- package/api/invoices-api.ts +12 -6
- package/api/recurring-invoices-api.ts +4 -2
- package/dist/api/correction-invoices-api.d.ts +4 -3
- package/dist/api/estimated-invoices-api.d.ts +12 -9
- package/dist/api/initial-invoices-api.d.ts +4 -3
- package/dist/api/invoices-api.d.ts +12 -9
- package/dist/api/recurring-invoices-api.d.ts +4 -3
- package/dist/models/create-correction-invoices-response-class.d.ts +25 -0
- package/dist/models/create-correction-invoices-response-class.js +15 -0
- package/dist/models/create-custom-estimated-invoice-response-class.d.ts +24 -0
- package/dist/models/create-custom-estimated-invoice-response-class.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-estimated-invoice-response-class.d.ts +31 -0
- package/dist/models/create-estimated-invoice-response-class.js +15 -0
- package/dist/models/create-invoice-payment-request-dto.d.ts +7 -1
- package/dist/models/create-invoice-request-dto.d.ts +4 -4
- package/dist/models/create-invoice-response-class.d.ts +25 -0
- package/dist/models/create-invoice-response-class.js +15 -0
- package/dist/models/create-invoice-status-request-dto.d.ts +37 -0
- package/dist/models/create-invoice-status-request-dto.js +22 -0
- package/dist/models/create-termination-invoice-request-dto.d.ts +54 -0
- package/dist/models/create-termination-invoice-request-dto.js +15 -0
- package/dist/models/get-invoice-response-class.d.ts +25 -0
- package/dist/models/get-invoice-response-class.js +15 -0
- package/dist/models/index.d.ts +17 -0
- package/dist/models/index.js +17 -0
- package/dist/models/invoice-class.d.ts +171 -0
- package/dist/models/invoice-class.js +32 -0
- package/dist/models/invoice-item-class.d.ts +141 -0
- package/dist/models/invoice-item-class.js +24 -0
- package/dist/models/invoice-payment-class.d.ts +102 -0
- package/dist/models/invoice-payment-class.js +15 -0
- package/dist/models/invoice-payments-class.d.ts +25 -0
- package/dist/models/invoice-payments-class.js +15 -0
- package/dist/models/invoice-status-class.d.ts +49 -0
- package/dist/models/invoice-status-class.js +22 -0
- package/dist/models/list-invoices-response-class.d.ts +31 -0
- package/dist/models/list-invoices-response-class.js +15 -0
- package/dist/models/list-policies-billing-dates-response-class.d.ts +31 -0
- package/dist/models/list-policies-billing-dates-response-class.js +15 -0
- package/dist/models/omit-type-class.d.ts +164 -0
- package/dist/models/omit-type-class.js +32 -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 +23 -3
- package/dist/models/policy-dto.js +8 -0
- package/dist/models/policy-object-dto.d.ts +8 -2
- package/dist/models/policy-premium-dto.d.ts +2 -2
- package/dist/models/policy-premium-item-dto.d.ts +2 -2
- package/dist/models/policy-version-dto.d.ts +3 -3
- package/dist/models/premium-formula-dto.d.ts +2 -2
- package/dist/models/timeslice-dto.d.ts +1 -1
- package/models/create-correction-invoices-response-class.ts +31 -0
- package/models/create-custom-estimated-invoice-response-class.ts +30 -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-estimated-invoice-response-class.ts +37 -0
- package/models/create-invoice-payment-request-dto.ts +7 -1
- package/models/create-invoice-request-dto.ts +4 -4
- package/models/create-invoice-response-class.ts +31 -0
- package/models/create-invoice-status-request-dto.ts +46 -0
- package/models/create-termination-invoice-request-dto.ts +60 -0
- package/models/get-invoice-response-class.ts +31 -0
- package/models/index.ts +17 -0
- package/models/invoice-class.ts +181 -0
- package/models/invoice-item-class.ts +150 -0
- package/models/invoice-payment-class.ts +108 -0
- package/models/invoice-payments-class.ts +31 -0
- package/models/invoice-status-class.ts +58 -0
- package/models/list-invoices-response-class.ts +37 -0
- package/models/list-policies-billing-dates-response-class.ts +37 -0
- package/models/omit-type-class.ts +174 -0
- package/models/policy-billing-date-class.ts +48 -0
- package/models/policy-dto.ts +26 -3
- package/models/policy-object-dto.ts +8 -2
- package/models/policy-premium-dto.ts +2 -2
- package/models/policy-premium-item-dto.ts +2 -2
- package/models/policy-version-dto.ts +3 -3
- package/models/premium-formula-dto.ts +2 -2
- package/models/timeslice-dto.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,174 @@
|
|
|
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 { InvoiceItemClass } from './invoice-item-class';
|
|
17
|
+
import { InvoicePaymentsClass } from './invoice-payments-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
|
+
* Policy number.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof OmitTypeClass
|
|
47
|
+
*/
|
|
48
|
+
'policyNumber': string;
|
|
49
|
+
/**
|
|
50
|
+
* Unique identifier for the object.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof OmitTypeClass
|
|
53
|
+
*/
|
|
54
|
+
'code': string;
|
|
55
|
+
/**
|
|
56
|
+
* Invoice type.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof OmitTypeClass
|
|
59
|
+
*/
|
|
60
|
+
'type': OmitTypeClassTypeEnum;
|
|
61
|
+
/**
|
|
62
|
+
* Invoice number.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof OmitTypeClass
|
|
65
|
+
*/
|
|
66
|
+
'invoiceNumber': string;
|
|
67
|
+
/**
|
|
68
|
+
* Net amount is in cents.
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof OmitTypeClass
|
|
71
|
+
*/
|
|
72
|
+
'netAmount': number;
|
|
73
|
+
/**
|
|
74
|
+
* Tax amount is in cents.
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof OmitTypeClass
|
|
77
|
+
*/
|
|
78
|
+
'taxAmount': number;
|
|
79
|
+
/**
|
|
80
|
+
* Credit amount.
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof OmitTypeClass
|
|
83
|
+
*/
|
|
84
|
+
'creditAmount': number;
|
|
85
|
+
/**
|
|
86
|
+
* Gross amount. This property is sum of taxAmount and netAmount.
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof OmitTypeClass
|
|
89
|
+
*/
|
|
90
|
+
'grossAmount': number;
|
|
91
|
+
/**
|
|
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
|
+
* @type {number}
|
|
94
|
+
* @memberof OmitTypeClass
|
|
95
|
+
*/
|
|
96
|
+
'paidAmount': number;
|
|
97
|
+
/**
|
|
98
|
+
* Invoice status.
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof OmitTypeClass
|
|
101
|
+
*/
|
|
102
|
+
'status': OmitTypeClassStatusEnum;
|
|
103
|
+
/**
|
|
104
|
+
* Invoice due date.
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof OmitTypeClass
|
|
107
|
+
*/
|
|
108
|
+
'dueDate': string;
|
|
109
|
+
/**
|
|
110
|
+
* Metadata contains extra information that the object would need for specific cases.
|
|
111
|
+
* @type {object}
|
|
112
|
+
* @memberof OmitTypeClass
|
|
113
|
+
*/
|
|
114
|
+
'metadata': object;
|
|
115
|
+
/**
|
|
116
|
+
* Start date of billing interval.
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof OmitTypeClass
|
|
119
|
+
*/
|
|
120
|
+
'billingIntervalFrom': string;
|
|
121
|
+
/**
|
|
122
|
+
* End date of billing interval.
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof OmitTypeClass
|
|
125
|
+
*/
|
|
126
|
+
'billingIntervalTo': string;
|
|
127
|
+
/**
|
|
128
|
+
* Time at which the object was created.
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof OmitTypeClass
|
|
131
|
+
*/
|
|
132
|
+
'createdAt': string;
|
|
133
|
+
/**
|
|
134
|
+
* Invoice items.
|
|
135
|
+
* @type {Array<InvoiceItemClass>}
|
|
136
|
+
* @memberof OmitTypeClass
|
|
137
|
+
*/
|
|
138
|
+
'invoiceItems': Array<InvoiceItemClass>;
|
|
139
|
+
/**
|
|
140
|
+
* Invoice currency. EUR is used by default.
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof OmitTypeClass
|
|
143
|
+
*/
|
|
144
|
+
'currency': string;
|
|
145
|
+
/**
|
|
146
|
+
* Invoice payments.
|
|
147
|
+
* @type {InvoicePaymentsClass}
|
|
148
|
+
* @memberof OmitTypeClass
|
|
149
|
+
*/
|
|
150
|
+
'payments': InvoicePaymentsClass;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export const OmitTypeClassTypeEnum = {
|
|
154
|
+
Initial: 'initial',
|
|
155
|
+
Recurring: 'recurring',
|
|
156
|
+
Correction: 'correction',
|
|
157
|
+
Estimated: 'estimated',
|
|
158
|
+
Penalty: 'penalty',
|
|
159
|
+
Other: 'other',
|
|
160
|
+
Withdraw: 'withdraw',
|
|
161
|
+
Final: 'final'
|
|
162
|
+
} as const;
|
|
163
|
+
|
|
164
|
+
export type OmitTypeClassTypeEnum = typeof OmitTypeClassTypeEnum[keyof typeof OmitTypeClassTypeEnum];
|
|
165
|
+
export const OmitTypeClassStatusEnum = {
|
|
166
|
+
Open: 'open',
|
|
167
|
+
Paid: 'paid',
|
|
168
|
+
PartiallyPaid: 'partially-paid',
|
|
169
|
+
Refunded: 'refunded'
|
|
170
|
+
} as const;
|
|
171
|
+
|
|
172
|
+
export type OmitTypeClassStatusEnum = typeof OmitTypeClassStatusEnum[keyof typeof OmitTypeClassStatusEnum];
|
|
173
|
+
|
|
174
|
+
|
|
@@ -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
|
+
|
package/models/policy-dto.ts
CHANGED
|
@@ -68,7 +68,7 @@ export interface PolicyDto {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof PolicyDto
|
|
70
70
|
*/
|
|
71
|
-
'status':
|
|
71
|
+
'status': PolicyDtoStatusEnum;
|
|
72
72
|
/**
|
|
73
73
|
* Policy holder.
|
|
74
74
|
* @type {string}
|
|
@@ -107,9 +107,32 @@ export interface PolicyDto {
|
|
|
107
107
|
'productSlug': string;
|
|
108
108
|
/**
|
|
109
109
|
* Linked partners.
|
|
110
|
-
* @type {Array<
|
|
110
|
+
* @type {Array<object>}
|
|
111
111
|
* @memberof PolicyDto
|
|
112
112
|
*/
|
|
113
|
-
'partnerLinks': Array<
|
|
113
|
+
'partnerLinks': Array<object>;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof PolicyDto
|
|
118
|
+
*/
|
|
119
|
+
'policyStartDate': string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof PolicyDto
|
|
124
|
+
*/
|
|
125
|
+
'ern': string;
|
|
114
126
|
}
|
|
115
127
|
|
|
128
|
+
export const PolicyDtoStatusEnum = {
|
|
129
|
+
Active: 'ACTIVE',
|
|
130
|
+
Withdrawn: 'WITHDRAWN',
|
|
131
|
+
Terminated: 'TERMINATED',
|
|
132
|
+
Suspended: 'SUSPENDED',
|
|
133
|
+
Pending: 'PENDING'
|
|
134
|
+
} as const;
|
|
135
|
+
|
|
136
|
+
export type PolicyDtoStatusEnum = typeof PolicyDtoStatusEnum[keyof typeof PolicyDtoStatusEnum];
|
|
137
|
+
|
|
138
|
+
|
|
@@ -61,12 +61,18 @@ export interface PolicyObjectDto {
|
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof PolicyObjectDto
|
|
63
63
|
*/
|
|
64
|
-
'createdAt'
|
|
64
|
+
'createdAt'?: string;
|
|
65
65
|
/**
|
|
66
66
|
* Time at which the object was updated.
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof PolicyObjectDto
|
|
69
69
|
*/
|
|
70
|
-
'updatedAt'
|
|
70
|
+
'updatedAt'?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof PolicyObjectDto
|
|
75
|
+
*/
|
|
76
|
+
'code': string;
|
|
71
77
|
}
|
|
72
78
|
|
|
@@ -32,13 +32,13 @@ export interface PolicyPremiumDto {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof PolicyPremiumDto
|
|
34
34
|
*/
|
|
35
|
-
'createdAt'
|
|
35
|
+
'createdAt'?: string;
|
|
36
36
|
/**
|
|
37
37
|
* Time at which the object was updated.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof PolicyPremiumDto
|
|
40
40
|
*/
|
|
41
|
-
'updatedAt'
|
|
41
|
+
'updatedAt'?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Premium Items.
|
|
44
44
|
* @type {Array<PolicyPremiumItemDto>}
|
|
@@ -44,7 +44,7 @@ export interface PolicyPremiumItemDto {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof PolicyPremiumItemDto
|
|
46
46
|
*/
|
|
47
|
-
'updatedAt'
|
|
47
|
+
'updatedAt'?: string;
|
|
48
48
|
/**
|
|
49
49
|
* Item premium formula entity.
|
|
50
50
|
* @type {PremiumFormulaDto}
|
|
@@ -56,6 +56,6 @@ export interface PolicyPremiumItemDto {
|
|
|
56
56
|
* @type {boolean}
|
|
57
57
|
* @memberof PolicyPremiumItemDto
|
|
58
58
|
*/
|
|
59
|
-
'isOverride'
|
|
59
|
+
'isOverride'?: boolean;
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -38,19 +38,19 @@ 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>}
|
|
@@ -67,12 +67,12 @@ export interface PremiumFormulaDto {
|
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof PremiumFormulaDto
|
|
69
69
|
*/
|
|
70
|
-
'createdAt'
|
|
70
|
+
'createdAt'?: string;
|
|
71
71
|
/**
|
|
72
72
|
* Time at which the object was updated.
|
|
73
73
|
* @type {string}
|
|
74
74
|
* @memberof PremiumFormulaDto
|
|
75
75
|
*/
|
|
76
|
-
'updatedAt'
|
|
76
|
+
'updatedAt'?: string;
|
|
77
77
|
}
|
|
78
78
|
|
package/models/timeslice-dto.ts
CHANGED