@emilgroup/billing-sdk 1.8.0 → 1.15.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 (96) hide show
  1. package/.openapi-generator/FILES +3 -16
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +2 -4
  4. package/api/draft-invoice-api.ts +342 -0
  5. package/api/estimated-invoices-api.ts +112 -11
  6. package/api/initial-invoices-api.ts +2 -4
  7. package/api/invoices-api.ts +110 -88
  8. package/api/recurring-invoices-api.ts +2 -4
  9. package/api.ts +2 -0
  10. package/base.ts +1 -0
  11. package/dist/api/correction-invoices-api.d.ts +105 -0
  12. package/dist/api/correction-invoices-api.js +230 -0
  13. package/dist/api/default-api.d.ts +66 -0
  14. package/dist/api/default-api.js +196 -0
  15. package/dist/api/draft-invoice-api.d.ts +185 -0
  16. package/dist/api/draft-invoice-api.js +392 -0
  17. package/dist/api/estimated-invoices-api.d.ts +208 -0
  18. package/dist/api/estimated-invoices-api.js +410 -0
  19. package/dist/api/initial-invoices-api.d.ts +105 -0
  20. package/dist/api/initial-invoices-api.js +230 -0
  21. package/dist/api/invoices-api.d.ts +322 -0
  22. package/dist/api/invoices-api.js +489 -0
  23. package/dist/api/recurring-invoices-api.d.ts +105 -0
  24. package/dist/api/recurring-invoices-api.js +230 -0
  25. package/dist/api.d.ts +18 -0
  26. package/dist/api.js +36 -0
  27. package/dist/base.d.ts +74 -0
  28. package/dist/base.js +299 -0
  29. package/dist/common.d.ts +91 -0
  30. package/dist/common.js +276 -0
  31. package/dist/configuration.d.ts +83 -0
  32. package/dist/configuration.js +44 -0
  33. package/dist/index.d.ts +15 -0
  34. package/dist/index.js +36 -0
  35. package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +35 -0
  36. package/{models/create-custom-estimated-invoice-response-class.ts → dist/models/create-custom-estimated-invoice-request-dto.js} +7 -17
  37. package/dist/models/create-draft-invoice-request-dto.d.ts +89 -0
  38. package/dist/models/create-draft-invoice-request-dto.js +26 -0
  39. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
  40. package/{models/get-invoice-response-class.ts → dist/models/create-estimated-invoice-for-interval-request-dto.js} +2 -18
  41. package/dist/models/create-estimated-invoice-request-dto.d.ts +31 -0
  42. package/{models/create-invoice-response-class.ts → dist/models/create-estimated-invoice-request-dto.js} +2 -18
  43. package/dist/models/create-invoice-payment-request-dto.d.ts +48 -0
  44. package/{models/invoice-payments-class.ts → dist/models/create-invoice-payment-request-dto.js} +2 -18
  45. package/dist/models/create-invoice-request-dto.d.ts +83 -0
  46. package/dist/models/create-invoice-request-dto.js +26 -0
  47. package/dist/models/index.d.ts +17 -0
  48. package/dist/models/index.js +33 -0
  49. package/dist/models/inline-response200.d.ts +54 -0
  50. package/dist/models/inline-response200.js +15 -0
  51. package/dist/models/inline-response503.d.ts +54 -0
  52. package/dist/models/inline-response503.js +15 -0
  53. package/dist/models/list-request-dto.d.ts +54 -0
  54. package/dist/models/list-request-dto.js +15 -0
  55. package/dist/models/policy-dto.d.ts +109 -0
  56. package/dist/models/policy-dto.js +15 -0
  57. package/dist/models/policy-object-dto.d.ts +66 -0
  58. package/dist/models/policy-object-dto.js +15 -0
  59. package/dist/models/policy-premium-dto.d.ts +49 -0
  60. package/dist/models/policy-premium-dto.js +15 -0
  61. package/dist/models/policy-premium-item-dto.d.ts +55 -0
  62. package/dist/models/policy-premium-item-dto.js +15 -0
  63. package/dist/models/policy-version-dto.d.ts +61 -0
  64. package/dist/models/policy-version-dto.js +15 -0
  65. package/dist/models/premium-formula-dto.d.ts +72 -0
  66. package/dist/models/premium-formula-dto.js +15 -0
  67. package/dist/models/revert-invoice-request-dto.d.ts +24 -0
  68. package/dist/models/revert-invoice-request-dto.js +15 -0
  69. package/dist/models/timeslice-dto.d.ts +62 -0
  70. package/dist/models/timeslice-dto.js +15 -0
  71. package/models/create-draft-invoice-request-dto.ts +98 -0
  72. package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
  73. package/models/create-invoice-payment-request-dto.ts +2 -8
  74. package/models/create-invoice-request-dto.ts +11 -5
  75. package/models/index.ts +2 -16
  76. package/models/inline-response200.ts +6 -6
  77. package/models/inline-response503.ts +6 -6
  78. package/models/policy-dto.ts +5 -21
  79. package/models/policy-object-dto.ts +20 -2
  80. package/models/policy-premium-dto.ts +2 -2
  81. package/models/policy-premium-item-dto.ts +2 -2
  82. package/models/policy-version-dto.ts +6 -0
  83. package/models/premium-formula-dto.ts +2 -2
  84. package/package.json +1 -1
  85. package/models/create-correction-invoices-response-class.ts +0 -31
  86. package/models/create-estimated-invoice-response-class.ts +0 -37
  87. package/models/create-invoice-status-request-dto.ts +0 -45
  88. package/models/create-termination-invoice-request-dto.ts +0 -54
  89. package/models/invoice-class.ts +0 -174
  90. package/models/invoice-item-class.ts +0 -138
  91. package/models/invoice-payment-class.ts +0 -102
  92. package/models/invoice-status-class.ts +0 -57
  93. package/models/list-invoices-response-class.ts +0 -37
  94. package/models/list-policies-billing-dates-response-class.ts +0 -37
  95. package/models/omit-type-class.ts +0 -167
  96. package/models/policy-billing-date-class.ts +0 -48
@@ -1,174 +0,0 @@
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
- import { InvoiceStatusClass } from './invoice-status-class';
19
-
20
- /**
21
- *
22
- * @export
23
- * @interface InvoiceClass
24
- */
25
- export interface InvoiceClass {
26
- /**
27
- * Internal unique identifier for the object. You should not have to use this, use code instead.
28
- * @type {number}
29
- * @memberof InvoiceClass
30
- */
31
- 'id': number;
32
- /**
33
- * Unique identifier of the policy that this object belongs to.
34
- * @type {string}
35
- * @memberof InvoiceClass
36
- */
37
- 'policyCode': string;
38
- /**
39
- * Account number.
40
- * @type {string}
41
- * @memberof InvoiceClass
42
- */
43
- 'accountNumber': string;
44
- /**
45
- * Unique identifier for the object.
46
- * @type {string}
47
- * @memberof InvoiceClass
48
- */
49
- 'code': string;
50
- /**
51
- * Invoice type.
52
- * @type {string}
53
- * @memberof InvoiceClass
54
- */
55
- 'type': InvoiceClassTypeEnum;
56
- /**
57
- * Invoice number.
58
- * @type {string}
59
- * @memberof InvoiceClass
60
- */
61
- 'invoiceNumber': string;
62
- /**
63
- * Net amount is in cents.
64
- * @type {number}
65
- * @memberof InvoiceClass
66
- */
67
- 'netAmount': number;
68
- /**
69
- * Tax amount is in cents.
70
- * @type {number}
71
- * @memberof InvoiceClass
72
- */
73
- 'taxAmount': number;
74
- /**
75
- * Credit amount.
76
- * @type {number}
77
- * @memberof InvoiceClass
78
- */
79
- 'creditAmount': number;
80
- /**
81
- * Gross amount. This property is sum of taxAmount and netAmount.
82
- * @type {number}
83
- * @memberof InvoiceClass
84
- */
85
- 'grossAmount': number;
86
- /**
87
- * 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.
88
- * @type {number}
89
- * @memberof InvoiceClass
90
- */
91
- 'paidAmount': number;
92
- /**
93
- * Invoice status.
94
- * @type {string}
95
- * @memberof InvoiceClass
96
- */
97
- 'status': InvoiceClassStatusEnum;
98
- /**
99
- * Invoice due date.
100
- * @type {string}
101
- * @memberof InvoiceClass
102
- */
103
- 'dueDate': string;
104
- /**
105
- * Metadata contains extra information that the object would need for specific cases.
106
- * @type {object}
107
- * @memberof InvoiceClass
108
- */
109
- 'metadata': object;
110
- /**
111
- * Start date of billing interval.
112
- * @type {string}
113
- * @memberof InvoiceClass
114
- */
115
- 'billingIntervalFrom': string;
116
- /**
117
- * End date of billing interval.
118
- * @type {string}
119
- * @memberof InvoiceClass
120
- */
121
- 'billingIntervalTo': string;
122
- /**
123
- * Time at which the object was created.
124
- * @type {string}
125
- * @memberof InvoiceClass
126
- */
127
- 'createdAt': string;
128
- /**
129
- * Invoice items.
130
- * @type {Array<InvoiceItemClass>}
131
- * @memberof InvoiceClass
132
- */
133
- 'invoiceItems': Array<InvoiceItemClass>;
134
- /**
135
- * Invoice statuses.
136
- * @type {Array<InvoiceStatusClass>}
137
- * @memberof InvoiceClass
138
- */
139
- 'statuses': Array<InvoiceStatusClass>;
140
- /**
141
- * Invoice currency. EUR is used by default.
142
- * @type {string}
143
- * @memberof InvoiceClass
144
- */
145
- 'currency': string;
146
- /**
147
- * Invoice payments.
148
- * @type {InvoicePaymentsClass}
149
- * @memberof InvoiceClass
150
- */
151
- 'payments': InvoicePaymentsClass;
152
- }
153
-
154
- export const InvoiceClassTypeEnum = {
155
- Initial: 'initial',
156
- Recurring: 'recurring',
157
- Correction: 'correction',
158
- Estimated: 'estimated',
159
- Penalty: 'penalty',
160
- Other: 'other',
161
- Withdraw: 'withdraw',
162
- Final: 'final'
163
- } as const;
164
-
165
- export type InvoiceClassTypeEnum = typeof InvoiceClassTypeEnum[keyof typeof InvoiceClassTypeEnum];
166
- export const InvoiceClassStatusEnum = {
167
- Open: 'open',
168
- Paid: 'paid',
169
- PartiallyPaid: 'partially-paid'
170
- } as const;
171
-
172
- export type InvoiceClassStatusEnum = typeof InvoiceClassStatusEnum[keyof typeof InvoiceClassStatusEnum];
173
-
174
-
@@ -1,138 +0,0 @@
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
-
127
- export const InvoiceItemClassUnitEnum = {
128
- Day: 'day',
129
- Week: 'week',
130
- Month: 'month',
131
- Quarter: 'quarter',
132
- Year: 'year',
133
- OneTimePayment: 'oneTimePayment'
134
- } as const;
135
-
136
- export type InvoiceItemClassUnitEnum = typeof InvoiceItemClassUnitEnum[keyof typeof InvoiceItemClassUnitEnum];
137
-
138
-
@@ -1,102 +0,0 @@
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
- 'commment': string;
59
- /**
60
- * User who added payment.
61
- * @type {string}
62
- * @memberof InvoicePaymentClass
63
- */
64
- 'createdBy': string;
65
- /**
66
- * Invoice gross amount is in cents.
67
- * @type {number}
68
- * @memberof InvoicePaymentClass
69
- */
70
- 'invoiceGrossAmount': number;
71
- /**
72
- * Invoice paid amount before payment. The amount is in cents.
73
- * @type {number}
74
- * @memberof InvoicePaymentClass
75
- */
76
- 'oldInvoicePaidAmount': number;
77
- /**
78
- * Invoice paid amount after payment. The amount is in cents.
79
- * @type {number}
80
- * @memberof InvoicePaymentClass
81
- */
82
- 'newInvoicePaidAmount': number;
83
- /**
84
- * Invoice status before payment.
85
- * @type {string}
86
- * @memberof InvoicePaymentClass
87
- */
88
- 'oldInvoiceStatus': string;
89
- /**
90
- * Invoice status after payment.
91
- * @type {string}
92
- * @memberof InvoicePaymentClass
93
- */
94
- 'newInvoiceStatus': string;
95
- /**
96
- * Time at which the object was created.
97
- * @type {string}
98
- * @memberof InvoicePaymentClass
99
- */
100
- 'createdAt': string;
101
- }
102
-
@@ -1,57 +0,0 @@
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
-
49
- export const InvoiceStatusClassStatusEnum = {
50
- Open: 'open',
51
- Paid: 'paid',
52
- PartiallyPaid: 'partially-paid'
53
- } as const;
54
-
55
- export type InvoiceStatusClassStatusEnum = typeof InvoiceStatusClassStatusEnum[keyof typeof InvoiceStatusClassStatusEnum];
56
-
57
-
@@ -1,37 +0,0 @@
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
-
@@ -1,37 +0,0 @@
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
-
@@ -1,167 +0,0 @@
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
- * Unique identifier for the object.
45
- * @type {string}
46
- * @memberof OmitTypeClass
47
- */
48
- 'code': string;
49
- /**
50
- * Invoice type.
51
- * @type {string}
52
- * @memberof OmitTypeClass
53
- */
54
- 'type': OmitTypeClassTypeEnum;
55
- /**
56
- * Invoice number.
57
- * @type {string}
58
- * @memberof OmitTypeClass
59
- */
60
- 'invoiceNumber': string;
61
- /**
62
- * Net amount is in cents.
63
- * @type {number}
64
- * @memberof OmitTypeClass
65
- */
66
- 'netAmount': number;
67
- /**
68
- * Tax amount is in cents.
69
- * @type {number}
70
- * @memberof OmitTypeClass
71
- */
72
- 'taxAmount': number;
73
- /**
74
- * Credit amount.
75
- * @type {number}
76
- * @memberof OmitTypeClass
77
- */
78
- 'creditAmount': number;
79
- /**
80
- * Gross amount. This property is sum of taxAmount and netAmount.
81
- * @type {number}
82
- * @memberof OmitTypeClass
83
- */
84
- 'grossAmount': number;
85
- /**
86
- * 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.
87
- * @type {number}
88
- * @memberof OmitTypeClass
89
- */
90
- 'paidAmount': number;
91
- /**
92
- * Invoice status.
93
- * @type {string}
94
- * @memberof OmitTypeClass
95
- */
96
- 'status': OmitTypeClassStatusEnum;
97
- /**
98
- * Invoice due date.
99
- * @type {string}
100
- * @memberof OmitTypeClass
101
- */
102
- 'dueDate': string;
103
- /**
104
- * Metadata contains extra information that the object would need for specific cases.
105
- * @type {object}
106
- * @memberof OmitTypeClass
107
- */
108
- 'metadata': object;
109
- /**
110
- * Start date of billing interval.
111
- * @type {string}
112
- * @memberof OmitTypeClass
113
- */
114
- 'billingIntervalFrom': string;
115
- /**
116
- * End date of billing interval.
117
- * @type {string}
118
- * @memberof OmitTypeClass
119
- */
120
- 'billingIntervalTo': string;
121
- /**
122
- * Time at which the object was created.
123
- * @type {string}
124
- * @memberof OmitTypeClass
125
- */
126
- 'createdAt': string;
127
- /**
128
- * Invoice items.
129
- * @type {Array<InvoiceItemClass>}
130
- * @memberof OmitTypeClass
131
- */
132
- 'invoiceItems': Array<InvoiceItemClass>;
133
- /**
134
- * Invoice currency. EUR is used by default.
135
- * @type {string}
136
- * @memberof OmitTypeClass
137
- */
138
- 'currency': string;
139
- /**
140
- * Invoice payments.
141
- * @type {InvoicePaymentsClass}
142
- * @memberof OmitTypeClass
143
- */
144
- 'payments': InvoicePaymentsClass;
145
- }
146
-
147
- export const OmitTypeClassTypeEnum = {
148
- Initial: 'initial',
149
- Recurring: 'recurring',
150
- Correction: 'correction',
151
- Estimated: 'estimated',
152
- Penalty: 'penalty',
153
- Other: 'other',
154
- Withdraw: 'withdraw',
155
- Final: 'final'
156
- } as const;
157
-
158
- export type OmitTypeClassTypeEnum = typeof OmitTypeClassTypeEnum[keyof typeof OmitTypeClassTypeEnum];
159
- export const OmitTypeClassStatusEnum = {
160
- Open: 'open',
161
- Paid: 'paid',
162
- PartiallyPaid: 'partially-paid'
163
- } as const;
164
-
165
- export type OmitTypeClassStatusEnum = typeof OmitTypeClassStatusEnum[keyof typeof OmitTypeClassStatusEnum];
166
-
167
-