@emilgroup/billing-sdk-node 1.17.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/.openapi-generator/FILES +3 -17
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +2 -4
  4. package/api/draft-invoice-api.ts +346 -0
  5. package/api/estimated-invoices-api.ts +112 -11
  6. package/api/initial-invoices-api.ts +2 -4
  7. package/api/invoices-api.ts +110 -222
  8. package/api/recurring-invoices-api.ts +2 -4
  9. package/api.ts +2 -0
  10. package/dist/api/correction-invoices-api.d.ts +3 -4
  11. package/dist/api/draft-invoice-api.d.ts +185 -0
  12. package/dist/api/draft-invoice-api.js +396 -0
  13. package/dist/api/estimated-invoices-api.d.ts +66 -12
  14. package/dist/api/estimated-invoices-api.js +97 -4
  15. package/dist/api/initial-invoices-api.d.ts +3 -4
  16. package/dist/api/invoices-api.d.ts +97 -157
  17. package/dist/api/invoices-api.js +70 -163
  18. package/dist/api/recurring-invoices-api.d.ts +3 -4
  19. package/dist/api.d.ts +1 -0
  20. package/dist/api.js +1 -0
  21. package/dist/models/create-draft-invoice-request-dto.d.ts +89 -0
  22. package/dist/models/{invoice-class.js → create-draft-invoice-request-dto.js} +2 -7
  23. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
  24. package/dist/models/create-estimated-invoice-request-dto.d.ts +1 -7
  25. package/dist/models/create-invoice-payment-request-dto.d.ts +2 -2
  26. package/dist/models/create-invoice-request-dto.d.ts +5 -5
  27. package/dist/models/index.d.ts +2 -17
  28. package/dist/models/index.js +2 -17
  29. package/dist/models/inline-response200.d.ts +6 -6
  30. package/dist/models/inline-response503.d.ts +6 -6
  31. package/dist/models/policy-dto.d.ts +5 -19
  32. package/dist/models/policy-dto.js +0 -8
  33. package/dist/models/policy-object-dto.d.ts +14 -20
  34. package/dist/models/policy-premium-dto.d.ts +2 -2
  35. package/dist/models/policy-premium-item-dto.d.ts +2 -2
  36. package/dist/models/policy-version-dto.d.ts +9 -3
  37. package/dist/models/premium-formula-dto.d.ts +2 -2
  38. package/dist/models/timeslice-dto.d.ts +1 -1
  39. package/models/create-draft-invoice-request-dto.ts +98 -0
  40. package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
  41. package/models/create-estimated-invoice-request-dto.ts +1 -7
  42. package/models/create-invoice-payment-request-dto.ts +2 -2
  43. package/models/create-invoice-request-dto.ts +5 -5
  44. package/models/index.ts +2 -17
  45. package/models/inline-response200.ts +6 -6
  46. package/models/inline-response503.ts +6 -6
  47. package/models/policy-dto.ts +5 -22
  48. package/models/policy-object-dto.ts +14 -20
  49. package/models/policy-premium-dto.ts +2 -2
  50. package/models/policy-premium-item-dto.ts +2 -2
  51. package/models/policy-version-dto.ts +9 -3
  52. package/models/premium-formula-dto.ts +2 -2
  53. package/models/timeslice-dto.ts +1 -1
  54. package/package.json +1 -1
  55. package/dist/models/create-correction-invoices-response-class.d.ts +0 -25
  56. package/dist/models/create-custom-estimated-invoice-response-class.d.ts +0 -24
  57. package/dist/models/create-custom-estimated-invoice-response-class.js +0 -15
  58. package/dist/models/create-estimated-invoice-response-class.d.ts +0 -31
  59. package/dist/models/create-estimated-invoice-response-class.js +0 -15
  60. package/dist/models/create-invoice-payment-response-class.d.ts +0 -25
  61. package/dist/models/create-invoice-payment-response-class.js +0 -15
  62. package/dist/models/create-invoice-response-class.d.ts +0 -25
  63. package/dist/models/create-invoice-response-class.js +0 -15
  64. package/dist/models/create-invoice-status-request-dto.d.ts +0 -36
  65. package/dist/models/create-invoice-status-request-dto.js +0 -21
  66. package/dist/models/create-termination-invoice-request-dto.d.ts +0 -54
  67. package/dist/models/create-termination-invoice-request-dto.js +0 -15
  68. package/dist/models/get-invoice-response-class.d.ts +0 -25
  69. package/dist/models/get-invoice-response-class.js +0 -15
  70. package/dist/models/invoice-class.d.ts +0 -170
  71. package/dist/models/invoice-item-class.d.ts +0 -129
  72. package/dist/models/invoice-item-class.js +0 -24
  73. package/dist/models/invoice-payment-class.d.ts +0 -102
  74. package/dist/models/invoice-payment-class.js +0 -15
  75. package/dist/models/invoice-payments-class.d.ts +0 -25
  76. package/dist/models/invoice-payments-class.js +0 -15
  77. package/dist/models/invoice-status-class.d.ts +0 -48
  78. package/dist/models/invoice-status-class.js +0 -21
  79. package/dist/models/list-invoices-response-class.d.ts +0 -31
  80. package/dist/models/list-invoices-response-class.js +0 -15
  81. package/dist/models/list-policies-billing-dates-response-class.d.ts +0 -31
  82. package/dist/models/list-policies-billing-dates-response-class.js +0 -15
  83. package/dist/models/omit-type-class.d.ts +0 -156
  84. package/dist/models/omit-type-class.js +0 -31
  85. package/dist/models/policy-billing-date-class.d.ts +0 -42
  86. package/dist/models/policy-billing-date-class.js +0 -15
  87. package/models/create-correction-invoices-response-class.ts +0 -31
  88. package/models/create-custom-estimated-invoice-response-class.ts +0 -30
  89. package/models/create-estimated-invoice-response-class.ts +0 -37
  90. package/models/create-invoice-payment-response-class.ts +0 -31
  91. package/models/create-invoice-response-class.ts +0 -31
  92. package/models/create-invoice-status-request-dto.ts +0 -45
  93. package/models/create-termination-invoice-request-dto.ts +0 -60
  94. package/models/get-invoice-response-class.ts +0 -31
  95. package/models/invoice-class.ts +0 -180
  96. package/models/invoice-item-class.ts +0 -138
  97. package/models/invoice-payment-class.ts +0 -108
  98. package/models/invoice-payments-class.ts +0 -31
  99. package/models/invoice-status-class.ts +0 -57
  100. package/models/list-invoices-response-class.ts +0 -37
  101. package/models/list-policies-billing-dates-response-class.ts +0 -37
  102. package/models/omit-type-class.ts +0 -166
  103. package/models/policy-billing-date-class.ts +0 -48
  104. /package/dist/models/{create-correction-invoices-response-class.js → create-estimated-invoice-for-interval-request-dto.js} +0 -0
@@ -20,16 +20,6 @@ import { Configuration } from '../configuration';
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { CreateInvoicePaymentRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateInvoicePaymentResponseClass } from '../models';
27
- // @ts-ignore
28
- import { GetInvoiceResponseClass } from '../models';
29
- // @ts-ignore
30
- import { ListInvoicesResponseClass } from '../models';
31
- // @ts-ignore
32
- import { ListPoliciesBillingDatesResponseClass } from '../models';
33
23
  // URLSearchParams not necessarily used
34
24
  // @ts-ignore
35
25
  import { URL, URLSearchParams } from 'url';
@@ -41,64 +31,8 @@ const FormData = require('form-data');
41
31
  export const InvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
42
32
  return {
43
33
  /**
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
- /**
100
- * 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
- * @summary List invoices
34
+ * Gets an invoice.
35
+ * @summary Retrieve the invoice
102
36
  * @param {string} code
103
37
  * @param {string} expand
104
38
  * @param {string} [authorization] Bearer Token
@@ -149,19 +83,20 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
149
83
  };
150
84
  },
151
85
  /**
152
- * 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.
86
+ * 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
87
  * @summary List invoices
154
88
  * @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.
89
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
156
90
  * @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
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
158
- * @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
- * @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
- * @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.
91
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
92
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
93
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id&lt;/i&gt;
94
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: statuses, payments.&lt;i&gt;
95
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
161
96
  * @param {*} [options] Override http request option.
162
97
  * @throws {RequiredError}
163
98
  */
164
- listInvoices: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
99
+ listInvoices: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
165
100
  const localVarPath = `/billingservice/v1/invoices`;
166
101
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
167
102
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -204,6 +139,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
204
139
  localVarQueryParameter['expand'] = expand;
205
140
  }
206
141
 
142
+ if (filters !== undefined) {
143
+ localVarQueryParameter['filters'] = filters;
144
+ }
145
+
207
146
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
208
147
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
209
148
  }
@@ -220,19 +159,20 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
220
159
  };
221
160
  },
222
161
  /**
223
- * 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.
162
+ * 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
163
  * @summary List policies billing dates
225
164
  * @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.
165
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
227
166
  * @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
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
229
- * @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
- * @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
- * @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.
167
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
168
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
169
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
170
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
171
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
232
172
  * @param {*} [options] Override http request option.
233
173
  * @throws {RequiredError}
234
174
  */
235
- listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
175
+ listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
236
176
  const localVarPath = `/billingservice/v1/invoices/policies-billing-dates`;
237
177
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
238
178
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -275,6 +215,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
275
215
  localVarQueryParameter['expand'] = expand;
276
216
  }
277
217
 
218
+ if (filters !== undefined) {
219
+ localVarQueryParameter['filters'] = filters;
220
+ }
221
+
278
222
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
279
223
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
280
224
  }
@@ -301,64 +245,52 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
301
245
  const localVarAxiosParamCreator = InvoicesApiAxiosParamCreator(configuration)
302
246
  return {
303
247
  /**
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
- /**
318
- * 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
- * @summary List invoices
248
+ * Gets an invoice.
249
+ * @summary Retrieve the invoice
320
250
  * @param {string} code
321
251
  * @param {string} expand
322
252
  * @param {string} [authorization] Bearer Token
323
253
  * @param {*} [options] Override http request option.
324
254
  * @throws {RequiredError}
325
255
  */
326
- async getInvoice(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceResponseClass>> {
256
+ async getInvoice(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
327
257
  const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoice(code, expand, authorization, options);
328
258
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
329
259
  },
330
260
  /**
331
- * 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.
261
+ * 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
262
  * @summary List invoices
333
263
  * @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.
264
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
335
265
  * @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
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
337
- * @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
- * @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
- * @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.
266
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
267
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
268
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id&lt;/i&gt;
269
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: statuses, payments.&lt;i&gt;
270
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
340
271
  * @param {*} [options] Override http request option.
341
272
  * @throws {RequiredError}
342
273
  */
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);
274
+ async listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
275
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
345
276
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
346
277
  },
347
278
  /**
348
- * 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.
279
+ * 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
280
  * @summary List policies billing dates
350
281
  * @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.
282
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
352
283
  * @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
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
354
- * @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
- * @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
- * @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.
284
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
285
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
286
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
287
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
288
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
357
289
  * @param {*} [options] Override http request option.
358
290
  * @throws {RequiredError}
359
291
  */
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);
292
+ async listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
293
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
362
294
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
363
295
  },
364
296
  }
@@ -372,100 +304,54 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
372
304
  const localVarFp = InvoicesApiFp(configuration)
373
305
  return {
374
306
  /**
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
- /**
388
- * 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
- * @summary List invoices
307
+ * Gets an invoice.
308
+ * @summary Retrieve the invoice
390
309
  * @param {string} code
391
310
  * @param {string} expand
392
311
  * @param {string} [authorization] Bearer Token
393
312
  * @param {*} [options] Override http request option.
394
313
  * @throws {RequiredError}
395
314
  */
396
- getInvoice(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetInvoiceResponseClass> {
315
+ getInvoice(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
397
316
  return localVarFp.getInvoice(code, expand, authorization, options).then((request) => request(axios, basePath));
398
317
  },
399
318
  /**
400
- * 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
+ * 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
320
  * @summary List invoices
402
321
  * @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.
322
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
404
323
  * @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
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
406
- * @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
- * @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
- * @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.
324
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
325
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
326
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id&lt;/i&gt;
327
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: statuses, payments.&lt;i&gt;
328
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
409
329
  * @param {*} [options] Override http request option.
410
330
  * @throws {RequiredError}
411
331
  */
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));
332
+ listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
333
+ return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
414
334
  },
415
335
  /**
416
- * 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.
336
+ * 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
337
  * @summary List policies billing dates
418
338
  * @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.
339
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
420
340
  * @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
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
422
- * @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
- * @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
- * @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.
341
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
342
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
343
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
344
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
345
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
425
346
  * @param {*} [options] Override http request option.
426
347
  * @throws {RequiredError}
427
348
  */
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));
349
+ listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
350
+ return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
430
351
  },
431
352
  };
432
353
  };
433
354
 
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
355
  /**
470
356
  * Request parameters for getInvoice operation in InvoicesApi.
471
357
  * @export
@@ -508,7 +394,7 @@ export interface InvoicesApiListInvoicesRequest {
508
394
  readonly authorization?: string
509
395
 
510
396
  /**
511
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
397
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
512
398
  * @type {any}
513
399
  * @memberof InvoicesApiListInvoices
514
400
  */
@@ -522,32 +408,39 @@ export interface InvoicesApiListInvoicesRequest {
522
408
  readonly pageToken?: any
523
409
 
524
410
  /**
525
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
526
- * @type {any}
411
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
412
+ * @type {string}
527
413
  * @memberof InvoicesApiListInvoices
528
414
  */
529
- readonly filter?: any
415
+ readonly filter?: string
530
416
 
531
417
  /**
532
- * 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.
418
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
533
419
  * @type {any}
534
420
  * @memberof InvoicesApiListInvoices
535
421
  */
536
422
  readonly search?: any
537
423
 
538
424
  /**
539
- * 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.
540
- * @type {any}
425
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id&lt;/i&gt;
426
+ * @type {string}
541
427
  * @memberof InvoicesApiListInvoices
542
428
  */
543
- readonly order?: any
429
+ readonly order?: string
544
430
 
545
431
  /**
546
- * 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.
547
- * @type {any}
432
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: statuses, payments.&lt;i&gt;
433
+ * @type {string}
548
434
  * @memberof InvoicesApiListInvoices
549
435
  */
550
- readonly expand?: any
436
+ readonly expand?: string
437
+
438
+ /**
439
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt&lt;/i&gt;
440
+ * @type {string}
441
+ * @memberof InvoicesApiListInvoices
442
+ */
443
+ readonly filters?: string
551
444
  }
552
445
 
553
446
  /**
@@ -564,7 +457,7 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
564
457
  readonly authorization?: string
565
458
 
566
459
  /**
567
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
460
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
568
461
  * @type {any}
569
462
  * @memberof InvoicesApiListPoliciesBillingDates
570
463
  */
@@ -578,32 +471,39 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
578
471
  readonly pageToken?: any
579
472
 
580
473
  /**
581
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
582
- * @type {any}
474
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
475
+ * @type {string}
583
476
  * @memberof InvoicesApiListPoliciesBillingDates
584
477
  */
585
- readonly filter?: any
478
+ readonly filter?: string
586
479
 
587
480
  /**
588
- * 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.
481
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
589
482
  * @type {any}
590
483
  * @memberof InvoicesApiListPoliciesBillingDates
591
484
  */
592
485
  readonly search?: any
593
486
 
594
487
  /**
595
- * 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.
596
- * @type {any}
488
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
489
+ * @type {string}
597
490
  * @memberof InvoicesApiListPoliciesBillingDates
598
491
  */
599
- readonly order?: any
492
+ readonly order?: string
600
493
 
601
494
  /**
602
- * 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.
603
- * @type {any}
495
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
496
+ * @type {string}
604
497
  * @memberof InvoicesApiListPoliciesBillingDates
605
498
  */
606
- readonly expand?: any
499
+ readonly expand?: string
500
+
501
+ /**
502
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo&lt;/i&gt;
503
+ * @type {string}
504
+ * @memberof InvoicesApiListPoliciesBillingDates
505
+ */
506
+ readonly filters?: string
607
507
  }
608
508
 
609
509
  /**
@@ -614,20 +514,8 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
614
514
  */
615
515
  export class InvoicesApi extends BaseAPI {
616
516
  /**
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
- /**
629
- * 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
- * @summary List invoices
517
+ * Gets an invoice.
518
+ * @summary Retrieve the invoice
631
519
  * @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
632
520
  * @param {*} [options] Override http request option.
633
521
  * @throws {RequiredError}
@@ -638,7 +526,7 @@ export class InvoicesApi extends BaseAPI {
638
526
  }
639
527
 
640
528
  /**
641
- * 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.
529
+ * 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.
642
530
  * @summary List invoices
643
531
  * @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
644
532
  * @param {*} [options] Override http request option.
@@ -646,11 +534,11 @@ export class InvoicesApi extends BaseAPI {
646
534
  * @memberof InvoicesApi
647
535
  */
648
536
  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));
537
+ 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
538
  }
651
539
 
652
540
  /**
653
- * 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.
541
+ * 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.
654
542
  * @summary List policies billing dates
655
543
  * @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
656
544
  * @param {*} [options] Override http request option.
@@ -658,6 +546,6 @@ export class InvoicesApi extends BaseAPI {
658
546
  * @memberof InvoicesApi
659
547
  */
660
548
  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));
549
+ 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
550
  }
663
551
  }
@@ -22,8 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
24
  import { CreateInvoiceRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateInvoiceResponseClass } from '../models';
27
25
  // URLSearchParams not necessarily used
28
26
  // @ts-ignore
29
27
  import { URL, URLSearchParams } from 'url';
@@ -105,7 +103,7 @@ export const RecurringInvoicesApiFp = function(configuration?: Configuration) {
105
103
  * @param {*} [options] Override http request option.
106
104
  * @throws {RequiredError}
107
105
  */
108
- async createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>> {
106
+ async createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
109
107
  const localVarAxiosArgs = await localVarAxiosParamCreator.createRecurringInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options);
110
108
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
111
109
  },
@@ -128,7 +126,7 @@ export const RecurringInvoicesApiFactory = function (configuration?: Configurati
128
126
  * @param {*} [options] Override http request option.
129
127
  * @throws {RequiredError}
130
128
  */
131
- createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass> {
129
+ createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<void> {
132
130
  return localVarFp.createRecurringInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
133
131
  },
134
132
  };
package/api.ts CHANGED
@@ -26,6 +26,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
27
  import { CorrectionInvoicesApi } from './api';
28
28
  import { DefaultApi } from './api';
29
+ import { DraftInvoiceApi } from './api';
29
30
  import { EstimatedInvoicesApi } from './api';
30
31
  import { InitialInvoicesApi } from './api';
31
32
  import { InvoicesApi } from './api';
@@ -34,6 +35,7 @@ import { RecurringInvoicesApi } from './api';
34
35
 
35
36
  export * from './api/correction-invoices-api';
36
37
  export * from './api/default-api';
38
+ export * from './api/draft-invoice-api';
37
39
  export * from './api/estimated-invoices-api';
38
40
  export * from './api/initial-invoices-api';
39
41
  export * from './api/invoices-api';