@emilgroup/billing-sdk-node 1.25.0 → 1.26.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 +37 -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 +183 -0
- package/dist/models/invoice-class.js +32 -0
- package/dist/models/invoice-item-class.d.ts +153 -0
- package/dist/models/invoice-item-class.js +24 -0
- package/dist/models/invoice-payment-class.d.ts +108 -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 +61 -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 +176 -0
- package/dist/models/omit-type-class.js +32 -0
- package/dist/models/policy-billing-date-class.d.ts +54 -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 +43 -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 +193 -0
- package/models/invoice-item-class.ts +162 -0
- package/models/invoice-payment-class.ts +114 -0
- package/models/invoice-payments-class.ts +31 -0
- package/models/invoice-status-class.ts +70 -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 +186 -0
- package/models/policy-billing-date-class.ts +60 -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,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,25 @@
|
|
|
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
|
+
import { InvoiceClass } from './invoice-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateEstimatedInvoiceForIntervalResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateEstimatedInvoiceForIntervalResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Estimated invoice response
|
|
21
|
+
* @type {InvoiceClass}
|
|
22
|
+
* @memberof CreateEstimatedInvoiceForIntervalResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'invoice': InvoiceClass;
|
|
25
|
+
}
|
|
@@ -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 });
|
|
@@ -27,5 +27,11 @@ export interface CreateEstimatedInvoiceRequestDto {
|
|
|
27
27
|
* @type {object}
|
|
28
28
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
29
29
|
*/
|
|
30
|
-
'metadata'
|
|
30
|
+
'metadata'?: object;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof CreateEstimatedInvoiceRequestDto
|
|
35
|
+
*/
|
|
36
|
+
'calculateProRata'?: boolean;
|
|
31
37
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
import { InvoiceClass } from './invoice-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateEstimatedInvoiceResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateEstimatedInvoiceResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The estimated invoice response based on the current policy data. This includes the calculated invoice for the specified billing period (e.g., monthly, quarterly) as defined by the policy. The invoice contains details such as gross amount, net amount, tax amount, and other invoice-related data for the specific period the invoice is generated for.
|
|
21
|
+
* @type {InvoiceClass}
|
|
22
|
+
* @memberof CreateEstimatedInvoiceResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'invoice': InvoiceClass;
|
|
25
|
+
/**
|
|
26
|
+
* The estimated yearly invoice response. This represents the invoice recalculated to a yearly format, standardizing the invoice values regardless of the billing frequency defined by the policy (e.g., monthly, quarterly, etc.). This yearly invoice gives an overview of the total cost for the entire year, including recalculated gross amount, net amount, tax amount, and other related invoice data, ensuring that all charges are displayed on a yearly basis. Note: If the original invoice is already set to a yearly billing frequency, the \'yearlyInvoice\' will be identical to the \'invoice\'.
|
|
27
|
+
* @type {InvoiceClass}
|
|
28
|
+
* @memberof CreateEstimatedInvoiceResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'yearlyInvoice': InvoiceClass;
|
|
31
|
+
/**
|
|
32
|
+
* In some cases, custom premium calculation needs to be used. In that case, a custom object is returned. It can hold up any kind of information. For more information, check the general documentation.
|
|
33
|
+
* @type {object}
|
|
34
|
+
* @memberof CreateEstimatedInvoiceResponseClass
|
|
35
|
+
*/
|
|
36
|
+
'custom': object;
|
|
37
|
+
}
|
|
@@ -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 });
|
|
@@ -38,11 +38,17 @@ export interface CreateInvoicePaymentRequestDto {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateInvoicePaymentRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'comment'
|
|
41
|
+
'comment'?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Unique identifier referencing the payment.
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof CreateInvoicePaymentRequestDto
|
|
46
46
|
*/
|
|
47
47
|
'paymentId': number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CreateInvoicePaymentRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'invoiceId': number;
|
|
48
54
|
}
|
|
@@ -20,7 +20,7 @@ export interface CreateInvoiceRequestDto {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateInvoiceRequestDto
|
|
22
22
|
*/
|
|
23
|
-
'invoiceNumber'
|
|
23
|
+
'invoiceNumber'?: string;
|
|
24
24
|
/**
|
|
25
25
|
* Account number.
|
|
26
26
|
* @type {string}
|
|
@@ -44,13 +44,13 @@ export interface CreateInvoiceRequestDto {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CreateInvoiceRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'type'
|
|
47
|
+
'type'?: CreateInvoiceRequestDtoTypeEnum;
|
|
48
48
|
/**
|
|
49
49
|
* Metadata contains extra information that the object would need for specific cases.
|
|
50
50
|
* @type {object}
|
|
51
51
|
* @memberof CreateInvoiceRequestDto
|
|
52
52
|
*/
|
|
53
|
-
'metadata'
|
|
53
|
+
'metadata'?: object;
|
|
54
54
|
/**
|
|
55
55
|
* This is the date from which the invoice interval starts.
|
|
56
56
|
* @type {string}
|
|
@@ -68,7 +68,7 @@ export interface CreateInvoiceRequestDto {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof CreateInvoiceRequestDto
|
|
70
70
|
*/
|
|
71
|
-
'dueDate'
|
|
71
|
+
'dueDate'?: string;
|
|
72
72
|
}
|
|
73
73
|
export declare const CreateInvoiceRequestDtoTypeEnum: {
|
|
74
74
|
readonly Initial: "initial";
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
import { OmitTypeClass } from './omit-type-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateInvoiceResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateInvoiceResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Invoice response.
|
|
21
|
+
* @type {OmitTypeClass}
|
|
22
|
+
* @memberof CreateInvoiceResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'invoice': OmitTypeClass;
|
|
25
|
+
}
|
|
@@ -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,37 @@
|
|
|
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 CreateInvoiceStatusRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateInvoiceStatusRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CreateInvoiceStatusRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'invoiceId': number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateInvoiceStatusRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'status': CreateInvoiceStatusRequestDtoStatusEnum;
|
|
30
|
+
}
|
|
31
|
+
export declare const CreateInvoiceStatusRequestDtoStatusEnum: {
|
|
32
|
+
readonly Open: "open";
|
|
33
|
+
readonly Paid: "paid";
|
|
34
|
+
readonly PartiallyPaid: "partially-paid";
|
|
35
|
+
readonly Refunded: "refunded";
|
|
36
|
+
};
|
|
37
|
+
export type CreateInvoiceStatusRequestDtoStatusEnum = typeof CreateInvoiceStatusRequestDtoStatusEnum[keyof typeof CreateInvoiceStatusRequestDtoStatusEnum];
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
PartiallyPaid: 'partially-paid',
|
|
21
|
+
Refunded: 'refunded'
|
|
22
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateTerminationInvoiceRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'policyNumber': string;
|
|
54
|
+
}
|
|
@@ -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,25 @@
|
|
|
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
|
+
import { OmitTypeClass } from './omit-type-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetInvoiceResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface GetInvoiceResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Invoice response.
|
|
21
|
+
* @type {OmitTypeClass}
|
|
22
|
+
* @memberof GetInvoiceResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'invoice': OmitTypeClass;
|
|
25
|
+
}
|
|
@@ -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
|
@@ -1,12 +1,29 @@
|
|
|
1
|
+
export * from './create-correction-invoices-response-class';
|
|
1
2
|
export * from './create-custom-estimated-invoice-request-dto';
|
|
3
|
+
export * from './create-custom-estimated-invoice-response-class';
|
|
2
4
|
export * from './create-draft-invoice-request-dto';
|
|
3
5
|
export * from './create-estimated-invoice-for-interval-request-dto';
|
|
6
|
+
export * from './create-estimated-invoice-for-interval-response-class';
|
|
4
7
|
export * from './create-estimated-invoice-request-dto';
|
|
8
|
+
export * from './create-estimated-invoice-response-class';
|
|
5
9
|
export * from './create-invoice-payment-request-dto';
|
|
6
10
|
export * from './create-invoice-request-dto';
|
|
11
|
+
export * from './create-invoice-response-class';
|
|
12
|
+
export * from './create-invoice-status-request-dto';
|
|
13
|
+
export * from './create-termination-invoice-request-dto';
|
|
14
|
+
export * from './get-invoice-response-class';
|
|
7
15
|
export * from './inline-response200';
|
|
8
16
|
export * from './inline-response503';
|
|
17
|
+
export * from './invoice-class';
|
|
18
|
+
export * from './invoice-item-class';
|
|
19
|
+
export * from './invoice-payment-class';
|
|
20
|
+
export * from './invoice-payments-class';
|
|
21
|
+
export * from './invoice-status-class';
|
|
22
|
+
export * from './list-invoices-response-class';
|
|
23
|
+
export * from './list-policies-billing-dates-response-class';
|
|
9
24
|
export * from './list-request-dto';
|
|
25
|
+
export * from './omit-type-class';
|
|
26
|
+
export * from './policy-billing-date-class';
|
|
10
27
|
export * from './policy-dto';
|
|
11
28
|
export * from './policy-object-dto';
|
|
12
29
|
export * from './policy-premium-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -14,15 +14,32 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-correction-invoices-response-class"), exports);
|
|
17
18
|
__exportStar(require("./create-custom-estimated-invoice-request-dto"), exports);
|
|
19
|
+
__exportStar(require("./create-custom-estimated-invoice-response-class"), exports);
|
|
18
20
|
__exportStar(require("./create-draft-invoice-request-dto"), exports);
|
|
19
21
|
__exportStar(require("./create-estimated-invoice-for-interval-request-dto"), exports);
|
|
22
|
+
__exportStar(require("./create-estimated-invoice-for-interval-response-class"), exports);
|
|
20
23
|
__exportStar(require("./create-estimated-invoice-request-dto"), exports);
|
|
24
|
+
__exportStar(require("./create-estimated-invoice-response-class"), exports);
|
|
21
25
|
__exportStar(require("./create-invoice-payment-request-dto"), exports);
|
|
22
26
|
__exportStar(require("./create-invoice-request-dto"), exports);
|
|
27
|
+
__exportStar(require("./create-invoice-response-class"), exports);
|
|
28
|
+
__exportStar(require("./create-invoice-status-request-dto"), exports);
|
|
29
|
+
__exportStar(require("./create-termination-invoice-request-dto"), exports);
|
|
30
|
+
__exportStar(require("./get-invoice-response-class"), exports);
|
|
23
31
|
__exportStar(require("./inline-response200"), exports);
|
|
24
32
|
__exportStar(require("./inline-response503"), exports);
|
|
33
|
+
__exportStar(require("./invoice-class"), exports);
|
|
34
|
+
__exportStar(require("./invoice-item-class"), exports);
|
|
35
|
+
__exportStar(require("./invoice-payment-class"), exports);
|
|
36
|
+
__exportStar(require("./invoice-payments-class"), exports);
|
|
37
|
+
__exportStar(require("./invoice-status-class"), exports);
|
|
38
|
+
__exportStar(require("./list-invoices-response-class"), exports);
|
|
39
|
+
__exportStar(require("./list-policies-billing-dates-response-class"), exports);
|
|
25
40
|
__exportStar(require("./list-request-dto"), exports);
|
|
41
|
+
__exportStar(require("./omit-type-class"), exports);
|
|
42
|
+
__exportStar(require("./policy-billing-date-class"), exports);
|
|
26
43
|
__exportStar(require("./policy-dto"), exports);
|
|
27
44
|
__exportStar(require("./policy-object-dto"), exports);
|
|
28
45
|
__exportStar(require("./policy-premium-dto"), exports);
|
|
@@ -0,0 +1,183 @@
|
|
|
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
|
+
import { InvoiceItemClass } from './invoice-item-class';
|
|
13
|
+
import { InvoicePaymentsClass } from './invoice-payments-class';
|
|
14
|
+
import { InvoiceStatusClass } from './invoice-status-class';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface InvoiceClass
|
|
19
|
+
*/
|
|
20
|
+
export interface InvoiceClass {
|
|
21
|
+
/**
|
|
22
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof InvoiceClass
|
|
25
|
+
*/
|
|
26
|
+
'id': number;
|
|
27
|
+
/**
|
|
28
|
+
* Unique identifier of the policy that this object belongs to.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof InvoiceClass
|
|
31
|
+
*/
|
|
32
|
+
'policyCode': string;
|
|
33
|
+
/**
|
|
34
|
+
* Account number.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof InvoiceClass
|
|
37
|
+
*/
|
|
38
|
+
'accountNumber': string;
|
|
39
|
+
/**
|
|
40
|
+
* Policy number.
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof InvoiceClass
|
|
43
|
+
*/
|
|
44
|
+
'policyNumber': string;
|
|
45
|
+
/**
|
|
46
|
+
* Unique identifier for the object.
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof InvoiceClass
|
|
49
|
+
*/
|
|
50
|
+
'code': string;
|
|
51
|
+
/**
|
|
52
|
+
* Invoice type.
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof InvoiceClass
|
|
55
|
+
*/
|
|
56
|
+
'type': InvoiceClassTypeEnum;
|
|
57
|
+
/**
|
|
58
|
+
* Invoice number.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof InvoiceClass
|
|
61
|
+
*/
|
|
62
|
+
'invoiceNumber': string;
|
|
63
|
+
/**
|
|
64
|
+
* Net amount is in cents.
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof InvoiceClass
|
|
67
|
+
*/
|
|
68
|
+
'netAmount': number;
|
|
69
|
+
/**
|
|
70
|
+
* Tax amount is in cents.
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof InvoiceClass
|
|
73
|
+
*/
|
|
74
|
+
'taxAmount': number;
|
|
75
|
+
/**
|
|
76
|
+
* Credit amount.
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof InvoiceClass
|
|
79
|
+
*/
|
|
80
|
+
'creditAmount': number;
|
|
81
|
+
/**
|
|
82
|
+
* Gross amount. This property is sum of taxAmount and netAmount.
|
|
83
|
+
* @type {number}
|
|
84
|
+
* @memberof InvoiceClass
|
|
85
|
+
*/
|
|
86
|
+
'grossAmount': number;
|
|
87
|
+
/**
|
|
88
|
+
* 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.
|
|
89
|
+
* @type {number}
|
|
90
|
+
* @memberof InvoiceClass
|
|
91
|
+
*/
|
|
92
|
+
'paidAmount': number;
|
|
93
|
+
/**
|
|
94
|
+
* Invoice status.
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof InvoiceClass
|
|
97
|
+
*/
|
|
98
|
+
'status': InvoiceClassStatusEnum;
|
|
99
|
+
/**
|
|
100
|
+
* Invoice due date.
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof InvoiceClass
|
|
103
|
+
*/
|
|
104
|
+
'dueDate': string;
|
|
105
|
+
/**
|
|
106
|
+
* Metadata contains extra information that the object would need for specific cases.
|
|
107
|
+
* @type {object}
|
|
108
|
+
* @memberof InvoiceClass
|
|
109
|
+
*/
|
|
110
|
+
'metadata': object;
|
|
111
|
+
/**
|
|
112
|
+
* Start date of billing interval.
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof InvoiceClass
|
|
115
|
+
*/
|
|
116
|
+
'billingIntervalFrom': string;
|
|
117
|
+
/**
|
|
118
|
+
* End date of billing interval.
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof InvoiceClass
|
|
121
|
+
*/
|
|
122
|
+
'billingIntervalTo': string;
|
|
123
|
+
/**
|
|
124
|
+
* Time at which the object was created.
|
|
125
|
+
* @type {string}
|
|
126
|
+
* @memberof InvoiceClass
|
|
127
|
+
*/
|
|
128
|
+
'createdAt': string;
|
|
129
|
+
/**
|
|
130
|
+
* Invoice items.
|
|
131
|
+
* @type {Array<InvoiceItemClass>}
|
|
132
|
+
* @memberof InvoiceClass
|
|
133
|
+
*/
|
|
134
|
+
'invoiceItems': Array<InvoiceItemClass>;
|
|
135
|
+
/**
|
|
136
|
+
* Invoice statuses.
|
|
137
|
+
* @type {Array<InvoiceStatusClass>}
|
|
138
|
+
* @memberof InvoiceClass
|
|
139
|
+
*/
|
|
140
|
+
'statuses': Array<InvoiceStatusClass>;
|
|
141
|
+
/**
|
|
142
|
+
* Invoice currency. EUR is used by default.
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof InvoiceClass
|
|
145
|
+
*/
|
|
146
|
+
'currency': string;
|
|
147
|
+
/**
|
|
148
|
+
* Invoice payments.
|
|
149
|
+
* @type {InvoicePaymentsClass}
|
|
150
|
+
* @memberof InvoiceClass
|
|
151
|
+
*/
|
|
152
|
+
'payments': InvoicePaymentsClass;
|
|
153
|
+
/**
|
|
154
|
+
* Identifier of the user who created the record.
|
|
155
|
+
* @type {string}
|
|
156
|
+
* @memberof InvoiceClass
|
|
157
|
+
*/
|
|
158
|
+
'createdBy': string;
|
|
159
|
+
/**
|
|
160
|
+
* Identifier of the user who last updated the record.
|
|
161
|
+
* @type {string}
|
|
162
|
+
* @memberof InvoiceClass
|
|
163
|
+
*/
|
|
164
|
+
'updatedBy': string;
|
|
165
|
+
}
|
|
166
|
+
export declare const InvoiceClassTypeEnum: {
|
|
167
|
+
readonly Initial: "initial";
|
|
168
|
+
readonly Recurring: "recurring";
|
|
169
|
+
readonly Correction: "correction";
|
|
170
|
+
readonly Estimated: "estimated";
|
|
171
|
+
readonly Penalty: "penalty";
|
|
172
|
+
readonly Other: "other";
|
|
173
|
+
readonly Withdraw: "withdraw";
|
|
174
|
+
readonly Final: "final";
|
|
175
|
+
};
|
|
176
|
+
export type InvoiceClassTypeEnum = typeof InvoiceClassTypeEnum[keyof typeof InvoiceClassTypeEnum];
|
|
177
|
+
export declare const InvoiceClassStatusEnum: {
|
|
178
|
+
readonly Open: "open";
|
|
179
|
+
readonly Paid: "paid";
|
|
180
|
+
readonly PartiallyPaid: "partially-paid";
|
|
181
|
+
readonly Refunded: "refunded";
|
|
182
|
+
};
|
|
183
|
+
export type InvoiceClassStatusEnum = typeof InvoiceClassStatusEnum[keyof typeof InvoiceClassStatusEnum];
|
|
@@ -0,0 +1,32 @@
|
|
|
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.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
|
+
PartiallyPaid: 'partially-paid',
|
|
31
|
+
Refunded: 'refunded'
|
|
32
|
+
};
|