@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
@@ -5,6 +5,7 @@ README.md
5
5
  api.ts
6
6
  api/correction-invoices-api.ts
7
7
  api/default-api.ts
8
+ api/draft-invoice-api.ts
8
9
  api/estimated-invoices-api.ts
9
10
  api/initial-invoices-api.ts
10
11
  api/invoices-api.ts
@@ -17,6 +18,9 @@ index.ts
17
18
  models/create-correction-invoices-response-class.ts
18
19
  models/create-custom-estimated-invoice-request-dto.ts
19
20
  models/create-custom-estimated-invoice-response-class.ts
21
+ models/create-draft-invoice-request-dto.ts
22
+ models/create-estimated-invoice-for-interval-request-dto.ts
23
+ models/create-estimated-invoice-for-interval-response-class.ts
20
24
  models/create-estimated-invoice-request-dto.ts
21
25
  models/create-estimated-invoice-response-class.ts
22
26
  models/create-invoice-payment-request-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/billing-sdk@1.9.0 --save
20
+ npm install @emilgroup/billing-sdk@1.14.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk@1.9.0
24
+ yarn add @emilgroup/billing-sdk@1.14.1
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
@@ -0,0 +1,342 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL BillingService
5
+ * The EMIL BillingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateDraftInvoiceRequestDto } from '../models';
25
+ /**
26
+ * DraftInvoiceApi - axios parameter creator
27
+ * @export
28
+ */
29
+ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Configuration) {
30
+ return {
31
+ /**
32
+ *
33
+ * @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
34
+ * @param {string} [authorization] Bearer Token
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ createDraftInvoice: async (createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39
+ // verify required parameter 'createDraftInvoiceRequestDto' is not null or undefined
40
+ assertParamExists('createDraftInvoice', 'createDraftInvoiceRequestDto', createDraftInvoiceRequestDto)
41
+ const localVarPath = `/billingservice/v1/draft-invoices`;
42
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44
+ let baseOptions;
45
+ let baseAccessToken;
46
+ if (configuration) {
47
+ baseOptions = configuration.baseOptions;
48
+ baseAccessToken = configuration.accessToken;
49
+ }
50
+
51
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
52
+ const localVarHeaderParameter = {} as any;
53
+ const localVarQueryParameter = {} as any;
54
+
55
+ // authentication bearer required
56
+ // http bearer authentication required
57
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
58
+
59
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
60
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
61
+ }
62
+
63
+
64
+
65
+ localVarHeaderParameter['Content-Type'] = 'application/json';
66
+
67
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
68
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
69
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
70
+ localVarRequestOptions.data = serializeDataIfNeeded(createDraftInvoiceRequestDto, localVarRequestOptions, configuration)
71
+
72
+ return {
73
+ url: toPathString(localVarUrlObj),
74
+ options: localVarRequestOptions,
75
+ };
76
+ },
77
+ /**
78
+ *
79
+ * @param {string} [authorization] Bearer Token
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ deleteAllDraftInvoices: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
84
+ const localVarPath = `/billingservice/v1/draft-invoices`;
85
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
86
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
87
+ let baseOptions;
88
+ let baseAccessToken;
89
+ if (configuration) {
90
+ baseOptions = configuration.baseOptions;
91
+ baseAccessToken = configuration.accessToken;
92
+ }
93
+
94
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
95
+ const localVarHeaderParameter = {} as any;
96
+ const localVarQueryParameter = {} as any;
97
+
98
+ // authentication bearer required
99
+ // http bearer authentication required
100
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
101
+
102
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
103
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
104
+ }
105
+
106
+
107
+
108
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
109
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
110
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
111
+
112
+ return {
113
+ url: toPathString(localVarUrlObj),
114
+ options: localVarRequestOptions,
115
+ };
116
+ },
117
+ /**
118
+ *
119
+ * @param {object} body
120
+ * @param {string} [authorization] Bearer Token
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ deleteDraftInvoice: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
125
+ // verify required parameter 'body' is not null or undefined
126
+ assertParamExists('deleteDraftInvoice', 'body', body)
127
+ const localVarPath = `/billingservice/v1/draft-invoices/code`;
128
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
129
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
130
+ let baseOptions;
131
+ let baseAccessToken;
132
+ if (configuration) {
133
+ baseOptions = configuration.baseOptions;
134
+ baseAccessToken = configuration.accessToken;
135
+ }
136
+
137
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
138
+ const localVarHeaderParameter = {} as any;
139
+ const localVarQueryParameter = {} as any;
140
+
141
+ // authentication bearer required
142
+ // http bearer authentication required
143
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
144
+
145
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
146
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
147
+ }
148
+
149
+
150
+
151
+ localVarHeaderParameter['Content-Type'] = 'application/json';
152
+
153
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
154
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
155
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
156
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
157
+
158
+ return {
159
+ url: toPathString(localVarUrlObj),
160
+ options: localVarRequestOptions,
161
+ };
162
+ },
163
+ }
164
+ };
165
+
166
+ /**
167
+ * DraftInvoiceApi - functional programming interface
168
+ * @export
169
+ */
170
+ export const DraftInvoiceApiFp = function(configuration?: Configuration) {
171
+ const localVarAxiosParamCreator = DraftInvoiceApiAxiosParamCreator(configuration)
172
+ return {
173
+ /**
174
+ *
175
+ * @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
176
+ * @param {string} [authorization] Bearer Token
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ async createDraftInvoice(createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
181
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createDraftInvoice(createDraftInvoiceRequestDto, authorization, options);
182
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
183
+ },
184
+ /**
185
+ *
186
+ * @param {string} [authorization] Bearer Token
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ async deleteAllDraftInvoices(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
191
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAllDraftInvoices(authorization, options);
192
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
193
+ },
194
+ /**
195
+ *
196
+ * @param {object} body
197
+ * @param {string} [authorization] Bearer Token
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ async deleteDraftInvoice(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
202
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDraftInvoice(body, authorization, options);
203
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
204
+ },
205
+ }
206
+ };
207
+
208
+ /**
209
+ * DraftInvoiceApi - factory interface
210
+ * @export
211
+ */
212
+ export const DraftInvoiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
213
+ const localVarFp = DraftInvoiceApiFp(configuration)
214
+ return {
215
+ /**
216
+ *
217
+ * @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
218
+ * @param {string} [authorization] Bearer Token
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ createDraftInvoice(createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
223
+ return localVarFp.createDraftInvoice(createDraftInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
224
+ },
225
+ /**
226
+ *
227
+ * @param {string} [authorization] Bearer Token
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ deleteAllDraftInvoices(authorization?: string, options?: any): AxiosPromise<void> {
232
+ return localVarFp.deleteAllDraftInvoices(authorization, options).then((request) => request(axios, basePath));
233
+ },
234
+ /**
235
+ *
236
+ * @param {object} body
237
+ * @param {string} [authorization] Bearer Token
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ deleteDraftInvoice(body: object, authorization?: string, options?: any): AxiosPromise<void> {
242
+ return localVarFp.deleteDraftInvoice(body, authorization, options).then((request) => request(axios, basePath));
243
+ },
244
+ };
245
+ };
246
+
247
+ /**
248
+ * Request parameters for createDraftInvoice operation in DraftInvoiceApi.
249
+ * @export
250
+ * @interface DraftInvoiceApiCreateDraftInvoiceRequest
251
+ */
252
+ export interface DraftInvoiceApiCreateDraftInvoiceRequest {
253
+ /**
254
+ *
255
+ * @type {CreateDraftInvoiceRequestDto}
256
+ * @memberof DraftInvoiceApiCreateDraftInvoice
257
+ */
258
+ readonly createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto
259
+
260
+ /**
261
+ * Bearer Token
262
+ * @type {string}
263
+ * @memberof DraftInvoiceApiCreateDraftInvoice
264
+ */
265
+ readonly authorization?: string
266
+ }
267
+
268
+ /**
269
+ * Request parameters for deleteAllDraftInvoices operation in DraftInvoiceApi.
270
+ * @export
271
+ * @interface DraftInvoiceApiDeleteAllDraftInvoicesRequest
272
+ */
273
+ export interface DraftInvoiceApiDeleteAllDraftInvoicesRequest {
274
+ /**
275
+ * Bearer Token
276
+ * @type {string}
277
+ * @memberof DraftInvoiceApiDeleteAllDraftInvoices
278
+ */
279
+ readonly authorization?: string
280
+ }
281
+
282
+ /**
283
+ * Request parameters for deleteDraftInvoice operation in DraftInvoiceApi.
284
+ * @export
285
+ * @interface DraftInvoiceApiDeleteDraftInvoiceRequest
286
+ */
287
+ export interface DraftInvoiceApiDeleteDraftInvoiceRequest {
288
+ /**
289
+ *
290
+ * @type {object}
291
+ * @memberof DraftInvoiceApiDeleteDraftInvoice
292
+ */
293
+ readonly body: object
294
+
295
+ /**
296
+ * Bearer Token
297
+ * @type {string}
298
+ * @memberof DraftInvoiceApiDeleteDraftInvoice
299
+ */
300
+ readonly authorization?: string
301
+ }
302
+
303
+ /**
304
+ * DraftInvoiceApi - object-oriented interface
305
+ * @export
306
+ * @class DraftInvoiceApi
307
+ * @extends {BaseAPI}
308
+ */
309
+ export class DraftInvoiceApi extends BaseAPI {
310
+ /**
311
+ *
312
+ * @param {DraftInvoiceApiCreateDraftInvoiceRequest} requestParameters Request parameters.
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ * @memberof DraftInvoiceApi
316
+ */
317
+ public createDraftInvoice(requestParameters: DraftInvoiceApiCreateDraftInvoiceRequest, options?: AxiosRequestConfig) {
318
+ return DraftInvoiceApiFp(this.configuration).createDraftInvoice(requestParameters.createDraftInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
319
+ }
320
+
321
+ /**
322
+ *
323
+ * @param {DraftInvoiceApiDeleteAllDraftInvoicesRequest} requestParameters Request parameters.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ * @memberof DraftInvoiceApi
327
+ */
328
+ public deleteAllDraftInvoices(requestParameters: DraftInvoiceApiDeleteAllDraftInvoicesRequest = {}, options?: AxiosRequestConfig) {
329
+ return DraftInvoiceApiFp(this.configuration).deleteAllDraftInvoices(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
330
+ }
331
+
332
+ /**
333
+ *
334
+ * @param {DraftInvoiceApiDeleteDraftInvoiceRequest} requestParameters Request parameters.
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ * @memberof DraftInvoiceApi
338
+ */
339
+ public deleteDraftInvoice(requestParameters: DraftInvoiceApiDeleteDraftInvoiceRequest, options?: AxiosRequestConfig) {
340
+ return DraftInvoiceApiFp(this.configuration).deleteDraftInvoice(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
341
+ }
342
+ }
@@ -25,6 +25,10 @@ import { CreateCustomEstimatedInvoiceRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateCustomEstimatedInvoiceResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { CreateEstimatedInvoiceForIntervalRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { CreateEstimatedInvoiceForIntervalResponseClass } from '../models';
31
+ // @ts-ignore
28
32
  import { CreateEstimatedInvoiceRequestDto } from '../models';
29
33
  // @ts-ignore
30
34
  import { CreateEstimatedInvoiceResponseClass } from '../models';
@@ -82,7 +86,7 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
82
86
  };
83
87
  },
84
88
  /**
85
- * This will create an estimated invoice. It will not be saved in the database.
89
+ * This creates an estimated invoice. It will not be saved in the database.
86
90
  * @summary Create the estimated invoice
87
91
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
88
92
  * @param {string} [authorization] Bearer Token
@@ -123,6 +127,53 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
123
127
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
124
128
  localVarRequestOptions.data = serializeDataIfNeeded(createEstimatedInvoiceRequestDto, localVarRequestOptions, configuration)
125
129
 
130
+ return {
131
+ url: toPathString(localVarUrlObj),
132
+ options: localVarRequestOptions,
133
+ };
134
+ },
135
+ /**
136
+ * This creates an estimated invoice. It will not be saved in the database.
137
+ * @summary Create the estimated invoice
138
+ * @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
139
+ * @param {string} [authorization] Bearer Token
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ createEstimatedInvoiceFromInterval: async (createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
144
+ // verify required parameter 'createEstimatedInvoiceForIntervalRequestDto' is not null or undefined
145
+ assertParamExists('createEstimatedInvoiceFromInterval', 'createEstimatedInvoiceForIntervalRequestDto', createEstimatedInvoiceForIntervalRequestDto)
146
+ const localVarPath = `/billingservice/v1/estimated-invoices/interval`;
147
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
148
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
149
+ let baseOptions;
150
+ let baseAccessToken;
151
+ if (configuration) {
152
+ baseOptions = configuration.baseOptions;
153
+ baseAccessToken = configuration.accessToken;
154
+ }
155
+
156
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
157
+ const localVarHeaderParameter = {} as any;
158
+ const localVarQueryParameter = {} as any;
159
+
160
+ // authentication bearer required
161
+ // http bearer authentication required
162
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
163
+
164
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
165
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
166
+ }
167
+
168
+
169
+
170
+ localVarHeaderParameter['Content-Type'] = 'application/json';
171
+
172
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
175
+ localVarRequestOptions.data = serializeDataIfNeeded(createEstimatedInvoiceForIntervalRequestDto, localVarRequestOptions, configuration)
176
+
126
177
  return {
127
178
  url: toPathString(localVarUrlObj),
128
179
  options: localVarRequestOptions,
@@ -151,7 +202,7 @@ export const EstimatedInvoicesApiFp = function(configuration?: Configuration) {
151
202
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
152
203
  },
153
204
  /**
154
- * This will create an estimated invoice. It will not be saved in the database.
205
+ * This creates an estimated invoice. It will not be saved in the database.
155
206
  * @summary Create the estimated invoice
156
207
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
157
208
  * @param {string} [authorization] Bearer Token
@@ -162,6 +213,18 @@ export const EstimatedInvoicesApiFp = function(configuration?: Configuration) {
162
213
  const localVarAxiosArgs = await localVarAxiosParamCreator.createEstimatedInvoice(createEstimatedInvoiceRequestDto, authorization, options);
163
214
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
164
215
  },
216
+ /**
217
+ * This creates an estimated invoice. It will not be saved in the database.
218
+ * @summary Create the estimated invoice
219
+ * @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
220
+ * @param {string} [authorization] Bearer Token
221
+ * @param {*} [options] Override http request option.
222
+ * @throws {RequiredError}
223
+ */
224
+ async createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass>> {
225
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options);
226
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
227
+ },
165
228
  }
166
229
  };
167
230
 
@@ -184,7 +247,7 @@ export const EstimatedInvoicesApiFactory = function (configuration?: Configurati
184
247
  return localVarFp.createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
185
248
  },
186
249
  /**
187
- * This will create an estimated invoice. It will not be saved in the database.
250
+ * This creates an estimated invoice. It will not be saved in the database.
188
251
  * @summary Create the estimated invoice
189
252
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
190
253
  * @param {string} [authorization] Bearer Token
@@ -194,6 +257,17 @@ export const EstimatedInvoicesApiFactory = function (configuration?: Configurati
194
257
  createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceResponseClass> {
195
258
  return localVarFp.createEstimatedInvoice(createEstimatedInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
196
259
  },
260
+ /**
261
+ * This creates an estimated invoice. It will not be saved in the database.
262
+ * @summary Create the estimated invoice
263
+ * @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
264
+ * @param {string} [authorization] Bearer Token
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass> {
269
+ return localVarFp.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options).then((request) => request(axios, basePath));
270
+ },
197
271
  };
198
272
  };
199
273
 
@@ -239,6 +313,27 @@ export interface EstimatedInvoicesApiCreateEstimatedInvoiceRequest {
239
313
  readonly authorization?: string
240
314
  }
241
315
 
316
+ /**
317
+ * Request parameters for createEstimatedInvoiceFromInterval operation in EstimatedInvoicesApi.
318
+ * @export
319
+ * @interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest
320
+ */
321
+ export interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest {
322
+ /**
323
+ *
324
+ * @type {CreateEstimatedInvoiceForIntervalRequestDto}
325
+ * @memberof EstimatedInvoicesApiCreateEstimatedInvoiceFromInterval
326
+ */
327
+ readonly createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto
328
+
329
+ /**
330
+ * Bearer Token
331
+ * @type {string}
332
+ * @memberof EstimatedInvoicesApiCreateEstimatedInvoiceFromInterval
333
+ */
334
+ readonly authorization?: string
335
+ }
336
+
242
337
  /**
243
338
  * EstimatedInvoicesApi - object-oriented interface
244
339
  * @export
@@ -259,7 +354,7 @@ export class EstimatedInvoicesApi extends BaseAPI {
259
354
  }
260
355
 
261
356
  /**
262
- * This will create an estimated invoice. It will not be saved in the database.
357
+ * This creates an estimated invoice. It will not be saved in the database.
263
358
  * @summary Create the estimated invoice
264
359
  * @param {EstimatedInvoicesApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
265
360
  * @param {*} [options] Override http request option.
@@ -269,4 +364,16 @@ export class EstimatedInvoicesApi extends BaseAPI {
269
364
  public createEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig) {
270
365
  return EstimatedInvoicesApiFp(this.configuration).createEstimatedInvoice(requestParameters.createEstimatedInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
271
366
  }
367
+
368
+ /**
369
+ * This creates an estimated invoice. It will not be saved in the database.
370
+ * @summary Create the estimated invoice
371
+ * @param {EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest} requestParameters Request parameters.
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ * @memberof EstimatedInvoicesApi
375
+ */
376
+ public createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig) {
377
+ return EstimatedInvoicesApiFp(this.configuration).createEstimatedInvoiceFromInterval(requestParameters.createEstimatedInvoiceForIntervalRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
378
+ }
272
379
  }