@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
@@ -97,65 +97,8 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * This will create an invoice payment.
101
- * @summary Create the invoice payment
102
- * @param {number} id
103
- * @param {CreateInvoicePaymentRequestDto} createInvoicePaymentRequestDto
104
- * @param {string} [authorization] Bearer Token
105
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
106
- * @param {*} [options] Override http request option.
107
- * @throws {RequiredError}
108
- */
109
- createInvoicePayment: function (id, createInvoicePaymentRequestDto, authorization, idempotencyKey, options) {
110
- if (options === void 0) { options = {}; }
111
- return __awaiter(_this, void 0, void 0, function () {
112
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
113
- return __generator(this, function (_a) {
114
- switch (_a.label) {
115
- case 0:
116
- // verify required parameter 'id' is not null or undefined
117
- (0, common_1.assertParamExists)('createInvoicePayment', 'id', id);
118
- // verify required parameter 'createInvoicePaymentRequestDto' is not null or undefined
119
- (0, common_1.assertParamExists)('createInvoicePayment', 'createInvoicePaymentRequestDto', createInvoicePaymentRequestDto);
120
- localVarPath = "/billingservice/v1/invoices/{id}/payments"
121
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
122
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
123
- if (configuration) {
124
- baseOptions = configuration.baseOptions;
125
- baseAccessToken = configuration.accessToken;
126
- }
127
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
128
- localVarHeaderParameter = {};
129
- localVarQueryParameter = {};
130
- // authentication bearer required
131
- // http bearer authentication required
132
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
133
- case 1:
134
- // authentication bearer required
135
- // http bearer authentication required
136
- _a.sent();
137
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
138
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
139
- }
140
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
141
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
142
- }
143
- localVarHeaderParameter['Content-Type'] = 'application/json';
144
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
145
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
147
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createInvoicePaymentRequestDto, localVarRequestOptions, configuration);
148
- return [2 /*return*/, {
149
- url: (0, common_1.toPathString)(localVarUrlObj),
150
- options: localVarRequestOptions,
151
- }];
152
- }
153
- });
154
- });
155
- },
156
- /**
157
- * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
158
- * @summary List invoices
100
+ * Gets an invoice.
101
+ * @summary Retrieve the invoice
159
102
  * @param {string} code
160
103
  * @param {string} expand
161
104
  * @param {string} [authorization] Bearer Token
@@ -208,19 +151,20 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
208
151
  });
209
152
  },
210
153
  /**
211
- * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
154
+ * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
212
155
  * @summary List invoices
213
156
  * @param {string} [authorization] Bearer Token
214
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
157
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
215
158
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
216
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
217
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
218
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
219
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
159
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
160
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
161
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id</i>
162
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments.<i>
163
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
220
164
  * @param {*} [options] Override http request option.
221
165
  * @throws {RequiredError}
222
166
  */
223
- listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
167
+ listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
224
168
  if (options === void 0) { options = {}; }
225
169
  return __awaiter(_this, void 0, void 0, function () {
226
170
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -261,6 +205,9 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
261
205
  if (expand !== undefined) {
262
206
  localVarQueryParameter['expand'] = expand;
263
207
  }
208
+ if (filters !== undefined) {
209
+ localVarQueryParameter['filters'] = filters;
210
+ }
264
211
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
265
212
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
266
213
  }
@@ -276,19 +223,20 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
276
223
  });
277
224
  },
278
225
  /**
279
- * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
226
+ * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
280
227
  * @summary List policies billing dates
281
228
  * @param {string} [authorization] Bearer Token
282
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
229
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
283
230
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
284
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
285
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
286
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
287
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
231
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
232
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
233
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
234
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
235
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
288
236
  * @param {*} [options] Override http request option.
289
237
  * @throws {RequiredError}
290
238
  */
291
- listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
239
+ listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
292
240
  if (options === void 0) { options = {}; }
293
241
  return __awaiter(_this, void 0, void 0, function () {
294
242
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -329,6 +277,9 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
329
277
  if (expand !== undefined) {
330
278
  localVarQueryParameter['expand'] = expand;
331
279
  }
280
+ if (filters !== undefined) {
281
+ localVarQueryParameter['filters'] = filters;
282
+ }
332
283
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
333
284
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
334
285
  }
@@ -354,31 +305,8 @@ var InvoicesApiFp = function (configuration) {
354
305
  var localVarAxiosParamCreator = (0, exports.InvoicesApiAxiosParamCreator)(configuration);
355
306
  return {
356
307
  /**
357
- * This will create an invoice payment.
358
- * @summary Create the invoice payment
359
- * @param {number} id
360
- * @param {CreateInvoicePaymentRequestDto} createInvoicePaymentRequestDto
361
- * @param {string} [authorization] Bearer Token
362
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
363
- * @param {*} [options] Override http request option.
364
- * @throws {RequiredError}
365
- */
366
- createInvoicePayment: function (id, createInvoicePaymentRequestDto, authorization, idempotencyKey, options) {
367
- return __awaiter(this, void 0, void 0, function () {
368
- var localVarAxiosArgs;
369
- return __generator(this, function (_a) {
370
- switch (_a.label) {
371
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createInvoicePayment(id, createInvoicePaymentRequestDto, authorization, idempotencyKey, options)];
372
- case 1:
373
- localVarAxiosArgs = _a.sent();
374
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
375
- }
376
- });
377
- });
378
- },
379
- /**
380
- * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
381
- * @summary List invoices
308
+ * Gets an invoice.
309
+ * @summary Retrieve the invoice
382
310
  * @param {string} code
383
311
  * @param {string} expand
384
312
  * @param {string} [authorization] Bearer Token
@@ -399,24 +327,25 @@ var InvoicesApiFp = function (configuration) {
399
327
  });
400
328
  },
401
329
  /**
402
- * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
330
+ * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
403
331
  * @summary List invoices
404
332
  * @param {string} [authorization] Bearer Token
405
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
333
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
406
334
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
407
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
408
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
409
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
410
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
335
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
336
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
337
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id</i>
338
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments.<i>
339
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
411
340
  * @param {*} [options] Override http request option.
412
341
  * @throws {RequiredError}
413
342
  */
414
- listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
343
+ listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
415
344
  return __awaiter(this, void 0, void 0, function () {
416
345
  var localVarAxiosArgs;
417
346
  return __generator(this, function (_a) {
418
347
  switch (_a.label) {
419
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options)];
348
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
420
349
  case 1:
421
350
  localVarAxiosArgs = _a.sent();
422
351
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -425,24 +354,25 @@ var InvoicesApiFp = function (configuration) {
425
354
  });
426
355
  },
427
356
  /**
428
- * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
357
+ * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
429
358
  * @summary List policies billing dates
430
359
  * @param {string} [authorization] Bearer Token
431
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
360
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
432
361
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
433
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
434
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
435
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
436
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
362
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
363
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
364
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
365
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
366
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
437
367
  * @param {*} [options] Override http request option.
438
368
  * @throws {RequiredError}
439
369
  */
440
- listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
370
+ listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
441
371
  return __awaiter(this, void 0, void 0, function () {
442
372
  var localVarAxiosArgs;
443
373
  return __generator(this, function (_a) {
444
374
  switch (_a.label) {
445
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options)];
375
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
446
376
  case 1:
447
377
  localVarAxiosArgs = _a.sent();
448
378
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -461,21 +391,8 @@ var InvoicesApiFactory = function (configuration, basePath, axios) {
461
391
  var localVarFp = (0, exports.InvoicesApiFp)(configuration);
462
392
  return {
463
393
  /**
464
- * This will create an invoice payment.
465
- * @summary Create the invoice payment
466
- * @param {number} id
467
- * @param {CreateInvoicePaymentRequestDto} createInvoicePaymentRequestDto
468
- * @param {string} [authorization] Bearer Token
469
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
470
- * @param {*} [options] Override http request option.
471
- * @throws {RequiredError}
472
- */
473
- createInvoicePayment: function (id, createInvoicePaymentRequestDto, authorization, idempotencyKey, options) {
474
- return localVarFp.createInvoicePayment(id, createInvoicePaymentRequestDto, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
475
- },
476
- /**
477
- * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
478
- * @summary List invoices
394
+ * Gets an invoice.
395
+ * @summary Retrieve the invoice
479
396
  * @param {string} code
480
397
  * @param {string} expand
481
398
  * @param {string} [authorization] Bearer Token
@@ -486,36 +403,38 @@ var InvoicesApiFactory = function (configuration, basePath, axios) {
486
403
  return localVarFp.getInvoice(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
487
404
  },
488
405
  /**
489
- * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
406
+ * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
490
407
  * @summary List invoices
491
408
  * @param {string} [authorization] Bearer Token
492
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
409
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
493
410
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
494
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
495
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
496
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
497
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
411
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
412
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
413
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id</i>
414
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments.<i>
415
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
498
416
  * @param {*} [options] Override http request option.
499
417
  * @throws {RequiredError}
500
418
  */
501
- listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
502
- return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
419
+ listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
420
+ return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
503
421
  },
504
422
  /**
505
- * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
423
+ * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
506
424
  * @summary List policies billing dates
507
425
  * @param {string} [authorization] Bearer Token
508
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
426
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
509
427
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
510
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
511
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
512
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
513
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
428
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
429
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
430
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
431
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
432
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
514
433
  * @param {*} [options] Override http request option.
515
434
  * @throws {RequiredError}
516
435
  */
517
- listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
518
- return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
436
+ listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
437
+ return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
519
438
  },
520
439
  };
521
440
  };
@@ -532,20 +451,8 @@ var InvoicesApi = /** @class */ (function (_super) {
532
451
  return _super !== null && _super.apply(this, arguments) || this;
533
452
  }
534
453
  /**
535
- * This will create an invoice payment.
536
- * @summary Create the invoice payment
537
- * @param {InvoicesApiCreateInvoicePaymentRequest} requestParameters Request parameters.
538
- * @param {*} [options] Override http request option.
539
- * @throws {RequiredError}
540
- * @memberof InvoicesApi
541
- */
542
- InvoicesApi.prototype.createInvoicePayment = function (requestParameters, options) {
543
- var _this = this;
544
- return (0, exports.InvoicesApiFp)(this.configuration).createInvoicePayment(requestParameters.id, requestParameters.createInvoicePaymentRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
545
- };
546
- /**
547
- * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
548
- * @summary List invoices
454
+ * Gets an invoice.
455
+ * @summary Retrieve the invoice
549
456
  * @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
550
457
  * @param {*} [options] Override http request option.
551
458
  * @throws {RequiredError}
@@ -556,7 +463,7 @@ var InvoicesApi = /** @class */ (function (_super) {
556
463
  return (0, exports.InvoicesApiFp)(this.configuration).getInvoice(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
557
464
  };
558
465
  /**
559
- * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
466
+ * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
560
467
  * @summary List invoices
561
468
  * @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
562
469
  * @param {*} [options] Override http request option.
@@ -566,10 +473,10 @@ var InvoicesApi = /** @class */ (function (_super) {
566
473
  InvoicesApi.prototype.listInvoices = function (requestParameters, options) {
567
474
  var _this = this;
568
475
  if (requestParameters === void 0) { requestParameters = {}; }
569
- return (0, exports.InvoicesApiFp)(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
476
+ return (0, exports.InvoicesApiFp)(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
570
477
  };
571
478
  /**
572
- * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
479
+ * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
573
480
  * @summary List policies billing dates
574
481
  * @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
575
482
  * @param {*} [options] Override http request option.
@@ -579,7 +486,7 @@ var InvoicesApi = /** @class */ (function (_super) {
579
486
  InvoicesApi.prototype.listPoliciesBillingDates = function (requestParameters, options) {
580
487
  var _this = this;
581
488
  if (requestParameters === void 0) { requestParameters = {}; }
582
- return (0, exports.InvoicesApiFp)(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
489
+ return (0, exports.InvoicesApiFp)(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
583
490
  };
584
491
  return InvoicesApi;
585
492
  }(base_1.BaseAPI));
@@ -13,7 +13,6 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateInvoiceRequestDto } from '../models';
16
- import { CreateInvoiceResponseClass } from '../models';
17
16
  /**
18
17
  * RecurringInvoicesApi - axios parameter creator
19
18
  * @export
@@ -44,7 +43,7 @@ export declare const RecurringInvoicesApiFp: (configuration?: Configuration) =>
44
43
  * @param {*} [options] Override http request option.
45
44
  * @throws {RequiredError}
46
45
  */
47
- createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>>;
46
+ createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
48
47
  };
49
48
  /**
50
49
  * RecurringInvoicesApi - factory interface
@@ -60,7 +59,7 @@ export declare const RecurringInvoicesApiFactory: (configuration?: Configuration
60
59
  * @param {*} [options] Override http request option.
61
60
  * @throws {RequiredError}
62
61
  */
63
- createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass>;
62
+ createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<void>;
64
63
  };
65
64
  /**
66
65
  * Request parameters for createRecurringInvoice operation in RecurringInvoicesApi.
@@ -102,5 +101,5 @@ export declare class RecurringInvoicesApi extends BaseAPI {
102
101
  * @throws {RequiredError}
103
102
  * @memberof RecurringInvoicesApi
104
103
  */
105
- createRecurringInvoice(requestParameters: RecurringInvoicesApiCreateRecurringInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any>>;
104
+ createRecurringInvoice(requestParameters: RecurringInvoicesApiCreateRecurringInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
106
105
  }
package/dist/api.d.ts CHANGED
@@ -11,6 +11,7 @@
11
11
  */
12
12
  export * from './api/correction-invoices-api';
13
13
  export * from './api/default-api';
14
+ export * from './api/draft-invoice-api';
14
15
  export * from './api/estimated-invoices-api';
15
16
  export * from './api/initial-invoices-api';
16
17
  export * from './api/invoices-api';
package/dist/api.js CHANGED
@@ -29,6 +29,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/correction-invoices-api"), exports);
31
31
  __exportStar(require("./api/default-api"), exports);
32
+ __exportStar(require("./api/draft-invoice-api"), exports);
32
33
  __exportStar(require("./api/estimated-invoices-api"), exports);
33
34
  __exportStar(require("./api/initial-invoices-api"), exports);
34
35
  __exportStar(require("./api/invoices-api"), exports);
@@ -0,0 +1,89 @@
1
+ /**
2
+ * EMIL BillingService
3
+ * The EMIL BillingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateDraftInvoiceRequestDto
16
+ */
17
+ export interface CreateDraftInvoiceRequestDto {
18
+ /**
19
+ * Invoice type.
20
+ * @type {string}
21
+ * @memberof CreateDraftInvoiceRequestDto
22
+ */
23
+ 'type': CreateDraftInvoiceRequestDtoTypeEnum;
24
+ /**
25
+ * Unique number for the invoice. If not set, the system will automatically assign a value.
26
+ * @type {string}
27
+ * @memberof CreateDraftInvoiceRequestDto
28
+ */
29
+ 'invoiceNumber'?: string;
30
+ /**
31
+ * Unique identifier of the policy that this object belongs to.
32
+ * @type {string}
33
+ * @memberof CreateDraftInvoiceRequestDto
34
+ */
35
+ 'policyCode': string;
36
+ /**
37
+ * Account number.
38
+ * @type {string}
39
+ * @memberof CreateDraftInvoiceRequestDto
40
+ */
41
+ 'accountNumber': string;
42
+ /**
43
+ * Metadata contains extra information that the object would need for specific cases.
44
+ * @type {object}
45
+ * @memberof CreateDraftInvoiceRequestDto
46
+ */
47
+ 'metadata': object;
48
+ /**
49
+ * This is the date from which the invoice interval starts.
50
+ * @type {string}
51
+ * @memberof CreateDraftInvoiceRequestDto
52
+ */
53
+ 'billingIntervalFrom'?: string;
54
+ /**
55
+ * This is the date that the invoice interval ends.
56
+ * @type {string}
57
+ * @memberof CreateDraftInvoiceRequestDto
58
+ */
59
+ 'billingIntervalTo'?: string;
60
+ /**
61
+ * Invoice due date.
62
+ * @type {string}
63
+ * @memberof CreateDraftInvoiceRequestDto
64
+ */
65
+ 'dueDate'?: string;
66
+ /**
67
+ * Policy number.
68
+ * @type {string}
69
+ * @memberof CreateDraftInvoiceRequestDto
70
+ */
71
+ 'policyNumber'?: string;
72
+ /**
73
+ * A boolean flag indicating whether the invoice should be calculated on a pro rata basis. When true, the invoice amount is adjusted proportionally based on the duration of service.
74
+ * @type {object}
75
+ * @memberof CreateDraftInvoiceRequestDto
76
+ */
77
+ 'calculateProRata'?: object;
78
+ }
79
+ export declare const CreateDraftInvoiceRequestDtoTypeEnum: {
80
+ readonly Initial: "initial";
81
+ readonly Recurring: "recurring";
82
+ readonly Correction: "correction";
83
+ readonly Estimated: "estimated";
84
+ readonly Penalty: "penalty";
85
+ readonly Other: "other";
86
+ readonly Withdraw: "withdraw";
87
+ readonly Final: "final";
88
+ };
89
+ export type CreateDraftInvoiceRequestDtoTypeEnum = typeof CreateDraftInvoiceRequestDtoTypeEnum[keyof typeof CreateDraftInvoiceRequestDtoTypeEnum];
@@ -13,8 +13,8 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.InvoiceClassStatusEnum = exports.InvoiceClassTypeEnum = void 0;
17
- exports.InvoiceClassTypeEnum = {
16
+ exports.CreateDraftInvoiceRequestDtoTypeEnum = void 0;
17
+ exports.CreateDraftInvoiceRequestDtoTypeEnum = {
18
18
  Initial: 'initial',
19
19
  Recurring: 'recurring',
20
20
  Correction: 'correction',
@@ -24,8 +24,3 @@ exports.InvoiceClassTypeEnum = {
24
24
  Withdraw: 'withdraw',
25
25
  Final: 'final'
26
26
  };
27
- exports.InvoiceClassStatusEnum = {
28
- Open: 'open',
29
- Paid: 'paid',
30
- PartiallyPaid: 'partially-paid'
31
- };
@@ -0,0 +1,49 @@
1
+ /**
2
+ * EMIL BillingService
3
+ * The EMIL BillingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { PolicyDto } from './policy-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateEstimatedInvoiceForIntervalRequestDto
17
+ */
18
+ export interface CreateEstimatedInvoiceForIntervalRequestDto {
19
+ /**
20
+ * The policy object that the invoice is attached to. This contains all relevant policy details associated with this invoice.
21
+ * @type {PolicyDto}
22
+ * @memberof CreateEstimatedInvoiceForIntervalRequestDto
23
+ */
24
+ 'policy': PolicyDto;
25
+ /**
26
+ * Metadata contains extra information that the object would need for specific cases.
27
+ * @type {object}
28
+ * @memberof CreateEstimatedInvoiceForIntervalRequestDto
29
+ */
30
+ 'metadata'?: object;
31
+ /**
32
+ * A boolean flag indicating whether the invoice should be calculated on a pro rata basis. When true, the invoice amount is adjusted proportionally based on the duration of service.
33
+ * @type {boolean}
34
+ * @memberof CreateEstimatedInvoiceForIntervalRequestDto
35
+ */
36
+ 'calculateProRata'?: boolean;
37
+ /**
38
+ * The start date of the billing interval. This is the date from which the invoice period begins.
39
+ * @type {string}
40
+ * @memberof CreateEstimatedInvoiceForIntervalRequestDto
41
+ */
42
+ 'billingIntervalFrom': string;
43
+ /**
44
+ * The end date of the billing interval. This is the date until which the invoice period runs. Together with billingIntervalFrom, it defines the time period for which the invoice is issued.
45
+ * @type {string}
46
+ * @memberof CreateEstimatedInvoiceForIntervalRequestDto
47
+ */
48
+ 'billingIntervalTo': string;
49
+ }