@emilgroup/billing-sdk-node 1.17.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 (46) hide show
  1. package/.openapi-generator/FILES +2 -1
  2. package/README.md +2 -2
  3. package/api/estimated-invoices-api.ts +111 -4
  4. package/api/invoices-api.ts +48 -154
  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 -89
  8. package/dist/api/invoices-api.js +30 -123
  9. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
  10. package/dist/models/{create-invoice-payment-response-class.d.ts → create-estimated-invoice-for-interval-response-class.d.ts} +7 -7
  11. package/dist/models/create-estimated-invoice-for-interval-response-class.js +15 -0
  12. package/dist/models/create-invoice-payment-request-dto.d.ts +6 -0
  13. package/dist/models/create-invoice-request-dto.d.ts +1 -1
  14. package/dist/models/create-invoice-status-request-dto.d.ts +1 -0
  15. package/dist/models/create-invoice-status-request-dto.js +2 -1
  16. package/dist/models/index.d.ts +2 -1
  17. package/dist/models/index.js +2 -1
  18. package/dist/models/inline-response200.d.ts +6 -6
  19. package/dist/models/inline-response503.d.ts +6 -6
  20. package/dist/models/invoice-class.d.ts +1 -0
  21. package/dist/models/invoice-class.js +2 -1
  22. package/dist/models/invoice-payment-class.d.ts +7 -7
  23. package/dist/models/invoice-status-class.d.ts +1 -0
  24. package/dist/models/invoice-status-class.js +2 -1
  25. package/dist/models/omit-type-class.d.ts +8 -0
  26. package/dist/models/omit-type-class.js +2 -1
  27. package/dist/models/policy-dto.d.ts +1 -1
  28. package/dist/models/policy-object-dto.d.ts +12 -12
  29. package/dist/models/policy-version-dto.d.ts +6 -0
  30. package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
  31. package/models/{create-invoice-payment-response-class.ts → create-estimated-invoice-for-interval-response-class.ts} +7 -7
  32. package/models/create-invoice-payment-request-dto.ts +6 -0
  33. package/models/create-invoice-request-dto.ts +1 -1
  34. package/models/create-invoice-status-request-dto.ts +2 -1
  35. package/models/index.ts +2 -1
  36. package/models/inline-response200.ts +6 -6
  37. package/models/inline-response503.ts +6 -6
  38. package/models/invoice-class.ts +2 -1
  39. package/models/invoice-payment-class.ts +7 -7
  40. package/models/invoice-status-class.ts +2 -1
  41. package/models/omit-type-class.ts +9 -1
  42. package/models/policy-dto.ts +1 -1
  43. package/models/policy-object-dto.ts +12 -12
  44. package/models/policy-version-dto.ts +6 -0
  45. package/package.json +1 -1
  46. /package/dist/models/{create-invoice-payment-response-class.js → create-estimated-invoice-for-interval-request-dto.js} +0 -0
@@ -17,10 +17,11 @@ 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
23
- models/create-invoice-payment-response-class.ts
24
25
  models/create-invoice-request-dto.ts
25
26
  models/create-invoice-response-class.ts
26
27
  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.1 --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.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
  }
@@ -21,10 +21,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
- import { CreateInvoicePaymentRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateInvoicePaymentResponseClass } from '../models';
27
- // @ts-ignore
28
24
  import { GetInvoiceResponseClass } from '../models';
29
25
  // @ts-ignore
30
26
  import { ListInvoicesResponseClass } from '../models';
@@ -40,62 +36,6 @@ const FormData = require('form-data');
40
36
  */
41
37
  export const InvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
42
38
  return {
43
- /**
44
- * This will create an invoice payment.
45
- * @summary Create the invoice payment
46
- * @param {number} id
47
- * @param {CreateInvoicePaymentRequestDto} createInvoicePaymentRequestDto
48
- * @param {string} [authorization] Bearer Token
49
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
50
- * @param {*} [options] Override http request option.
51
- * @throws {RequiredError}
52
- */
53
- createInvoicePayment: async (id: number, createInvoicePaymentRequestDto: CreateInvoicePaymentRequestDto, authorization?: string, idempotencyKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
- // verify required parameter 'id' is not null or undefined
55
- assertParamExists('createInvoicePayment', 'id', id)
56
- // verify required parameter 'createInvoicePaymentRequestDto' is not null or undefined
57
- assertParamExists('createInvoicePayment', 'createInvoicePaymentRequestDto', createInvoicePaymentRequestDto)
58
- const localVarPath = `/billingservice/v1/invoices/{id}/payments`
59
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
60
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
61
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
62
- let baseOptions;
63
- let baseAccessToken;
64
- if (configuration) {
65
- baseOptions = configuration.baseOptions;
66
- baseAccessToken = configuration.accessToken;
67
- }
68
-
69
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
70
- const localVarHeaderParameter = {} as any;
71
- const localVarQueryParameter = {} as any;
72
-
73
- // authentication bearer required
74
- // http bearer authentication required
75
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
76
-
77
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
78
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
79
- }
80
-
81
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
82
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
83
- }
84
-
85
-
86
-
87
- localVarHeaderParameter['Content-Type'] = 'application/json';
88
-
89
- setSearchParams(localVarUrlObj, localVarQueryParameter);
90
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
91
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
92
- localVarRequestOptions.data = serializeDataIfNeeded(createInvoicePaymentRequestDto, localVarRequestOptions, configuration)
93
-
94
- return {
95
- url: toPathString(localVarUrlObj),
96
- options: localVarRequestOptions,
97
- };
98
- },
99
39
  /**
100
40
  * 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.
101
41
  * @summary List invoices
@@ -152,16 +92,17 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
152
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.
153
93
  * @summary List invoices
154
94
  * @param {string} [authorization] Bearer Token
155
- * @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.
156
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.
157
97
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
158
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.
159
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.
160
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.
161
102
  * @param {*} [options] Override http request option.
162
103
  * @throws {RequiredError}
163
104
  */
164
- 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> => {
165
106
  const localVarPath = `/billingservice/v1/invoices`;
166
107
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
167
108
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -204,6 +145,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
204
145
  localVarQueryParameter['expand'] = expand;
205
146
  }
206
147
 
148
+ if (filters !== undefined) {
149
+ localVarQueryParameter['filters'] = filters;
150
+ }
151
+
207
152
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
208
153
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
209
154
  }
@@ -223,16 +168,17 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
223
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.
224
169
  * @summary List policies billing dates
225
170
  * @param {string} [authorization] Bearer Token
226
- * @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.
227
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.
228
173
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
229
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.
230
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.
231
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.
232
178
  * @param {*} [options] Override http request option.
233
179
  * @throws {RequiredError}
234
180
  */
235
- 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> => {
236
182
  const localVarPath = `/billingservice/v1/invoices/policies-billing-dates`;
237
183
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
238
184
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -275,6 +221,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
275
221
  localVarQueryParameter['expand'] = expand;
276
222
  }
277
223
 
224
+ if (filters !== undefined) {
225
+ localVarQueryParameter['filters'] = filters;
226
+ }
227
+
278
228
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
279
229
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
280
230
  }
@@ -300,20 +250,6 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
300
250
  export const InvoicesApiFp = function(configuration?: Configuration) {
301
251
  const localVarAxiosParamCreator = InvoicesApiAxiosParamCreator(configuration)
302
252
  return {
303
- /**
304
- * This will create an invoice payment.
305
- * @summary Create the invoice payment
306
- * @param {number} id
307
- * @param {CreateInvoicePaymentRequestDto} createInvoicePaymentRequestDto
308
- * @param {string} [authorization] Bearer Token
309
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
310
- * @param {*} [options] Override http request option.
311
- * @throws {RequiredError}
312
- */
313
- async createInvoicePayment(id: number, createInvoicePaymentRequestDto: CreateInvoicePaymentRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoicePaymentResponseClass>> {
314
- const localVarAxiosArgs = await localVarAxiosParamCreator.createInvoicePayment(id, createInvoicePaymentRequestDto, authorization, idempotencyKey, options);
315
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
316
- },
317
253
  /**
318
254
  * 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.
319
255
  * @summary List invoices
@@ -331,34 +267,36 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
331
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.
332
268
  * @summary List invoices
333
269
  * @param {string} [authorization] Bearer Token
334
- * @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.
335
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.
336
272
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
337
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.
338
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.
339
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.
340
277
  * @param {*} [options] Override http request option.
341
278
  * @throws {RequiredError}
342
279
  */
343
- 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>> {
344
- 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);
345
282
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
346
283
  },
347
284
  /**
348
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.
349
286
  * @summary List policies billing dates
350
287
  * @param {string} [authorization] Bearer Token
351
- * @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.
352
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.
353
290
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
354
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.
355
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.
356
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.
357
295
  * @param {*} [options] Override http request option.
358
296
  * @throws {RequiredError}
359
297
  */
360
- 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>> {
361
- 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);
362
300
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
363
301
  },
364
302
  }
@@ -371,19 +309,6 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
371
309
  export const InvoicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
372
310
  const localVarFp = InvoicesApiFp(configuration)
373
311
  return {
374
- /**
375
- * This will create an invoice payment.
376
- * @summary Create the invoice payment
377
- * @param {number} id
378
- * @param {CreateInvoicePaymentRequestDto} createInvoicePaymentRequestDto
379
- * @param {string} [authorization] Bearer Token
380
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
381
- * @param {*} [options] Override http request option.
382
- * @throws {RequiredError}
383
- */
384
- createInvoicePayment(id: number, createInvoicePaymentRequestDto: CreateInvoicePaymentRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoicePaymentResponseClass> {
385
- return localVarFp.createInvoicePayment(id, createInvoicePaymentRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
386
- },
387
312
  /**
388
313
  * 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.
389
314
  * @summary List invoices
@@ -400,72 +325,39 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
400
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.
401
326
  * @summary List invoices
402
327
  * @param {string} [authorization] Bearer Token
403
- * @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.
404
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.
405
330
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
406
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.
407
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.
408
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.
409
335
  * @param {*} [options] Override http request option.
410
336
  * @throws {RequiredError}
411
337
  */
412
- listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListInvoicesResponseClass> {
413
- 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));
414
340
  },
415
341
  /**
416
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.
417
343
  * @summary List policies billing dates
418
344
  * @param {string} [authorization] Bearer Token
419
- * @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.
420
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.
421
347
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
422
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.
423
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.
424
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.
425
352
  * @param {*} [options] Override http request option.
426
353
  * @throws {RequiredError}
427
354
  */
428
- listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPoliciesBillingDatesResponseClass> {
429
- 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));
430
357
  },
431
358
  };
432
359
  };
433
360
 
434
- /**
435
- * Request parameters for createInvoicePayment operation in InvoicesApi.
436
- * @export
437
- * @interface InvoicesApiCreateInvoicePaymentRequest
438
- */
439
- export interface InvoicesApiCreateInvoicePaymentRequest {
440
- /**
441
- *
442
- * @type {number}
443
- * @memberof InvoicesApiCreateInvoicePayment
444
- */
445
- readonly id: number
446
-
447
- /**
448
- *
449
- * @type {CreateInvoicePaymentRequestDto}
450
- * @memberof InvoicesApiCreateInvoicePayment
451
- */
452
- readonly createInvoicePaymentRequestDto: CreateInvoicePaymentRequestDto
453
-
454
- /**
455
- * Bearer Token
456
- * @type {string}
457
- * @memberof InvoicesApiCreateInvoicePayment
458
- */
459
- readonly authorization?: string
460
-
461
- /**
462
- * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
463
- * @type {string}
464
- * @memberof InvoicesApiCreateInvoicePayment
465
- */
466
- readonly idempotencyKey?: string
467
- }
468
-
469
361
  /**
470
362
  * Request parameters for getInvoice operation in InvoicesApi.
471
363
  * @export
@@ -508,7 +400,7 @@ export interface InvoicesApiListInvoicesRequest {
508
400
  readonly authorization?: string
509
401
 
510
402
  /**
511
- * 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.
512
404
  * @type {any}
513
405
  * @memberof InvoicesApiListInvoices
514
406
  */
@@ -548,6 +440,13 @@ export interface InvoicesApiListInvoicesRequest {
548
440
  * @memberof InvoicesApiListInvoices
549
441
  */
550
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
551
450
  }
552
451
 
553
452
  /**
@@ -564,7 +463,7 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
564
463
  readonly authorization?: string
565
464
 
566
465
  /**
567
- * 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.
568
467
  * @type {any}
569
468
  * @memberof InvoicesApiListPoliciesBillingDates
570
469
  */
@@ -604,6 +503,13 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
604
503
  * @memberof InvoicesApiListPoliciesBillingDates
605
504
  */
606
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
607
513
  }
608
514
 
609
515
  /**
@@ -613,18 +519,6 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
613
519
  * @extends {BaseAPI}
614
520
  */
615
521
  export class InvoicesApi extends BaseAPI {
616
- /**
617
- * This will create an invoice payment.
618
- * @summary Create the invoice payment
619
- * @param {InvoicesApiCreateInvoicePaymentRequest} requestParameters Request parameters.
620
- * @param {*} [options] Override http request option.
621
- * @throws {RequiredError}
622
- * @memberof InvoicesApi
623
- */
624
- public createInvoicePayment(requestParameters: InvoicesApiCreateInvoicePaymentRequest, options?: AxiosRequestConfig) {
625
- return InvoicesApiFp(this.configuration).createInvoicePayment(requestParameters.id, requestParameters.createInvoicePaymentRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then((request) => request(this.axios, this.basePath));
626
- }
627
-
628
522
  /**
629
523
  * 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.
630
524
  * @summary List invoices
@@ -646,7 +540,7 @@ export class InvoicesApi extends BaseAPI {
646
540
  * @memberof InvoicesApi
647
541
  */
648
542
  public listInvoices(requestParameters: InvoicesApiListInvoicesRequest = {}, options?: AxiosRequestConfig) {
649
- 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));
650
544
  }
651
545
 
652
546
  /**
@@ -658,6 +552,6 @@ export class InvoicesApi extends BaseAPI {
658
552
  * @memberof InvoicesApi
659
553
  */
660
554
  public listPoliciesBillingDates(requestParameters: InvoicesApiListPoliciesBillingDatesRequest = {}, options?: AxiosRequestConfig) {
661
- 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));
662
556
  }
663
557
  }