@invoicetronic/ts-sdk 1.4.0 → 1.5.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 (90) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +2 -2
  3. package/api.ts +1 -0
  4. package/configuration.ts +1 -1
  5. package/dist/api.d.ts +1 -0
  6. package/dist/api.js +1 -0
  7. package/dist/configuration.js +1 -1
  8. package/dist/esm/api.d.ts +1 -0
  9. package/dist/esm/api.js +1 -0
  10. package/dist/esm/configuration.js +1 -1
  11. package/dist/esm/src/api/company-api.d.ts +15 -10
  12. package/dist/esm/src/api/company-api.js +18 -11
  13. package/dist/esm/src/api/export-api.d.ts +10 -16
  14. package/dist/esm/src/api/export-api.js +4 -9
  15. package/dist/esm/src/api/health-api.d.ts +74 -0
  16. package/dist/esm/src/api/health-api.js +120 -0
  17. package/dist/esm/src/api/receive-api.d.ts +15 -10
  18. package/dist/esm/src/api/receive-api.js +18 -11
  19. package/dist/esm/src/api/send-api.d.ts +55 -51
  20. package/dist/esm/src/api/send-api.js +74 -67
  21. package/dist/esm/src/api/update-api.d.ts +10 -10
  22. package/dist/esm/src/api/update-api.js +8 -8
  23. package/dist/esm/src/models/document-data.d.ts +15 -0
  24. package/dist/esm/src/models/document-data.js +14 -0
  25. package/dist/esm/src/models/index.d.ts +5 -0
  26. package/dist/esm/src/models/index.js +5 -0
  27. package/dist/esm/src/models/model-error.d.ts +28 -0
  28. package/dist/esm/src/models/model-error.js +14 -0
  29. package/dist/esm/src/models/problem-details.d.ts +19 -0
  30. package/dist/esm/src/models/problem-details.js +14 -0
  31. package/dist/esm/src/models/problem-http-result.d.ts +17 -0
  32. package/dist/esm/src/models/problem-http-result.js +14 -0
  33. package/dist/esm/src/models/receive.d.ts +4 -0
  34. package/dist/esm/src/models/send-reduced.d.ts +39 -0
  35. package/dist/esm/src/models/send-reduced.js +14 -0
  36. package/dist/esm/src/models/send.d.ts +4 -0
  37. package/dist/src/api/company-api.d.ts +15 -10
  38. package/dist/src/api/company-api.js +18 -11
  39. package/dist/src/api/export-api.d.ts +10 -16
  40. package/dist/src/api/export-api.js +5 -10
  41. package/dist/src/api/health-api.d.ts +74 -0
  42. package/dist/src/api/health-api.js +127 -0
  43. package/dist/src/api/receive-api.d.ts +15 -10
  44. package/dist/src/api/receive-api.js +18 -11
  45. package/dist/src/api/send-api.d.ts +55 -51
  46. package/dist/src/api/send-api.js +74 -67
  47. package/dist/src/api/update-api.d.ts +10 -10
  48. package/dist/src/api/update-api.js +8 -8
  49. package/dist/src/models/document-data.d.ts +15 -0
  50. package/dist/src/models/document-data.js +15 -0
  51. package/dist/src/models/index.d.ts +5 -0
  52. package/dist/src/models/index.js +5 -0
  53. package/dist/src/models/model-error.d.ts +28 -0
  54. package/dist/src/models/model-error.js +15 -0
  55. package/dist/src/models/problem-details.d.ts +19 -0
  56. package/dist/src/models/problem-details.js +15 -0
  57. package/dist/src/models/problem-http-result.d.ts +17 -0
  58. package/dist/src/models/problem-http-result.js +15 -0
  59. package/dist/src/models/receive.d.ts +4 -0
  60. package/dist/src/models/send-reduced.d.ts +39 -0
  61. package/dist/src/models/send-reduced.js +15 -0
  62. package/dist/src/models/send.d.ts +4 -0
  63. package/docs/CompanyApi.md +5 -2
  64. package/docs/DocumentData.md +22 -0
  65. package/docs/Error.md +25 -0
  66. package/docs/ExportApi.md +2 -2
  67. package/docs/HealthApi.md +54 -0
  68. package/docs/ProblemDetails.md +28 -0
  69. package/docs/ProblemHttpResult.md +24 -0
  70. package/docs/Receive.md +2 -0
  71. package/docs/ReceiveApi.md +5 -2
  72. package/docs/Send.md +2 -0
  73. package/docs/SendApi.md +25 -26
  74. package/docs/SendReduced.md +29 -0
  75. package/docs/UpdateApi.md +2 -2
  76. package/package.json +1 -1
  77. package/src/api/company-api.ts +22 -13
  78. package/src/api/export-api.ts +10 -16
  79. package/src/api/health-api.ts +135 -0
  80. package/src/api/receive-api.ts +22 -13
  81. package/src/api/send-api.ts +86 -79
  82. package/src/api/update-api.ts +10 -10
  83. package/src/models/document-data.ts +21 -0
  84. package/src/models/index.ts +5 -0
  85. package/src/models/model-error.ts +34 -0
  86. package/src/models/problem-details.ts +26 -0
  87. package/src/models/problem-http-result.ts +25 -0
  88. package/src/models/receive.ts +4 -0
  89. package/src/models/send-reduced.ts +45 -0
  90. package/src/models/send.ts +4 -0
@@ -0,0 +1,135 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Invoicetronic API
5
+ * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
6
+ *
7
+ * The version of the OpenAPI document: 1
8
+ * Contact: info@invoicetronic.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from '../../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // URLSearchParams not necessarily used
20
+ // @ts-ignore
21
+ import { URL, URLSearchParams } from 'url';
22
+ // Some imports not used depending on template conditions
23
+ // @ts-ignore
24
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../../common';
25
+ // @ts-ignore
26
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../../base';
27
+ /**
28
+ * HealthApi - axios parameter creator
29
+ */
30
+ export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
31
+ return {
32
+ /**
33
+ * Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
34
+ * @summary Health check
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ healthGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
39
+ const localVarPath = `/health`;
40
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42
+ let baseOptions;
43
+ if (configuration) {
44
+ baseOptions = configuration.baseOptions;
45
+ }
46
+
47
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
48
+ const localVarHeaderParameter = {} as any;
49
+ const localVarQueryParameter = {} as any;
50
+
51
+ // authentication Basic required
52
+ // http basic authentication required
53
+ setBasicAuthToObject(localVarRequestOptions, configuration)
54
+
55
+
56
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
59
+
60
+ return {
61
+ url: toPathString(localVarUrlObj),
62
+ options: localVarRequestOptions,
63
+ };
64
+ },
65
+ }
66
+ };
67
+
68
+ /**
69
+ * HealthApi - functional programming interface
70
+ */
71
+ export const HealthApiFp = function(configuration?: Configuration) {
72
+ const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
73
+ return {
74
+ /**
75
+ * Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
76
+ * @summary Health check
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ async healthGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
81
+ const localVarAxiosArgs = await localVarAxiosParamCreator.healthGet(options);
82
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
83
+ const localVarOperationServerBasePath = operationServerMap['HealthApi.healthGet']?.[localVarOperationServerIndex]?.url;
84
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
85
+ },
86
+ }
87
+ };
88
+
89
+ /**
90
+ * HealthApi - factory interface
91
+ */
92
+ export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
93
+ const localVarFp = HealthApiFp(configuration)
94
+ return {
95
+ /**
96
+ * Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
97
+ * @summary Health check
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ healthGet(options?: RawAxiosRequestConfig): AxiosPromise<void> {
102
+ return localVarFp.healthGet(options).then((request) => request(axios, basePath));
103
+ },
104
+ };
105
+ };
106
+
107
+ /**
108
+ * HealthApi - interface
109
+ */
110
+ export interface HealthApiInterface {
111
+ /**
112
+ * Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
113
+ * @summary Health check
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ healthGet(options?: RawAxiosRequestConfig): AxiosPromise<void>;
118
+
119
+ }
120
+
121
+ /**
122
+ * HealthApi - object-oriented interface
123
+ */
124
+ export class HealthApi extends BaseAPI implements HealthApiInterface {
125
+ /**
126
+ * Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
127
+ * @summary Health check
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ public healthGet(options?: RawAxiosRequestConfig) {
132
+ return HealthApiFp(this.configuration).healthGet(options).then((request) => request(this.axios, this.basePath));
133
+ }
134
+ }
135
+
@@ -36,7 +36,7 @@ import type { Receive } from '../../src/models';
36
36
  export const ReceiveApiAxiosParamCreator = function (configuration?: Configuration) {
37
37
  return {
38
38
  /**
39
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
39
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
40
40
  * @summary List incoming invoices
41
41
  * @param {number} [companyId] Company id
42
42
  * @param {string} [identifier] SDI identifier.
@@ -55,10 +55,11 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
55
55
  * @param {number} [page] Page number.
56
56
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
57
57
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
58
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
58
59
  * @param {*} [options] Override http request option.
59
60
  * @throws {RequiredError}
60
61
  */
61
- receiveGet: async (companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
62
+ receiveGet: async (companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
62
63
  const localVarPath = `/receive`;
63
64
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
64
65
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -155,6 +156,10 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
155
156
  localVarQueryParameter['sort'] = sort;
156
157
  }
157
158
 
159
+ if (q !== undefined) {
160
+ localVarQueryParameter['q'] = q;
161
+ }
162
+
158
163
  localVarHeaderParameter['Accept'] = 'application/json';
159
164
 
160
165
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -295,7 +300,7 @@ export const ReceiveApiFp = function(configuration?: Configuration) {
295
300
  const localVarAxiosParamCreator = ReceiveApiAxiosParamCreator(configuration)
296
301
  return {
297
302
  /**
298
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
303
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
299
304
  * @summary List incoming invoices
300
305
  * @param {number} [companyId] Company id
301
306
  * @param {string} [identifier] SDI identifier.
@@ -314,11 +319,12 @@ export const ReceiveApiFp = function(configuration?: Configuration) {
314
319
  * @param {number} [page] Page number.
315
320
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
316
321
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
322
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
317
323
  * @param {*} [options] Override http request option.
318
324
  * @throws {RequiredError}
319
325
  */
320
- async receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Receive>>> {
321
- const localVarAxiosArgs = await localVarAxiosParamCreator.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
326
+ async receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Receive>>> {
327
+ const localVarAxiosArgs = await localVarAxiosParamCreator.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
322
328
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
323
329
  const localVarOperationServerBasePath = operationServerMap['ReceiveApi.receiveGet']?.[localVarOperationServerIndex]?.url;
324
330
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -373,7 +379,7 @@ export const ReceiveApiFactory = function (configuration?: Configuration, basePa
373
379
  const localVarFp = ReceiveApiFp(configuration)
374
380
  return {
375
381
  /**
376
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
382
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
377
383
  * @summary List incoming invoices
378
384
  * @param {number} [companyId] Company id
379
385
  * @param {string} [identifier] SDI identifier.
@@ -392,11 +398,12 @@ export const ReceiveApiFactory = function (configuration?: Configuration, basePa
392
398
  * @param {number} [page] Page number.
393
399
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
394
400
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
401
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
395
402
  * @param {*} [options] Override http request option.
396
403
  * @throws {RequiredError}
397
404
  */
398
- receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Receive>> {
399
- return localVarFp.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(axios, basePath));
405
+ receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Receive>> {
406
+ return localVarFp.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(axios, basePath));
400
407
  },
401
408
  /**
402
409
  * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
@@ -437,7 +444,7 @@ export const ReceiveApiFactory = function (configuration?: Configuration, basePa
437
444
  */
438
445
  export interface ReceiveApiInterface {
439
446
  /**
440
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
447
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
441
448
  * @summary List incoming invoices
442
449
  * @param {number} [companyId] Company id
443
450
  * @param {string} [identifier] SDI identifier.
@@ -456,10 +463,11 @@ export interface ReceiveApiInterface {
456
463
  * @param {number} [page] Page number.
457
464
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
458
465
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
466
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
459
467
  * @param {*} [options] Override http request option.
460
468
  * @throws {RequiredError}
461
469
  */
462
- receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Receive>>;
470
+ receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Receive>>;
463
471
 
464
472
  /**
465
473
  * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
@@ -496,7 +504,7 @@ export interface ReceiveApiInterface {
496
504
  */
497
505
  export class ReceiveApi extends BaseAPI implements ReceiveApiInterface {
498
506
  /**
499
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
507
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
500
508
  * @summary List incoming invoices
501
509
  * @param {number} [companyId] Company id
502
510
  * @param {string} [identifier] SDI identifier.
@@ -515,11 +523,12 @@ export class ReceiveApi extends BaseAPI implements ReceiveApiInterface {
515
523
  * @param {number} [page] Page number.
516
524
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
517
525
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
526
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
518
527
  * @param {*} [options] Override http request option.
519
528
  * @throws {RequiredError}
520
529
  */
521
- public receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig) {
522
- return ReceiveApiFp(this.configuration).receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
530
+ public receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig) {
531
+ return ReceiveApiFp(this.configuration).receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
523
532
  }
524
533
 
525
534
  /**