@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/src/api/send-api.ts
CHANGED
|
@@ -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).
|
|
@@ -25,12 +25,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../../base';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import type { FatturaOrdinaria } from '../../src/models';
|
|
29
|
-
// @ts-ignore
|
|
30
28
|
import type { ProblemDetails } from '../../src/models';
|
|
31
29
|
// @ts-ignore
|
|
32
|
-
import type { ProblemHttpResult } from '../../src/models';
|
|
33
|
-
// @ts-ignore
|
|
34
30
|
import type { Send } from '../../src/models';
|
|
35
31
|
/**
|
|
36
32
|
* SendApi - axios parameter creator
|
|
@@ -62,10 +58,6 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
62
58
|
const localVarQueryParameter = {} as any;
|
|
63
59
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
64
60
|
|
|
65
|
-
// authentication Basic required
|
|
66
|
-
// http basic authentication required
|
|
67
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
68
|
-
|
|
69
61
|
if (validate !== undefined) {
|
|
70
62
|
localVarQueryParameter['validate'] = validate;
|
|
71
63
|
}
|
|
@@ -92,7 +84,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
92
84
|
};
|
|
93
85
|
},
|
|
94
86
|
/**
|
|
95
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
87
|
+
* 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/).
|
|
96
88
|
* @summary List invoices
|
|
97
89
|
* @param {number} [companyId] Company id
|
|
98
90
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -110,10 +102,11 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
110
102
|
* @param {number} [page] Page number.
|
|
111
103
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
112
104
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
105
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
113
106
|
* @param {*} [options] Override http request option.
|
|
114
107
|
* @throws {RequiredError}
|
|
115
108
|
*/
|
|
116
|
-
sendGet: async (companyId?: number, identifier?: string, 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> => {
|
|
109
|
+
sendGet: async (companyId?: number, identifier?: string, 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> => {
|
|
117
110
|
const localVarPath = `/send`;
|
|
118
111
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
119
112
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -126,10 +119,6 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
126
119
|
const localVarHeaderParameter = {} as any;
|
|
127
120
|
const localVarQueryParameter = {} as any;
|
|
128
121
|
|
|
129
|
-
// authentication Basic required
|
|
130
|
-
// http basic authentication required
|
|
131
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
132
|
-
|
|
133
122
|
if (companyId !== undefined) {
|
|
134
123
|
localVarQueryParameter['company_id'] = companyId;
|
|
135
124
|
}
|
|
@@ -206,6 +195,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
206
195
|
localVarQueryParameter['sort'] = sort;
|
|
207
196
|
}
|
|
208
197
|
|
|
198
|
+
if (q !== undefined) {
|
|
199
|
+
localVarQueryParameter['q'] = q;
|
|
200
|
+
}
|
|
201
|
+
|
|
209
202
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
210
203
|
|
|
211
204
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -241,10 +234,6 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
241
234
|
const localVarHeaderParameter = {} as any;
|
|
242
235
|
const localVarQueryParameter = {} as any;
|
|
243
236
|
|
|
244
|
-
// authentication Basic required
|
|
245
|
-
// http basic authentication required
|
|
246
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
247
|
-
|
|
248
237
|
if (includePayload !== undefined) {
|
|
249
238
|
localVarQueryParameter['include_payload'] = includePayload;
|
|
250
239
|
}
|
|
@@ -283,10 +272,6 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
283
272
|
const localVarHeaderParameter = {} as any;
|
|
284
273
|
const localVarQueryParameter = {} as any;
|
|
285
274
|
|
|
286
|
-
// authentication Basic required
|
|
287
|
-
// http basic authentication required
|
|
288
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
289
|
-
|
|
290
275
|
localVarHeaderParameter['Accept'] = 'application/problem+json';
|
|
291
276
|
|
|
292
277
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -322,10 +307,6 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
322
307
|
const localVarHeaderParameter = {} as any;
|
|
323
308
|
const localVarQueryParameter = {} as any;
|
|
324
309
|
|
|
325
|
-
// authentication Basic required
|
|
326
|
-
// http basic authentication required
|
|
327
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
328
|
-
|
|
329
310
|
if (includePayload !== undefined) {
|
|
330
311
|
localVarQueryParameter['include_payload'] = includePayload;
|
|
331
312
|
}
|
|
@@ -344,15 +325,15 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
344
325
|
/**
|
|
345
326
|
* 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).
|
|
346
327
|
* @summary Add an invoice by json
|
|
347
|
-
* @param {
|
|
328
|
+
* @param {object} body
|
|
348
329
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
349
330
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
350
331
|
* @param {*} [options] Override http request option.
|
|
351
332
|
* @throws {RequiredError}
|
|
352
333
|
*/
|
|
353
|
-
sendJsonPost: async (
|
|
354
|
-
// verify required parameter '
|
|
355
|
-
assertParamExists('sendJsonPost', '
|
|
334
|
+
sendJsonPost: async (body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
335
|
+
// verify required parameter 'body' is not null or undefined
|
|
336
|
+
assertParamExists('sendJsonPost', 'body', body)
|
|
356
337
|
const localVarPath = `/send/json`;
|
|
357
338
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
358
339
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -365,10 +346,6 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
365
346
|
const localVarHeaderParameter = {} as any;
|
|
366
347
|
const localVarQueryParameter = {} as any;
|
|
367
348
|
|
|
368
|
-
// authentication Basic required
|
|
369
|
-
// http basic authentication required
|
|
370
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
371
|
-
|
|
372
349
|
if (validate !== undefined) {
|
|
373
350
|
localVarQueryParameter['validate'] = validate;
|
|
374
351
|
}
|
|
@@ -383,7 +360,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
383
360
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
384
361
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
385
362
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
386
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
363
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
387
364
|
|
|
388
365
|
return {
|
|
389
366
|
url: toPathString(localVarUrlObj),
|
|
@@ -414,10 +391,6 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
414
391
|
const localVarHeaderParameter = {} as any;
|
|
415
392
|
const localVarQueryParameter = {} as any;
|
|
416
393
|
|
|
417
|
-
// authentication Basic required
|
|
418
|
-
// http basic authentication required
|
|
419
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
420
|
-
|
|
421
394
|
if (validate !== undefined) {
|
|
422
395
|
localVarQueryParameter['validate'] = validate;
|
|
423
396
|
}
|
|
@@ -462,10 +435,6 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
462
435
|
const localVarQueryParameter = {} as any;
|
|
463
436
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
464
437
|
|
|
465
|
-
// authentication Basic required
|
|
466
|
-
// http basic authentication required
|
|
467
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
468
|
-
|
|
469
438
|
|
|
470
439
|
if (file !== undefined) {
|
|
471
440
|
localVarFormParams.append('file', file as any);
|
|
@@ -486,13 +455,13 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
486
455
|
/**
|
|
487
456
|
* 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/).
|
|
488
457
|
* @summary Validate an invoice by json
|
|
489
|
-
* @param {
|
|
458
|
+
* @param {object} body
|
|
490
459
|
* @param {*} [options] Override http request option.
|
|
491
460
|
* @throws {RequiredError}
|
|
492
461
|
*/
|
|
493
|
-
sendValidateJsonPost: async (
|
|
494
|
-
// verify required parameter '
|
|
495
|
-
assertParamExists('sendValidateJsonPost', '
|
|
462
|
+
sendValidateJsonPost: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
463
|
+
// verify required parameter 'body' is not null or undefined
|
|
464
|
+
assertParamExists('sendValidateJsonPost', 'body', body)
|
|
496
465
|
const localVarPath = `/send/validate/json`;
|
|
497
466
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
498
467
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -505,17 +474,13 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
505
474
|
const localVarHeaderParameter = {} as any;
|
|
506
475
|
const localVarQueryParameter = {} as any;
|
|
507
476
|
|
|
508
|
-
// authentication Basic required
|
|
509
|
-
// http basic authentication required
|
|
510
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
511
|
-
|
|
512
477
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
513
478
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
514
479
|
|
|
515
480
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
516
481
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
517
482
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
518
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
483
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
519
484
|
|
|
520
485
|
return {
|
|
521
486
|
url: toPathString(localVarUrlObj),
|
|
@@ -544,10 +509,6 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
544
509
|
const localVarHeaderParameter = {} as any;
|
|
545
510
|
const localVarQueryParameter = {} as any;
|
|
546
511
|
|
|
547
|
-
// authentication Basic required
|
|
548
|
-
// http basic authentication required
|
|
549
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
550
|
-
|
|
551
512
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
552
513
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
553
514
|
|
|
@@ -564,13 +525,13 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
564
525
|
/**
|
|
565
526
|
* 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/).
|
|
566
527
|
* @summary Validate an invoice by xml
|
|
567
|
-
* @param {
|
|
528
|
+
* @param {object} body
|
|
568
529
|
* @param {*} [options] Override http request option.
|
|
569
530
|
* @throws {RequiredError}
|
|
570
531
|
*/
|
|
571
|
-
sendValidateXmlPost: async (
|
|
572
|
-
// verify required parameter '
|
|
573
|
-
assertParamExists('sendValidateXmlPost', '
|
|
532
|
+
sendValidateXmlPost: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
533
|
+
// verify required parameter 'body' is not null or undefined
|
|
534
|
+
assertParamExists('sendValidateXmlPost', 'body', body)
|
|
574
535
|
const localVarPath = `/send/validate/xml`;
|
|
575
536
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
576
537
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -583,17 +544,13 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
583
544
|
const localVarHeaderParameter = {} as any;
|
|
584
545
|
const localVarQueryParameter = {} as any;
|
|
585
546
|
|
|
586
|
-
// authentication Basic required
|
|
587
|
-
// http basic authentication required
|
|
588
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
589
|
-
|
|
590
547
|
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
591
548
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
592
549
|
|
|
593
550
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
594
551
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
595
552
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
596
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
553
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
597
554
|
|
|
598
555
|
return {
|
|
599
556
|
url: toPathString(localVarUrlObj),
|
|
@@ -603,15 +560,15 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
603
560
|
/**
|
|
604
561
|
* 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).
|
|
605
562
|
* @summary Add an invoice by xml
|
|
606
|
-
* @param {
|
|
563
|
+
* @param {object} body
|
|
607
564
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
608
565
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
609
566
|
* @param {*} [options] Override http request option.
|
|
610
567
|
* @throws {RequiredError}
|
|
611
568
|
*/
|
|
612
|
-
sendXmlPost: async (
|
|
613
|
-
// verify required parameter '
|
|
614
|
-
assertParamExists('sendXmlPost', '
|
|
569
|
+
sendXmlPost: async (body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
570
|
+
// verify required parameter 'body' is not null or undefined
|
|
571
|
+
assertParamExists('sendXmlPost', 'body', body)
|
|
615
572
|
const localVarPath = `/send/xml`;
|
|
616
573
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
617
574
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -624,10 +581,6 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
624
581
|
const localVarHeaderParameter = {} as any;
|
|
625
582
|
const localVarQueryParameter = {} as any;
|
|
626
583
|
|
|
627
|
-
// authentication Basic required
|
|
628
|
-
// http basic authentication required
|
|
629
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
630
|
-
|
|
631
584
|
if (validate !== undefined) {
|
|
632
585
|
localVarQueryParameter['validate'] = validate;
|
|
633
586
|
}
|
|
@@ -642,7 +595,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
642
595
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
643
596
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
644
597
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
645
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
598
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
646
599
|
|
|
647
600
|
return {
|
|
648
601
|
url: toPathString(localVarUrlObj),
|
|
@@ -674,7 +627,7 @@ export const SendApiFp = function(configuration?: Configuration) {
|
|
|
674
627
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
675
628
|
},
|
|
676
629
|
/**
|
|
677
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
630
|
+
* 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/).
|
|
678
631
|
* @summary List invoices
|
|
679
632
|
* @param {number} [companyId] Company id
|
|
680
633
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -692,11 +645,12 @@ export const SendApiFp = function(configuration?: Configuration) {
|
|
|
692
645
|
* @param {number} [page] Page number.
|
|
693
646
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
694
647
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
648
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
695
649
|
* @param {*} [options] Override http request option.
|
|
696
650
|
* @throws {RequiredError}
|
|
697
651
|
*/
|
|
698
|
-
async sendGet(companyId?: number, identifier?: string, 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<Send>>> {
|
|
699
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
|
|
652
|
+
async sendGet(companyId?: number, identifier?: string, 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<Send>>> {
|
|
653
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
|
|
700
654
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
701
655
|
const localVarOperationServerBasePath = operationServerMap['SendApi.sendGet']?.[localVarOperationServerIndex]?.url;
|
|
702
656
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -745,14 +699,14 @@ export const SendApiFp = function(configuration?: Configuration) {
|
|
|
745
699
|
/**
|
|
746
700
|
* 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).
|
|
747
701
|
* @summary Add an invoice by json
|
|
748
|
-
* @param {
|
|
702
|
+
* @param {object} body
|
|
749
703
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
750
704
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
751
705
|
* @param {*} [options] Override http request option.
|
|
752
706
|
* @throws {RequiredError}
|
|
753
707
|
*/
|
|
754
|
-
async sendJsonPost(
|
|
755
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendJsonPost(
|
|
708
|
+
async sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Send>> {
|
|
709
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendJsonPost(body, validate, signature, options);
|
|
756
710
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
757
711
|
const localVarOperationServerBasePath = operationServerMap['SendApi.sendJsonPost']?.[localVarOperationServerIndex]?.url;
|
|
758
712
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -788,12 +742,12 @@ export const SendApiFp = function(configuration?: Configuration) {
|
|
|
788
742
|
/**
|
|
789
743
|
* 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/).
|
|
790
744
|
* @summary Validate an invoice by json
|
|
791
|
-
* @param {
|
|
745
|
+
* @param {object} body
|
|
792
746
|
* @param {*} [options] Override http request option.
|
|
793
747
|
* @throws {RequiredError}
|
|
794
748
|
*/
|
|
795
|
-
async sendValidateJsonPost(
|
|
796
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendValidateJsonPost(
|
|
749
|
+
async sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
750
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendValidateJsonPost(body, options);
|
|
797
751
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
798
752
|
const localVarOperationServerBasePath = operationServerMap['SendApi.sendValidateJsonPost']?.[localVarOperationServerIndex]?.url;
|
|
799
753
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -814,12 +768,12 @@ export const SendApiFp = function(configuration?: Configuration) {
|
|
|
814
768
|
/**
|
|
815
769
|
* 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/).
|
|
816
770
|
* @summary Validate an invoice by xml
|
|
817
|
-
* @param {
|
|
771
|
+
* @param {object} body
|
|
818
772
|
* @param {*} [options] Override http request option.
|
|
819
773
|
* @throws {RequiredError}
|
|
820
774
|
*/
|
|
821
|
-
async sendValidateXmlPost(
|
|
822
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendValidateXmlPost(
|
|
775
|
+
async sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
776
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendValidateXmlPost(body, options);
|
|
823
777
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
824
778
|
const localVarOperationServerBasePath = operationServerMap['SendApi.sendValidateXmlPost']?.[localVarOperationServerIndex]?.url;
|
|
825
779
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -827,14 +781,14 @@ export const SendApiFp = function(configuration?: Configuration) {
|
|
|
827
781
|
/**
|
|
828
782
|
* 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).
|
|
829
783
|
* @summary Add an invoice by xml
|
|
830
|
-
* @param {
|
|
784
|
+
* @param {object} body
|
|
831
785
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
832
786
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
833
787
|
* @param {*} [options] Override http request option.
|
|
834
788
|
* @throws {RequiredError}
|
|
835
789
|
*/
|
|
836
|
-
async sendXmlPost(
|
|
837
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendXmlPost(
|
|
790
|
+
async sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Send>> {
|
|
791
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendXmlPost(body, validate, signature, options);
|
|
838
792
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
839
793
|
const localVarOperationServerBasePath = operationServerMap['SendApi.sendXmlPost']?.[localVarOperationServerIndex]?.url;
|
|
840
794
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -861,7 +815,7 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
|
|
|
861
815
|
return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
|
|
862
816
|
},
|
|
863
817
|
/**
|
|
864
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
818
|
+
* 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/).
|
|
865
819
|
* @summary List invoices
|
|
866
820
|
* @param {number} [companyId] Company id
|
|
867
821
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -879,11 +833,12 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
|
|
|
879
833
|
* @param {number} [page] Page number.
|
|
880
834
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
881
835
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
836
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
882
837
|
* @param {*} [options] Override http request option.
|
|
883
838
|
* @throws {RequiredError}
|
|
884
839
|
*/
|
|
885
|
-
sendGet(companyId?: number, identifier?: string, 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<Send>> {
|
|
886
|
-
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));
|
|
840
|
+
sendGet(companyId?: number, identifier?: string, 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<Send>> {
|
|
841
|
+
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));
|
|
887
842
|
},
|
|
888
843
|
/**
|
|
889
844
|
* 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/).
|
|
@@ -920,14 +875,14 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
|
|
|
920
875
|
/**
|
|
921
876
|
* 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).
|
|
922
877
|
* @summary Add an invoice by json
|
|
923
|
-
* @param {
|
|
878
|
+
* @param {object} body
|
|
924
879
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
925
880
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
926
881
|
* @param {*} [options] Override http request option.
|
|
927
882
|
* @throws {RequiredError}
|
|
928
883
|
*/
|
|
929
|
-
sendJsonPost(
|
|
930
|
-
return localVarFp.sendJsonPost(
|
|
884
|
+
sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send> {
|
|
885
|
+
return localVarFp.sendJsonPost(body, validate, signature, options).then((request) => request(axios, basePath));
|
|
931
886
|
},
|
|
932
887
|
/**
|
|
933
888
|
* 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).
|
|
@@ -954,12 +909,12 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
|
|
|
954
909
|
/**
|
|
955
910
|
* 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/).
|
|
956
911
|
* @summary Validate an invoice by json
|
|
957
|
-
* @param {
|
|
912
|
+
* @param {object} body
|
|
958
913
|
* @param {*} [options] Override http request option.
|
|
959
914
|
* @throws {RequiredError}
|
|
960
915
|
*/
|
|
961
|
-
sendValidateJsonPost(
|
|
962
|
-
return localVarFp.sendValidateJsonPost(
|
|
916
|
+
sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
917
|
+
return localVarFp.sendValidateJsonPost(body, options).then((request) => request(axios, basePath));
|
|
963
918
|
},
|
|
964
919
|
/**
|
|
965
920
|
* 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/).
|
|
@@ -974,24 +929,24 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
|
|
|
974
929
|
/**
|
|
975
930
|
* 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/).
|
|
976
931
|
* @summary Validate an invoice by xml
|
|
977
|
-
* @param {
|
|
932
|
+
* @param {object} body
|
|
978
933
|
* @param {*} [options] Override http request option.
|
|
979
934
|
* @throws {RequiredError}
|
|
980
935
|
*/
|
|
981
|
-
sendValidateXmlPost(
|
|
982
|
-
return localVarFp.sendValidateXmlPost(
|
|
936
|
+
sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
937
|
+
return localVarFp.sendValidateXmlPost(body, options).then((request) => request(axios, basePath));
|
|
983
938
|
},
|
|
984
939
|
/**
|
|
985
940
|
* 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).
|
|
986
941
|
* @summary Add an invoice by xml
|
|
987
|
-
* @param {
|
|
942
|
+
* @param {object} body
|
|
988
943
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
989
944
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
990
945
|
* @param {*} [options] Override http request option.
|
|
991
946
|
* @throws {RequiredError}
|
|
992
947
|
*/
|
|
993
|
-
sendXmlPost(
|
|
994
|
-
return localVarFp.sendXmlPost(
|
|
948
|
+
sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send> {
|
|
949
|
+
return localVarFp.sendXmlPost(body, validate, signature, options).then((request) => request(axios, basePath));
|
|
995
950
|
},
|
|
996
951
|
};
|
|
997
952
|
};
|
|
@@ -1012,7 +967,7 @@ export interface SendApiInterface {
|
|
|
1012
967
|
sendFilePost(file: File, validate?: boolean, signature?: SendFilePostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
|
|
1013
968
|
|
|
1014
969
|
/**
|
|
1015
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
970
|
+
* 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/).
|
|
1016
971
|
* @summary List invoices
|
|
1017
972
|
* @param {number} [companyId] Company id
|
|
1018
973
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -1030,10 +985,11 @@ export interface SendApiInterface {
|
|
|
1030
985
|
* @param {number} [page] Page number.
|
|
1031
986
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
1032
987
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
988
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
1033
989
|
* @param {*} [options] Override http request option.
|
|
1034
990
|
* @throws {RequiredError}
|
|
1035
991
|
*/
|
|
1036
|
-
sendGet(companyId?: number, identifier?: string, 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<Send>>;
|
|
992
|
+
sendGet(companyId?: number, identifier?: string, 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<Send>>;
|
|
1037
993
|
|
|
1038
994
|
/**
|
|
1039
995
|
* 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/).
|
|
@@ -1067,13 +1023,13 @@ export interface SendApiInterface {
|
|
|
1067
1023
|
/**
|
|
1068
1024
|
* 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).
|
|
1069
1025
|
* @summary Add an invoice by json
|
|
1070
|
-
* @param {
|
|
1026
|
+
* @param {object} body
|
|
1071
1027
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
1072
1028
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
1073
1029
|
* @param {*} [options] Override http request option.
|
|
1074
1030
|
* @throws {RequiredError}
|
|
1075
1031
|
*/
|
|
1076
|
-
sendJsonPost(
|
|
1032
|
+
sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
|
|
1077
1033
|
|
|
1078
1034
|
/**
|
|
1079
1035
|
* 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).
|
|
@@ -1098,11 +1054,11 @@ export interface SendApiInterface {
|
|
|
1098
1054
|
/**
|
|
1099
1055
|
* 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/).
|
|
1100
1056
|
* @summary Validate an invoice by json
|
|
1101
|
-
* @param {
|
|
1057
|
+
* @param {object} body
|
|
1102
1058
|
* @param {*} [options] Override http request option.
|
|
1103
1059
|
* @throws {RequiredError}
|
|
1104
1060
|
*/
|
|
1105
|
-
sendValidateJsonPost(
|
|
1061
|
+
sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1106
1062
|
|
|
1107
1063
|
/**
|
|
1108
1064
|
* 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/).
|
|
@@ -1116,22 +1072,22 @@ export interface SendApiInterface {
|
|
|
1116
1072
|
/**
|
|
1117
1073
|
* 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/).
|
|
1118
1074
|
* @summary Validate an invoice by xml
|
|
1119
|
-
* @param {
|
|
1075
|
+
* @param {object} body
|
|
1120
1076
|
* @param {*} [options] Override http request option.
|
|
1121
1077
|
* @throws {RequiredError}
|
|
1122
1078
|
*/
|
|
1123
|
-
sendValidateXmlPost(
|
|
1079
|
+
sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1124
1080
|
|
|
1125
1081
|
/**
|
|
1126
1082
|
* 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).
|
|
1127
1083
|
* @summary Add an invoice by xml
|
|
1128
|
-
* @param {
|
|
1084
|
+
* @param {object} body
|
|
1129
1085
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
1130
1086
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
1131
1087
|
* @param {*} [options] Override http request option.
|
|
1132
1088
|
* @throws {RequiredError}
|
|
1133
1089
|
*/
|
|
1134
|
-
sendXmlPost(
|
|
1090
|
+
sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
|
|
1135
1091
|
|
|
1136
1092
|
}
|
|
1137
1093
|
|
|
@@ -1153,7 +1109,7 @@ export class SendApi extends BaseAPI implements SendApiInterface {
|
|
|
1153
1109
|
}
|
|
1154
1110
|
|
|
1155
1111
|
/**
|
|
1156
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
1112
|
+
* 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/).
|
|
1157
1113
|
* @summary List invoices
|
|
1158
1114
|
* @param {number} [companyId] Company id
|
|
1159
1115
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -1171,11 +1127,12 @@ export class SendApi extends BaseAPI implements SendApiInterface {
|
|
|
1171
1127
|
* @param {number} [page] Page number.
|
|
1172
1128
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
1173
1129
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
1130
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
1174
1131
|
* @param {*} [options] Override http request option.
|
|
1175
1132
|
* @throws {RequiredError}
|
|
1176
1133
|
*/
|
|
1177
|
-
public sendGet(companyId?: number, identifier?: string, 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) {
|
|
1178
|
-
return 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));
|
|
1134
|
+
public sendGet(companyId?: number, identifier?: string, 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) {
|
|
1135
|
+
return 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));
|
|
1179
1136
|
}
|
|
1180
1137
|
|
|
1181
1138
|
/**
|
|
@@ -1216,14 +1173,14 @@ export class SendApi extends BaseAPI implements SendApiInterface {
|
|
|
1216
1173
|
/**
|
|
1217
1174
|
* 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).
|
|
1218
1175
|
* @summary Add an invoice by json
|
|
1219
|
-
* @param {
|
|
1176
|
+
* @param {object} body
|
|
1220
1177
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
1221
1178
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
1222
1179
|
* @param {*} [options] Override http request option.
|
|
1223
1180
|
* @throws {RequiredError}
|
|
1224
1181
|
*/
|
|
1225
|
-
public sendJsonPost(
|
|
1226
|
-
return SendApiFp(this.configuration).sendJsonPost(
|
|
1182
|
+
public sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig) {
|
|
1183
|
+
return SendApiFp(this.configuration).sendJsonPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
|
|
1227
1184
|
}
|
|
1228
1185
|
|
|
1229
1186
|
/**
|
|
@@ -1253,12 +1210,12 @@ export class SendApi extends BaseAPI implements SendApiInterface {
|
|
|
1253
1210
|
/**
|
|
1254
1211
|
* 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/).
|
|
1255
1212
|
* @summary Validate an invoice by json
|
|
1256
|
-
* @param {
|
|
1213
|
+
* @param {object} body
|
|
1257
1214
|
* @param {*} [options] Override http request option.
|
|
1258
1215
|
* @throws {RequiredError}
|
|
1259
1216
|
*/
|
|
1260
|
-
public sendValidateJsonPost(
|
|
1261
|
-
return SendApiFp(this.configuration).sendValidateJsonPost(
|
|
1217
|
+
public sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig) {
|
|
1218
|
+
return SendApiFp(this.configuration).sendValidateJsonPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
1262
1219
|
}
|
|
1263
1220
|
|
|
1264
1221
|
/**
|
|
@@ -1275,25 +1232,25 @@ export class SendApi extends BaseAPI implements SendApiInterface {
|
|
|
1275
1232
|
/**
|
|
1276
1233
|
* 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/).
|
|
1277
1234
|
* @summary Validate an invoice by xml
|
|
1278
|
-
* @param {
|
|
1235
|
+
* @param {object} body
|
|
1279
1236
|
* @param {*} [options] Override http request option.
|
|
1280
1237
|
* @throws {RequiredError}
|
|
1281
1238
|
*/
|
|
1282
|
-
public sendValidateXmlPost(
|
|
1283
|
-
return SendApiFp(this.configuration).sendValidateXmlPost(
|
|
1239
|
+
public sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig) {
|
|
1240
|
+
return SendApiFp(this.configuration).sendValidateXmlPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
1284
1241
|
}
|
|
1285
1242
|
|
|
1286
1243
|
/**
|
|
1287
1244
|
* 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).
|
|
1288
1245
|
* @summary Add an invoice by xml
|
|
1289
|
-
* @param {
|
|
1246
|
+
* @param {object} body
|
|
1290
1247
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
1291
1248
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
1292
1249
|
* @param {*} [options] Override http request option.
|
|
1293
1250
|
* @throws {RequiredError}
|
|
1294
1251
|
*/
|
|
1295
|
-
public sendXmlPost(
|
|
1296
|
-
return SendApiFp(this.configuration).sendXmlPost(
|
|
1252
|
+
public sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig) {
|
|
1253
|
+
return SendApiFp(this.configuration).sendXmlPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
|
|
1297
1254
|
}
|
|
1298
1255
|
}
|
|
1299
1256
|
|