@emilgroup/billing-sdk-node 1.17.0 → 1.17.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.openapi-generator/FILES +2 -1
  2. package/README.md +2 -2
  3. package/api/estimated-invoices-api.ts +111 -4
  4. package/api/invoices-api.ts +48 -154
  5. package/dist/api/estimated-invoices-api.d.ts +61 -4
  6. package/dist/api/estimated-invoices-api.js +97 -4
  7. package/dist/api/invoices-api.d.ts +32 -89
  8. package/dist/api/invoices-api.js +30 -123
  9. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
  10. package/dist/models/{create-invoice-payment-response-class.d.ts → create-estimated-invoice-for-interval-response-class.d.ts} +7 -7
  11. package/dist/models/create-estimated-invoice-for-interval-response-class.js +15 -0
  12. package/dist/models/create-invoice-payment-request-dto.d.ts +6 -0
  13. package/dist/models/create-invoice-request-dto.d.ts +1 -1
  14. package/dist/models/create-invoice-status-request-dto.d.ts +1 -0
  15. package/dist/models/create-invoice-status-request-dto.js +2 -1
  16. package/dist/models/index.d.ts +2 -1
  17. package/dist/models/index.js +2 -1
  18. package/dist/models/inline-response200.d.ts +6 -6
  19. package/dist/models/inline-response503.d.ts +6 -6
  20. package/dist/models/invoice-class.d.ts +1 -0
  21. package/dist/models/invoice-class.js +2 -1
  22. package/dist/models/invoice-payment-class.d.ts +7 -7
  23. package/dist/models/invoice-status-class.d.ts +1 -0
  24. package/dist/models/invoice-status-class.js +2 -1
  25. package/dist/models/omit-type-class.d.ts +8 -0
  26. package/dist/models/omit-type-class.js +2 -1
  27. package/dist/models/policy-dto.d.ts +1 -1
  28. package/dist/models/policy-object-dto.d.ts +12 -12
  29. package/dist/models/policy-version-dto.d.ts +6 -0
  30. package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
  31. package/models/{create-invoice-payment-response-class.ts → create-estimated-invoice-for-interval-response-class.ts} +7 -7
  32. package/models/create-invoice-payment-request-dto.ts +6 -0
  33. package/models/create-invoice-request-dto.ts +1 -1
  34. package/models/create-invoice-status-request-dto.ts +2 -1
  35. package/models/index.ts +2 -1
  36. package/models/inline-response200.ts +6 -6
  37. package/models/inline-response503.ts +6 -6
  38. package/models/invoice-class.ts +2 -1
  39. package/models/invoice-payment-class.ts +7 -7
  40. package/models/invoice-status-class.ts +2 -1
  41. package/models/omit-type-class.ts +9 -1
  42. package/models/policy-dto.ts +1 -1
  43. package/models/policy-object-dto.ts +12 -12
  44. package/models/policy-version-dto.ts +6 -0
  45. package/package.json +1 -1
  46. /package/dist/models/{create-invoice-payment-response-class.js → create-estimated-invoice-for-interval-request-dto.js} +0 -0
@@ -96,63 +96,6 @@ var FormData = require('form-data');
96
96
  var InvoicesApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
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
99
  /**
157
100
  * 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
101
  * @summary List invoices
@@ -211,16 +154,17 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
211
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
159
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
217
160
  * @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
161
  * @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
162
  * @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.
163
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
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
  }
@@ -279,16 +226,17 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
279
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
231
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
285
232
  * @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
233
  * @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
234
  * @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.
235
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
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
  }
@@ -353,29 +304,6 @@ exports.InvoicesApiAxiosParamCreator = InvoicesApiAxiosParamCreator;
353
304
  var InvoicesApiFp = function (configuration) {
354
305
  var localVarAxiosParamCreator = (0, exports.InvoicesApiAxiosParamCreator)(configuration);
355
306
  return {
356
- /**
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
307
  /**
380
308
  * 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
309
  * @summary List invoices
@@ -402,21 +330,22 @@ var InvoicesApiFp = function (configuration) {
402
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
335
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
408
336
  * @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
337
  * @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
338
  * @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.
339
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
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)];
@@ -428,21 +357,22 @@ var InvoicesApiFp = function (configuration) {
428
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
362
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
434
363
  * @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
364
  * @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
365
  * @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.
366
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
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)];
@@ -460,19 +390,6 @@ exports.InvoicesApiFp = InvoicesApiFp;
460
390
  var InvoicesApiFactory = function (configuration, basePath, axios) {
461
391
  var localVarFp = (0, exports.InvoicesApiFp)(configuration);
462
392
  return {
463
- /**
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
393
  /**
477
394
  * 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
395
  * @summary List invoices
@@ -489,33 +406,35 @@ var InvoicesApiFactory = function (configuration, basePath, axios) {
489
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
411
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
495
412
  * @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
413
  * @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
414
  * @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.
415
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
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
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
428
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
511
429
  * @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
430
  * @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
431
  * @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.
432
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
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
  };
@@ -531,18 +450,6 @@ var InvoicesApi = /** @class */ (function (_super) {
531
450
  function InvoicesApi() {
532
451
  return _super !== null && _super.apply(this, arguments) || this;
533
452
  }
534
- /**
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
453
  /**
547
454
  * 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
455
  * @summary List invoices
@@ -566,7 +473,7 @@ 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
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.
@@ -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));
@@ -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 {object}
34
+ * @memberof CreateEstimatedInvoiceForIntervalRequestDto
35
+ */
36
+ 'calculateProRata'?: object;
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
+ }
@@ -9,17 +9,17 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { OmitTypeClass } from './omit-type-class';
12
+ import { InvoiceClass } from './invoice-class';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface CreateInvoicePaymentResponseClass
16
+ * @interface CreateEstimatedInvoiceForIntervalResponseClass
17
17
  */
18
- export interface CreateInvoicePaymentResponseClass {
18
+ export interface CreateEstimatedInvoiceForIntervalResponseClass {
19
19
  /**
20
- * Invoice updated after payment.
21
- * @type {OmitTypeClass}
22
- * @memberof CreateInvoicePaymentResponseClass
20
+ * Estimated invoice response
21
+ * @type {InvoiceClass}
22
+ * @memberof CreateEstimatedInvoiceForIntervalResponseClass
23
23
  */
24
- 'invoice': OmitTypeClass;
24
+ 'invoice': InvoiceClass;
25
25
  }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL BillingService
6
+ * The EMIL BillingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -45,4 +45,10 @@ export interface CreateInvoicePaymentRequestDto {
45
45
  * @memberof CreateInvoicePaymentRequestDto
46
46
  */
47
47
  'paymentId': number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof CreateInvoicePaymentRequestDto
52
+ */
53
+ 'invoiceId': number;
48
54
  }
@@ -44,7 +44,7 @@ export interface CreateInvoiceRequestDto {
44
44
  * @type {string}
45
45
  * @memberof CreateInvoiceRequestDto
46
46
  */
47
- 'type': CreateInvoiceRequestDtoTypeEnum;
47
+ 'type'?: CreateInvoiceRequestDtoTypeEnum;
48
48
  /**
49
49
  * Metadata contains extra information that the object would need for specific cases.
50
50
  * @type {object}
@@ -32,5 +32,6 @@ export declare const CreateInvoiceStatusRequestDtoStatusEnum: {
32
32
  readonly Open: "open";
33
33
  readonly Paid: "paid";
34
34
  readonly PartiallyPaid: "partially-paid";
35
+ readonly Refunded: "refunded";
35
36
  };
36
37
  export type CreateInvoiceStatusRequestDtoStatusEnum = typeof CreateInvoiceStatusRequestDtoStatusEnum[keyof typeof CreateInvoiceStatusRequestDtoStatusEnum];
@@ -17,5 +17,6 @@ exports.CreateInvoiceStatusRequestDtoStatusEnum = void 0;
17
17
  exports.CreateInvoiceStatusRequestDtoStatusEnum = {
18
18
  Open: 'open',
19
19
  Paid: 'paid',
20
- PartiallyPaid: 'partially-paid'
20
+ PartiallyPaid: 'partially-paid',
21
+ Refunded: 'refunded'
21
22
  };
@@ -1,10 +1,11 @@
1
1
  export * from './create-correction-invoices-response-class';
2
2
  export * from './create-custom-estimated-invoice-request-dto';
3
3
  export * from './create-custom-estimated-invoice-response-class';
4
+ export * from './create-estimated-invoice-for-interval-request-dto';
5
+ export * from './create-estimated-invoice-for-interval-response-class';
4
6
  export * from './create-estimated-invoice-request-dto';
5
7
  export * from './create-estimated-invoice-response-class';
6
8
  export * from './create-invoice-payment-request-dto';
7
- export * from './create-invoice-payment-response-class';
8
9
  export * from './create-invoice-request-dto';
9
10
  export * from './create-invoice-response-class';
10
11
  export * from './create-invoice-status-request-dto';
@@ -17,10 +17,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create-correction-invoices-response-class"), exports);
18
18
  __exportStar(require("./create-custom-estimated-invoice-request-dto"), exports);
19
19
  __exportStar(require("./create-custom-estimated-invoice-response-class"), exports);
20
+ __exportStar(require("./create-estimated-invoice-for-interval-request-dto"), exports);
21
+ __exportStar(require("./create-estimated-invoice-for-interval-response-class"), exports);
20
22
  __exportStar(require("./create-estimated-invoice-request-dto"), exports);
21
23
  __exportStar(require("./create-estimated-invoice-response-class"), exports);
22
24
  __exportStar(require("./create-invoice-payment-request-dto"), exports);
23
- __exportStar(require("./create-invoice-payment-response-class"), exports);
24
25
  __exportStar(require("./create-invoice-request-dto"), exports);
25
26
  __exportStar(require("./create-invoice-response-class"), exports);
26
27
  __exportStar(require("./create-invoice-status-request-dto"), exports);
@@ -23,32 +23,32 @@ export interface InlineResponse200 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse200
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse200
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse200
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -23,32 +23,32 @@ export interface InlineResponse503 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse503
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse503
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse503
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -166,5 +166,6 @@ export declare const InvoiceClassStatusEnum: {
166
166
  readonly Open: "open";
167
167
  readonly Paid: "paid";
168
168
  readonly PartiallyPaid: "partially-paid";
169
+ readonly Refunded: "refunded";
169
170
  };
170
171
  export type InvoiceClassStatusEnum = typeof InvoiceClassStatusEnum[keyof typeof InvoiceClassStatusEnum];
@@ -27,5 +27,6 @@ exports.InvoiceClassTypeEnum = {
27
27
  exports.InvoiceClassStatusEnum = {
28
28
  Open: 'open',
29
29
  Paid: 'paid',
30
- PartiallyPaid: 'partially-paid'
30
+ PartiallyPaid: 'partially-paid',
31
+ Refunded: 'refunded'
31
32
  };
@@ -50,7 +50,7 @@ export interface InvoicePaymentClass {
50
50
  * @type {string}
51
51
  * @memberof InvoicePaymentClass
52
52
  */
53
- 'comment': string;
53
+ 'commment': string;
54
54
  /**
55
55
  * User who added payment.
56
56
  * @type {string}
@@ -88,15 +88,15 @@ export interface InvoicePaymentClass {
88
88
  */
89
89
  'newInvoiceStatus': string;
90
90
  /**
91
- * Time at which the object was created.
92
- * @type {string}
91
+ * Id of the payment linked to the invoice.
92
+ * @type {number}
93
93
  * @memberof InvoicePaymentClass
94
94
  */
95
- 'createdAt': string;
95
+ 'paymentId': number;
96
96
  /**
97
- * Invoice payment id.
98
- * @type {number}
97
+ * Time at which the object was created.
98
+ * @type {string}
99
99
  * @memberof InvoicePaymentClass
100
100
  */
101
- 'paymentId': number;
101
+ 'createdAt': string;
102
102
  }
@@ -44,5 +44,6 @@ export declare const InvoiceStatusClassStatusEnum: {
44
44
  readonly Open: "open";
45
45
  readonly Paid: "paid";
46
46
  readonly PartiallyPaid: "partially-paid";
47
+ readonly Refunded: "refunded";
47
48
  };
48
49
  export type InvoiceStatusClassStatusEnum = typeof InvoiceStatusClassStatusEnum[keyof typeof InvoiceStatusClassStatusEnum];
@@ -17,5 +17,6 @@ exports.InvoiceStatusClassStatusEnum = void 0;
17
17
  exports.InvoiceStatusClassStatusEnum = {
18
18
  Open: 'open',
19
19
  Paid: 'paid',
20
- PartiallyPaid: 'partially-paid'
20
+ PartiallyPaid: 'partially-paid',
21
+ Refunded: 'refunded'
21
22
  };