@emilgroup/billing-sdk 1.9.0 → 1.14.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 (64) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/api/draft-invoice-api.ts +342 -0
  4. package/api/estimated-invoices-api.ts +111 -4
  5. package/api/invoices-api.ts +108 -80
  6. package/api.ts +2 -0
  7. package/base.ts +1 -0
  8. package/dist/api/draft-invoice-api.d.ts +185 -0
  9. package/dist/api/draft-invoice-api.js +392 -0
  10. package/dist/api/estimated-invoices-api.d.ts +61 -4
  11. package/dist/api/estimated-invoices-api.js +97 -4
  12. package/dist/api/invoices-api.d.ts +92 -74
  13. package/dist/api/invoices-api.js +70 -58
  14. package/dist/api.d.ts +1 -0
  15. package/dist/api.js +1 -0
  16. package/dist/base.js +1 -0
  17. package/dist/models/create-draft-invoice-request-dto.d.ts +89 -0
  18. package/dist/models/create-draft-invoice-request-dto.js +26 -0
  19. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
  20. package/dist/models/create-estimated-invoice-for-interval-request-dto.js +15 -0
  21. package/dist/models/create-estimated-invoice-for-interval-response-class.d.ts +25 -0
  22. package/dist/models/create-estimated-invoice-for-interval-response-class.js +15 -0
  23. package/dist/models/create-estimated-invoice-request-dto.d.ts +7 -1
  24. package/dist/models/create-invoice-payment-request-dto.d.ts +1 -1
  25. package/dist/models/create-invoice-request-dto.d.ts +3 -3
  26. package/dist/models/create-invoice-status-request-dto.d.ts +1 -0
  27. package/dist/models/create-invoice-status-request-dto.js +2 -1
  28. package/dist/models/index.d.ts +3 -0
  29. package/dist/models/index.js +3 -0
  30. package/dist/models/inline-response200.d.ts +6 -6
  31. package/dist/models/inline-response503.d.ts +6 -6
  32. package/dist/models/invoice-class.d.ts +1 -0
  33. package/dist/models/invoice-class.js +2 -1
  34. package/dist/models/invoice-item-class.d.ts +12 -0
  35. package/dist/models/invoice-payment-class.d.ts +7 -1
  36. package/dist/models/invoice-status-class.d.ts +1 -0
  37. package/dist/models/invoice-status-class.js +2 -1
  38. package/dist/models/omit-type-class.d.ts +1 -0
  39. package/dist/models/omit-type-class.js +2 -1
  40. package/dist/models/policy-dto.d.ts +9 -2
  41. package/dist/models/policy-dto.js +3 -2
  42. package/dist/models/policy-object-dto.d.ts +24 -0
  43. package/dist/models/policy-version-dto.d.ts +9 -3
  44. package/dist/models/timeslice-dto.d.ts +1 -1
  45. package/models/create-draft-invoice-request-dto.ts +98 -0
  46. package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
  47. package/models/create-estimated-invoice-for-interval-response-class.ts +31 -0
  48. package/models/create-estimated-invoice-request-dto.ts +7 -1
  49. package/models/create-invoice-payment-request-dto.ts +1 -1
  50. package/models/create-invoice-request-dto.ts +3 -3
  51. package/models/create-invoice-status-request-dto.ts +2 -1
  52. package/models/index.ts +3 -0
  53. package/models/inline-response200.ts +6 -6
  54. package/models/inline-response503.ts +6 -6
  55. package/models/invoice-class.ts +2 -1
  56. package/models/invoice-item-class.ts +12 -0
  57. package/models/invoice-payment-class.ts +7 -1
  58. package/models/invoice-status-class.ts +2 -1
  59. package/models/omit-type-class.ts +2 -1
  60. package/models/policy-dto.ts +10 -3
  61. package/models/policy-object-dto.ts +24 -0
  62. package/models/policy-version-dto.ts +9 -3
  63. package/models/timeslice-dto.ts +1 -1
  64. package/package.json +1 -2
@@ -33,8 +33,8 @@ import { ListPoliciesBillingDatesResponseClass } from '../models';
33
33
  export const InvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
34
34
  return {
35
35
  /**
36
- * 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.
37
- * @summary List invoices
36
+ * Gets an invoice.
37
+ * @summary Retrieve the invoice
38
38
  * @param {string} code
39
39
  * @param {string} expand
40
40
  * @param {string} [authorization] Bearer Token
@@ -85,19 +85,20 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
85
85
  };
86
86
  },
87
87
  /**
88
- * 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.
88
+ * 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.
89
89
  * @summary List invoices
90
90
  * @param {string} [authorization] Bearer Token
91
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
91
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
92
92
  * @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.
93
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
94
- * @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.
95
- * @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.
96
- * @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.
93
+ * @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>
94
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
95
+ * @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>
96
+ * @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>
97
+ * @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>
97
98
  * @param {*} [options] Override http request option.
98
99
  * @throws {RequiredError}
99
100
  */
100
- listInvoices: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ listInvoices: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
102
  const localVarPath = `/billingservice/v1/invoices`;
102
103
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
104
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -140,6 +141,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
140
141
  localVarQueryParameter['expand'] = expand;
141
142
  }
142
143
 
144
+ if (filters !== undefined) {
145
+ localVarQueryParameter['filters'] = filters;
146
+ }
147
+
143
148
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
144
149
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
145
150
  }
@@ -156,19 +161,20 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
156
161
  };
157
162
  },
158
163
  /**
159
- * 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.
164
+ * 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.
160
165
  * @summary List policies billing dates
161
166
  * @param {string} [authorization] Bearer Token
162
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
167
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
163
168
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
164
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
165
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
166
- * @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.
167
- * @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.
169
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
170
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
171
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
172
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
173
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
168
174
  * @param {*} [options] Override http request option.
169
175
  * @throws {RequiredError}
170
176
  */
171
- listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
177
+ listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
172
178
  const localVarPath = `/billingservice/v1/invoices/policies-billing-dates`;
173
179
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
174
180
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -211,6 +217,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
211
217
  localVarQueryParameter['expand'] = expand;
212
218
  }
213
219
 
220
+ if (filters !== undefined) {
221
+ localVarQueryParameter['filters'] = filters;
222
+ }
223
+
214
224
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
215
225
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
216
226
  }
@@ -237,8 +247,8 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
237
247
  const localVarAxiosParamCreator = InvoicesApiAxiosParamCreator(configuration)
238
248
  return {
239
249
  /**
240
- * 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.
241
- * @summary List invoices
250
+ * Gets an invoice.
251
+ * @summary Retrieve the invoice
242
252
  * @param {string} code
243
253
  * @param {string} expand
244
254
  * @param {string} [authorization] Bearer Token
@@ -250,37 +260,39 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
250
260
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
251
261
  },
252
262
  /**
253
- * 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.
263
+ * 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.
254
264
  * @summary List invoices
255
265
  * @param {string} [authorization] Bearer Token
256
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
266
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
257
267
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
258
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
259
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
260
- * @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.
261
- * @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.
268
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
269
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
270
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id&lt;/i&gt;
271
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: statuses, payments.&lt;i&gt;
272
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
262
273
  * @param {*} [options] Override http request option.
263
274
  * @throws {RequiredError}
264
275
  */
265
- async listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>> {
266
- const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options);
276
+ async listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>> {
277
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
267
278
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
268
279
  },
269
280
  /**
270
- * 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.
281
+ * 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.
271
282
  * @summary List policies billing dates
272
283
  * @param {string} [authorization] Bearer Token
273
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
284
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
274
285
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
275
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
276
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
277
- * @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.
278
- * @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.
286
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
287
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
288
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
289
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
290
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
279
291
  * @param {*} [options] Override http request option.
280
292
  * @throws {RequiredError}
281
293
  */
282
- async listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesBillingDatesResponseClass>> {
283
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options);
294
+ async listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesBillingDatesResponseClass>> {
295
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
284
296
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
285
297
  },
286
298
  }
@@ -294,8 +306,8 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
294
306
  const localVarFp = InvoicesApiFp(configuration)
295
307
  return {
296
308
  /**
297
- * 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.
298
- * @summary List invoices
309
+ * Gets an invoice.
310
+ * @summary Retrieve the invoice
299
311
  * @param {string} code
300
312
  * @param {string} expand
301
313
  * @param {string} [authorization] Bearer Token
@@ -306,36 +318,38 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
306
318
  return localVarFp.getInvoice(code, expand, authorization, options).then((request) => request(axios, basePath));
307
319
  },
308
320
  /**
309
- * 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.
321
+ * 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.
310
322
  * @summary List invoices
311
323
  * @param {string} [authorization] Bearer Token
312
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
324
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
313
325
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
314
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
315
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
316
- * @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.
317
- * @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.
326
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
327
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
328
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id&lt;/i&gt;
329
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: statuses, payments.&lt;i&gt;
330
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
318
331
  * @param {*} [options] Override http request option.
319
332
  * @throws {RequiredError}
320
333
  */
321
- listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListInvoicesResponseClass> {
322
- return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
334
+ listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListInvoicesResponseClass> {
335
+ return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
323
336
  },
324
337
  /**
325
- * 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.
338
+ * 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.
326
339
  * @summary List policies billing dates
327
340
  * @param {string} [authorization] Bearer Token
328
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
341
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
329
342
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
330
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
331
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
332
- * @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.
333
- * @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.
343
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
344
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
345
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
346
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
347
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
334
348
  * @param {*} [options] Override http request option.
335
349
  * @throws {RequiredError}
336
350
  */
337
- listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPoliciesBillingDatesResponseClass> {
338
- return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
351
+ listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPoliciesBillingDatesResponseClass> {
352
+ return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
339
353
  },
340
354
  };
341
355
  };
@@ -382,7 +396,7 @@ export interface InvoicesApiListInvoicesRequest {
382
396
  readonly authorization?: string
383
397
 
384
398
  /**
385
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
399
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
386
400
  * @type {any}
387
401
  * @memberof InvoicesApiListInvoices
388
402
  */
@@ -396,32 +410,39 @@ export interface InvoicesApiListInvoicesRequest {
396
410
  readonly pageToken?: any
397
411
 
398
412
  /**
399
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
400
- * @type {any}
413
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
414
+ * @type {string}
401
415
  * @memberof InvoicesApiListInvoices
402
416
  */
403
- readonly filter?: any
417
+ readonly filter?: string
404
418
 
405
419
  /**
406
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
420
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
407
421
  * @type {any}
408
422
  * @memberof InvoicesApiListInvoices
409
423
  */
410
424
  readonly search?: any
411
425
 
412
426
  /**
413
- * 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.
414
- * @type {any}
427
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id&lt;/i&gt;
428
+ * @type {string}
415
429
  * @memberof InvoicesApiListInvoices
416
430
  */
417
- readonly order?: any
431
+ readonly order?: string
418
432
 
419
433
  /**
420
- * 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.
421
- * @type {any}
434
+ * 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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: statuses, payments.&lt;i&gt;
435
+ * @type {string}
436
+ * @memberof InvoicesApiListInvoices
437
+ */
438
+ readonly expand?: string
439
+
440
+ /**
441
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
442
+ * @type {string}
422
443
  * @memberof InvoicesApiListInvoices
423
444
  */
424
- readonly expand?: any
445
+ readonly filters?: string
425
446
  }
426
447
 
427
448
  /**
@@ -438,7 +459,7 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
438
459
  readonly authorization?: string
439
460
 
440
461
  /**
441
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
462
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
442
463
  * @type {any}
443
464
  * @memberof InvoicesApiListPoliciesBillingDates
444
465
  */
@@ -452,32 +473,39 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
452
473
  readonly pageToken?: any
453
474
 
454
475
  /**
455
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
456
- * @type {any}
476
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
477
+ * @type {string}
457
478
  * @memberof InvoicesApiListPoliciesBillingDates
458
479
  */
459
- readonly filter?: any
480
+ readonly filter?: string
460
481
 
461
482
  /**
462
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
483
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
463
484
  * @type {any}
464
485
  * @memberof InvoicesApiListPoliciesBillingDates
465
486
  */
466
487
  readonly search?: any
467
488
 
468
489
  /**
469
- * 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.
470
- * @type {any}
490
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
491
+ * @type {string}
471
492
  * @memberof InvoicesApiListPoliciesBillingDates
472
493
  */
473
- readonly order?: any
494
+ readonly order?: string
474
495
 
475
496
  /**
476
- * 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.
477
- * @type {any}
497
+ * 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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
498
+ * @type {string}
478
499
  * @memberof InvoicesApiListPoliciesBillingDates
479
500
  */
480
- readonly expand?: any
501
+ readonly expand?: string
502
+
503
+ /**
504
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
505
+ * @type {string}
506
+ * @memberof InvoicesApiListPoliciesBillingDates
507
+ */
508
+ readonly filters?: string
481
509
  }
482
510
 
483
511
  /**
@@ -488,8 +516,8 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
488
516
  */
489
517
  export class InvoicesApi extends BaseAPI {
490
518
  /**
491
- * 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.
492
- * @summary List invoices
519
+ * Gets an invoice.
520
+ * @summary Retrieve the invoice
493
521
  * @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
494
522
  * @param {*} [options] Override http request option.
495
523
  * @throws {RequiredError}
@@ -500,7 +528,7 @@ export class InvoicesApi extends BaseAPI {
500
528
  }
501
529
 
502
530
  /**
503
- * 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.
531
+ * 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.
504
532
  * @summary List invoices
505
533
  * @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
506
534
  * @param {*} [options] Override http request option.
@@ -508,11 +536,11 @@ export class InvoicesApi extends BaseAPI {
508
536
  * @memberof InvoicesApi
509
537
  */
510
538
  public listInvoices(requestParameters: InvoicesApiListInvoicesRequest = {}, options?: AxiosRequestConfig) {
511
- return InvoicesApiFp(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
539
+ return InvoicesApiFp(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
512
540
  }
513
541
 
514
542
  /**
515
- * 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.
543
+ * 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.
516
544
  * @summary List policies billing dates
517
545
  * @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
518
546
  * @param {*} [options] Override http request option.
@@ -520,6 +548,6 @@ export class InvoicesApi extends BaseAPI {
520
548
  * @memberof InvoicesApi
521
549
  */
522
550
  public listPoliciesBillingDates(requestParameters: InvoicesApiListPoliciesBillingDatesRequest = {}, options?: AxiosRequestConfig) {
523
- return InvoicesApiFp(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
551
+ return InvoicesApiFp(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
524
552
  }
525
553
  }
package/api.ts CHANGED
@@ -22,6 +22,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
23
  import { CorrectionInvoicesApi } from './api';
24
24
  import { DefaultApi } from './api';
25
+ import { DraftInvoiceApi } from './api';
25
26
  import { EstimatedInvoicesApi } from './api';
26
27
  import { InitialInvoicesApi } from './api';
27
28
  import { InvoicesApi } from './api';
@@ -30,6 +31,7 @@ import { RecurringInvoicesApi } from './api';
30
31
 
31
32
  export * from './api/correction-invoices-api';
32
33
  export * from './api/default-api';
34
+ export * from './api/draft-invoice-api';
33
35
  export * from './api/estimated-invoices-api';
34
36
  export * from './api/initial-invoices-api';
35
37
  export * from './api/invoices-api';
package/base.ts CHANGED
@@ -87,6 +87,7 @@ export class BaseAPI {
87
87
  if (configuration) {
88
88
  this.configuration = configuration;
89
89
  this.basePath = configuration.basePath || this.basePath;
90
+ this.configuration.accessToken = this.tokenData.accessToken ? `Bearer ${this.tokenData.accessToken}` : '';
90
91
  } else {
91
92
  const { accessToken, username } = this.tokenData;
92
93
 
@@ -0,0 +1,185 @@
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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreateDraftInvoiceRequestDto } from '../models';
16
+ /**
17
+ * DraftInvoiceApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const DraftInvoiceApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ *
23
+ * @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
24
+ * @param {string} [authorization] Bearer Token
25
+ * @param {*} [options] Override http request option.
26
+ * @throws {RequiredError}
27
+ */
28
+ createDraftInvoice: (createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29
+ /**
30
+ *
31
+ * @param {string} [authorization] Bearer Token
32
+ * @param {*} [options] Override http request option.
33
+ * @throws {RequiredError}
34
+ */
35
+ deleteAllDraftInvoices: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
+ /**
37
+ *
38
+ * @param {object} body
39
+ * @param {string} [authorization] Bearer Token
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ deleteDraftInvoice: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
+ };
45
+ /**
46
+ * DraftInvoiceApi - functional programming interface
47
+ * @export
48
+ */
49
+ export declare const DraftInvoiceApiFp: (configuration?: Configuration) => {
50
+ /**
51
+ *
52
+ * @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
53
+ * @param {string} [authorization] Bearer Token
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ createDraftInvoice(createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
58
+ /**
59
+ *
60
+ * @param {string} [authorization] Bearer Token
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ */
64
+ deleteAllDraftInvoices(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
65
+ /**
66
+ *
67
+ * @param {object} body
68
+ * @param {string} [authorization] Bearer Token
69
+ * @param {*} [options] Override http request option.
70
+ * @throws {RequiredError}
71
+ */
72
+ deleteDraftInvoice(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
73
+ };
74
+ /**
75
+ * DraftInvoiceApi - factory interface
76
+ * @export
77
+ */
78
+ export declare const DraftInvoiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
79
+ /**
80
+ *
81
+ * @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
82
+ * @param {string} [authorization] Bearer Token
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ createDraftInvoice(createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
87
+ /**
88
+ *
89
+ * @param {string} [authorization] Bearer Token
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ deleteAllDraftInvoices(authorization?: string, options?: any): AxiosPromise<void>;
94
+ /**
95
+ *
96
+ * @param {object} body
97
+ * @param {string} [authorization] Bearer Token
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ deleteDraftInvoice(body: object, authorization?: string, options?: any): AxiosPromise<void>;
102
+ };
103
+ /**
104
+ * Request parameters for createDraftInvoice operation in DraftInvoiceApi.
105
+ * @export
106
+ * @interface DraftInvoiceApiCreateDraftInvoiceRequest
107
+ */
108
+ export interface DraftInvoiceApiCreateDraftInvoiceRequest {
109
+ /**
110
+ *
111
+ * @type {CreateDraftInvoiceRequestDto}
112
+ * @memberof DraftInvoiceApiCreateDraftInvoice
113
+ */
114
+ readonly createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto;
115
+ /**
116
+ * Bearer Token
117
+ * @type {string}
118
+ * @memberof DraftInvoiceApiCreateDraftInvoice
119
+ */
120
+ readonly authorization?: string;
121
+ }
122
+ /**
123
+ * Request parameters for deleteAllDraftInvoices operation in DraftInvoiceApi.
124
+ * @export
125
+ * @interface DraftInvoiceApiDeleteAllDraftInvoicesRequest
126
+ */
127
+ export interface DraftInvoiceApiDeleteAllDraftInvoicesRequest {
128
+ /**
129
+ * Bearer Token
130
+ * @type {string}
131
+ * @memberof DraftInvoiceApiDeleteAllDraftInvoices
132
+ */
133
+ readonly authorization?: string;
134
+ }
135
+ /**
136
+ * Request parameters for deleteDraftInvoice operation in DraftInvoiceApi.
137
+ * @export
138
+ * @interface DraftInvoiceApiDeleteDraftInvoiceRequest
139
+ */
140
+ export interface DraftInvoiceApiDeleteDraftInvoiceRequest {
141
+ /**
142
+ *
143
+ * @type {object}
144
+ * @memberof DraftInvoiceApiDeleteDraftInvoice
145
+ */
146
+ readonly body: object;
147
+ /**
148
+ * Bearer Token
149
+ * @type {string}
150
+ * @memberof DraftInvoiceApiDeleteDraftInvoice
151
+ */
152
+ readonly authorization?: string;
153
+ }
154
+ /**
155
+ * DraftInvoiceApi - object-oriented interface
156
+ * @export
157
+ * @class DraftInvoiceApi
158
+ * @extends {BaseAPI}
159
+ */
160
+ export declare class DraftInvoiceApi extends BaseAPI {
161
+ /**
162
+ *
163
+ * @param {DraftInvoiceApiCreateDraftInvoiceRequest} requestParameters Request parameters.
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ * @memberof DraftInvoiceApi
167
+ */
168
+ createDraftInvoice(requestParameters: DraftInvoiceApiCreateDraftInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
169
+ /**
170
+ *
171
+ * @param {DraftInvoiceApiDeleteAllDraftInvoicesRequest} requestParameters Request parameters.
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ * @memberof DraftInvoiceApi
175
+ */
176
+ deleteAllDraftInvoices(requestParameters?: DraftInvoiceApiDeleteAllDraftInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
177
+ /**
178
+ *
179
+ * @param {DraftInvoiceApiDeleteDraftInvoiceRequest} requestParameters Request parameters.
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ * @memberof DraftInvoiceApi
183
+ */
184
+ deleteDraftInvoice(requestParameters: DraftInvoiceApiDeleteDraftInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
185
+ }