@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
package/dist/src/api/send-api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Invoicetronic API
|
|
6
6
|
* 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/
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1
|
|
8
|
+
* The version of the OpenAPI document: 1.6.1
|
|
9
9
|
* Contact: info@invoicetronic.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -60,9 +60,6 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
60
60
|
const localVarHeaderParameter = {};
|
|
61
61
|
const localVarQueryParameter = {};
|
|
62
62
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
63
|
-
// authentication Basic required
|
|
64
|
-
// http basic authentication required
|
|
65
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
66
63
|
if (validate !== undefined) {
|
|
67
64
|
localVarQueryParameter['validate'] = validate;
|
|
68
65
|
}
|
|
@@ -84,7 +81,7 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
84
81
|
};
|
|
85
82
|
}),
|
|
86
83
|
/**
|
|
87
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
84
|
+
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
88
85
|
* @summary List invoices
|
|
89
86
|
* @param {number} [companyId] Company id
|
|
90
87
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -102,10 +99,11 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
102
99
|
* @param {number} [page] Page number.
|
|
103
100
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
104
101
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
102
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
105
103
|
* @param {*} [options] Override http request option.
|
|
106
104
|
* @throws {RequiredError}
|
|
107
105
|
*/
|
|
108
|
-
sendGet: (companyId_1, identifier_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, 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, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options = {}) {
|
|
106
|
+
sendGet: (companyId_1, identifier_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, 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, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options = {}) {
|
|
109
107
|
const localVarPath = `/send`;
|
|
110
108
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
111
109
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -116,9 +114,6 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
116
114
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
117
115
|
const localVarHeaderParameter = {};
|
|
118
116
|
const localVarQueryParameter = {};
|
|
119
|
-
// authentication Basic required
|
|
120
|
-
// http basic authentication required
|
|
121
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
122
117
|
if (companyId !== undefined) {
|
|
123
118
|
localVarQueryParameter['company_id'] = companyId;
|
|
124
119
|
}
|
|
@@ -179,6 +174,9 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
179
174
|
if (sort !== undefined) {
|
|
180
175
|
localVarQueryParameter['sort'] = sort;
|
|
181
176
|
}
|
|
177
|
+
if (q !== undefined) {
|
|
178
|
+
localVarQueryParameter['q'] = q;
|
|
179
|
+
}
|
|
182
180
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
183
181
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
182
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -210,9 +208,6 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
210
208
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
211
209
|
const localVarHeaderParameter = {};
|
|
212
210
|
const localVarQueryParameter = {};
|
|
213
|
-
// authentication Basic required
|
|
214
|
-
// http basic authentication required
|
|
215
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
216
211
|
if (includePayload !== undefined) {
|
|
217
212
|
localVarQueryParameter['include_payload'] = includePayload;
|
|
218
213
|
}
|
|
@@ -246,9 +241,6 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
246
241
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
247
242
|
const localVarHeaderParameter = {};
|
|
248
243
|
const localVarQueryParameter = {};
|
|
249
|
-
// authentication Basic required
|
|
250
|
-
// http basic authentication required
|
|
251
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
252
244
|
localVarHeaderParameter['Accept'] = 'application/problem+json';
|
|
253
245
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
254
246
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -280,9 +272,6 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
280
272
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
281
273
|
const localVarHeaderParameter = {};
|
|
282
274
|
const localVarQueryParameter = {};
|
|
283
|
-
// authentication Basic required
|
|
284
|
-
// http basic authentication required
|
|
285
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
286
275
|
if (includePayload !== undefined) {
|
|
287
276
|
localVarQueryParameter['include_payload'] = includePayload;
|
|
288
277
|
}
|
|
@@ -298,15 +287,15 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
298
287
|
/**
|
|
299
288
|
* Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
300
289
|
* @summary Add an invoice by json
|
|
301
|
-
* @param {
|
|
290
|
+
* @param {object} body
|
|
302
291
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
303
292
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
304
293
|
* @param {*} [options] Override http request option.
|
|
305
294
|
* @throws {RequiredError}
|
|
306
295
|
*/
|
|
307
|
-
sendJsonPost: (
|
|
308
|
-
// verify required parameter '
|
|
309
|
-
(0, common_1.assertParamExists)('sendJsonPost', '
|
|
296
|
+
sendJsonPost: (body_1, validate_1, signature_1, ...args_1) => __awaiter(this, [body_1, validate_1, signature_1, ...args_1], void 0, function* (body, validate, signature, options = {}) {
|
|
297
|
+
// verify required parameter 'body' is not null or undefined
|
|
298
|
+
(0, common_1.assertParamExists)('sendJsonPost', 'body', body);
|
|
310
299
|
const localVarPath = `/send/json`;
|
|
311
300
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
312
301
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -317,9 +306,6 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
317
306
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
318
307
|
const localVarHeaderParameter = {};
|
|
319
308
|
const localVarQueryParameter = {};
|
|
320
|
-
// authentication Basic required
|
|
321
|
-
// http basic authentication required
|
|
322
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
323
309
|
if (validate !== undefined) {
|
|
324
310
|
localVarQueryParameter['validate'] = validate;
|
|
325
311
|
}
|
|
@@ -331,7 +317,7 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
331
317
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
332
318
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
333
319
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
334
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
320
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
335
321
|
return {
|
|
336
322
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
337
323
|
options: localVarRequestOptions,
|
|
@@ -359,9 +345,6 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
359
345
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
360
346
|
const localVarHeaderParameter = {};
|
|
361
347
|
const localVarQueryParameter = {};
|
|
362
|
-
// authentication Basic required
|
|
363
|
-
// http basic authentication required
|
|
364
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
365
348
|
if (validate !== undefined) {
|
|
366
349
|
localVarQueryParameter['validate'] = validate;
|
|
367
350
|
}
|
|
@@ -400,9 +383,6 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
400
383
|
const localVarHeaderParameter = {};
|
|
401
384
|
const localVarQueryParameter = {};
|
|
402
385
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
403
|
-
// authentication Basic required
|
|
404
|
-
// http basic authentication required
|
|
405
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
406
386
|
if (file !== undefined) {
|
|
407
387
|
localVarFormParams.append('file', file);
|
|
408
388
|
}
|
|
@@ -420,13 +400,13 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
420
400
|
/**
|
|
421
401
|
* Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
422
402
|
* @summary Validate an invoice by json
|
|
423
|
-
* @param {
|
|
403
|
+
* @param {object} body
|
|
424
404
|
* @param {*} [options] Override http request option.
|
|
425
405
|
* @throws {RequiredError}
|
|
426
406
|
*/
|
|
427
|
-
sendValidateJsonPost: (
|
|
428
|
-
// verify required parameter '
|
|
429
|
-
(0, common_1.assertParamExists)('sendValidateJsonPost', '
|
|
407
|
+
sendValidateJsonPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
408
|
+
// verify required parameter 'body' is not null or undefined
|
|
409
|
+
(0, common_1.assertParamExists)('sendValidateJsonPost', 'body', body);
|
|
430
410
|
const localVarPath = `/send/validate/json`;
|
|
431
411
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
432
412
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -437,15 +417,12 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
437
417
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
438
418
|
const localVarHeaderParameter = {};
|
|
439
419
|
const localVarQueryParameter = {};
|
|
440
|
-
// authentication Basic required
|
|
441
|
-
// http basic authentication required
|
|
442
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
443
420
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
444
421
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
445
422
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
446
423
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
447
424
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
448
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
425
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
449
426
|
return {
|
|
450
427
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
451
428
|
options: localVarRequestOptions,
|
|
@@ -471,9 +448,6 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
471
448
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
472
449
|
const localVarHeaderParameter = {};
|
|
473
450
|
const localVarQueryParameter = {};
|
|
474
|
-
// authentication Basic required
|
|
475
|
-
// http basic authentication required
|
|
476
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
477
451
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
478
452
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
479
453
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -488,13 +462,13 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
488
462
|
/**
|
|
489
463
|
* Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
490
464
|
* @summary Validate an invoice by xml
|
|
491
|
-
* @param {
|
|
465
|
+
* @param {object} body
|
|
492
466
|
* @param {*} [options] Override http request option.
|
|
493
467
|
* @throws {RequiredError}
|
|
494
468
|
*/
|
|
495
|
-
sendValidateXmlPost: (
|
|
496
|
-
// verify required parameter '
|
|
497
|
-
(0, common_1.assertParamExists)('sendValidateXmlPost', '
|
|
469
|
+
sendValidateXmlPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
470
|
+
// verify required parameter 'body' is not null or undefined
|
|
471
|
+
(0, common_1.assertParamExists)('sendValidateXmlPost', 'body', body);
|
|
498
472
|
const localVarPath = `/send/validate/xml`;
|
|
499
473
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
500
474
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -505,15 +479,12 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
505
479
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
506
480
|
const localVarHeaderParameter = {};
|
|
507
481
|
const localVarQueryParameter = {};
|
|
508
|
-
// authentication Basic required
|
|
509
|
-
// http basic authentication required
|
|
510
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
511
482
|
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
512
483
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
513
484
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
514
485
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
515
486
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
516
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
487
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
517
488
|
return {
|
|
518
489
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
519
490
|
options: localVarRequestOptions,
|
|
@@ -522,15 +493,15 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
522
493
|
/**
|
|
523
494
|
* Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
524
495
|
* @summary Add an invoice by xml
|
|
525
|
-
* @param {
|
|
496
|
+
* @param {object} body
|
|
526
497
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
527
498
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
528
499
|
* @param {*} [options] Override http request option.
|
|
529
500
|
* @throws {RequiredError}
|
|
530
501
|
*/
|
|
531
|
-
sendXmlPost: (
|
|
532
|
-
// verify required parameter '
|
|
533
|
-
(0, common_1.assertParamExists)('sendXmlPost', '
|
|
502
|
+
sendXmlPost: (body_1, validate_1, signature_1, ...args_1) => __awaiter(this, [body_1, validate_1, signature_1, ...args_1], void 0, function* (body, validate, signature, options = {}) {
|
|
503
|
+
// verify required parameter 'body' is not null or undefined
|
|
504
|
+
(0, common_1.assertParamExists)('sendXmlPost', 'body', body);
|
|
534
505
|
const localVarPath = `/send/xml`;
|
|
535
506
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
536
507
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -541,9 +512,6 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
541
512
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
542
513
|
const localVarHeaderParameter = {};
|
|
543
514
|
const localVarQueryParameter = {};
|
|
544
|
-
// authentication Basic required
|
|
545
|
-
// http basic authentication required
|
|
546
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
547
515
|
if (validate !== undefined) {
|
|
548
516
|
localVarQueryParameter['validate'] = validate;
|
|
549
517
|
}
|
|
@@ -555,7 +523,7 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
555
523
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
556
524
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
557
525
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
558
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
526
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
559
527
|
return {
|
|
560
528
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
561
529
|
options: localVarRequestOptions,
|
|
@@ -589,7 +557,7 @@ const SendApiFp = function (configuration) {
|
|
|
589
557
|
});
|
|
590
558
|
},
|
|
591
559
|
/**
|
|
592
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
560
|
+
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
593
561
|
* @summary List invoices
|
|
594
562
|
* @param {number} [companyId] Company id
|
|
595
563
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -607,13 +575,14 @@ const SendApiFp = function (configuration) {
|
|
|
607
575
|
* @param {number} [page] Page number.
|
|
608
576
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
609
577
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
578
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
610
579
|
* @param {*} [options] Override http request option.
|
|
611
580
|
* @throws {RequiredError}
|
|
612
581
|
*/
|
|
613
|
-
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
582
|
+
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
614
583
|
return __awaiter(this, void 0, void 0, function* () {
|
|
615
584
|
var _a, _b, _c;
|
|
616
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
|
|
585
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
|
|
617
586
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
618
587
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
619
588
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -672,16 +641,16 @@ const SendApiFp = function (configuration) {
|
|
|
672
641
|
/**
|
|
673
642
|
* Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
674
643
|
* @summary Add an invoice by json
|
|
675
|
-
* @param {
|
|
644
|
+
* @param {object} body
|
|
676
645
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
677
646
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
678
647
|
* @param {*} [options] Override http request option.
|
|
679
648
|
* @throws {RequiredError}
|
|
680
649
|
*/
|
|
681
|
-
sendJsonPost(
|
|
650
|
+
sendJsonPost(body, validate, signature, options) {
|
|
682
651
|
return __awaiter(this, void 0, void 0, function* () {
|
|
683
652
|
var _a, _b, _c;
|
|
684
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(
|
|
653
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(body, validate, signature, options);
|
|
685
654
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
686
655
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
687
656
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -724,14 +693,14 @@ const SendApiFp = function (configuration) {
|
|
|
724
693
|
/**
|
|
725
694
|
* Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
726
695
|
* @summary Validate an invoice by json
|
|
727
|
-
* @param {
|
|
696
|
+
* @param {object} body
|
|
728
697
|
* @param {*} [options] Override http request option.
|
|
729
698
|
* @throws {RequiredError}
|
|
730
699
|
*/
|
|
731
|
-
sendValidateJsonPost(
|
|
700
|
+
sendValidateJsonPost(body, options) {
|
|
732
701
|
return __awaiter(this, void 0, void 0, function* () {
|
|
733
702
|
var _a, _b, _c;
|
|
734
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(
|
|
703
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(body, options);
|
|
735
704
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
736
705
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendValidateJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
737
706
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -756,14 +725,14 @@ const SendApiFp = function (configuration) {
|
|
|
756
725
|
/**
|
|
757
726
|
* Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
758
727
|
* @summary Validate an invoice by xml
|
|
759
|
-
* @param {
|
|
728
|
+
* @param {object} body
|
|
760
729
|
* @param {*} [options] Override http request option.
|
|
761
730
|
* @throws {RequiredError}
|
|
762
731
|
*/
|
|
763
|
-
sendValidateXmlPost(
|
|
732
|
+
sendValidateXmlPost(body, options) {
|
|
764
733
|
return __awaiter(this, void 0, void 0, function* () {
|
|
765
734
|
var _a, _b, _c;
|
|
766
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(
|
|
735
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(body, options);
|
|
767
736
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
768
737
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendValidateXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
769
738
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -772,16 +741,16 @@ const SendApiFp = function (configuration) {
|
|
|
772
741
|
/**
|
|
773
742
|
* Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
774
743
|
* @summary Add an invoice by xml
|
|
775
|
-
* @param {
|
|
744
|
+
* @param {object} body
|
|
776
745
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
777
746
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
778
747
|
* @param {*} [options] Override http request option.
|
|
779
748
|
* @throws {RequiredError}
|
|
780
749
|
*/
|
|
781
|
-
sendXmlPost(
|
|
750
|
+
sendXmlPost(body, validate, signature, options) {
|
|
782
751
|
return __awaiter(this, void 0, void 0, function* () {
|
|
783
752
|
var _a, _b, _c;
|
|
784
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(
|
|
753
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(body, validate, signature, options);
|
|
785
754
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
786
755
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
787
756
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -809,7 +778,7 @@ const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
809
778
|
return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
|
|
810
779
|
},
|
|
811
780
|
/**
|
|
812
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
781
|
+
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
813
782
|
* @summary List invoices
|
|
814
783
|
* @param {number} [companyId] Company id
|
|
815
784
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -827,11 +796,12 @@ const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
827
796
|
* @param {number} [page] Page number.
|
|
828
797
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
829
798
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
799
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
830
800
|
* @param {*} [options] Override http request option.
|
|
831
801
|
* @throws {RequiredError}
|
|
832
802
|
*/
|
|
833
|
-
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
834
|
-
return localVarFp.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(axios, basePath));
|
|
803
|
+
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
804
|
+
return localVarFp.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(axios, basePath));
|
|
835
805
|
},
|
|
836
806
|
/**
|
|
837
807
|
* Retrieve a send invoice by its internal id. The `id` is unique and assigned by the system when the invoice is created. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -868,14 +838,14 @@ const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
868
838
|
/**
|
|
869
839
|
* Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
870
840
|
* @summary Add an invoice by json
|
|
871
|
-
* @param {
|
|
841
|
+
* @param {object} body
|
|
872
842
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
873
843
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
874
844
|
* @param {*} [options] Override http request option.
|
|
875
845
|
* @throws {RequiredError}
|
|
876
846
|
*/
|
|
877
|
-
sendJsonPost(
|
|
878
|
-
return localVarFp.sendJsonPost(
|
|
847
|
+
sendJsonPost(body, validate, signature, options) {
|
|
848
|
+
return localVarFp.sendJsonPost(body, validate, signature, options).then((request) => request(axios, basePath));
|
|
879
849
|
},
|
|
880
850
|
/**
|
|
881
851
|
* Add a new invoice using a structured Send object. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
@@ -902,12 +872,12 @@ const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
902
872
|
/**
|
|
903
873
|
* Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
904
874
|
* @summary Validate an invoice by json
|
|
905
|
-
* @param {
|
|
875
|
+
* @param {object} body
|
|
906
876
|
* @param {*} [options] Override http request option.
|
|
907
877
|
* @throws {RequiredError}
|
|
908
878
|
*/
|
|
909
|
-
sendValidateJsonPost(
|
|
910
|
-
return localVarFp.sendValidateJsonPost(
|
|
879
|
+
sendValidateJsonPost(body, options) {
|
|
880
|
+
return localVarFp.sendValidateJsonPost(body, options).then((request) => request(axios, basePath));
|
|
911
881
|
},
|
|
912
882
|
/**
|
|
913
883
|
* Validate an invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -922,24 +892,24 @@ const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
922
892
|
/**
|
|
923
893
|
* Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
924
894
|
* @summary Validate an invoice by xml
|
|
925
|
-
* @param {
|
|
895
|
+
* @param {object} body
|
|
926
896
|
* @param {*} [options] Override http request option.
|
|
927
897
|
* @throws {RequiredError}
|
|
928
898
|
*/
|
|
929
|
-
sendValidateXmlPost(
|
|
930
|
-
return localVarFp.sendValidateXmlPost(
|
|
899
|
+
sendValidateXmlPost(body, options) {
|
|
900
|
+
return localVarFp.sendValidateXmlPost(body, options).then((request) => request(axios, basePath));
|
|
931
901
|
},
|
|
932
902
|
/**
|
|
933
903
|
* Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
934
904
|
* @summary Add an invoice by xml
|
|
935
|
-
* @param {
|
|
905
|
+
* @param {object} body
|
|
936
906
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
937
907
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
938
908
|
* @param {*} [options] Override http request option.
|
|
939
909
|
* @throws {RequiredError}
|
|
940
910
|
*/
|
|
941
|
-
sendXmlPost(
|
|
942
|
-
return localVarFp.sendXmlPost(
|
|
911
|
+
sendXmlPost(body, validate, signature, options) {
|
|
912
|
+
return localVarFp.sendXmlPost(body, validate, signature, options).then((request) => request(axios, basePath));
|
|
943
913
|
},
|
|
944
914
|
};
|
|
945
915
|
};
|
|
@@ -961,7 +931,7 @@ class SendApi extends base_1.BaseAPI {
|
|
|
961
931
|
return (0, exports.SendApiFp)(this.configuration).sendFilePost(file, validate, signature, options).then((request) => request(this.axios, this.basePath));
|
|
962
932
|
}
|
|
963
933
|
/**
|
|
964
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
934
|
+
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
965
935
|
* @summary List invoices
|
|
966
936
|
* @param {number} [companyId] Company id
|
|
967
937
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -979,11 +949,12 @@ class SendApi extends base_1.BaseAPI {
|
|
|
979
949
|
* @param {number} [page] Page number.
|
|
980
950
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
981
951
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
952
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
982
953
|
* @param {*} [options] Override http request option.
|
|
983
954
|
* @throws {RequiredError}
|
|
984
955
|
*/
|
|
985
|
-
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
986
|
-
return (0, exports.SendApiFp)(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
|
|
956
|
+
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
957
|
+
return (0, exports.SendApiFp)(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
|
|
987
958
|
}
|
|
988
959
|
/**
|
|
989
960
|
* Retrieve a send invoice by its internal id. The `id` is unique and assigned by the system when the invoice is created. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -1020,14 +991,14 @@ class SendApi extends base_1.BaseAPI {
|
|
|
1020
991
|
/**
|
|
1021
992
|
* Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
1022
993
|
* @summary Add an invoice by json
|
|
1023
|
-
* @param {
|
|
994
|
+
* @param {object} body
|
|
1024
995
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
1025
996
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
1026
997
|
* @param {*} [options] Override http request option.
|
|
1027
998
|
* @throws {RequiredError}
|
|
1028
999
|
*/
|
|
1029
|
-
sendJsonPost(
|
|
1030
|
-
return (0, exports.SendApiFp)(this.configuration).sendJsonPost(
|
|
1000
|
+
sendJsonPost(body, validate, signature, options) {
|
|
1001
|
+
return (0, exports.SendApiFp)(this.configuration).sendJsonPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
|
|
1031
1002
|
}
|
|
1032
1003
|
/**
|
|
1033
1004
|
* Add a new invoice using a structured Send object. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
@@ -1054,12 +1025,12 @@ class SendApi extends base_1.BaseAPI {
|
|
|
1054
1025
|
/**
|
|
1055
1026
|
* Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
1056
1027
|
* @summary Validate an invoice by json
|
|
1057
|
-
* @param {
|
|
1028
|
+
* @param {object} body
|
|
1058
1029
|
* @param {*} [options] Override http request option.
|
|
1059
1030
|
* @throws {RequiredError}
|
|
1060
1031
|
*/
|
|
1061
|
-
sendValidateJsonPost(
|
|
1062
|
-
return (0, exports.SendApiFp)(this.configuration).sendValidateJsonPost(
|
|
1032
|
+
sendValidateJsonPost(body, options) {
|
|
1033
|
+
return (0, exports.SendApiFp)(this.configuration).sendValidateJsonPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
1063
1034
|
}
|
|
1064
1035
|
/**
|
|
1065
1036
|
* Validate an invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -1074,24 +1045,24 @@ class SendApi extends base_1.BaseAPI {
|
|
|
1074
1045
|
/**
|
|
1075
1046
|
* Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
1076
1047
|
* @summary Validate an invoice by xml
|
|
1077
|
-
* @param {
|
|
1048
|
+
* @param {object} body
|
|
1078
1049
|
* @param {*} [options] Override http request option.
|
|
1079
1050
|
* @throws {RequiredError}
|
|
1080
1051
|
*/
|
|
1081
|
-
sendValidateXmlPost(
|
|
1082
|
-
return (0, exports.SendApiFp)(this.configuration).sendValidateXmlPost(
|
|
1052
|
+
sendValidateXmlPost(body, options) {
|
|
1053
|
+
return (0, exports.SendApiFp)(this.configuration).sendValidateXmlPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
1083
1054
|
}
|
|
1084
1055
|
/**
|
|
1085
1056
|
* Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
1086
1057
|
* @summary Add an invoice by xml
|
|
1087
|
-
* @param {
|
|
1058
|
+
* @param {object} body
|
|
1088
1059
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
1089
1060
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
1090
1061
|
* @param {*} [options] Override http request option.
|
|
1091
1062
|
* @throws {RequiredError}
|
|
1092
1063
|
*/
|
|
1093
|
-
sendXmlPost(
|
|
1094
|
-
return (0, exports.SendApiFp)(this.configuration).sendXmlPost(
|
|
1064
|
+
sendXmlPost(body, validate, signature, options) {
|
|
1065
|
+
return (0, exports.SendApiFp)(this.configuration).sendXmlPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
|
|
1095
1066
|
}
|
|
1096
1067
|
}
|
|
1097
1068
|
exports.SendApi = SendApi;
|
|
@@ -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).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Invoicetronic API
|
|
6
6
|
* 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/
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1
|
|
8
|
+
* The version of the OpenAPI document: 1.6.1
|
|
9
9
|
* Contact: info@invoicetronic.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -54,9 +54,6 @@ const StatusApiAxiosParamCreator = function (configuration) {
|
|
|
54
54
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
55
55
|
const localVarHeaderParameter = {};
|
|
56
56
|
const localVarQueryParameter = {};
|
|
57
|
-
// authentication Basic required
|
|
58
|
-
// http basic authentication required
|
|
59
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
60
57
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
61
58
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
62
59
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|