@emilgroup/billing-sdk-node 1.19.0 → 1.20.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 +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/policy-dto.d.ts +3 -23
  19. package/dist/models/policy-dto.js +0 -8
  20. package/dist/models/policy-object-dto.d.ts +2 -8
  21. package/dist/models/policy-premium-dto.d.ts +2 -2
  22. package/dist/models/policy-premium-item-dto.d.ts +2 -2
  23. package/dist/models/policy-version-dto.d.ts +3 -3
  24. package/dist/models/premium-formula-dto.d.ts +2 -2
  25. package/dist/models/timeslice-dto.d.ts +1 -1
  26. package/models/create-estimated-invoice-request-dto.ts +1 -7
  27. package/models/create-invoice-payment-request-dto.ts +1 -7
  28. package/models/create-invoice-request-dto.ts +4 -4
  29. package/models/index.ts +0 -17
  30. package/models/policy-dto.ts +3 -26
  31. package/models/policy-object-dto.ts +2 -8
  32. package/models/policy-premium-dto.ts +2 -2
  33. package/models/policy-premium-item-dto.ts +2 -2
  34. package/models/policy-version-dto.ts +3 -3
  35. package/models/premium-formula-dto.ts +2 -2
  36. package/models/timeslice-dto.ts +1 -1
  37. package/package.json +1 -1
  38. package/dist/models/create-correction-invoices-response-class.d.ts +0 -25
  39. package/dist/models/create-correction-invoices-response-class.js +0 -15
  40. package/dist/models/create-custom-estimated-invoice-response-class.d.ts +0 -24
  41. package/dist/models/create-custom-estimated-invoice-response-class.js +0 -15
  42. package/dist/models/create-estimated-invoice-for-interval-response-class.d.ts +0 -25
  43. package/dist/models/create-estimated-invoice-for-interval-response-class.js +0 -15
  44. package/dist/models/create-estimated-invoice-response-class.d.ts +0 -31
  45. package/dist/models/create-estimated-invoice-response-class.js +0 -15
  46. package/dist/models/create-invoice-response-class.d.ts +0 -25
  47. package/dist/models/create-invoice-response-class.js +0 -15
  48. package/dist/models/create-invoice-status-request-dto.d.ts +0 -37
  49. package/dist/models/create-invoice-status-request-dto.js +0 -22
  50. package/dist/models/create-termination-invoice-request-dto.d.ts +0 -54
  51. package/dist/models/create-termination-invoice-request-dto.js +0 -15
  52. package/dist/models/get-invoice-response-class.d.ts +0 -25
  53. package/dist/models/get-invoice-response-class.js +0 -15
  54. package/dist/models/invoice-class.d.ts +0 -171
  55. package/dist/models/invoice-class.js +0 -32
  56. package/dist/models/invoice-item-class.d.ts +0 -141
  57. package/dist/models/invoice-item-class.js +0 -24
  58. package/dist/models/invoice-payment-class.d.ts +0 -102
  59. package/dist/models/invoice-payment-class.js +0 -15
  60. package/dist/models/invoice-payments-class.d.ts +0 -25
  61. package/dist/models/invoice-payments-class.js +0 -15
  62. package/dist/models/invoice-status-class.d.ts +0 -49
  63. package/dist/models/invoice-status-class.js +0 -22
  64. package/dist/models/list-invoices-response-class.d.ts +0 -31
  65. package/dist/models/list-invoices-response-class.js +0 -15
  66. package/dist/models/list-policies-billing-dates-response-class.d.ts +0 -31
  67. package/dist/models/list-policies-billing-dates-response-class.js +0 -15
  68. package/dist/models/omit-type-class.d.ts +0 -164
  69. package/dist/models/omit-type-class.js +0 -32
  70. package/dist/models/policy-billing-date-class.d.ts +0 -42
  71. package/dist/models/policy-billing-date-class.js +0 -15
  72. package/models/create-correction-invoices-response-class.ts +0 -31
  73. package/models/create-custom-estimated-invoice-response-class.ts +0 -30
  74. package/models/create-estimated-invoice-for-interval-response-class.ts +0 -31
  75. package/models/create-estimated-invoice-response-class.ts +0 -37
  76. package/models/create-invoice-response-class.ts +0 -31
  77. package/models/create-invoice-status-request-dto.ts +0 -46
  78. package/models/create-termination-invoice-request-dto.ts +0 -60
  79. package/models/get-invoice-response-class.ts +0 -31
  80. package/models/invoice-class.ts +0 -181
  81. package/models/invoice-item-class.ts +0 -150
  82. package/models/invoice-payment-class.ts +0 -108
  83. package/models/invoice-payments-class.ts +0 -31
  84. package/models/invoice-status-class.ts +0 -58
  85. package/models/list-invoices-response-class.ts +0 -37
  86. package/models/list-policies-billing-dates-response-class.ts +0 -37
  87. package/models/omit-type-class.ts +0 -174
  88. package/models/policy-billing-date-class.ts +0 -48
@@ -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,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
-
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
-
153
- export const OmitTypeClassTypeEnum = {
154
- Initial: 'initial',
155
- Recurring: 'recurring',
156
- Correction: 'correction',
157
- Estimated: 'estimated',
158
- Penalty: 'penalty',
159
- Other: 'other',
160
- Withdraw: 'withdraw',
161
- Final: 'final'
162
- } as const;
163
-
164
- export type OmitTypeClassTypeEnum = typeof OmitTypeClassTypeEnum[keyof typeof OmitTypeClassTypeEnum];
165
- export const OmitTypeClassStatusEnum = {
166
- Open: 'open',
167
- Paid: 'paid',
168
- PartiallyPaid: 'partially-paid',
169
- Refunded: 'refunded'
170
- } as const;
171
-
172
- export type OmitTypeClassStatusEnum = typeof OmitTypeClassStatusEnum[keyof typeof OmitTypeClassStatusEnum];
173
-
174
-
@@ -1,48 +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
-