@emilgroup/billing-sdk-node 1.26.1 → 1.26.2-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.
Files changed (90) hide show
  1. package/.openapi-generator/FILES +0 -17
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +2 -4
  4. package/api/estimated-invoices-api.ts +6 -12
  5. package/api/initial-invoices-api.ts +2 -4
  6. package/api/invoices-api.ts +6 -12
  7. package/api/recurring-invoices-api.ts +2 -4
  8. package/dist/api/correction-invoices-api.d.ts +3 -4
  9. package/dist/api/estimated-invoices-api.d.ts +9 -12
  10. package/dist/api/initial-invoices-api.d.ts +3 -4
  11. package/dist/api/invoices-api.d.ts +9 -12
  12. package/dist/api/recurring-invoices-api.d.ts +3 -4
  13. package/dist/models/create-estimated-invoice-request-dto.d.ts +1 -7
  14. package/dist/models/create-invoice-payment-request-dto.d.ts +1 -7
  15. package/dist/models/create-invoice-request-dto.d.ts +4 -4
  16. package/dist/models/index.d.ts +0 -17
  17. package/dist/models/index.js +0 -17
  18. package/dist/models/list-request-dto.d.ts +6 -0
  19. package/dist/models/policy-dto.d.ts +3 -23
  20. package/dist/models/policy-dto.js +0 -8
  21. package/dist/models/policy-object-dto.d.ts +2 -8
  22. package/dist/models/policy-premium-dto.d.ts +2 -2
  23. package/dist/models/policy-premium-item-dto.d.ts +2 -2
  24. package/dist/models/policy-version-dto.d.ts +3 -3
  25. package/dist/models/premium-formula-dto.d.ts +2 -2
  26. package/dist/models/timeslice-dto.d.ts +1 -1
  27. package/models/create-estimated-invoice-request-dto.ts +1 -7
  28. package/models/create-invoice-payment-request-dto.ts +1 -7
  29. package/models/create-invoice-request-dto.ts +4 -4
  30. package/models/index.ts +0 -17
  31. package/models/list-request-dto.ts +6 -0
  32. package/models/policy-dto.ts +3 -26
  33. package/models/policy-object-dto.ts +2 -8
  34. package/models/policy-premium-dto.ts +2 -2
  35. package/models/policy-premium-item-dto.ts +2 -2
  36. package/models/policy-version-dto.ts +3 -3
  37. package/models/premium-formula-dto.ts +2 -2
  38. package/models/timeslice-dto.ts +1 -1
  39. package/package.json +1 -1
  40. package/dist/models/create-correction-invoices-response-class.d.ts +0 -25
  41. package/dist/models/create-correction-invoices-response-class.js +0 -15
  42. package/dist/models/create-custom-estimated-invoice-response-class.d.ts +0 -24
  43. package/dist/models/create-custom-estimated-invoice-response-class.js +0 -15
  44. package/dist/models/create-estimated-invoice-for-interval-response-class.d.ts +0 -25
  45. package/dist/models/create-estimated-invoice-for-interval-response-class.js +0 -15
  46. package/dist/models/create-estimated-invoice-response-class.d.ts +0 -37
  47. package/dist/models/create-estimated-invoice-response-class.js +0 -15
  48. package/dist/models/create-invoice-response-class.d.ts +0 -25
  49. package/dist/models/create-invoice-response-class.js +0 -15
  50. package/dist/models/create-invoice-status-request-dto.d.ts +0 -37
  51. package/dist/models/create-invoice-status-request-dto.js +0 -22
  52. package/dist/models/create-termination-invoice-request-dto.d.ts +0 -54
  53. package/dist/models/create-termination-invoice-request-dto.js +0 -15
  54. package/dist/models/get-invoice-response-class.d.ts +0 -25
  55. package/dist/models/get-invoice-response-class.js +0 -15
  56. package/dist/models/invoice-class.d.ts +0 -183
  57. package/dist/models/invoice-class.js +0 -32
  58. package/dist/models/invoice-item-class.d.ts +0 -153
  59. package/dist/models/invoice-item-class.js +0 -24
  60. package/dist/models/invoice-payment-class.d.ts +0 -108
  61. package/dist/models/invoice-payment-class.js +0 -15
  62. package/dist/models/invoice-payments-class.d.ts +0 -25
  63. package/dist/models/invoice-payments-class.js +0 -15
  64. package/dist/models/invoice-status-class.d.ts +0 -61
  65. package/dist/models/invoice-status-class.js +0 -22
  66. package/dist/models/list-invoices-response-class.d.ts +0 -31
  67. package/dist/models/list-invoices-response-class.js +0 -15
  68. package/dist/models/list-policies-billing-dates-response-class.d.ts +0 -31
  69. package/dist/models/list-policies-billing-dates-response-class.js +0 -15
  70. package/dist/models/omit-type-class.d.ts +0 -176
  71. package/dist/models/omit-type-class.js +0 -32
  72. package/dist/models/policy-billing-date-class.d.ts +0 -54
  73. package/dist/models/policy-billing-date-class.js +0 -15
  74. package/models/create-correction-invoices-response-class.ts +0 -31
  75. package/models/create-custom-estimated-invoice-response-class.ts +0 -30
  76. package/models/create-estimated-invoice-for-interval-response-class.ts +0 -31
  77. package/models/create-estimated-invoice-response-class.ts +0 -43
  78. package/models/create-invoice-response-class.ts +0 -31
  79. package/models/create-invoice-status-request-dto.ts +0 -46
  80. package/models/create-termination-invoice-request-dto.ts +0 -60
  81. package/models/get-invoice-response-class.ts +0 -31
  82. package/models/invoice-class.ts +0 -193
  83. package/models/invoice-item-class.ts +0 -162
  84. package/models/invoice-payment-class.ts +0 -114
  85. package/models/invoice-payments-class.ts +0 -31
  86. package/models/invoice-status-class.ts +0 -70
  87. package/models/list-invoices-response-class.ts +0 -37
  88. package/models/list-policies-billing-dates-response-class.ts +0 -37
  89. package/models/omit-type-class.ts +0 -186
  90. package/models/policy-billing-date-class.ts +0 -60
@@ -1,114 +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
- '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
-
@@ -1,31 +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 { 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
-
@@ -1,70 +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
- * 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
-
@@ -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,186 +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
- * 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
-
@@ -1,60 +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 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
-