@invoicetronic/ts-sdk 1.4.0 → 1.6.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.
- package/CHANGELOG.md +1 -1
- package/README.md +2 -2
- package/api.ts +2 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +2 -1
- package/dist/esm/api.js +2 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/src/api/company-api.d.ts +16 -11
- package/dist/esm/src/api/company-api.js +20 -31
- package/dist/esm/src/api/export-api.d.ts +11 -17
- package/dist/esm/src/api/export-api.js +6 -14
- package/dist/esm/src/api/health-api.d.ts +74 -0
- package/dist/esm/src/api/health-api.js +117 -0
- package/dist/esm/src/api/log-api.d.ts +11 -6
- package/dist/esm/src/api/log-api.js +16 -15
- package/dist/esm/src/api/receive-api.d.ts +16 -11
- package/dist/esm/src/api/receive-api.js +20 -25
- package/dist/esm/src/api/send-api.d.ts +56 -52
- package/dist/esm/src/api/send-api.js +76 -105
- package/dist/esm/src/api/status-api.d.ts +1 -1
- package/dist/esm/src/api/status-api.js +2 -5
- package/dist/esm/src/api/update-api.d.ts +11 -11
- package/dist/esm/src/api/update-api.js +10 -16
- package/dist/esm/src/api/webhook-api.d.ts +1 -1
- package/dist/esm/src/api/webhook-api.js +2 -23
- package/dist/esm/src/models/company.d.ts +1 -1
- package/dist/esm/src/models/company.js +1 -1
- package/dist/esm/src/models/document-data.d.ts +15 -0
- package/dist/esm/src/models/document-data.js +14 -0
- package/dist/esm/src/models/event.d.ts +5 -1
- package/dist/esm/src/models/event.js +1 -1
- package/dist/esm/src/models/index.d.ts +4 -0
- package/dist/esm/src/models/index.js +4 -0
- package/dist/esm/src/models/model-error.d.ts +28 -0
- package/dist/esm/src/models/model-error.js +14 -0
- package/dist/esm/src/models/problem-details.d.ts +19 -0
- package/dist/esm/src/models/problem-details.js +14 -0
- package/dist/esm/src/models/receive.d.ts +6 -2
- package/dist/esm/src/models/receive.js +1 -1
- package/dist/esm/src/models/send-reduced.d.ts +39 -0
- package/dist/esm/src/models/send-reduced.js +14 -0
- package/dist/esm/src/models/send.d.ts +6 -2
- package/dist/esm/src/models/send.js +1 -1
- package/dist/esm/src/models/status.d.ts +1 -1
- package/dist/esm/src/models/status.js +1 -1
- package/dist/esm/src/models/update.d.ts +1 -1
- package/dist/esm/src/models/update.js +1 -1
- package/dist/esm/src/models/web-hook-history.d.ts +1 -1
- package/dist/esm/src/models/web-hook-history.js +1 -1
- package/dist/esm/src/models/web-hook.d.ts +2 -2
- package/dist/esm/src/models/web-hook.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/src/api/company-api.d.ts +16 -11
- package/dist/src/api/company-api.js +19 -30
- package/dist/src/api/export-api.d.ts +11 -17
- package/dist/src/api/export-api.js +6 -14
- package/dist/src/api/health-api.d.ts +74 -0
- package/dist/src/api/health-api.js +124 -0
- package/dist/src/api/log-api.d.ts +11 -6
- package/dist/src/api/log-api.js +15 -14
- package/dist/src/api/receive-api.d.ts +16 -11
- package/dist/src/api/receive-api.js +19 -24
- package/dist/src/api/send-api.d.ts +56 -52
- package/dist/src/api/send-api.js +75 -104
- package/dist/src/api/status-api.d.ts +1 -1
- package/dist/src/api/status-api.js +1 -4
- package/dist/src/api/update-api.d.ts +11 -11
- package/dist/src/api/update-api.js +9 -15
- package/dist/src/api/webhook-api.d.ts +1 -1
- package/dist/src/api/webhook-api.js +1 -22
- package/dist/src/models/company.d.ts +1 -1
- package/dist/src/models/company.js +1 -1
- package/dist/src/models/document-data.d.ts +15 -0
- package/dist/src/models/document-data.js +15 -0
- package/dist/src/models/event.d.ts +5 -1
- package/dist/src/models/event.js +1 -1
- package/dist/src/models/index.d.ts +4 -0
- package/dist/src/models/index.js +4 -0
- package/dist/src/models/model-error.d.ts +28 -0
- package/dist/src/models/model-error.js +15 -0
- package/dist/src/models/problem-details.d.ts +19 -0
- package/dist/src/models/problem-details.js +15 -0
- package/dist/src/models/receive.d.ts +6 -2
- package/dist/src/models/receive.js +1 -1
- package/dist/src/models/send-reduced.d.ts +39 -0
- package/dist/src/models/send-reduced.js +15 -0
- package/dist/src/models/send.d.ts +6 -2
- package/dist/src/models/send.js +1 -1
- package/dist/src/models/status.d.ts +1 -1
- package/dist/src/models/status.js +1 -1
- package/dist/src/models/update.d.ts +1 -1
- package/dist/src/models/update.js +1 -1
- package/dist/src/models/web-hook-history.d.ts +1 -1
- package/dist/src/models/web-hook-history.js +1 -1
- package/dist/src/models/web-hook.d.ts +2 -2
- package/dist/src/models/web-hook.js +1 -1
- package/docs/CompanyApi.md +11 -15
- package/docs/DocumentData.md +22 -0
- package/docs/Error.md +25 -0
- package/docs/Event.md +2 -0
- package/docs/ExportApi.md +3 -3
- package/docs/HealthApi.md +54 -0
- package/docs/LogApi.md +6 -4
- package/docs/ProblemDetails.md +28 -0
- package/docs/Receive.md +3 -1
- package/docs/ReceiveApi.md +9 -10
- package/docs/Send.md +3 -1
- package/docs/SendApi.md +37 -48
- package/docs/SendReduced.md +29 -0
- package/docs/StatusApi.md +1 -1
- package/docs/UpdateApi.md +4 -5
- package/docs/WebHook.md +1 -1
- package/docs/WebhookApi.md +7 -14
- package/index.ts +1 -1
- package/package.json +1 -1
- package/src/api/company-api.ts +23 -40
- package/src/api/export-api.ts +11 -21
- package/src/api/health-api.ts +131 -0
- package/src/api/log-api.ts +18 -19
- package/src/api/receive-api.ts +23 -32
- package/src/api/send-api.ts +87 -130
- package/src/api/status-api.ts +1 -5
- package/src/api/update-api.ts +11 -21
- package/src/api/webhook-api.ts +1 -31
- package/src/models/company.ts +1 -1
- package/src/models/document-data.ts +21 -0
- package/src/models/event.ts +5 -1
- package/src/models/index.ts +4 -0
- package/src/models/model-error.ts +34 -0
- package/src/models/problem-details.ts +26 -0
- package/src/models/receive.ts +6 -2
- package/src/models/send-reduced.ts +45 -0
- package/src/models/send.ts +6 -2
- package/src/models/status.ts +1 -1
- package/src/models/update.ts +1 -1
- package/src/models/web-hook-history.ts +1 -1
- package/src/models/web-hook.ts +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Invoicetronic API
|
|
3
3
|
* 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/
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1
|
|
5
|
+
* The version of the OpenAPI document: 1.6.1
|
|
6
6
|
* Contact: info@invoicetronic.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -18,7 +18,7 @@ import type { Receive } from '../../src/models';
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const ReceiveApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
20
|
/**
|
|
21
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
21
|
+
* 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/).
|
|
22
22
|
* @summary List incoming invoices
|
|
23
23
|
* @param {number} [companyId] Company id
|
|
24
24
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -37,10 +37,11 @@ export declare const ReceiveApiAxiosParamCreator: (configuration?: Configuration
|
|
|
37
37
|
* @param {number} [page] Page number.
|
|
38
38
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
39
39
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
40
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
40
41
|
* @param {*} [options] Override http request option.
|
|
41
42
|
* @throws {RequiredError}
|
|
42
43
|
*/
|
|
43
|
-
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<RequestArgs>;
|
|
44
|
+
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<RequestArgs>;
|
|
44
45
|
/**
|
|
45
46
|
* 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/).
|
|
46
47
|
* @summary Delete an incoming invoice by id
|
|
@@ -72,7 +73,7 @@ export declare const ReceiveApiAxiosParamCreator: (configuration?: Configuration
|
|
|
72
73
|
*/
|
|
73
74
|
export declare const ReceiveApiFp: (configuration?: Configuration) => {
|
|
74
75
|
/**
|
|
75
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
76
|
+
* 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/).
|
|
76
77
|
* @summary List incoming invoices
|
|
77
78
|
* @param {number} [companyId] Company id
|
|
78
79
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -91,10 +92,11 @@ export declare const ReceiveApiFp: (configuration?: Configuration) => {
|
|
|
91
92
|
* @param {number} [page] Page number.
|
|
92
93
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
93
94
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
95
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
94
96
|
* @param {*} [options] Override http request option.
|
|
95
97
|
* @throws {RequiredError}
|
|
96
98
|
*/
|
|
97
|
-
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>>>;
|
|
99
|
+
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>>>;
|
|
98
100
|
/**
|
|
99
101
|
* 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/).
|
|
100
102
|
* @summary Delete an incoming invoice by id
|
|
@@ -126,7 +128,7 @@ export declare const ReceiveApiFp: (configuration?: Configuration) => {
|
|
|
126
128
|
*/
|
|
127
129
|
export declare const ReceiveApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
128
130
|
/**
|
|
129
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
131
|
+
* 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/).
|
|
130
132
|
* @summary List incoming invoices
|
|
131
133
|
* @param {number} [companyId] Company id
|
|
132
134
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -145,10 +147,11 @@ export declare const ReceiveApiFactory: (configuration?: Configuration, basePath
|
|
|
145
147
|
* @param {number} [page] Page number.
|
|
146
148
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
147
149
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
150
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
148
151
|
* @param {*} [options] Override http request option.
|
|
149
152
|
* @throws {RequiredError}
|
|
150
153
|
*/
|
|
151
|
-
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>>;
|
|
154
|
+
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>>;
|
|
152
155
|
/**
|
|
153
156
|
* 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/).
|
|
154
157
|
* @summary Delete an incoming invoice by id
|
|
@@ -180,7 +183,7 @@ export declare const ReceiveApiFactory: (configuration?: Configuration, basePath
|
|
|
180
183
|
*/
|
|
181
184
|
export interface ReceiveApiInterface {
|
|
182
185
|
/**
|
|
183
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
186
|
+
* 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/).
|
|
184
187
|
* @summary List incoming invoices
|
|
185
188
|
* @param {number} [companyId] Company id
|
|
186
189
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -199,10 +202,11 @@ export interface ReceiveApiInterface {
|
|
|
199
202
|
* @param {number} [page] Page number.
|
|
200
203
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
201
204
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
205
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
202
206
|
* @param {*} [options] Override http request option.
|
|
203
207
|
* @throws {RequiredError}
|
|
204
208
|
*/
|
|
205
|
-
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>>;
|
|
209
|
+
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>>;
|
|
206
210
|
/**
|
|
207
211
|
* 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/).
|
|
208
212
|
* @summary Delete an incoming invoice by id
|
|
@@ -234,7 +238,7 @@ export interface ReceiveApiInterface {
|
|
|
234
238
|
*/
|
|
235
239
|
export declare class ReceiveApi extends BaseAPI implements ReceiveApiInterface {
|
|
236
240
|
/**
|
|
237
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
241
|
+
* 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/).
|
|
238
242
|
* @summary List incoming invoices
|
|
239
243
|
* @param {number} [companyId] Company id
|
|
240
244
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -253,10 +257,11 @@ export declare class ReceiveApi extends BaseAPI implements ReceiveApiInterface {
|
|
|
253
257
|
* @param {number} [page] Page number.
|
|
254
258
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
255
259
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
260
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
256
261
|
* @param {*} [options] Override http request option.
|
|
257
262
|
* @throws {RequiredError}
|
|
258
263
|
*/
|
|
259
|
-
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<import("axios").AxiosResponse<Receive[], any, {}>>;
|
|
264
|
+
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<import("axios").AxiosResponse<Receive[], any, {}>>;
|
|
260
265
|
/**
|
|
261
266
|
* 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/).
|
|
262
267
|
* @summary Delete an incoming invoice by id
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1
|
|
7
|
+
* The version of the OpenAPI document: 1.6.1
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ import globalAxios from 'axios';
|
|
|
26
26
|
import { URL } from 'url';
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
29
|
-
import { DUMMY_BASE_URL, assertParamExists,
|
|
29
|
+
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../../common';
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../../base';
|
|
32
32
|
/**
|
|
@@ -35,7 +35,7 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../../base';
|
|
|
35
35
|
export const ReceiveApiAxiosParamCreator = function (configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
38
|
+
* 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/).
|
|
39
39
|
* @summary List incoming invoices
|
|
40
40
|
* @param {number} [companyId] Company id
|
|
41
41
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -54,10 +54,11 @@ export const ReceiveApiAxiosParamCreator = function (configuration) {
|
|
|
54
54
|
* @param {number} [page] Page number.
|
|
55
55
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
56
56
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
57
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
57
58
|
* @param {*} [options] Override http request option.
|
|
58
59
|
* @throws {RequiredError}
|
|
59
60
|
*/
|
|
60
|
-
receiveGet: (companyId_1, identifier_1, unread_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, ...args_1) => __awaiter(this, [companyId_1, identifier_1, unread_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, ...args_1], void 0, function* (companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options = {}) {
|
|
61
|
+
receiveGet: (companyId_1, identifier_1, unread_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, q_1, ...args_1) => __awaiter(this, [companyId_1, identifier_1, unread_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, q_1, ...args_1], void 0, function* (companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options = {}) {
|
|
61
62
|
const localVarPath = `/receive`;
|
|
62
63
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
63
64
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -68,9 +69,6 @@ export const ReceiveApiAxiosParamCreator = function (configuration) {
|
|
|
68
69
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
69
70
|
const localVarHeaderParameter = {};
|
|
70
71
|
const localVarQueryParameter = {};
|
|
71
|
-
// authentication Basic required
|
|
72
|
-
// http basic authentication required
|
|
73
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
74
72
|
if (companyId !== undefined) {
|
|
75
73
|
localVarQueryParameter['company_id'] = companyId;
|
|
76
74
|
}
|
|
@@ -134,6 +132,9 @@ export const ReceiveApiAxiosParamCreator = function (configuration) {
|
|
|
134
132
|
if (sort !== undefined) {
|
|
135
133
|
localVarQueryParameter['sort'] = sort;
|
|
136
134
|
}
|
|
135
|
+
if (q !== undefined) {
|
|
136
|
+
localVarQueryParameter['q'] = q;
|
|
137
|
+
}
|
|
137
138
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
138
139
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
139
140
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -164,9 +165,6 @@ export const ReceiveApiAxiosParamCreator = function (configuration) {
|
|
|
164
165
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
165
166
|
const localVarHeaderParameter = {};
|
|
166
167
|
const localVarQueryParameter = {};
|
|
167
|
-
// authentication Basic required
|
|
168
|
-
// http basic authentication required
|
|
169
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
170
168
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
171
169
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
172
170
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -198,9 +196,6 @@ export const ReceiveApiAxiosParamCreator = function (configuration) {
|
|
|
198
196
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
199
197
|
const localVarHeaderParameter = {};
|
|
200
198
|
const localVarQueryParameter = {};
|
|
201
|
-
// authentication Basic required
|
|
202
|
-
// http basic authentication required
|
|
203
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
204
199
|
if (includePayload !== undefined) {
|
|
205
200
|
localVarQueryParameter['include_payload'] = includePayload;
|
|
206
201
|
}
|
|
@@ -234,9 +229,6 @@ export const ReceiveApiAxiosParamCreator = function (configuration) {
|
|
|
234
229
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
235
230
|
const localVarHeaderParameter = {};
|
|
236
231
|
const localVarQueryParameter = {};
|
|
237
|
-
// authentication Basic required
|
|
238
|
-
// http basic authentication required
|
|
239
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
240
232
|
localVarHeaderParameter['Accept'] = 'application/problem+json';
|
|
241
233
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
242
234
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -255,7 +247,7 @@ export const ReceiveApiFp = function (configuration) {
|
|
|
255
247
|
const localVarAxiosParamCreator = ReceiveApiAxiosParamCreator(configuration);
|
|
256
248
|
return {
|
|
257
249
|
/**
|
|
258
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
250
|
+
* 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/).
|
|
259
251
|
* @summary List incoming invoices
|
|
260
252
|
* @param {number} [companyId] Company id
|
|
261
253
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -274,13 +266,14 @@ export const ReceiveApiFp = function (configuration) {
|
|
|
274
266
|
* @param {number} [page] Page number.
|
|
275
267
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
276
268
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
269
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
277
270
|
* @param {*} [options] Override http request option.
|
|
278
271
|
* @throws {RequiredError}
|
|
279
272
|
*/
|
|
280
|
-
receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
273
|
+
receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
281
274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
282
275
|
var _a, _b, _c;
|
|
283
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
|
|
276
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
|
|
284
277
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
285
278
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReceiveApi.receiveGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
286
279
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -344,7 +337,7 @@ export const ReceiveApiFactory = function (configuration, basePath, axios) {
|
|
|
344
337
|
const localVarFp = ReceiveApiFp(configuration);
|
|
345
338
|
return {
|
|
346
339
|
/**
|
|
347
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
340
|
+
* 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/).
|
|
348
341
|
* @summary List incoming invoices
|
|
349
342
|
* @param {number} [companyId] Company id
|
|
350
343
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -363,11 +356,12 @@ export const ReceiveApiFactory = function (configuration, basePath, axios) {
|
|
|
363
356
|
* @param {number} [page] Page number.
|
|
364
357
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
365
358
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
359
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
366
360
|
* @param {*} [options] Override http request option.
|
|
367
361
|
* @throws {RequiredError}
|
|
368
362
|
*/
|
|
369
|
-
receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
370
|
-
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));
|
|
363
|
+
receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
364
|
+
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));
|
|
371
365
|
},
|
|
372
366
|
/**
|
|
373
367
|
* 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/).
|
|
@@ -407,7 +401,7 @@ export const ReceiveApiFactory = function (configuration, basePath, axios) {
|
|
|
407
401
|
*/
|
|
408
402
|
export class ReceiveApi extends BaseAPI {
|
|
409
403
|
/**
|
|
410
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
404
|
+
* 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/).
|
|
411
405
|
* @summary List incoming invoices
|
|
412
406
|
* @param {number} [companyId] Company id
|
|
413
407
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -426,11 +420,12 @@ export class ReceiveApi extends BaseAPI {
|
|
|
426
420
|
* @param {number} [page] Page number.
|
|
427
421
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
428
422
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
423
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
429
424
|
* @param {*} [options] Override http request option.
|
|
430
425
|
* @throws {RequiredError}
|
|
431
426
|
*/
|
|
432
|
-
receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
433
|
-
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));
|
|
427
|
+
receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
428
|
+
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));
|
|
434
429
|
}
|
|
435
430
|
/**
|
|
436
431
|
* 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/).
|