@emilgroup/billing-sdk 1.8.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/.openapi-generator/FILES +3 -16
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +2 -4
  4. package/api/draft-invoice-api.ts +342 -0
  5. package/api/estimated-invoices-api.ts +112 -11
  6. package/api/initial-invoices-api.ts +2 -4
  7. package/api/invoices-api.ts +110 -88
  8. package/api/recurring-invoices-api.ts +2 -4
  9. package/api.ts +2 -0
  10. package/base.ts +1 -0
  11. package/dist/api/correction-invoices-api.d.ts +105 -0
  12. package/dist/api/correction-invoices-api.js +230 -0
  13. package/dist/api/default-api.d.ts +66 -0
  14. package/dist/api/default-api.js +196 -0
  15. package/dist/api/draft-invoice-api.d.ts +185 -0
  16. package/dist/api/draft-invoice-api.js +392 -0
  17. package/dist/api/estimated-invoices-api.d.ts +208 -0
  18. package/dist/api/estimated-invoices-api.js +410 -0
  19. package/dist/api/initial-invoices-api.d.ts +105 -0
  20. package/dist/api/initial-invoices-api.js +230 -0
  21. package/dist/api/invoices-api.d.ts +322 -0
  22. package/dist/api/invoices-api.js +489 -0
  23. package/dist/api/recurring-invoices-api.d.ts +105 -0
  24. package/dist/api/recurring-invoices-api.js +230 -0
  25. package/dist/api.d.ts +18 -0
  26. package/dist/api.js +36 -0
  27. package/dist/base.d.ts +74 -0
  28. package/dist/base.js +299 -0
  29. package/dist/common.d.ts +91 -0
  30. package/dist/common.js +276 -0
  31. package/dist/configuration.d.ts +83 -0
  32. package/dist/configuration.js +44 -0
  33. package/dist/index.d.ts +15 -0
  34. package/dist/index.js +36 -0
  35. package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +35 -0
  36. package/{models/create-custom-estimated-invoice-response-class.ts → dist/models/create-custom-estimated-invoice-request-dto.js} +7 -17
  37. package/dist/models/create-draft-invoice-request-dto.d.ts +89 -0
  38. package/dist/models/create-draft-invoice-request-dto.js +26 -0
  39. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
  40. package/{models/get-invoice-response-class.ts → dist/models/create-estimated-invoice-for-interval-request-dto.js} +2 -18
  41. package/dist/models/create-estimated-invoice-request-dto.d.ts +31 -0
  42. package/{models/create-invoice-response-class.ts → dist/models/create-estimated-invoice-request-dto.js} +2 -18
  43. package/dist/models/create-invoice-payment-request-dto.d.ts +48 -0
  44. package/{models/invoice-payments-class.ts → dist/models/create-invoice-payment-request-dto.js} +2 -18
  45. package/dist/models/create-invoice-request-dto.d.ts +83 -0
  46. package/dist/models/create-invoice-request-dto.js +26 -0
  47. package/dist/models/index.d.ts +17 -0
  48. package/dist/models/index.js +33 -0
  49. package/dist/models/inline-response200.d.ts +54 -0
  50. package/dist/models/inline-response200.js +15 -0
  51. package/dist/models/inline-response503.d.ts +54 -0
  52. package/dist/models/inline-response503.js +15 -0
  53. package/dist/models/list-request-dto.d.ts +54 -0
  54. package/dist/models/list-request-dto.js +15 -0
  55. package/dist/models/policy-dto.d.ts +109 -0
  56. package/dist/models/policy-dto.js +15 -0
  57. package/dist/models/policy-object-dto.d.ts +66 -0
  58. package/dist/models/policy-object-dto.js +15 -0
  59. package/dist/models/policy-premium-dto.d.ts +49 -0
  60. package/dist/models/policy-premium-dto.js +15 -0
  61. package/dist/models/policy-premium-item-dto.d.ts +55 -0
  62. package/dist/models/policy-premium-item-dto.js +15 -0
  63. package/dist/models/policy-version-dto.d.ts +61 -0
  64. package/dist/models/policy-version-dto.js +15 -0
  65. package/dist/models/premium-formula-dto.d.ts +72 -0
  66. package/dist/models/premium-formula-dto.js +15 -0
  67. package/dist/models/revert-invoice-request-dto.d.ts +24 -0
  68. package/dist/models/revert-invoice-request-dto.js +15 -0
  69. package/dist/models/timeslice-dto.d.ts +62 -0
  70. package/dist/models/timeslice-dto.js +15 -0
  71. package/models/create-draft-invoice-request-dto.ts +98 -0
  72. package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
  73. package/models/create-invoice-payment-request-dto.ts +2 -8
  74. package/models/create-invoice-request-dto.ts +11 -5
  75. package/models/index.ts +2 -16
  76. package/models/inline-response200.ts +6 -6
  77. package/models/inline-response503.ts +6 -6
  78. package/models/policy-dto.ts +5 -21
  79. package/models/policy-object-dto.ts +20 -2
  80. package/models/policy-premium-dto.ts +2 -2
  81. package/models/policy-premium-item-dto.ts +2 -2
  82. package/models/policy-version-dto.ts +6 -0
  83. package/models/premium-formula-dto.ts +2 -2
  84. package/package.json +1 -1
  85. package/models/create-correction-invoices-response-class.ts +0 -31
  86. package/models/create-estimated-invoice-response-class.ts +0 -37
  87. package/models/create-invoice-status-request-dto.ts +0 -45
  88. package/models/create-termination-invoice-request-dto.ts +0 -54
  89. package/models/invoice-class.ts +0 -174
  90. package/models/invoice-item-class.ts +0 -138
  91. package/models/invoice-payment-class.ts +0 -102
  92. package/models/invoice-status-class.ts +0 -57
  93. package/models/list-invoices-response-class.ts +0 -37
  94. package/models/list-policies-billing-dates-response-class.ts +0 -37
  95. package/models/omit-type-class.ts +0 -167
  96. package/models/policy-billing-date-class.ts +0 -48
@@ -20,12 +20,6 @@ import { Configuration } from '../configuration';
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { GetInvoiceResponseClass } from '../models';
25
- // @ts-ignore
26
- import { ListInvoicesResponseClass } from '../models';
27
- // @ts-ignore
28
- import { ListPoliciesBillingDatesResponseClass } from '../models';
29
23
  /**
30
24
  * InvoicesApi - axios parameter creator
31
25
  * @export
@@ -33,8 +27,8 @@ import { ListPoliciesBillingDatesResponseClass } from '../models';
33
27
  export const InvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
34
28
  return {
35
29
  /**
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
30
+ * Gets an invoice.
31
+ * @summary Retrieve the invoice
38
32
  * @param {string} code
39
33
  * @param {string} expand
40
34
  * @param {string} [authorization] Bearer Token
@@ -85,19 +79,20 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
85
79
  };
86
80
  },
87
81
  /**
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.
82
+ * 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
83
  * @summary List invoices
90
84
  * @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.
85
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
92
86
  * @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.
87
+ * @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>
88
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
89
+ * @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>
90
+ * @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>
91
+ * @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
92
  * @param {*} [options] Override http request option.
98
93
  * @throws {RequiredError}
99
94
  */
100
- listInvoices: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
95
+ listInvoices: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
96
  const localVarPath = `/billingservice/v1/invoices`;
102
97
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
98
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -140,6 +135,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
140
135
  localVarQueryParameter['expand'] = expand;
141
136
  }
142
137
 
138
+ if (filters !== undefined) {
139
+ localVarQueryParameter['filters'] = filters;
140
+ }
141
+
143
142
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
144
143
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
145
144
  }
@@ -156,19 +155,20 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
156
155
  };
157
156
  },
158
157
  /**
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.
158
+ * 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
159
  * @summary List policies billing dates
161
160
  * @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.
161
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
163
162
  * @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.
163
+ * @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;
164
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
165
+ * @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;
166
+ * @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;
167
+ * @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
168
  * @param {*} [options] Override http request option.
169
169
  * @throws {RequiredError}
170
170
  */
171
- listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
171
+ listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
172
172
  const localVarPath = `/billingservice/v1/invoices/policies-billing-dates`;
173
173
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
174
174
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -211,6 +211,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
211
211
  localVarQueryParameter['expand'] = expand;
212
212
  }
213
213
 
214
+ if (filters !== undefined) {
215
+ localVarQueryParameter['filters'] = filters;
216
+ }
217
+
214
218
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
215
219
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
216
220
  }
@@ -237,50 +241,52 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
237
241
  const localVarAxiosParamCreator = InvoicesApiAxiosParamCreator(configuration)
238
242
  return {
239
243
  /**
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
244
+ * Gets an invoice.
245
+ * @summary Retrieve the invoice
242
246
  * @param {string} code
243
247
  * @param {string} expand
244
248
  * @param {string} [authorization] Bearer Token
245
249
  * @param {*} [options] Override http request option.
246
250
  * @throws {RequiredError}
247
251
  */
248
- async getInvoice(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceResponseClass>> {
252
+ async getInvoice(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
249
253
  const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoice(code, expand, authorization, options);
250
254
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
251
255
  },
252
256
  /**
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.
257
+ * 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
258
  * @summary List invoices
255
259
  * @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.
260
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
257
261
  * @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.
262
+ * @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;
263
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
264
+ * @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;
265
+ * @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;
266
+ * @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
267
  * @param {*} [options] Override http request option.
263
268
  * @throws {RequiredError}
264
269
  */
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);
270
+ 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<void>> {
271
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
267
272
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
268
273
  },
269
274
  /**
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.
275
+ * 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
276
  * @summary List policies billing dates
272
277
  * @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.
278
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
274
279
  * @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.
280
+ * @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;
281
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
282
+ * @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;
283
+ * @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;
284
+ * @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
285
  * @param {*} [options] Override http request option.
280
286
  * @throws {RequiredError}
281
287
  */
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);
288
+ 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<void>> {
289
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
284
290
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
285
291
  },
286
292
  }
@@ -294,48 +300,50 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
294
300
  const localVarFp = InvoicesApiFp(configuration)
295
301
  return {
296
302
  /**
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
303
+ * Gets an invoice.
304
+ * @summary Retrieve the invoice
299
305
  * @param {string} code
300
306
  * @param {string} expand
301
307
  * @param {string} [authorization] Bearer Token
302
308
  * @param {*} [options] Override http request option.
303
309
  * @throws {RequiredError}
304
310
  */
305
- getInvoice(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetInvoiceResponseClass> {
311
+ getInvoice(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
306
312
  return localVarFp.getInvoice(code, expand, authorization, options).then((request) => request(axios, basePath));
307
313
  },
308
314
  /**
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.
315
+ * 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
316
  * @summary List invoices
311
317
  * @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.
318
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
313
319
  * @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.
320
+ * @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;
321
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
322
+ * @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;
323
+ * @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;
324
+ * @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
325
  * @param {*} [options] Override http request option.
319
326
  * @throws {RequiredError}
320
327
  */
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));
328
+ listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
329
+ return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
323
330
  },
324
331
  /**
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.
332
+ * 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
333
  * @summary List policies billing dates
327
334
  * @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.
335
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
329
336
  * @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.
337
+ * @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;
338
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
339
+ * @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;
340
+ * @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;
341
+ * @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
342
  * @param {*} [options] Override http request option.
335
343
  * @throws {RequiredError}
336
344
  */
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));
345
+ listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
346
+ return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
339
347
  },
340
348
  };
341
349
  };
@@ -382,7 +390,7 @@ export interface InvoicesApiListInvoicesRequest {
382
390
  readonly authorization?: string
383
391
 
384
392
  /**
385
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
393
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
386
394
  * @type {any}
387
395
  * @memberof InvoicesApiListInvoices
388
396
  */
@@ -396,32 +404,39 @@ export interface InvoicesApiListInvoicesRequest {
396
404
  readonly pageToken?: any
397
405
 
398
406
  /**
399
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
400
- * @type {any}
407
+ * 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;
408
+ * @type {string}
401
409
  * @memberof InvoicesApiListInvoices
402
410
  */
403
- readonly filter?: any
411
+ readonly filter?: string
404
412
 
405
413
  /**
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.
414
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
407
415
  * @type {any}
408
416
  * @memberof InvoicesApiListInvoices
409
417
  */
410
418
  readonly search?: any
411
419
 
412
420
  /**
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}
421
+ * 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;
422
+ * @type {string}
415
423
  * @memberof InvoicesApiListInvoices
416
424
  */
417
- readonly order?: any
425
+ readonly order?: string
418
426
 
419
427
  /**
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}
428
+ * 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;
429
+ * @type {string}
422
430
  * @memberof InvoicesApiListInvoices
423
431
  */
424
- readonly expand?: any
432
+ readonly expand?: string
433
+
434
+ /**
435
+ * 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;
436
+ * @type {string}
437
+ * @memberof InvoicesApiListInvoices
438
+ */
439
+ readonly filters?: string
425
440
  }
426
441
 
427
442
  /**
@@ -438,7 +453,7 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
438
453
  readonly authorization?: string
439
454
 
440
455
  /**
441
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
456
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
442
457
  * @type {any}
443
458
  * @memberof InvoicesApiListPoliciesBillingDates
444
459
  */
@@ -452,32 +467,39 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
452
467
  readonly pageToken?: any
453
468
 
454
469
  /**
455
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
456
- * @type {any}
470
+ * 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;
471
+ * @type {string}
457
472
  * @memberof InvoicesApiListPoliciesBillingDates
458
473
  */
459
- readonly filter?: any
474
+ readonly filter?: string
460
475
 
461
476
  /**
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.
477
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
463
478
  * @type {any}
464
479
  * @memberof InvoicesApiListPoliciesBillingDates
465
480
  */
466
481
  readonly search?: any
467
482
 
468
483
  /**
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}
484
+ * 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;
485
+ * @type {string}
471
486
  * @memberof InvoicesApiListPoliciesBillingDates
472
487
  */
473
- readonly order?: any
488
+ readonly order?: string
474
489
 
475
490
  /**
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}
491
+ * 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;
492
+ * @type {string}
493
+ * @memberof InvoicesApiListPoliciesBillingDates
494
+ */
495
+ readonly expand?: string
496
+
497
+ /**
498
+ * 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;
499
+ * @type {string}
478
500
  * @memberof InvoicesApiListPoliciesBillingDates
479
501
  */
480
- readonly expand?: any
502
+ readonly filters?: string
481
503
  }
482
504
 
483
505
  /**
@@ -488,8 +510,8 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
488
510
  */
489
511
  export class InvoicesApi extends BaseAPI {
490
512
  /**
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
513
+ * Gets an invoice.
514
+ * @summary Retrieve the invoice
493
515
  * @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
494
516
  * @param {*} [options] Override http request option.
495
517
  * @throws {RequiredError}
@@ -500,7 +522,7 @@ export class InvoicesApi extends BaseAPI {
500
522
  }
501
523
 
502
524
  /**
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.
525
+ * 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
526
  * @summary List invoices
505
527
  * @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
506
528
  * @param {*} [options] Override http request option.
@@ -508,11 +530,11 @@ export class InvoicesApi extends BaseAPI {
508
530
  * @memberof InvoicesApi
509
531
  */
510
532
  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));
533
+ 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
534
  }
513
535
 
514
536
  /**
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.
537
+ * 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
538
  * @summary List policies billing dates
517
539
  * @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
518
540
  * @param {*} [options] Override http request option.
@@ -520,6 +542,6 @@ export class InvoicesApi extends BaseAPI {
520
542
  * @memberof InvoicesApi
521
543
  */
522
544
  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));
545
+ 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
546
  }
525
547
  }
@@ -22,8 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
24
  import { CreateInvoiceRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateInvoiceResponseClass } from '../models';
27
25
  /**
28
26
  * RecurringInvoicesApi - axios parameter creator
29
27
  * @export
@@ -101,7 +99,7 @@ export const RecurringInvoicesApiFp = function(configuration?: Configuration) {
101
99
  * @param {*} [options] Override http request option.
102
100
  * @throws {RequiredError}
103
101
  */
104
- async createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>> {
102
+ async createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
105
103
  const localVarAxiosArgs = await localVarAxiosParamCreator.createRecurringInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options);
106
104
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
107
105
  },
@@ -124,7 +122,7 @@ export const RecurringInvoicesApiFactory = function (configuration?: Configurati
124
122
  * @param {*} [options] Override http request option.
125
123
  * @throws {RequiredError}
126
124
  */
127
- createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass> {
125
+ createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<void> {
128
126
  return localVarFp.createRecurringInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
129
127
  },
130
128
  };
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,105 @@
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 { CreateInvoiceRequestDto } from '../models';
16
+ /**
17
+ * CorrectionInvoicesApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const CorrectionInvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
23
+ * @summary Create the correction invoice
24
+ * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
25
+ * @param {string} [authorization] Bearer Token
26
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ createCorrectionInvoice: (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ };
32
+ /**
33
+ * CorrectionInvoicesApi - functional programming interface
34
+ * @export
35
+ */
36
+ export declare const CorrectionInvoicesApiFp: (configuration?: Configuration) => {
37
+ /**
38
+ * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
39
+ * @summary Create the correction invoice
40
+ * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
41
+ * @param {string} [authorization] Bearer Token
42
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
47
+ };
48
+ /**
49
+ * CorrectionInvoicesApi - factory interface
50
+ * @export
51
+ */
52
+ export declare const CorrectionInvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
53
+ /**
54
+ * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
55
+ * @summary Create the correction invoice
56
+ * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
57
+ * @param {string} [authorization] Bearer Token
58
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<void>;
63
+ };
64
+ /**
65
+ * Request parameters for createCorrectionInvoice operation in CorrectionInvoicesApi.
66
+ * @export
67
+ * @interface CorrectionInvoicesApiCreateCorrectionInvoiceRequest
68
+ */
69
+ export interface CorrectionInvoicesApiCreateCorrectionInvoiceRequest {
70
+ /**
71
+ *
72
+ * @type {CreateInvoiceRequestDto}
73
+ * @memberof CorrectionInvoicesApiCreateCorrectionInvoice
74
+ */
75
+ readonly createInvoiceRequestDto: CreateInvoiceRequestDto;
76
+ /**
77
+ * Bearer Token
78
+ * @type {string}
79
+ * @memberof CorrectionInvoicesApiCreateCorrectionInvoice
80
+ */
81
+ readonly authorization?: string;
82
+ /**
83
+ * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
84
+ * @type {string}
85
+ * @memberof CorrectionInvoicesApiCreateCorrectionInvoice
86
+ */
87
+ readonly idempotencyKey?: string;
88
+ }
89
+ /**
90
+ * CorrectionInvoicesApi - object-oriented interface
91
+ * @export
92
+ * @class CorrectionInvoicesApi
93
+ * @extends {BaseAPI}
94
+ */
95
+ export declare class CorrectionInvoicesApi extends BaseAPI {
96
+ /**
97
+ * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
98
+ * @summary Create the correction invoice
99
+ * @param {CorrectionInvoicesApiCreateCorrectionInvoiceRequest} requestParameters Request parameters.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ * @memberof CorrectionInvoicesApi
103
+ */
104
+ createCorrectionInvoice(requestParameters: CorrectionInvoicesApiCreateCorrectionInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
105
+ }