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