@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.
Files changed (88) hide show
  1. package/.openapi-generator/FILES +17 -0
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +4 -2
  4. package/api/estimated-invoices-api.ts +12 -6
  5. package/api/initial-invoices-api.ts +4 -2
  6. package/api/invoices-api.ts +12 -6
  7. package/api/recurring-invoices-api.ts +4 -2
  8. package/dist/api/correction-invoices-api.d.ts +4 -3
  9. package/dist/api/estimated-invoices-api.d.ts +12 -9
  10. package/dist/api/initial-invoices-api.d.ts +4 -3
  11. package/dist/api/invoices-api.d.ts +12 -9
  12. package/dist/api/recurring-invoices-api.d.ts +4 -3
  13. package/dist/models/create-correction-invoices-response-class.d.ts +25 -0
  14. package/dist/models/create-correction-invoices-response-class.js +15 -0
  15. package/dist/models/create-custom-estimated-invoice-response-class.d.ts +24 -0
  16. package/dist/models/create-custom-estimated-invoice-response-class.js +15 -0
  17. package/dist/models/create-estimated-invoice-for-interval-response-class.d.ts +25 -0
  18. package/dist/models/create-estimated-invoice-for-interval-response-class.js +15 -0
  19. package/dist/models/create-estimated-invoice-request-dto.d.ts +7 -1
  20. package/dist/models/create-estimated-invoice-response-class.d.ts +37 -0
  21. package/dist/models/create-estimated-invoice-response-class.js +15 -0
  22. package/dist/models/create-invoice-payment-request-dto.d.ts +7 -1
  23. package/dist/models/create-invoice-request-dto.d.ts +4 -4
  24. package/dist/models/create-invoice-response-class.d.ts +25 -0
  25. package/dist/models/create-invoice-response-class.js +15 -0
  26. package/dist/models/create-invoice-status-request-dto.d.ts +37 -0
  27. package/dist/models/create-invoice-status-request-dto.js +22 -0
  28. package/dist/models/create-termination-invoice-request-dto.d.ts +54 -0
  29. package/dist/models/create-termination-invoice-request-dto.js +15 -0
  30. package/dist/models/get-invoice-response-class.d.ts +25 -0
  31. package/dist/models/get-invoice-response-class.js +15 -0
  32. package/dist/models/index.d.ts +17 -0
  33. package/dist/models/index.js +17 -0
  34. package/dist/models/invoice-class.d.ts +183 -0
  35. package/dist/models/invoice-class.js +32 -0
  36. package/dist/models/invoice-item-class.d.ts +153 -0
  37. package/dist/models/invoice-item-class.js +24 -0
  38. package/dist/models/invoice-payment-class.d.ts +108 -0
  39. package/dist/models/invoice-payment-class.js +15 -0
  40. package/dist/models/invoice-payments-class.d.ts +25 -0
  41. package/dist/models/invoice-payments-class.js +15 -0
  42. package/dist/models/invoice-status-class.d.ts +61 -0
  43. package/dist/models/invoice-status-class.js +22 -0
  44. package/dist/models/list-invoices-response-class.d.ts +31 -0
  45. package/dist/models/list-invoices-response-class.js +15 -0
  46. package/dist/models/list-policies-billing-dates-response-class.d.ts +31 -0
  47. package/dist/models/list-policies-billing-dates-response-class.js +15 -0
  48. package/dist/models/omit-type-class.d.ts +176 -0
  49. package/dist/models/omit-type-class.js +32 -0
  50. package/dist/models/policy-billing-date-class.d.ts +54 -0
  51. package/dist/models/policy-billing-date-class.js +15 -0
  52. package/dist/models/policy-dto.d.ts +23 -3
  53. package/dist/models/policy-dto.js +8 -0
  54. package/dist/models/policy-object-dto.d.ts +8 -2
  55. package/dist/models/policy-premium-dto.d.ts +2 -2
  56. package/dist/models/policy-premium-item-dto.d.ts +2 -2
  57. package/dist/models/policy-version-dto.d.ts +3 -3
  58. package/dist/models/premium-formula-dto.d.ts +2 -2
  59. package/dist/models/timeslice-dto.d.ts +1 -1
  60. package/models/create-correction-invoices-response-class.ts +31 -0
  61. package/models/create-custom-estimated-invoice-response-class.ts +30 -0
  62. package/models/create-estimated-invoice-for-interval-response-class.ts +31 -0
  63. package/models/create-estimated-invoice-request-dto.ts +7 -1
  64. package/models/create-estimated-invoice-response-class.ts +43 -0
  65. package/models/create-invoice-payment-request-dto.ts +7 -1
  66. package/models/create-invoice-request-dto.ts +4 -4
  67. package/models/create-invoice-response-class.ts +31 -0
  68. package/models/create-invoice-status-request-dto.ts +46 -0
  69. package/models/create-termination-invoice-request-dto.ts +60 -0
  70. package/models/get-invoice-response-class.ts +31 -0
  71. package/models/index.ts +17 -0
  72. package/models/invoice-class.ts +193 -0
  73. package/models/invoice-item-class.ts +162 -0
  74. package/models/invoice-payment-class.ts +114 -0
  75. package/models/invoice-payments-class.ts +31 -0
  76. package/models/invoice-status-class.ts +70 -0
  77. package/models/list-invoices-response-class.ts +37 -0
  78. package/models/list-policies-billing-dates-response-class.ts +37 -0
  79. package/models/omit-type-class.ts +186 -0
  80. package/models/policy-billing-date-class.ts +60 -0
  81. package/models/policy-dto.ts +26 -3
  82. package/models/policy-object-dto.ts +8 -2
  83. package/models/policy-premium-dto.ts +2 -2
  84. package/models/policy-premium-item-dto.ts +2 -2
  85. package/models/policy-version-dto.ts +3 -3
  86. package/models/premium-formula-dto.ts +2 -2
  87. package/models/timeslice-dto.ts +1 -1
  88. package/package.json +1 -1
@@ -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.OmitTypeClassStatusEnum = exports.OmitTypeClassTypeEnum = void 0;
17
+ exports.OmitTypeClassTypeEnum = {
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.OmitTypeClassStatusEnum = {
28
+ Open: 'open',
29
+ Paid: 'paid',
30
+ PartiallyPaid: 'partially-paid',
31
+ Refunded: 'refunded'
32
+ };
@@ -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 PolicyBillingDateClass
16
+ */
17
+ export interface PolicyBillingDateClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof PolicyBillingDateClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier of the policy that this object belongs to.
26
+ * @type {string}
27
+ * @memberof PolicyBillingDateClass
28
+ */
29
+ 'policyCode': string;
30
+ /**
31
+ * The next billing date this policy will be invoiced.
32
+ * @type {string}
33
+ * @memberof PolicyBillingDateClass
34
+ */
35
+ 'nextBillingDate': string;
36
+ /**
37
+ * 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.
38
+ * @type {boolean}
39
+ * @memberof PolicyBillingDateClass
40
+ */
41
+ 'isInvoiced': boolean;
42
+ /**
43
+ * Identifier of the user who created the record.
44
+ * @type {string}
45
+ * @memberof PolicyBillingDateClass
46
+ */
47
+ 'createdBy': string;
48
+ /**
49
+ * Identifier of the user who last updated the record.
50
+ * @type {string}
51
+ * @memberof PolicyBillingDateClass
52
+ */
53
+ 'updatedBy': 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 });
@@ -63,7 +63,7 @@ export interface PolicyDto {
63
63
  * @type {string}
64
64
  * @memberof PolicyDto
65
65
  */
66
- 'status': string;
66
+ 'status': PolicyDtoStatusEnum;
67
67
  /**
68
68
  * Policy holder.
69
69
  * @type {string}
@@ -102,8 +102,28 @@ export interface PolicyDto {
102
102
  'productSlug': string;
103
103
  /**
104
104
  * Linked partners.
105
- * @type {Array<string>}
105
+ * @type {Array<object>}
106
106
  * @memberof PolicyDto
107
107
  */
108
- 'partnerLinks': Array<string>;
108
+ 'partnerLinks': Array<object>;
109
+ /**
110
+ *
111
+ * @type {string}
112
+ * @memberof PolicyDto
113
+ */
114
+ 'policyStartDate': string;
115
+ /**
116
+ *
117
+ * @type {string}
118
+ * @memberof PolicyDto
119
+ */
120
+ 'ern': string;
109
121
  }
122
+ export declare const PolicyDtoStatusEnum: {
123
+ readonly Active: "ACTIVE";
124
+ readonly Withdrawn: "WITHDRAWN";
125
+ readonly Terminated: "TERMINATED";
126
+ readonly Suspended: "SUSPENDED";
127
+ readonly Pending: "PENDING";
128
+ };
129
+ export type PolicyDtoStatusEnum = typeof PolicyDtoStatusEnum[keyof typeof PolicyDtoStatusEnum];
@@ -13,3 +13,11 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PolicyDtoStatusEnum = void 0;
17
+ exports.PolicyDtoStatusEnum = {
18
+ Active: 'ACTIVE',
19
+ Withdrawn: 'WITHDRAWN',
20
+ Terminated: 'TERMINATED',
21
+ Suspended: 'SUSPENDED',
22
+ Pending: 'PENDING'
23
+ };
@@ -56,11 +56,17 @@ export interface PolicyObjectDto {
56
56
  * @type {string}
57
57
  * @memberof PolicyObjectDto
58
58
  */
59
- 'createdAt': string;
59
+ 'createdAt'?: string;
60
60
  /**
61
61
  * Time at which the object was updated.
62
62
  * @type {string}
63
63
  * @memberof PolicyObjectDto
64
64
  */
65
- 'updatedAt': string;
65
+ 'updatedAt'?: string;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof PolicyObjectDto
70
+ */
71
+ 'code': string;
66
72
  }
@@ -27,13 +27,13 @@ export interface PolicyPremiumDto {
27
27
  * @type {string}
28
28
  * @memberof PolicyPremiumDto
29
29
  */
30
- 'createdAt': string;
30
+ 'createdAt'?: string;
31
31
  /**
32
32
  * Time at which the object was updated.
33
33
  * @type {string}
34
34
  * @memberof PolicyPremiumDto
35
35
  */
36
- 'updatedAt': string;
36
+ 'updatedAt'?: string;
37
37
  /**
38
38
  * Premium Items.
39
39
  * @type {Array<PolicyPremiumItemDto>}
@@ -39,7 +39,7 @@ export interface PolicyPremiumItemDto {
39
39
  * @type {string}
40
40
  * @memberof PolicyPremiumItemDto
41
41
  */
42
- 'updatedAt': string;
42
+ 'updatedAt'?: string;
43
43
  /**
44
44
  * Item premium formula entity.
45
45
  * @type {PremiumFormulaDto}
@@ -51,5 +51,5 @@ export interface PolicyPremiumItemDto {
51
51
  * @type {boolean}
52
52
  * @memberof PolicyPremiumItemDto
53
53
  */
54
- 'isOverride': boolean;
54
+ 'isOverride'?: boolean;
55
55
  }
@@ -33,19 +33,19 @@ export interface PolicyVersionDto {
33
33
  * @type {object}
34
34
  * @memberof PolicyVersionDto
35
35
  */
36
- 'metadata': object;
36
+ 'metadata'?: object;
37
37
  /**
38
38
  * Time at which the object was created.
39
39
  * @type {string}
40
40
  * @memberof PolicyVersionDto
41
41
  */
42
- 'createdAt': string;
42
+ 'createdAt'?: string;
43
43
  /**
44
44
  * Time at which the object was updated.
45
45
  * @type {string}
46
46
  * @memberof PolicyVersionDto
47
47
  */
48
- 'updatedAt': string;
48
+ 'updatedAt'?: string;
49
49
  /**
50
50
  * Policy timeline.
51
51
  * @type {Array<TimesliceDto>}
@@ -62,11 +62,11 @@ export interface PremiumFormulaDto {
62
62
  * @type {string}
63
63
  * @memberof PremiumFormulaDto
64
64
  */
65
- 'createdAt': string;
65
+ 'createdAt'?: string;
66
66
  /**
67
67
  * Time at which the object was updated.
68
68
  * @type {string}
69
69
  * @memberof PremiumFormulaDto
70
70
  */
71
- 'updatedAt': string;
71
+ 'updatedAt'?: string;
72
72
  }
@@ -40,7 +40,7 @@ export interface TimesliceDto {
40
40
  * @type {string}
41
41
  * @memberof TimesliceDto
42
42
  */
43
- 'to': string;
43
+ 'to'?: string;
44
44
  /**
45
45
  * Time at which the object was created.
46
46
  * @type {string}
@@ -0,0 +1,31 @@
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 { OmitTypeClass } from './omit-type-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateCorrectionInvoicesResponseClass
22
+ */
23
+ export interface CreateCorrectionInvoicesResponseClass {
24
+ /**
25
+ * Correction invoices response.
26
+ * @type {OmitTypeClass}
27
+ * @memberof CreateCorrectionInvoicesResponseClass
28
+ */
29
+ 'invoices': OmitTypeClass;
30
+ }
31
+
@@ -0,0 +1,30 @@
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 CreateCustomEstimatedInvoiceResponseClass
21
+ */
22
+ export interface CreateCustomEstimatedInvoiceResponseClass {
23
+ /**
24
+ * Recurring invoice response
25
+ * @type {object}
26
+ * @memberof CreateCustomEstimatedInvoiceResponseClass
27
+ */
28
+ 'custom': object;
29
+ }
30
+
@@ -0,0 +1,31 @@
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 { InvoiceClass } from './invoice-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateEstimatedInvoiceForIntervalResponseClass
22
+ */
23
+ export interface CreateEstimatedInvoiceForIntervalResponseClass {
24
+ /**
25
+ * Estimated invoice response
26
+ * @type {InvoiceClass}
27
+ * @memberof CreateEstimatedInvoiceForIntervalResponseClass
28
+ */
29
+ 'invoice': InvoiceClass;
30
+ }
31
+
@@ -32,6 +32,12 @@ export interface CreateEstimatedInvoiceRequestDto {
32
32
  * @type {object}
33
33
  * @memberof CreateEstimatedInvoiceRequestDto
34
34
  */
35
- 'metadata': object;
35
+ 'metadata'?: object;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof CreateEstimatedInvoiceRequestDto
40
+ */
41
+ 'calculateProRata'?: boolean;
36
42
  }
37
43
 
@@ -0,0 +1,43 @@
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 { InvoiceClass } from './invoice-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateEstimatedInvoiceResponseClass
22
+ */
23
+ export interface CreateEstimatedInvoiceResponseClass {
24
+ /**
25
+ * 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.
26
+ * @type {InvoiceClass}
27
+ * @memberof CreateEstimatedInvoiceResponseClass
28
+ */
29
+ 'invoice': InvoiceClass;
30
+ /**
31
+ * 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\'.
32
+ * @type {InvoiceClass}
33
+ * @memberof CreateEstimatedInvoiceResponseClass
34
+ */
35
+ 'yearlyInvoice': InvoiceClass;
36
+ /**
37
+ * 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.
38
+ * @type {object}
39
+ * @memberof CreateEstimatedInvoiceResponseClass
40
+ */
41
+ 'custom': object;
42
+ }
43
+
@@ -43,12 +43,18 @@ export interface CreateInvoicePaymentRequestDto {
43
43
  * @type {string}
44
44
  * @memberof CreateInvoicePaymentRequestDto
45
45
  */
46
- 'comment': string;
46
+ 'comment'?: string;
47
47
  /**
48
48
  * Unique identifier referencing the payment.
49
49
  * @type {number}
50
50
  * @memberof CreateInvoicePaymentRequestDto
51
51
  */
52
52
  'paymentId': number;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof CreateInvoicePaymentRequestDto
57
+ */
58
+ 'invoiceId': number;
53
59
  }
54
60
 
@@ -25,7 +25,7 @@ export interface CreateInvoiceRequestDto {
25
25
  * @type {string}
26
26
  * @memberof CreateInvoiceRequestDto
27
27
  */
28
- 'invoiceNumber': string;
28
+ 'invoiceNumber'?: string;
29
29
  /**
30
30
  * Account number.
31
31
  * @type {string}
@@ -49,13 +49,13 @@ export interface CreateInvoiceRequestDto {
49
49
  * @type {string}
50
50
  * @memberof CreateInvoiceRequestDto
51
51
  */
52
- 'type': CreateInvoiceRequestDtoTypeEnum;
52
+ 'type'?: CreateInvoiceRequestDtoTypeEnum;
53
53
  /**
54
54
  * Metadata contains extra information that the object would need for specific cases.
55
55
  * @type {object}
56
56
  * @memberof CreateInvoiceRequestDto
57
57
  */
58
- 'metadata': object;
58
+ 'metadata'?: object;
59
59
  /**
60
60
  * This is the date from which the invoice interval starts.
61
61
  * @type {string}
@@ -73,7 +73,7 @@ export interface CreateInvoiceRequestDto {
73
73
  * @type {string}
74
74
  * @memberof CreateInvoiceRequestDto
75
75
  */
76
- 'dueDate': string;
76
+ 'dueDate'?: string;
77
77
  }
78
78
 
79
79
  export const CreateInvoiceRequestDtoTypeEnum = {
@@ -0,0 +1,31 @@
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 { OmitTypeClass } from './omit-type-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateInvoiceResponseClass
22
+ */
23
+ export interface CreateInvoiceResponseClass {
24
+ /**
25
+ * Invoice response.
26
+ * @type {OmitTypeClass}
27
+ * @memberof CreateInvoiceResponseClass
28
+ */
29
+ 'invoice': OmitTypeClass;
30
+ }
31
+
@@ -0,0 +1,46 @@
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 CreateInvoiceStatusRequestDto
21
+ */
22
+ export interface CreateInvoiceStatusRequestDto {
23
+ /**
24
+ *
25
+ * @type {number}
26
+ * @memberof CreateInvoiceStatusRequestDto
27
+ */
28
+ 'invoiceId': number;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof CreateInvoiceStatusRequestDto
33
+ */
34
+ 'status': CreateInvoiceStatusRequestDtoStatusEnum;
35
+ }
36
+
37
+ export const CreateInvoiceStatusRequestDtoStatusEnum = {
38
+ Open: 'open',
39
+ Paid: 'paid',
40
+ PartiallyPaid: 'partially-paid',
41
+ Refunded: 'refunded'
42
+ } as const;
43
+
44
+ export type CreateInvoiceStatusRequestDtoStatusEnum = typeof CreateInvoiceStatusRequestDtoStatusEnum[keyof typeof CreateInvoiceStatusRequestDtoStatusEnum];
45
+
46
+
@@ -0,0 +1,60 @@
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 CreateTerminationInvoiceRequestDto
21
+ */
22
+ export interface CreateTerminationInvoiceRequestDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof CreateTerminationInvoiceRequestDto
27
+ */
28
+ 'policyCode': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof CreateTerminationInvoiceRequestDto
33
+ */
34
+ 'accountNumber': string;
35
+ /**
36
+ *
37
+ * @type {object}
38
+ * @memberof CreateTerminationInvoiceRequestDto
39
+ */
40
+ 'metadata'?: object;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof CreateTerminationInvoiceRequestDto
45
+ */
46
+ 'billingIntervalFrom': string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof CreateTerminationInvoiceRequestDto
51
+ */
52
+ 'billingIntervalTo': string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof CreateTerminationInvoiceRequestDto
57
+ */
58
+ 'policyNumber': string;
59
+ }
60
+
@@ -0,0 +1,31 @@
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 { OmitTypeClass } from './omit-type-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GetInvoiceResponseClass
22
+ */
23
+ export interface GetInvoiceResponseClass {
24
+ /**
25
+ * Invoice response.
26
+ * @type {OmitTypeClass}
27
+ * @memberof GetInvoiceResponseClass
28
+ */
29
+ 'invoice': OmitTypeClass;
30
+ }
31
+
package/models/index.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';