@emilgroup/billing-sdk-node 1.29.0 → 1.29.1-beta.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 +2 -0
- package/README.md +2 -2
- package/api/correction-invoices-api.ts +15 -15
- package/api/initial-invoices-api.ts +15 -15
- package/api/invoices-api.ts +121 -0
- package/api/recurring-invoices-api.ts +15 -15
- package/dist/api/correction-invoices-api.d.ts +9 -9
- package/dist/api/correction-invoices-api.js +12 -12
- package/dist/api/initial-invoices-api.d.ts +9 -9
- package/dist/api/initial-invoices-api.js +12 -12
- package/dist/api/invoices-api.d.ts +66 -0
- package/dist/api/invoices-api.js +99 -0
- package/dist/api/recurring-invoices-api.d.ts +9 -9
- package/dist/api/recurring-invoices-api.js +12 -12
- package/dist/models/create-invoice-for-policy-request-dto.d.ts +83 -0
- package/dist/models/create-invoice-for-policy-request-dto.js +26 -0
- package/dist/models/create-invoice-request-dto.d.ts +16 -9
- package/dist/models/create-item-request-dto.d.ts +101 -0
- package/dist/models/create-item-request-dto.js +36 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/list-request-dto.d.ts +6 -0
- package/dist/models/policy-dto.d.ts +12 -0
- package/dist/models/policy-object-dto.d.ts +12 -0
- package/dist/models/policy-premium-dto.d.ts +12 -0
- package/dist/models/policy-premium-item-dto.d.ts +12 -0
- package/dist/models/policy-version-dto.d.ts +12 -0
- package/dist/models/premium-formula-dto.d.ts +12 -0
- package/dist/models/timeslice-dto.d.ts +12 -0
- package/models/create-invoice-for-policy-request-dto.ts +92 -0
- package/models/create-invoice-request-dto.ts +16 -9
- package/models/create-item-request-dto.ts +112 -0
- package/models/index.ts +2 -0
- package/models/list-request-dto.ts +6 -0
- package/models/policy-dto.ts +12 -0
- package/models/policy-object-dto.ts +12 -0
- package/models/policy-premium-dto.ts +12 -0
- package/models/policy-premium-item-dto.ts +12 -0
- package/models/policy-version-dto.ts +12 -0
- package/models/premium-formula-dto.ts +12 -0
- package/models/timeslice-dto.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
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.CreateInvoiceForPolicyRequestDtoTypeEnum = void 0;
|
|
17
|
+
exports.CreateInvoiceForPolicyRequestDtoTypeEnum = {
|
|
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
|
+
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { CreateItemRequestDto } from './create-item-request-dto';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -21,12 +22,6 @@ export interface CreateInvoiceRequestDto {
|
|
|
21
22
|
* @memberof CreateInvoiceRequestDto
|
|
22
23
|
*/
|
|
23
24
|
'invoiceNumber'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Account number.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreateInvoiceRequestDto
|
|
28
|
-
*/
|
|
29
|
-
'accountNumber': string;
|
|
30
25
|
/**
|
|
31
26
|
* Unique identifier of the policy that this object belongs to.
|
|
32
27
|
* @type {string}
|
|
@@ -39,18 +34,24 @@ export interface CreateInvoiceRequestDto {
|
|
|
39
34
|
* @memberof CreateInvoiceRequestDto
|
|
40
35
|
*/
|
|
41
36
|
'policyNumber': string;
|
|
37
|
+
/**
|
|
38
|
+
* Account number.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreateInvoiceRequestDto
|
|
41
|
+
*/
|
|
42
|
+
'accountNumber': string;
|
|
42
43
|
/**
|
|
43
44
|
* Type of the invoice.
|
|
44
45
|
* @type {string}
|
|
45
46
|
* @memberof CreateInvoiceRequestDto
|
|
46
47
|
*/
|
|
47
|
-
'type'
|
|
48
|
+
'type': CreateInvoiceRequestDtoTypeEnum;
|
|
48
49
|
/**
|
|
49
50
|
* Metadata contains extra information that the object would need for specific cases.
|
|
50
51
|
* @type {object}
|
|
51
52
|
* @memberof CreateInvoiceRequestDto
|
|
52
53
|
*/
|
|
53
|
-
'metadata'
|
|
54
|
+
'metadata': object;
|
|
54
55
|
/**
|
|
55
56
|
* This is the date from which the invoice interval starts.
|
|
56
57
|
* @type {string}
|
|
@@ -68,7 +69,13 @@ export interface CreateInvoiceRequestDto {
|
|
|
68
69
|
* @type {string}
|
|
69
70
|
* @memberof CreateInvoiceRequestDto
|
|
70
71
|
*/
|
|
71
|
-
'dueDate'
|
|
72
|
+
'dueDate': string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<CreateItemRequestDto>}
|
|
76
|
+
* @memberof CreateInvoiceRequestDto
|
|
77
|
+
*/
|
|
78
|
+
'items': Array<CreateItemRequestDto>;
|
|
72
79
|
}
|
|
73
80
|
export declare const CreateInvoiceRequestDtoTypeEnum: {
|
|
74
81
|
readonly Initial: "initial";
|
|
@@ -0,0 +1,101 @@
|
|
|
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 CreateItemRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateItemRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Premium formula id
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CreateItemRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'premiumFormulaId': number;
|
|
24
|
+
/**
|
|
25
|
+
* Name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateItemRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'name': string;
|
|
30
|
+
/**
|
|
31
|
+
* Group
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateItemRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'group': string;
|
|
36
|
+
/**
|
|
37
|
+
* Quantity
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CreateItemRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'quantity': number;
|
|
42
|
+
/**
|
|
43
|
+
* Price per unit
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CreateItemRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'pricePerUnit': number;
|
|
48
|
+
/**
|
|
49
|
+
* Invoice unit
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateItemRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'unit': CreateItemRequestDtoUnitEnum;
|
|
54
|
+
/**
|
|
55
|
+
* Unique identifier of the tax that this object belongs to.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateItemRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'taxCode': string;
|
|
60
|
+
/**
|
|
61
|
+
* Tax rate
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CreateItemRequestDto
|
|
64
|
+
*/
|
|
65
|
+
'taxRate': number;
|
|
66
|
+
/**
|
|
67
|
+
* Type of Premium item.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CreateItemRequestDto
|
|
70
|
+
*/
|
|
71
|
+
'itemType': CreateItemRequestDtoItemTypeEnum;
|
|
72
|
+
/**
|
|
73
|
+
* Visibility of Premium item.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof CreateItemRequestDto
|
|
76
|
+
*/
|
|
77
|
+
'visibility': CreateItemRequestDtoVisibilityEnum;
|
|
78
|
+
}
|
|
79
|
+
export declare const CreateItemRequestDtoUnitEnum: {
|
|
80
|
+
readonly Day: "day";
|
|
81
|
+
readonly Week: "week";
|
|
82
|
+
readonly Month: "month";
|
|
83
|
+
readonly Quarter: "quarter";
|
|
84
|
+
readonly Year: "year";
|
|
85
|
+
readonly OneTimePayment: "oneTimePayment";
|
|
86
|
+
};
|
|
87
|
+
export type CreateItemRequestDtoUnitEnum = typeof CreateItemRequestDtoUnitEnum[keyof typeof CreateItemRequestDtoUnitEnum];
|
|
88
|
+
export declare const CreateItemRequestDtoItemTypeEnum: {
|
|
89
|
+
readonly Netto: "netto";
|
|
90
|
+
readonly Commission: "commission";
|
|
91
|
+
readonly Tax: "tax";
|
|
92
|
+
readonly Discount: "discount";
|
|
93
|
+
readonly Brutto: "brutto";
|
|
94
|
+
readonly Other: "other";
|
|
95
|
+
};
|
|
96
|
+
export type CreateItemRequestDtoItemTypeEnum = typeof CreateItemRequestDtoItemTypeEnum[keyof typeof CreateItemRequestDtoItemTypeEnum];
|
|
97
|
+
export declare const CreateItemRequestDtoVisibilityEnum: {
|
|
98
|
+
readonly Public: "public";
|
|
99
|
+
readonly Internal: "internal";
|
|
100
|
+
};
|
|
101
|
+
export type CreateItemRequestDtoVisibilityEnum = typeof CreateItemRequestDtoVisibilityEnum[keyof typeof CreateItemRequestDtoVisibilityEnum];
|
|
@@ -0,0 +1,36 @@
|
|
|
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.CreateItemRequestDtoVisibilityEnum = exports.CreateItemRequestDtoItemTypeEnum = exports.CreateItemRequestDtoUnitEnum = void 0;
|
|
17
|
+
exports.CreateItemRequestDtoUnitEnum = {
|
|
18
|
+
Day: 'day',
|
|
19
|
+
Week: 'week',
|
|
20
|
+
Month: 'month',
|
|
21
|
+
Quarter: 'quarter',
|
|
22
|
+
Year: 'year',
|
|
23
|
+
OneTimePayment: 'oneTimePayment'
|
|
24
|
+
};
|
|
25
|
+
exports.CreateItemRequestDtoItemTypeEnum = {
|
|
26
|
+
Netto: 'netto',
|
|
27
|
+
Commission: 'commission',
|
|
28
|
+
Tax: 'tax',
|
|
29
|
+
Discount: 'discount',
|
|
30
|
+
Brutto: 'brutto',
|
|
31
|
+
Other: 'other'
|
|
32
|
+
};
|
|
33
|
+
exports.CreateItemRequestDtoVisibilityEnum = {
|
|
34
|
+
Public: 'public',
|
|
35
|
+
Internal: 'internal'
|
|
36
|
+
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,10 +6,12 @@ export * from './create-estimated-invoice-for-interval-request-dto';
|
|
|
6
6
|
export * from './create-estimated-invoice-for-interval-response-class';
|
|
7
7
|
export * from './create-estimated-invoice-request-dto';
|
|
8
8
|
export * from './create-estimated-invoice-response-class';
|
|
9
|
+
export * from './create-invoice-for-policy-request-dto';
|
|
9
10
|
export * from './create-invoice-payment-request-dto';
|
|
10
11
|
export * from './create-invoice-request-dto';
|
|
11
12
|
export * from './create-invoice-response-class';
|
|
12
13
|
export * from './create-invoice-status-request-dto';
|
|
14
|
+
export * from './create-item-request-dto';
|
|
13
15
|
export * from './create-termination-invoice-request-dto';
|
|
14
16
|
export * from './get-invoice-response-class';
|
|
15
17
|
export * from './inline-response200';
|
package/dist/models/index.js
CHANGED
|
@@ -22,10 +22,12 @@ __exportStar(require("./create-estimated-invoice-for-interval-request-dto"), exp
|
|
|
22
22
|
__exportStar(require("./create-estimated-invoice-for-interval-response-class"), exports);
|
|
23
23
|
__exportStar(require("./create-estimated-invoice-request-dto"), exports);
|
|
24
24
|
__exportStar(require("./create-estimated-invoice-response-class"), exports);
|
|
25
|
+
__exportStar(require("./create-invoice-for-policy-request-dto"), exports);
|
|
25
26
|
__exportStar(require("./create-invoice-payment-request-dto"), exports);
|
|
26
27
|
__exportStar(require("./create-invoice-request-dto"), exports);
|
|
27
28
|
__exportStar(require("./create-invoice-response-class"), exports);
|
|
28
29
|
__exportStar(require("./create-invoice-status-request-dto"), exports);
|
|
30
|
+
__exportStar(require("./create-item-request-dto"), exports);
|
|
29
31
|
__exportStar(require("./create-termination-invoice-request-dto"), exports);
|
|
30
32
|
__exportStar(require("./get-invoice-response-class"), exports);
|
|
31
33
|
__exportStar(require("./inline-response200"), exports);
|
|
@@ -51,4 +51,10 @@ export interface ListRequestDto {
|
|
|
51
51
|
* @memberof ListRequestDto
|
|
52
52
|
*/
|
|
53
53
|
'expand'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ListRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'filters'?: string;
|
|
54
60
|
}
|
|
@@ -118,6 +118,18 @@ export interface PolicyDto {
|
|
|
118
118
|
* @memberof PolicyDto
|
|
119
119
|
*/
|
|
120
120
|
'ern': string;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof PolicyDto
|
|
125
|
+
*/
|
|
126
|
+
'createdBy': string;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof PolicyDto
|
|
131
|
+
*/
|
|
132
|
+
'updatedBy': string;
|
|
121
133
|
}
|
|
122
134
|
export declare const PolicyDtoStatusEnum: {
|
|
123
135
|
readonly Active: "ACTIVE";
|
|
@@ -69,4 +69,16 @@ export interface PolicyObjectDto {
|
|
|
69
69
|
* @memberof PolicyObjectDto
|
|
70
70
|
*/
|
|
71
71
|
'code': string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof PolicyObjectDto
|
|
76
|
+
*/
|
|
77
|
+
'createdBy': string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof PolicyObjectDto
|
|
82
|
+
*/
|
|
83
|
+
'updatedBy': string;
|
|
72
84
|
}
|
|
@@ -46,4 +46,16 @@ export interface PolicyPremiumDto {
|
|
|
46
46
|
* @memberof PolicyPremiumDto
|
|
47
47
|
*/
|
|
48
48
|
'currency': string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PolicyPremiumDto
|
|
53
|
+
*/
|
|
54
|
+
'createdBy': string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof PolicyPremiumDto
|
|
59
|
+
*/
|
|
60
|
+
'updatedBy': string;
|
|
49
61
|
}
|
|
@@ -52,4 +52,16 @@ export interface PolicyPremiumItemDto {
|
|
|
52
52
|
* @memberof PolicyPremiumItemDto
|
|
53
53
|
*/
|
|
54
54
|
'isOverride'?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof PolicyPremiumItemDto
|
|
59
|
+
*/
|
|
60
|
+
'createdBy': string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PolicyPremiumItemDto
|
|
65
|
+
*/
|
|
66
|
+
'updatedBy': string;
|
|
55
67
|
}
|
|
@@ -58,4 +58,16 @@ export interface PolicyVersionDto {
|
|
|
58
58
|
* @memberof PolicyVersionDto
|
|
59
59
|
*/
|
|
60
60
|
'isDraft': boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PolicyVersionDto
|
|
65
|
+
*/
|
|
66
|
+
'createdBy': string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof PolicyVersionDto
|
|
71
|
+
*/
|
|
72
|
+
'updatedBy': string;
|
|
61
73
|
}
|
|
@@ -69,4 +69,16 @@ export interface PremiumFormulaDto {
|
|
|
69
69
|
* @memberof PremiumFormulaDto
|
|
70
70
|
*/
|
|
71
71
|
'updatedAt'?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof PremiumFormulaDto
|
|
76
|
+
*/
|
|
77
|
+
'createdBy': string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof PremiumFormulaDto
|
|
82
|
+
*/
|
|
83
|
+
'updatedBy': string;
|
|
72
84
|
}
|
|
@@ -59,4 +59,16 @@ export interface TimesliceDto {
|
|
|
59
59
|
* @memberof TimesliceDto
|
|
60
60
|
*/
|
|
61
61
|
'premium': PolicyPremiumDto;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof TimesliceDto
|
|
66
|
+
*/
|
|
67
|
+
'createdBy': string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof TimesliceDto
|
|
72
|
+
*/
|
|
73
|
+
'updatedBy': string;
|
|
62
74
|
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 CreateInvoiceForPolicyRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateInvoiceForPolicyRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Unique number for the invoice. If not set, the system will automatically assign a value.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateInvoiceForPolicyRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'invoiceNumber'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Account number.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateInvoiceForPolicyRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'accountNumber': string;
|
|
35
|
+
/**
|
|
36
|
+
* Unique identifier of the policy that this object belongs to.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateInvoiceForPolicyRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'policyCode': string;
|
|
41
|
+
/**
|
|
42
|
+
* Policy number.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateInvoiceForPolicyRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'policyNumber': string;
|
|
47
|
+
/**
|
|
48
|
+
* Type of the invoice.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateInvoiceForPolicyRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'type'?: CreateInvoiceForPolicyRequestDtoTypeEnum;
|
|
53
|
+
/**
|
|
54
|
+
* Metadata contains extra information that the object would need for specific cases.
|
|
55
|
+
* @type {object}
|
|
56
|
+
* @memberof CreateInvoiceForPolicyRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'metadata'?: object;
|
|
59
|
+
/**
|
|
60
|
+
* This is the date from which the invoice interval starts.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreateInvoiceForPolicyRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'billingIntervalFrom': string;
|
|
65
|
+
/**
|
|
66
|
+
* This is the date that the invoice interval ends.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof CreateInvoiceForPolicyRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'billingIntervalTo': string;
|
|
71
|
+
/**
|
|
72
|
+
* Invoice due date.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof CreateInvoiceForPolicyRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'dueDate'?: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export const CreateInvoiceForPolicyRequestDtoTypeEnum = {
|
|
80
|
+
Initial: 'initial',
|
|
81
|
+
Recurring: 'recurring',
|
|
82
|
+
Correction: 'correction',
|
|
83
|
+
Estimated: 'estimated',
|
|
84
|
+
Penalty: 'penalty',
|
|
85
|
+
Other: 'other',
|
|
86
|
+
Withdraw: 'withdraw',
|
|
87
|
+
Final: 'final'
|
|
88
|
+
} as const;
|
|
89
|
+
|
|
90
|
+
export type CreateInvoiceForPolicyRequestDtoTypeEnum = typeof CreateInvoiceForPolicyRequestDtoTypeEnum[keyof typeof CreateInvoiceForPolicyRequestDtoTypeEnum];
|
|
91
|
+
|
|
92
|
+
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { CreateItemRequestDto } from './create-item-request-dto';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -26,12 +27,6 @@ export interface CreateInvoiceRequestDto {
|
|
|
26
27
|
* @memberof CreateInvoiceRequestDto
|
|
27
28
|
*/
|
|
28
29
|
'invoiceNumber'?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Account number.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof CreateInvoiceRequestDto
|
|
33
|
-
*/
|
|
34
|
-
'accountNumber': string;
|
|
35
30
|
/**
|
|
36
31
|
* Unique identifier of the policy that this object belongs to.
|
|
37
32
|
* @type {string}
|
|
@@ -44,18 +39,24 @@ export interface CreateInvoiceRequestDto {
|
|
|
44
39
|
* @memberof CreateInvoiceRequestDto
|
|
45
40
|
*/
|
|
46
41
|
'policyNumber': string;
|
|
42
|
+
/**
|
|
43
|
+
* Account number.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateInvoiceRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'accountNumber': string;
|
|
47
48
|
/**
|
|
48
49
|
* Type of the invoice.
|
|
49
50
|
* @type {string}
|
|
50
51
|
* @memberof CreateInvoiceRequestDto
|
|
51
52
|
*/
|
|
52
|
-
'type'
|
|
53
|
+
'type': CreateInvoiceRequestDtoTypeEnum;
|
|
53
54
|
/**
|
|
54
55
|
* Metadata contains extra information that the object would need for specific cases.
|
|
55
56
|
* @type {object}
|
|
56
57
|
* @memberof CreateInvoiceRequestDto
|
|
57
58
|
*/
|
|
58
|
-
'metadata'
|
|
59
|
+
'metadata': object;
|
|
59
60
|
/**
|
|
60
61
|
* This is the date from which the invoice interval starts.
|
|
61
62
|
* @type {string}
|
|
@@ -73,7 +74,13 @@ export interface CreateInvoiceRequestDto {
|
|
|
73
74
|
* @type {string}
|
|
74
75
|
* @memberof CreateInvoiceRequestDto
|
|
75
76
|
*/
|
|
76
|
-
'dueDate'
|
|
77
|
+
'dueDate': string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<CreateItemRequestDto>}
|
|
81
|
+
* @memberof CreateInvoiceRequestDto
|
|
82
|
+
*/
|
|
83
|
+
'items': Array<CreateItemRequestDto>;
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
export const CreateInvoiceRequestDtoTypeEnum = {
|
|
@@ -0,0 +1,112 @@
|
|
|
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 CreateItemRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateItemRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Premium formula id
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof CreateItemRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'premiumFormulaId': number;
|
|
29
|
+
/**
|
|
30
|
+
* Name
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateItemRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'name': string;
|
|
35
|
+
/**
|
|
36
|
+
* Group
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateItemRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'group': string;
|
|
41
|
+
/**
|
|
42
|
+
* Quantity
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof CreateItemRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'quantity': number;
|
|
47
|
+
/**
|
|
48
|
+
* Price per unit
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof CreateItemRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'pricePerUnit': number;
|
|
53
|
+
/**
|
|
54
|
+
* Invoice unit
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreateItemRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'unit': CreateItemRequestDtoUnitEnum;
|
|
59
|
+
/**
|
|
60
|
+
* Unique identifier of the tax that this object belongs to.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreateItemRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'taxCode': string;
|
|
65
|
+
/**
|
|
66
|
+
* Tax rate
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof CreateItemRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'taxRate': number;
|
|
71
|
+
/**
|
|
72
|
+
* Type of Premium item.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof CreateItemRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'itemType': CreateItemRequestDtoItemTypeEnum;
|
|
77
|
+
/**
|
|
78
|
+
* Visibility of Premium item.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof CreateItemRequestDto
|
|
81
|
+
*/
|
|
82
|
+
'visibility': CreateItemRequestDtoVisibilityEnum;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const CreateItemRequestDtoUnitEnum = {
|
|
86
|
+
Day: 'day',
|
|
87
|
+
Week: 'week',
|
|
88
|
+
Month: 'month',
|
|
89
|
+
Quarter: 'quarter',
|
|
90
|
+
Year: 'year',
|
|
91
|
+
OneTimePayment: 'oneTimePayment'
|
|
92
|
+
} as const;
|
|
93
|
+
|
|
94
|
+
export type CreateItemRequestDtoUnitEnum = typeof CreateItemRequestDtoUnitEnum[keyof typeof CreateItemRequestDtoUnitEnum];
|
|
95
|
+
export const CreateItemRequestDtoItemTypeEnum = {
|
|
96
|
+
Netto: 'netto',
|
|
97
|
+
Commission: 'commission',
|
|
98
|
+
Tax: 'tax',
|
|
99
|
+
Discount: 'discount',
|
|
100
|
+
Brutto: 'brutto',
|
|
101
|
+
Other: 'other'
|
|
102
|
+
} as const;
|
|
103
|
+
|
|
104
|
+
export type CreateItemRequestDtoItemTypeEnum = typeof CreateItemRequestDtoItemTypeEnum[keyof typeof CreateItemRequestDtoItemTypeEnum];
|
|
105
|
+
export const CreateItemRequestDtoVisibilityEnum = {
|
|
106
|
+
Public: 'public',
|
|
107
|
+
Internal: 'internal'
|
|
108
|
+
} as const;
|
|
109
|
+
|
|
110
|
+
export type CreateItemRequestDtoVisibilityEnum = typeof CreateItemRequestDtoVisibilityEnum[keyof typeof CreateItemRequestDtoVisibilityEnum];
|
|
111
|
+
|
|
112
|
+
|
package/models/index.ts
CHANGED
|
@@ -6,10 +6,12 @@ export * from './create-estimated-invoice-for-interval-request-dto';
|
|
|
6
6
|
export * from './create-estimated-invoice-for-interval-response-class';
|
|
7
7
|
export * from './create-estimated-invoice-request-dto';
|
|
8
8
|
export * from './create-estimated-invoice-response-class';
|
|
9
|
+
export * from './create-invoice-for-policy-request-dto';
|
|
9
10
|
export * from './create-invoice-payment-request-dto';
|
|
10
11
|
export * from './create-invoice-request-dto';
|
|
11
12
|
export * from './create-invoice-response-class';
|
|
12
13
|
export * from './create-invoice-status-request-dto';
|
|
14
|
+
export * from './create-item-request-dto';
|
|
13
15
|
export * from './create-termination-invoice-request-dto';
|
|
14
16
|
export * from './get-invoice-response-class';
|
|
15
17
|
export * from './inline-response200';
|
|
@@ -56,5 +56,11 @@ export interface ListRequestDto {
|
|
|
56
56
|
* @memberof ListRequestDto
|
|
57
57
|
*/
|
|
58
58
|
'expand'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ListRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'filters'?: string;
|
|
59
65
|
}
|
|
60
66
|
|