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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/api/estimated-invoices-api.ts +111 -4
  4. package/api/invoices-api.ts +48 -20
  5. package/dist/api/estimated-invoices-api.d.ts +61 -4
  6. package/dist/api/estimated-invoices-api.js +97 -4
  7. package/dist/api/invoices-api.d.ts +32 -14
  8. package/dist/api/invoices-api.js +30 -18
  9. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
  10. package/dist/models/create-estimated-invoice-for-interval-request-dto.js +15 -0
  11. package/dist/models/create-estimated-invoice-for-interval-response-class.d.ts +25 -0
  12. package/dist/models/create-estimated-invoice-for-interval-response-class.js +15 -0
  13. package/dist/models/create-estimated-invoice-request-dto.d.ts +7 -1
  14. package/dist/models/create-invoice-request-dto.d.ts +1 -1
  15. package/dist/models/create-invoice-status-request-dto.d.ts +1 -0
  16. package/dist/models/create-invoice-status-request-dto.js +2 -1
  17. package/dist/models/index.d.ts +2 -0
  18. package/dist/models/index.js +2 -0
  19. package/dist/models/inline-response200.d.ts +6 -6
  20. package/dist/models/inline-response503.d.ts +6 -6
  21. package/dist/models/invoice-class.d.ts +1 -0
  22. package/dist/models/invoice-class.js +2 -1
  23. package/dist/models/invoice-payment-class.d.ts +6 -0
  24. package/dist/models/invoice-status-class.d.ts +1 -0
  25. package/dist/models/invoice-status-class.js +2 -1
  26. package/dist/models/omit-type-class.d.ts +1 -0
  27. package/dist/models/omit-type-class.js +2 -1
  28. package/dist/models/policy-dto.d.ts +3 -2
  29. package/dist/models/policy-dto.js +3 -2
  30. package/dist/models/policy-object-dto.d.ts +24 -0
  31. package/dist/models/policy-version-dto.d.ts +9 -3
  32. package/dist/models/timeslice-dto.d.ts +1 -1
  33. package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
  34. package/models/create-estimated-invoice-for-interval-response-class.ts +31 -0
  35. package/models/create-estimated-invoice-request-dto.ts +7 -1
  36. package/models/create-invoice-request-dto.ts +1 -1
  37. package/models/create-invoice-status-request-dto.ts +2 -1
  38. package/models/index.ts +2 -0
  39. package/models/inline-response200.ts +6 -6
  40. package/models/inline-response503.ts +6 -6
  41. package/models/invoice-class.ts +2 -1
  42. package/models/invoice-payment-class.ts +6 -0
  43. package/models/invoice-status-class.ts +2 -1
  44. package/models/omit-type-class.ts +2 -1
  45. package/models/policy-dto.ts +4 -3
  46. package/models/policy-object-dto.ts +24 -0
  47. package/models/policy-version-dto.ts +9 -3
  48. package/models/timeslice-dto.ts +1 -1
  49. package/package.json +2 -2
@@ -17,6 +17,8 @@ index.ts
17
17
  models/create-correction-invoices-response-class.ts
18
18
  models/create-custom-estimated-invoice-request-dto.ts
19
19
  models/create-custom-estimated-invoice-response-class.ts
20
+ models/create-estimated-invoice-for-interval-request-dto.ts
21
+ models/create-estimated-invoice-for-interval-response-class.ts
20
22
  models/create-estimated-invoice-request-dto.ts
21
23
  models/create-estimated-invoice-response-class.ts
22
24
  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-node@1.11.0 --save
20
+ npm install @emilgroup/billing-sdk-node@1.17.1-beta.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk-node@1.11.0
24
+ yarn add @emilgroup/billing-sdk-node@1.17.1-beta.1
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
@@ -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
  }
@@ -92,16 +92,17 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
92
92
  * 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.
93
93
  * @summary List invoices
94
94
  * @param {string} [authorization] Bearer Token
95
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
95
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
96
96
  * @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.
97
97
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
98
98
  * @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.
99
99
  * @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.
100
100
  * @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.
101
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
101
102
  * @param {*} [options] Override http request option.
102
103
  * @throws {RequiredError}
103
104
  */
104
- listInvoices: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
105
+ listInvoices: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
105
106
  const localVarPath = `/billingservice/v1/invoices`;
106
107
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
107
108
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -144,6 +145,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
144
145
  localVarQueryParameter['expand'] = expand;
145
146
  }
146
147
 
148
+ if (filters !== undefined) {
149
+ localVarQueryParameter['filters'] = filters;
150
+ }
151
+
147
152
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
148
153
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
149
154
  }
@@ -163,16 +168,17 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
163
168
  * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
164
169
  * @summary List policies billing dates
165
170
  * @param {string} [authorization] Bearer Token
166
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
171
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
167
172
  * @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.
168
173
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
169
174
  * @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.
170
175
  * @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.
171
176
  * @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.
177
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
172
178
  * @param {*} [options] Override http request option.
173
179
  * @throws {RequiredError}
174
180
  */
175
- listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
181
+ listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
176
182
  const localVarPath = `/billingservice/v1/invoices/policies-billing-dates`;
177
183
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
178
184
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -215,6 +221,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
215
221
  localVarQueryParameter['expand'] = expand;
216
222
  }
217
223
 
224
+ if (filters !== undefined) {
225
+ localVarQueryParameter['filters'] = filters;
226
+ }
227
+
218
228
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
219
229
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
220
230
  }
@@ -257,34 +267,36 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
257
267
  * 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.
258
268
  * @summary List invoices
259
269
  * @param {string} [authorization] Bearer Token
260
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
270
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
261
271
  * @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.
262
272
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
263
273
  * @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.
264
274
  * @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.
265
275
  * @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.
276
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
266
277
  * @param {*} [options] Override http request option.
267
278
  * @throws {RequiredError}
268
279
  */
269
- 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>> {
270
- const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options);
280
+ async listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>> {
281
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
271
282
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
272
283
  },
273
284
  /**
274
285
  * 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
286
  * @summary List policies billing dates
276
287
  * @param {string} [authorization] Bearer Token
277
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
288
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
278
289
  * @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.
279
290
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
280
291
  * @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.
281
292
  * @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.
282
293
  * @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.
294
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
283
295
  * @param {*} [options] Override http request option.
284
296
  * @throws {RequiredError}
285
297
  */
286
- 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>> {
287
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options);
298
+ async listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesBillingDatesResponseClass>> {
299
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
288
300
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
289
301
  },
290
302
  }
@@ -313,33 +325,35 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
313
325
  * 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.
314
326
  * @summary List invoices
315
327
  * @param {string} [authorization] Bearer Token
316
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
328
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
317
329
  * @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.
318
330
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
319
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.
320
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.
321
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.
334
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
322
335
  * @param {*} [options] Override http request option.
323
336
  * @throws {RequiredError}
324
337
  */
325
- listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListInvoicesResponseClass> {
326
- return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
338
+ listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListInvoicesResponseClass> {
339
+ return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
327
340
  },
328
341
  /**
329
342
  * 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.
330
343
  * @summary List policies billing dates
331
344
  * @param {string} [authorization] Bearer Token
332
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
345
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
333
346
  * @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.
334
347
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
335
348
  * @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.
336
349
  * @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.
337
350
  * @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.
351
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
338
352
  * @param {*} [options] Override http request option.
339
353
  * @throws {RequiredError}
340
354
  */
341
- listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPoliciesBillingDatesResponseClass> {
342
- return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
355
+ listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPoliciesBillingDatesResponseClass> {
356
+ return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
343
357
  },
344
358
  };
345
359
  };
@@ -386,7 +400,7 @@ export interface InvoicesApiListInvoicesRequest {
386
400
  readonly authorization?: string
387
401
 
388
402
  /**
389
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
403
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
390
404
  * @type {any}
391
405
  * @memberof InvoicesApiListInvoices
392
406
  */
@@ -426,6 +440,13 @@ export interface InvoicesApiListInvoicesRequest {
426
440
  * @memberof InvoicesApiListInvoices
427
441
  */
428
442
  readonly expand?: any
443
+
444
+ /**
445
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
446
+ * @type {any}
447
+ * @memberof InvoicesApiListInvoices
448
+ */
449
+ readonly filters?: any
429
450
  }
430
451
 
431
452
  /**
@@ -442,7 +463,7 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
442
463
  readonly authorization?: string
443
464
 
444
465
  /**
445
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
466
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
446
467
  * @type {any}
447
468
  * @memberof InvoicesApiListPoliciesBillingDates
448
469
  */
@@ -482,6 +503,13 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
482
503
  * @memberof InvoicesApiListPoliciesBillingDates
483
504
  */
484
505
  readonly expand?: any
506
+
507
+ /**
508
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
509
+ * @type {any}
510
+ * @memberof InvoicesApiListPoliciesBillingDates
511
+ */
512
+ readonly filters?: any
485
513
  }
486
514
 
487
515
  /**
@@ -512,7 +540,7 @@ export class InvoicesApi extends BaseAPI {
512
540
  * @memberof InvoicesApi
513
541
  */
514
542
  public listInvoices(requestParameters: InvoicesApiListInvoicesRequest = {}, options?: AxiosRequestConfig) {
515
- 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));
543
+ 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));
516
544
  }
517
545
 
518
546
  /**
@@ -524,6 +552,6 @@ export class InvoicesApi extends BaseAPI {
524
552
  * @memberof InvoicesApi
525
553
  */
526
554
  public listPoliciesBillingDates(requestParameters: InvoicesApiListPoliciesBillingDatesRequest = {}, options?: AxiosRequestConfig) {
527
- 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));
555
+ 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));
528
556
  }
529
557
  }
@@ -14,6 +14,8 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateCustomEstimatedInvoiceRequestDto } from '../models';
16
16
  import { CreateCustomEstimatedInvoiceResponseClass } from '../models';
17
+ import { CreateEstimatedInvoiceForIntervalRequestDto } from '../models';
18
+ import { CreateEstimatedInvoiceForIntervalResponseClass } from '../models';
17
19
  import { CreateEstimatedInvoiceRequestDto } from '../models';
18
20
  import { CreateEstimatedInvoiceResponseClass } from '../models';
19
21
  /**
@@ -31,7 +33,7 @@ export declare const EstimatedInvoicesApiAxiosParamCreator: (configuration?: Con
31
33
  */
32
34
  createCustomEstimatedInvoice: (createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
35
  /**
34
- * This will create an estimated invoice. It will not be saved in the database.
36
+ * This creates an estimated invoice. It will not be saved in the database.
35
37
  * @summary Create the estimated invoice
36
38
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
37
39
  * @param {string} [authorization] Bearer Token
@@ -39,6 +41,15 @@ export declare const EstimatedInvoicesApiAxiosParamCreator: (configuration?: Con
39
41
  * @throws {RequiredError}
40
42
  */
41
43
  createEstimatedInvoice: (createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
+ /**
45
+ * This creates an estimated invoice. It will not be saved in the database.
46
+ * @summary Create the estimated invoice
47
+ * @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
48
+ * @param {string} [authorization] Bearer Token
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ createEstimatedInvoiceFromInterval: (createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
53
  };
43
54
  /**
44
55
  * EstimatedInvoicesApi - functional programming interface
@@ -55,7 +66,7 @@ export declare const EstimatedInvoicesApiFp: (configuration?: Configuration) =>
55
66
  */
56
67
  createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomEstimatedInvoiceResponseClass>>;
57
68
  /**
58
- * This will create an estimated invoice. It will not be saved in the database.
69
+ * This creates an estimated invoice. It will not be saved in the database.
59
70
  * @summary Create the estimated invoice
60
71
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
61
72
  * @param {string} [authorization] Bearer Token
@@ -63,6 +74,15 @@ export declare const EstimatedInvoicesApiFp: (configuration?: Configuration) =>
63
74
  * @throws {RequiredError}
64
75
  */
65
76
  createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEstimatedInvoiceResponseClass>>;
77
+ /**
78
+ * This creates an estimated invoice. It will not be saved in the database.
79
+ * @summary Create the estimated invoice
80
+ * @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
81
+ * @param {string} [authorization] Bearer Token
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass>>;
66
86
  };
67
87
  /**
68
88
  * EstimatedInvoicesApi - factory interface
@@ -79,7 +99,7 @@ export declare const EstimatedInvoicesApiFactory: (configuration?: Configuration
79
99
  */
80
100
  createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCustomEstimatedInvoiceResponseClass>;
81
101
  /**
82
- * This will create an estimated invoice. It will not be saved in the database.
102
+ * This creates an estimated invoice. It will not be saved in the database.
83
103
  * @summary Create the estimated invoice
84
104
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
85
105
  * @param {string} [authorization] Bearer Token
@@ -87,6 +107,15 @@ export declare const EstimatedInvoicesApiFactory: (configuration?: Configuration
87
107
  * @throws {RequiredError}
88
108
  */
89
109
  createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceResponseClass>;
110
+ /**
111
+ * This creates an estimated invoice. It will not be saved in the database.
112
+ * @summary Create the estimated invoice
113
+ * @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
114
+ * @param {string} [authorization] Bearer Token
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass>;
90
119
  };
91
120
  /**
92
121
  * Request parameters for createCustomEstimatedInvoice operation in EstimatedInvoicesApi.
@@ -126,6 +155,25 @@ export interface EstimatedInvoicesApiCreateEstimatedInvoiceRequest {
126
155
  */
127
156
  readonly authorization?: string;
128
157
  }
158
+ /**
159
+ * Request parameters for createEstimatedInvoiceFromInterval operation in EstimatedInvoicesApi.
160
+ * @export
161
+ * @interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest
162
+ */
163
+ export interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest {
164
+ /**
165
+ *
166
+ * @type {CreateEstimatedInvoiceForIntervalRequestDto}
167
+ * @memberof EstimatedInvoicesApiCreateEstimatedInvoiceFromInterval
168
+ */
169
+ readonly createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto;
170
+ /**
171
+ * Bearer Token
172
+ * @type {string}
173
+ * @memberof EstimatedInvoicesApiCreateEstimatedInvoiceFromInterval
174
+ */
175
+ readonly authorization?: string;
176
+ }
129
177
  /**
130
178
  * EstimatedInvoicesApi - object-oriented interface
131
179
  * @export
@@ -143,7 +191,7 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
143
191
  */
144
192
  createCustomEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomEstimatedInvoiceResponseClass, any>>;
145
193
  /**
146
- * This will create an estimated invoice. It will not be saved in the database.
194
+ * This creates an estimated invoice. It will not be saved in the database.
147
195
  * @summary Create the estimated invoice
148
196
  * @param {EstimatedInvoicesApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
149
197
  * @param {*} [options] Override http request option.
@@ -151,4 +199,13 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
151
199
  * @memberof EstimatedInvoicesApi
152
200
  */
153
201
  createEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceResponseClass, any>>;
202
+ /**
203
+ * This creates an estimated invoice. It will not be saved in the database.
204
+ * @summary Create the estimated invoice
205
+ * @param {EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest} requestParameters Request parameters.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ * @memberof EstimatedInvoicesApi
209
+ */
210
+ createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceForIntervalResponseClass, any>>;
154
211
  }