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

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