@emilgroup/billing-sdk-node 1.28.0 → 1.28.2-beta.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 (100) hide show
  1. package/.openapi-generator/FILES +19 -0
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +17 -15
  4. package/api/estimated-invoices-api.ts +12 -6
  5. package/api/initial-invoices-api.ts +17 -15
  6. package/api/invoices-api.ts +133 -6
  7. package/api/recurring-invoices-api.ts +17 -15
  8. package/dist/api/correction-invoices-api.d.ts +11 -10
  9. package/dist/api/correction-invoices-api.js +12 -12
  10. package/dist/api/estimated-invoices-api.d.ts +12 -9
  11. package/dist/api/initial-invoices-api.d.ts +11 -10
  12. package/dist/api/initial-invoices-api.js +12 -12
  13. package/dist/api/invoices-api.d.ts +78 -9
  14. package/dist/api/invoices-api.js +99 -0
  15. package/dist/api/recurring-invoices-api.d.ts +11 -10
  16. package/dist/api/recurring-invoices-api.js +12 -12
  17. package/dist/models/create-correction-invoices-response-class.d.ts +25 -0
  18. package/dist/models/create-correction-invoices-response-class.js +15 -0
  19. package/dist/models/create-custom-estimated-invoice-response-class.d.ts +24 -0
  20. package/dist/models/create-custom-estimated-invoice-response-class.js +15 -0
  21. package/dist/models/create-estimated-invoice-for-interval-response-class.d.ts +25 -0
  22. package/dist/models/create-estimated-invoice-for-interval-response-class.js +15 -0
  23. package/dist/models/create-estimated-invoice-request-dto.d.ts +7 -1
  24. package/dist/models/create-estimated-invoice-response-class.d.ts +37 -0
  25. package/dist/models/create-estimated-invoice-response-class.js +15 -0
  26. package/dist/models/create-invoice-for-policy-request-dto.d.ts +83 -0
  27. package/dist/models/create-invoice-for-policy-request-dto.js +26 -0
  28. package/dist/models/create-invoice-payment-request-dto.d.ts +7 -1
  29. package/dist/models/create-invoice-request-dto.d.ts +14 -7
  30. package/dist/models/create-invoice-response-class.d.ts +25 -0
  31. package/dist/models/create-invoice-response-class.js +15 -0
  32. package/dist/models/create-invoice-status-request-dto.d.ts +37 -0
  33. package/dist/models/create-invoice-status-request-dto.js +22 -0
  34. package/dist/models/create-item-request-dto.d.ts +101 -0
  35. package/dist/models/create-item-request-dto.js +36 -0
  36. package/dist/models/create-termination-invoice-request-dto.d.ts +54 -0
  37. package/dist/models/create-termination-invoice-request-dto.js +15 -0
  38. package/dist/models/get-invoice-response-class.d.ts +25 -0
  39. package/dist/models/get-invoice-response-class.js +15 -0
  40. package/dist/models/index.d.ts +19 -0
  41. package/dist/models/index.js +19 -0
  42. package/dist/models/invoice-class.d.ts +183 -0
  43. package/dist/models/invoice-class.js +32 -0
  44. package/dist/models/invoice-item-class.d.ts +153 -0
  45. package/dist/models/invoice-item-class.js +24 -0
  46. package/dist/models/invoice-payment-class.d.ts +108 -0
  47. package/dist/models/invoice-payment-class.js +15 -0
  48. package/dist/models/invoice-payments-class.d.ts +25 -0
  49. package/dist/models/invoice-payments-class.js +15 -0
  50. package/dist/models/invoice-status-class.d.ts +61 -0
  51. package/dist/models/invoice-status-class.js +22 -0
  52. package/dist/models/list-invoices-response-class.d.ts +31 -0
  53. package/dist/models/list-invoices-response-class.js +15 -0
  54. package/dist/models/list-policies-billing-dates-response-class.d.ts +31 -0
  55. package/dist/models/list-policies-billing-dates-response-class.js +15 -0
  56. package/dist/models/list-request-dto.d.ts +6 -0
  57. package/dist/models/omit-type-class.d.ts +176 -0
  58. package/dist/models/omit-type-class.js +32 -0
  59. package/dist/models/policy-billing-date-class.d.ts +54 -0
  60. package/dist/models/policy-billing-date-class.js +15 -0
  61. package/dist/models/policy-dto.d.ts +35 -3
  62. package/dist/models/policy-dto.js +8 -0
  63. package/dist/models/policy-object-dto.d.ts +20 -2
  64. package/dist/models/policy-premium-dto.d.ts +14 -2
  65. package/dist/models/policy-premium-item-dto.d.ts +14 -2
  66. package/dist/models/policy-version-dto.d.ts +15 -3
  67. package/dist/models/premium-formula-dto.d.ts +14 -2
  68. package/dist/models/timeslice-dto.d.ts +13 -1
  69. package/models/create-correction-invoices-response-class.ts +31 -0
  70. package/models/create-custom-estimated-invoice-response-class.ts +30 -0
  71. package/models/create-estimated-invoice-for-interval-response-class.ts +31 -0
  72. package/models/create-estimated-invoice-request-dto.ts +7 -1
  73. package/models/create-estimated-invoice-response-class.ts +43 -0
  74. package/models/create-invoice-for-policy-request-dto.ts +92 -0
  75. package/models/create-invoice-payment-request-dto.ts +7 -1
  76. package/models/create-invoice-request-dto.ts +14 -7
  77. package/models/create-invoice-response-class.ts +31 -0
  78. package/models/create-invoice-status-request-dto.ts +46 -0
  79. package/models/create-item-request-dto.ts +112 -0
  80. package/models/create-termination-invoice-request-dto.ts +60 -0
  81. package/models/get-invoice-response-class.ts +31 -0
  82. package/models/index.ts +19 -0
  83. package/models/invoice-class.ts +193 -0
  84. package/models/invoice-item-class.ts +162 -0
  85. package/models/invoice-payment-class.ts +114 -0
  86. package/models/invoice-payments-class.ts +31 -0
  87. package/models/invoice-status-class.ts +70 -0
  88. package/models/list-invoices-response-class.ts +37 -0
  89. package/models/list-policies-billing-dates-response-class.ts +37 -0
  90. package/models/list-request-dto.ts +6 -0
  91. package/models/omit-type-class.ts +186 -0
  92. package/models/policy-billing-date-class.ts +60 -0
  93. package/models/policy-dto.ts +38 -3
  94. package/models/policy-object-dto.ts +20 -2
  95. package/models/policy-premium-dto.ts +14 -2
  96. package/models/policy-premium-item-dto.ts +14 -2
  97. package/models/policy-version-dto.ts +15 -3
  98. package/models/premium-formula-dto.ts +14 -2
  99. package/models/timeslice-dto.ts +13 -1
  100. package/package.json +1 -1
@@ -0,0 +1,162 @@
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 InvoiceItemClass
21
+ */
22
+ export interface InvoiceItemClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof InvoiceItemClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier referencing the premium formula.
31
+ * @type {number}
32
+ * @memberof InvoiceItemClass
33
+ */
34
+ 'premiumFormulaId': number;
35
+ /**
36
+ * Product name.
37
+ * @type {string}
38
+ * @memberof InvoiceItemClass
39
+ */
40
+ 'name': string;
41
+ /**
42
+ * Unique identifier of the tax that this object belongs to.
43
+ * @type {string}
44
+ * @memberof InvoiceItemClass
45
+ */
46
+ 'taxCode': string;
47
+ /**
48
+ * Unit of Premium..Premium units are determined based on time or distance.
49
+ * @type {string}
50
+ * @memberof InvoiceItemClass
51
+ */
52
+ 'unit': InvoiceItemClassUnitEnum;
53
+ /**
54
+ * Invoice group.
55
+ * @type {string}
56
+ * @memberof InvoiceItemClass
57
+ */
58
+ 'group': string;
59
+ /**
60
+ * Item quantity. this property determines number of days during the billing interval.
61
+ * @type {number}
62
+ * @memberof InvoiceItemClass
63
+ */
64
+ 'quantity': number;
65
+ /**
66
+ * Item price per unit.
67
+ * @type {number}
68
+ * @memberof InvoiceItemClass
69
+ */
70
+ 'pricePerUnit': number;
71
+ /**
72
+ * Item tax rate.
73
+ * @type {number}
74
+ * @memberof InvoiceItemClass
75
+ */
76
+ 'taxRate': number;
77
+ /**
78
+ * Net amount is in cents. It is calculated by multiplying the quantity and the price Per unit.
79
+ * @type {number}
80
+ * @memberof InvoiceItemClass
81
+ */
82
+ 'netAmount': number;
83
+ /**
84
+ * Tax amount is in cents.
85
+ * @type {number}
86
+ * @memberof InvoiceItemClass
87
+ */
88
+ 'taxAmount': number;
89
+ /**
90
+ * Gross amount. This property is sum of taxAmount and netAmount.
91
+ * @type {number}
92
+ * @memberof InvoiceItemClass
93
+ */
94
+ 'grossAmount': number;
95
+ /**
96
+ * Credit amount.
97
+ * @type {number}
98
+ * @memberof InvoiceItemClass
99
+ */
100
+ 'creditAmount': number;
101
+ /**
102
+ * This is the date from which the invoice item interval starts.
103
+ * @type {string}
104
+ * @memberof InvoiceItemClass
105
+ */
106
+ 'billingIntervalFrom': string;
107
+ /**
108
+ * This is the date that the invoice item interval ends.
109
+ * @type {string}
110
+ * @memberof InvoiceItemClass
111
+ */
112
+ 'billingIntervalTo': string;
113
+ /**
114
+ * Type of Premium item.
115
+ * @type {string}
116
+ * @memberof InvoiceItemClass
117
+ */
118
+ 'itemType'?: string;
119
+ /**
120
+ * Visibility of Premium item.
121
+ * @type {string}
122
+ * @memberof InvoiceItemClass
123
+ */
124
+ 'visibility'?: string;
125
+ /**
126
+ * Invoice item quantity per day.
127
+ * @type {number}
128
+ * @memberof InvoiceItemClass
129
+ */
130
+ 'quantityPerDays': number;
131
+ /**
132
+ * Invoice item price per day.
133
+ * @type {number}
134
+ * @memberof InvoiceItemClass
135
+ */
136
+ 'pricePerDay': number;
137
+ /**
138
+ * Identifier of the user who created the record.
139
+ * @type {string}
140
+ * @memberof InvoiceItemClass
141
+ */
142
+ 'createdBy': string;
143
+ /**
144
+ * Identifier of the user who last updated the record.
145
+ * @type {string}
146
+ * @memberof InvoiceItemClass
147
+ */
148
+ 'updatedBy': string;
149
+ }
150
+
151
+ export const InvoiceItemClassUnitEnum = {
152
+ Day: 'day',
153
+ Week: 'week',
154
+ Month: 'month',
155
+ Quarter: 'quarter',
156
+ Year: 'year',
157
+ OneTimePayment: 'oneTimePayment'
158
+ } as const;
159
+
160
+ export type InvoiceItemClassUnitEnum = typeof InvoiceItemClassUnitEnum[keyof typeof InvoiceItemClassUnitEnum];
161
+
162
+
@@ -0,0 +1,114 @@
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 InvoicePaymentClass
21
+ */
22
+ export interface InvoicePaymentClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof InvoicePaymentClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier referencing the invoice.
31
+ * @type {number}
32
+ * @memberof InvoicePaymentClass
33
+ */
34
+ 'invoiceId': number;
35
+ /**
36
+ * Payment amount is in cents.
37
+ * @type {number}
38
+ * @memberof InvoicePaymentClass
39
+ */
40
+ 'transactionAmount': number;
41
+ /**
42
+ * This is the date when the payment was made.
43
+ * @type {string}
44
+ * @memberof InvoicePaymentClass
45
+ */
46
+ 'transactionDate': string;
47
+ /**
48
+ * Transaction reference.
49
+ * @type {string}
50
+ * @memberof InvoicePaymentClass
51
+ */
52
+ 'transactionReference': string;
53
+ /**
54
+ * Payment comment.
55
+ * @type {string}
56
+ * @memberof InvoicePaymentClass
57
+ */
58
+ 'comment': string;
59
+ /**
60
+ * Invoice gross amount is in cents.
61
+ * @type {number}
62
+ * @memberof InvoicePaymentClass
63
+ */
64
+ 'invoiceGrossAmount': number;
65
+ /**
66
+ * Invoice paid amount before payment. The amount is in cents.
67
+ * @type {number}
68
+ * @memberof InvoicePaymentClass
69
+ */
70
+ 'oldInvoicePaidAmount': number;
71
+ /**
72
+ * Invoice paid amount after payment. The amount is in cents.
73
+ * @type {number}
74
+ * @memberof InvoicePaymentClass
75
+ */
76
+ 'newInvoicePaidAmount': number;
77
+ /**
78
+ * Invoice status before payment.
79
+ * @type {string}
80
+ * @memberof InvoicePaymentClass
81
+ */
82
+ 'oldInvoiceStatus': string;
83
+ /**
84
+ * Invoice status after payment.
85
+ * @type {string}
86
+ * @memberof InvoicePaymentClass
87
+ */
88
+ 'newInvoiceStatus': string;
89
+ /**
90
+ * Unique identifier referencing the payment.
91
+ * @type {number}
92
+ * @memberof InvoicePaymentClass
93
+ */
94
+ 'paymentId': number;
95
+ /**
96
+ * Time at which the object was created.
97
+ * @type {string}
98
+ * @memberof InvoicePaymentClass
99
+ */
100
+ 'createdAt': string;
101
+ /**
102
+ * Identifier of the user who created the record.
103
+ * @type {string}
104
+ * @memberof InvoicePaymentClass
105
+ */
106
+ 'createdBy': string;
107
+ /**
108
+ * Identifier of the user who last updated the record.
109
+ * @type {string}
110
+ * @memberof InvoicePaymentClass
111
+ */
112
+ 'updatedBy': string;
113
+ }
114
+
@@ -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 { InvoicePaymentClass } from './invoice-payment-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface InvoicePaymentsClass
22
+ */
23
+ export interface InvoicePaymentsClass {
24
+ /**
25
+ * Invoice payments.
26
+ * @type {Array<InvoicePaymentClass>}
27
+ * @memberof InvoicePaymentsClass
28
+ */
29
+ 'payments': Array<InvoicePaymentClass>;
30
+ }
31
+
@@ -0,0 +1,70 @@
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 InvoiceStatusClass
21
+ */
22
+ export interface InvoiceStatusClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof InvoiceStatusClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier referencing the invoice.
31
+ * @type {number}
32
+ * @memberof InvoiceStatusClass
33
+ */
34
+ 'invoiceId': number;
35
+ /**
36
+ * Invoice type.
37
+ * @type {string}
38
+ * @memberof InvoiceStatusClass
39
+ */
40
+ 'status': InvoiceStatusClassStatusEnum;
41
+ /**
42
+ * Time at which the object was created.
43
+ * @type {string}
44
+ * @memberof InvoiceStatusClass
45
+ */
46
+ 'createdAt': string;
47
+ /**
48
+ * Identifier of the user who created the record.
49
+ * @type {string}
50
+ * @memberof InvoiceStatusClass
51
+ */
52
+ 'createdBy': string;
53
+ /**
54
+ * Identifier of the user who last updated the record.
55
+ * @type {string}
56
+ * @memberof InvoiceStatusClass
57
+ */
58
+ 'updatedBy': string;
59
+ }
60
+
61
+ export const InvoiceStatusClassStatusEnum = {
62
+ Open: 'open',
63
+ Paid: 'paid',
64
+ PartiallyPaid: 'partially-paid',
65
+ Refunded: 'refunded'
66
+ } as const;
67
+
68
+ export type InvoiceStatusClassStatusEnum = typeof InvoiceStatusClassStatusEnum[keyof typeof InvoiceStatusClassStatusEnum];
69
+
70
+
@@ -0,0 +1,37 @@
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 ListInvoicesResponseClass
22
+ */
23
+ export interface ListInvoicesResponseClass {
24
+ /**
25
+ * Invoices list items.
26
+ * @type {Array<InvoiceClass>}
27
+ * @memberof ListInvoicesResponseClass
28
+ */
29
+ 'items': Array<InvoiceClass>;
30
+ /**
31
+ * Next page token.
32
+ * @type {string}
33
+ * @memberof ListInvoicesResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ }
37
+
@@ -0,0 +1,37 @@
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 { PolicyBillingDateClass } from './policy-billing-date-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListPoliciesBillingDatesResponseClass
22
+ */
23
+ export interface ListPoliciesBillingDatesResponseClass {
24
+ /**
25
+ * Invoices list items.
26
+ * @type {Array<PolicyBillingDateClass>}
27
+ * @memberof ListPoliciesBillingDatesResponseClass
28
+ */
29
+ 'items': Array<PolicyBillingDateClass>;
30
+ /**
31
+ * Next page token.
32
+ * @type {string}
33
+ * @memberof ListPoliciesBillingDatesResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ }
37
+
@@ -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
 
@@ -0,0 +1,186 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL BillingService
5
+ * The EMIL BillingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { InvoiceItemClass } from './invoice-item-class';
17
+ import { InvoicePaymentsClass } from './invoice-payments-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface OmitTypeClass
23
+ */
24
+ export interface OmitTypeClass {
25
+ /**
26
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
27
+ * @type {number}
28
+ * @memberof OmitTypeClass
29
+ */
30
+ 'id': number;
31
+ /**
32
+ * Unique identifier of the policy that this object belongs to.
33
+ * @type {string}
34
+ * @memberof OmitTypeClass
35
+ */
36
+ 'policyCode': string;
37
+ /**
38
+ * Account number.
39
+ * @type {string}
40
+ * @memberof OmitTypeClass
41
+ */
42
+ 'accountNumber': string;
43
+ /**
44
+ * Policy number.
45
+ * @type {string}
46
+ * @memberof OmitTypeClass
47
+ */
48
+ 'policyNumber': string;
49
+ /**
50
+ * Unique identifier for the object.
51
+ * @type {string}
52
+ * @memberof OmitTypeClass
53
+ */
54
+ 'code': string;
55
+ /**
56
+ * Invoice type.
57
+ * @type {string}
58
+ * @memberof OmitTypeClass
59
+ */
60
+ 'type': OmitTypeClassTypeEnum;
61
+ /**
62
+ * Invoice number.
63
+ * @type {string}
64
+ * @memberof OmitTypeClass
65
+ */
66
+ 'invoiceNumber': string;
67
+ /**
68
+ * Net amount is in cents.
69
+ * @type {number}
70
+ * @memberof OmitTypeClass
71
+ */
72
+ 'netAmount': number;
73
+ /**
74
+ * Tax amount is in cents.
75
+ * @type {number}
76
+ * @memberof OmitTypeClass
77
+ */
78
+ 'taxAmount': number;
79
+ /**
80
+ * Credit amount.
81
+ * @type {number}
82
+ * @memberof OmitTypeClass
83
+ */
84
+ 'creditAmount': number;
85
+ /**
86
+ * Gross amount. This property is sum of taxAmount and netAmount.
87
+ * @type {number}
88
+ * @memberof OmitTypeClass
89
+ */
90
+ 'grossAmount': number;
91
+ /**
92
+ * Paid amount. This property is amount paid by this invoice. The amount corresponds to the sum (positives and negatives) of all payments relating to that invoice.
93
+ * @type {number}
94
+ * @memberof OmitTypeClass
95
+ */
96
+ 'paidAmount': number;
97
+ /**
98
+ * Invoice status.
99
+ * @type {string}
100
+ * @memberof OmitTypeClass
101
+ */
102
+ 'status': OmitTypeClassStatusEnum;
103
+ /**
104
+ * Invoice due date.
105
+ * @type {string}
106
+ * @memberof OmitTypeClass
107
+ */
108
+ 'dueDate': string;
109
+ /**
110
+ * Metadata contains extra information that the object would need for specific cases.
111
+ * @type {object}
112
+ * @memberof OmitTypeClass
113
+ */
114
+ 'metadata': object;
115
+ /**
116
+ * Start date of billing interval.
117
+ * @type {string}
118
+ * @memberof OmitTypeClass
119
+ */
120
+ 'billingIntervalFrom': string;
121
+ /**
122
+ * End date of billing interval.
123
+ * @type {string}
124
+ * @memberof OmitTypeClass
125
+ */
126
+ 'billingIntervalTo': string;
127
+ /**
128
+ * Time at which the object was created.
129
+ * @type {string}
130
+ * @memberof OmitTypeClass
131
+ */
132
+ 'createdAt': string;
133
+ /**
134
+ * Invoice items.
135
+ * @type {Array<InvoiceItemClass>}
136
+ * @memberof OmitTypeClass
137
+ */
138
+ 'invoiceItems': Array<InvoiceItemClass>;
139
+ /**
140
+ * Invoice currency. EUR is used by default.
141
+ * @type {string}
142
+ * @memberof OmitTypeClass
143
+ */
144
+ 'currency': string;
145
+ /**
146
+ * Invoice payments.
147
+ * @type {InvoicePaymentsClass}
148
+ * @memberof OmitTypeClass
149
+ */
150
+ 'payments': InvoicePaymentsClass;
151
+ /**
152
+ * Identifier of the user who created the record.
153
+ * @type {string}
154
+ * @memberof OmitTypeClass
155
+ */
156
+ 'createdBy': string;
157
+ /**
158
+ * Identifier of the user who last updated the record.
159
+ * @type {string}
160
+ * @memberof OmitTypeClass
161
+ */
162
+ 'updatedBy': string;
163
+ }
164
+
165
+ export const OmitTypeClassTypeEnum = {
166
+ Initial: 'initial',
167
+ Recurring: 'recurring',
168
+ Correction: 'correction',
169
+ Estimated: 'estimated',
170
+ Penalty: 'penalty',
171
+ Other: 'other',
172
+ Withdraw: 'withdraw',
173
+ Final: 'final'
174
+ } as const;
175
+
176
+ export type OmitTypeClassTypeEnum = typeof OmitTypeClassTypeEnum[keyof typeof OmitTypeClassTypeEnum];
177
+ export const OmitTypeClassStatusEnum = {
178
+ Open: 'open',
179
+ Paid: 'paid',
180
+ PartiallyPaid: 'partially-paid',
181
+ Refunded: 'refunded'
182
+ } as const;
183
+
184
+ export type OmitTypeClassStatusEnum = typeof OmitTypeClassStatusEnum[keyof typeof OmitTypeClassStatusEnum];
185
+
186
+
@@ -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 PolicyBillingDateClass
21
+ */
22
+ export interface PolicyBillingDateClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof PolicyBillingDateClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier of the policy that this object belongs to.
31
+ * @type {string}
32
+ * @memberof PolicyBillingDateClass
33
+ */
34
+ 'policyCode': string;
35
+ /**
36
+ * The next billing date this policy will be invoiced.
37
+ * @type {string}
38
+ * @memberof PolicyBillingDateClass
39
+ */
40
+ 'nextBillingDate': string;
41
+ /**
42
+ * This field will be set to true once an invoice has been created on this specific billing date. It is there to avoid a policy being invoiced multiple times in case of retry.
43
+ * @type {boolean}
44
+ * @memberof PolicyBillingDateClass
45
+ */
46
+ 'isInvoiced': boolean;
47
+ /**
48
+ * Identifier of the user who created the record.
49
+ * @type {string}
50
+ * @memberof PolicyBillingDateClass
51
+ */
52
+ 'createdBy': string;
53
+ /**
54
+ * Identifier of the user who last updated the record.
55
+ * @type {string}
56
+ * @memberof PolicyBillingDateClass
57
+ */
58
+ 'updatedBy': string;
59
+ }
60
+