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