Skip to content

Commit ba1646d

Browse files
author
Invoicetronic bot
committed
Publish SDKs for tag sdk-1.3
1 parent 4cfdc86 commit ba1646d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+322
-73
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ docs/DettaglioPagamento.md
4040
docs/DocumentData.md
4141
docs/Error.md
4242
docs/Event.md
43+
docs/ExportApi.md
4344
docs/FatturaElettronicaBody.md
4445
docs/FatturaElettronicaHeader.md
4546
docs/FatturaOrdinaria.md
@@ -75,6 +76,7 @@ mocha.opts
7576
package.json
7677
src/ApiClient.js
7778
src/api/CompanyApi.js
79+
src/api/ExportApi.js
7880
src/api/LogApi.js
7981
src/api/ReceiveApi.js
8082
src/api/SendApi.js
@@ -143,6 +145,7 @@ src/model/Update.js
143145
src/model/WebHook.js
144146
src/model/WebHookHistory.js
145147
test/api/CompanyApi.spec.js
148+
test/api/ExportApi.spec.js
146149
test/api/LogApi.spec.js
147150
test/api/ReceiveApi.spec.js
148151
test/api/SendApi.spec.js

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Changelog\n\n## [1.2.0] - 2026-02-10\nSee main repository changelog for details.
1+
# Changelog\n\n## [1.3.0] - 2026-02-13\nSee main repository changelog for details.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ For more information, see [Invoicetronic website][2]
1010
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
1111

1212
- API version: 1
13-
- Package version: 1.2
13+
- Package version: 1.3
1414
- Generator version: 7.19.0
1515
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
1616
For more information, please visit [https://invoicetronic.com/en/contact/](https://invoicetronic.com/en/contact/)
@@ -139,6 +139,7 @@ Class | Method | HTTP request | Description
139139
*invoicetronicSdk.CompanyApi* | [**companyIdGet**](docs/CompanyApi.md#companyIdGet) | **GET** /company/{id} | Get a company by id
140140
*invoicetronicSdk.CompanyApi* | [**companyPost**](docs/CompanyApi.md#companyPost) | **POST** /company | Add a company
141141
*invoicetronicSdk.CompanyApi* | [**companyPut**](docs/CompanyApi.md#companyPut) | **PUT** /company | Update a company
142+
*invoicetronicSdk.ExportApi* | [**exportGet**](docs/ExportApi.md#exportGet) | **GET** /export | Export invoices as a ZIP archive
142143
*invoicetronicSdk.LogApi* | [**logGet**](docs/LogApi.md#logGet) | **GET** /log | List events
143144
*invoicetronicSdk.LogApi* | [**logIdGet**](docs/LogApi.md#logIdGet) | **GET** /log/{id} | Get an event by id
144145
*invoicetronicSdk.ReceiveApi* | [**receiveGet**](docs/ReceiveApi.md#receiveGet) | **GET** /receive | List incoming invoices

docs/ExportApi.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# invoicetronicSdk.ExportApi
2+
3+
All URIs are relative to *http://localhost*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**exportGet**](ExportApi.md#exportGet) | **GET** /export | Export invoices as a ZIP archive
8+
9+
10+
11+
## exportGet
12+
13+
> exportGet(opts)
14+
15+
Export invoices as a ZIP archive
16+
17+
Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
18+
19+
### Example
20+
21+
```javascript
22+
import invoicetronicSdk from '@invoicetronic/js-sdk';
23+
let defaultClient = invoicetronicSdk.ApiClient.instance;
24+
// Configure HTTP basic authorization: Basic
25+
let Basic = defaultClient.authentications['Basic'];
26+
Basic.username = 'YOUR USERNAME';
27+
Basic.password = 'YOUR PASSWORD';
28+
29+
let apiInstance = new invoicetronicSdk.ExportApi();
30+
let opts = {
31+
'type': "'Both'", // String |
32+
'companyId': 56, // Number | Company id
33+
'year': 56, // Number |
34+
'month': 56, // Number |
35+
'quarter': 56, // Number |
36+
'documentDateFrom': new Date("2013-10-20T19:20:30+01:00"), // Date | UTC ISO 8601 (2024-11-29T12:34:56Z)
37+
'documentDateTo': new Date("2013-10-20T19:20:30+01:00") // Date | UTC ISO 8601 (2024-11-29T12:34:56Z)
38+
};
39+
apiInstance.exportGet(opts).then(() => {
40+
console.log('API called successfully.');
41+
}, (error) => {
42+
console.error(error);
43+
});
44+
45+
```
46+
47+
### Parameters
48+
49+
50+
Name | Type | Description | Notes
51+
------------- | ------------- | ------------- | -------------
52+
**type** | **String**| | [optional] [default to 'Both']
53+
**companyId** | **Number**| Company id | [optional]
54+
**year** | **Number**| | [optional]
55+
**month** | **Number**| | [optional]
56+
**quarter** | **Number**| | [optional]
57+
**documentDateFrom** | **Date**| UTC ISO 8601 (2024-11-29T12:34:56Z) | [optional]
58+
**documentDateTo** | **Date**| UTC ISO 8601 (2024-11-29T12:34:56Z) | [optional]
59+
60+
### Return type
61+
62+
null (empty response body)
63+
64+
### Authorization
65+
66+
[Basic](../README.md#Basic)
67+
68+
### HTTP request headers
69+
70+
- **Content-Type**: Not defined
71+
- **Accept**: application/problem+json
72+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@invoicetronic/js-sdk",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "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/",
55
"license": "MIT",
66
"main": "dist/index.js",

src/ApiClient.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import superagent from "superagent";
1616

1717
/**
1818
* @module ApiClient
19-
* @version 1.2
19+
* @version 1.3
2020
*/
2121

2222
/**
@@ -54,7 +54,7 @@ class ApiClient {
5454
* @default {}
5555
*/
5656
this.defaultHeaders = {
57-
'User-Agent': 'Invoicetronic/1.2/JavaScript-SDK'
57+
'User-Agent': 'Invoicetronic/1.3/JavaScript-SDK'
5858
};
5959

6060
/**

src/api/CompanyApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import ProblemHttpResult from '../model/ProblemHttpResult';
2020
/**
2121
* Company service.
2222
* @module api/CompanyApi
23-
* @version 1.2
23+
* @version 1.3
2424
*/
2525
export default class CompanyApi {
2626

src/api/ExportApi.js

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
/**
2+
* Invoicetronic API
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+
*
5+
* The version of the OpenAPI document: 1
6+
* Contact: info@invoicetronic.com
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*
12+
*/
13+
14+
15+
import ApiClient from "../ApiClient";
16+
import ProblemDetails from '../model/ProblemDetails';
17+
18+
/**
19+
* Export service.
20+
* @module api/ExportApi
21+
* @version 1.3
22+
*/
23+
export default class ExportApi {
24+
25+
/**
26+
* Constructs a new ExportApi.
27+
* @alias module:api/ExportApi
28+
* @class
29+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
30+
* default to {@link module:ApiClient#instance} if unspecified.
31+
*/
32+
constructor(apiClient) {
33+
this.apiClient = apiClient || ApiClient.instance;
34+
}
35+
36+
37+
38+
/**
39+
* Export invoices as a ZIP archive
40+
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
41+
* @param {Object} opts Optional parameters
42+
* @param {module:model/String} [type = 'Both')]
43+
* @param {Number} [companyId] Company id
44+
* @param {Number} [year]
45+
* @param {Number} [month]
46+
* @param {Number} [quarter]
47+
* @param {Date} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
48+
* @param {Date} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
49+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
50+
*/
51+
exportGetWithHttpInfo(opts) {
52+
opts = opts || {};
53+
let postBody = null;
54+
55+
let pathParams = {
56+
};
57+
let queryParams = {
58+
'type': opts['type'],
59+
'company_id': opts['companyId'],
60+
'year': opts['year'],
61+
'month': opts['month'],
62+
'quarter': opts['quarter'],
63+
'document_date_from': opts['documentDateFrom'],
64+
'document_date_to': opts['documentDateTo']
65+
};
66+
let headerParams = {
67+
};
68+
let formParams = {
69+
};
70+
71+
let authNames = ['Basic'];
72+
let contentTypes = [];
73+
let accepts = ['application/problem+json'];
74+
let returnType = null;
75+
return this.apiClient.callApi(
76+
'/export', 'GET',
77+
pathParams, queryParams, headerParams, formParams, postBody,
78+
authNames, contentTypes, accepts, returnType, null
79+
);
80+
}
81+
82+
/**
83+
* Export invoices as a ZIP archive
84+
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
85+
* @param {Object} opts Optional parameters
86+
* @param {module:model/String} opts.type (default to 'Both')
87+
* @param {Number} opts.companyId Company id
88+
* @param {Number} opts.year
89+
* @param {Number} opts.month
90+
* @param {Number} opts.quarter
91+
* @param {Date} opts.documentDateFrom UTC ISO 8601 (2024-11-29T12:34:56Z)
92+
* @param {Date} opts.documentDateTo UTC ISO 8601 (2024-11-29T12:34:56Z)
93+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
94+
*/
95+
exportGet(opts) {
96+
return this.exportGetWithHttpInfo(opts)
97+
.then(function(response_and_data) {
98+
return response_and_data.data;
99+
});
100+
}
101+
102+
103+
}

src/api/LogApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import ProblemHttpResult from '../model/ProblemHttpResult';
1919
/**
2020
* Log service.
2121
* @module api/LogApi
22-
* @version 1.2
22+
* @version 1.3
2323
*/
2424
export default class LogApi {
2525

src/api/ReceiveApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Receive from '../model/Receive';
1919
/**
2020
* Receive service.
2121
* @module api/ReceiveApi
22-
* @version 1.2
22+
* @version 1.3
2323
*/
2424
export default class ReceiveApi {
2525

0 commit comments

Comments
 (0)