@emilgroup/billing-sdk-node 1.18.0 → 1.19.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 +31 -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 +171 -0
  35. package/dist/models/invoice-class.js +32 -0
  36. package/dist/models/invoice-item-class.d.ts +141 -0
  37. package/dist/models/invoice-item-class.js +24 -0
  38. package/dist/models/invoice-payment-class.d.ts +102 -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 +49 -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 +164 -0
  49. package/dist/models/omit-type-class.js +32 -0
  50. package/dist/models/policy-billing-date-class.d.ts +42 -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 +37 -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 +181 -0
  73. package/models/invoice-item-class.ts +150 -0
  74. package/models/invoice-payment-class.ts +108 -0
  75. package/models/invoice-payments-class.ts +31 -0
  76. package/models/invoice-status-class.ts +58 -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 +174 -0
  80. package/models/policy-billing-date-class.ts +48 -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,174 @@
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
+
@@ -0,0 +1,48 @@
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
+
@@ -68,7 +68,7 @@ export interface PolicyDto {
68
68
  * @type {string}
69
69
  * @memberof PolicyDto
70
70
  */
71
- 'status': string;
71
+ 'status': PolicyDtoStatusEnum;
72
72
  /**
73
73
  * Policy holder.
74
74
  * @type {string}
@@ -107,9 +107,32 @@ export interface PolicyDto {
107
107
  'productSlug': string;
108
108
  /**
109
109
  * Linked partners.
110
- * @type {Array<string>}
110
+ * @type {Array<object>}
111
111
  * @memberof PolicyDto
112
112
  */
113
- 'partnerLinks': Array<string>;
113
+ 'partnerLinks': Array<object>;
114
+ /**
115
+ *
116
+ * @type {string}
117
+ * @memberof PolicyDto
118
+ */
119
+ 'policyStartDate': string;
120
+ /**
121
+ *
122
+ * @type {string}
123
+ * @memberof PolicyDto
124
+ */
125
+ 'ern': string;
114
126
  }
115
127
 
128
+ export const PolicyDtoStatusEnum = {
129
+ Active: 'ACTIVE',
130
+ Withdrawn: 'WITHDRAWN',
131
+ Terminated: 'TERMINATED',
132
+ Suspended: 'SUSPENDED',
133
+ Pending: 'PENDING'
134
+ } as const;
135
+
136
+ export type PolicyDtoStatusEnum = typeof PolicyDtoStatusEnum[keyof typeof PolicyDtoStatusEnum];
137
+
138
+
@@ -61,12 +61,18 @@ export interface PolicyObjectDto {
61
61
  * @type {string}
62
62
  * @memberof PolicyObjectDto
63
63
  */
64
- 'createdAt': string;
64
+ 'createdAt'?: string;
65
65
  /**
66
66
  * Time at which the object was updated.
67
67
  * @type {string}
68
68
  * @memberof PolicyObjectDto
69
69
  */
70
- 'updatedAt': string;
70
+ 'updatedAt'?: string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof PolicyObjectDto
75
+ */
76
+ 'code': string;
71
77
  }
72
78
 
@@ -32,13 +32,13 @@ export interface PolicyPremiumDto {
32
32
  * @type {string}
33
33
  * @memberof PolicyPremiumDto
34
34
  */
35
- 'createdAt': string;
35
+ 'createdAt'?: string;
36
36
  /**
37
37
  * Time at which the object was updated.
38
38
  * @type {string}
39
39
  * @memberof PolicyPremiumDto
40
40
  */
41
- 'updatedAt': string;
41
+ 'updatedAt'?: string;
42
42
  /**
43
43
  * Premium Items.
44
44
  * @type {Array<PolicyPremiumItemDto>}
@@ -44,7 +44,7 @@ export interface PolicyPremiumItemDto {
44
44
  * @type {string}
45
45
  * @memberof PolicyPremiumItemDto
46
46
  */
47
- 'updatedAt': string;
47
+ 'updatedAt'?: string;
48
48
  /**
49
49
  * Item premium formula entity.
50
50
  * @type {PremiumFormulaDto}
@@ -56,6 +56,6 @@ export interface PolicyPremiumItemDto {
56
56
  * @type {boolean}
57
57
  * @memberof PolicyPremiumItemDto
58
58
  */
59
- 'isOverride': boolean;
59
+ 'isOverride'?: boolean;
60
60
  }
61
61
 
@@ -38,19 +38,19 @@ export interface PolicyVersionDto {
38
38
  * @type {object}
39
39
  * @memberof PolicyVersionDto
40
40
  */
41
- 'metadata': object;
41
+ 'metadata'?: object;
42
42
  /**
43
43
  * Time at which the object was created.
44
44
  * @type {string}
45
45
  * @memberof PolicyVersionDto
46
46
  */
47
- 'createdAt': string;
47
+ 'createdAt'?: string;
48
48
  /**
49
49
  * Time at which the object was updated.
50
50
  * @type {string}
51
51
  * @memberof PolicyVersionDto
52
52
  */
53
- 'updatedAt': string;
53
+ 'updatedAt'?: string;
54
54
  /**
55
55
  * Policy timeline.
56
56
  * @type {Array<TimesliceDto>}
@@ -67,12 +67,12 @@ export interface PremiumFormulaDto {
67
67
  * @type {string}
68
68
  * @memberof PremiumFormulaDto
69
69
  */
70
- 'createdAt': string;
70
+ 'createdAt'?: string;
71
71
  /**
72
72
  * Time at which the object was updated.
73
73
  * @type {string}
74
74
  * @memberof PremiumFormulaDto
75
75
  */
76
- 'updatedAt': string;
76
+ 'updatedAt'?: string;
77
77
  }
78
78
 
@@ -45,7 +45,7 @@ export interface TimesliceDto {
45
45
  * @type {string}
46
46
  * @memberof TimesliceDto
47
47
  */
48
- 'to': string;
48
+ 'to'?: string;
49
49
  /**
50
50
  * Time at which the object was created.
51
51
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk-node",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [