@factpulse/sdk 3.0.2 → 3.0.4
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/.openapi-generator/FILES +4 -4
- package/CHANGELOG.md +3 -3
- package/api/invoice-processing-api.ts +4 -4
- package/api/pdfxmlverification-api.ts +6 -6
- package/dist/api/invoice-processing-api.d.ts +4 -4
- package/dist/api/pdfxmlverification-api.d.ts +7 -7
- package/dist/esm/api/invoice-processing-api.d.ts +4 -4
- package/dist/esm/api/pdfxmlverification-api.d.ts +7 -7
- package/dist/{models/task-status.d.ts → esm/models/async-task-status.d.ts} +1 -1
- package/dist/esm/models/{facture-factur-x.d.ts → factur-xinvoice.d.ts} +1 -1
- package/dist/esm/models/index.d.ts +2 -2
- package/dist/esm/models/index.js +2 -2
- package/dist/esm/models/invoice-type-code.d.ts +0 -16
- package/dist/esm/models/invoice-type-code.js +1 -17
- package/dist/esm/models/invoicing-framework-code.d.ts +0 -4
- package/dist/esm/models/invoicing-framework-code.js +1 -5
- package/dist/esm/models/payment-means.d.ts +0 -6
- package/dist/esm/models/payment-means.js +1 -7
- package/dist/esm/models/submission-mode.d.ts +0 -3
- package/dist/esm/models/submission-mode.js +1 -4
- package/dist/esm/models/unit-of-measure.d.ts +0 -6
- package/dist/esm/models/unit-of-measure.js +1 -7
- package/dist/esm/models/vataccounting-code.d.ts +0 -4
- package/dist/esm/models/vataccounting-code.js +1 -5
- package/dist/{esm/models/task-status.d.ts → models/async-task-status.d.ts} +1 -1
- package/dist/models/{facture-factur-x.d.ts → factur-xinvoice.d.ts} +1 -1
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/dist/models/invoice-type-code.d.ts +0 -16
- package/dist/models/invoice-type-code.js +1 -17
- package/dist/models/invoicing-framework-code.d.ts +0 -4
- package/dist/models/invoicing-framework-code.js +1 -5
- package/dist/models/payment-means.d.ts +0 -6
- package/dist/models/payment-means.js +1 -7
- package/dist/models/submission-mode.d.ts +0 -3
- package/dist/models/submission-mode.js +1 -4
- package/dist/models/unit-of-measure.d.ts +0 -6
- package/dist/models/unit-of-measure.js +1 -7
- package/dist/models/vataccounting-code.d.ts +0 -4
- package/dist/models/vataccounting-code.js +1 -5
- package/docs/{TaskStatus.md → AsyncTaskStatus.md} +3 -3
- package/docs/{FactureFacturX.md → FacturXInvoice.md} +3 -3
- package/docs/InvoiceProcessingApi.md +2 -2
- package/docs/InvoiceTypeCode.md +0 -32
- package/docs/InvoicingFrameworkCode.md +0 -8
- package/docs/PDFXMLVerificationApi.md +4 -4
- package/docs/PaymentMeans.md +0 -12
- package/docs/SubmissionMode.md +0 -6
- package/docs/UnitOfMeasure.md +0 -12
- package/docs/VATAccountingCode.md +0 -8
- package/models/{task-status.ts → async-task-status.ts} +1 -1
- package/models/{facture-factur-x.ts → factur-xinvoice.ts} +1 -1
- package/models/index.ts +2 -2
- package/models/invoice-type-code.ts +1 -17
- package/models/invoicing-framework-code.ts +1 -5
- package/models/payment-means.ts +1 -7
- package/models/submission-mode.ts +1 -4
- package/models/unit-of-measure.ts +1 -7
- package/models/vataccounting-code.ts +1 -5
- package/package.json +1 -1
- /package/dist/esm/models/{facture-factur-x.js → async-task-status.js} +0 -0
- /package/dist/esm/models/{task-status.js → factur-xinvoice.js} +0 -0
- /package/dist/models/{facture-factur-x.js → async-task-status.js} +0 -0
- /package/dist/models/{task-status.js → factur-xinvoice.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -26,6 +26,7 @@ docs/APIProfile.md
|
|
|
26
26
|
docs/AcknowledgmentStatus.md
|
|
27
27
|
docs/AllowanceReasonCode.md
|
|
28
28
|
docs/AmountDue.md
|
|
29
|
+
docs/AsyncTaskStatus.md
|
|
29
30
|
docs/BoundingBoxSchema.md
|
|
30
31
|
docs/CeleryStatus.md
|
|
31
32
|
docs/CertificateInfoResponse.md
|
|
@@ -38,10 +39,10 @@ docs/ElectronicAddress.md
|
|
|
38
39
|
docs/EnrichedInvoiceInfo.md
|
|
39
40
|
docs/ErrorLevel.md
|
|
40
41
|
docs/ErrorSource.md
|
|
42
|
+
docs/FacturXInvoice.md
|
|
41
43
|
docs/FacturXPDFInfo.md
|
|
42
44
|
docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md
|
|
43
45
|
docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md
|
|
44
|
-
docs/FactureFacturX.md
|
|
45
46
|
docs/FieldStatus.md
|
|
46
47
|
docs/FlowDirection.md
|
|
47
48
|
docs/FlowProfile.md
|
|
@@ -115,7 +116,6 @@ docs/SubmitVatAmount.md
|
|
|
115
116
|
docs/SupplementaryAttachment.md
|
|
116
117
|
docs/Supplier.md
|
|
117
118
|
docs/TaskResponse.md
|
|
118
|
-
docs/TaskStatus.md
|
|
119
119
|
docs/TaxableAmount.md
|
|
120
120
|
docs/TotalGrossAmount.md
|
|
121
121
|
docs/TotalNetAmount.md
|
|
@@ -145,6 +145,7 @@ models/allowance-reason-code.ts
|
|
|
145
145
|
models/amount-due.ts
|
|
146
146
|
models/apierror.ts
|
|
147
147
|
models/apiprofile.ts
|
|
148
|
+
models/async-task-status.ts
|
|
148
149
|
models/bounding-box-schema.ts
|
|
149
150
|
models/celery-status.ts
|
|
150
151
|
models/certificate-info-response.ts
|
|
@@ -156,10 +157,10 @@ models/electronic-address.ts
|
|
|
156
157
|
models/enriched-invoice-info.ts
|
|
157
158
|
models/error-level.ts
|
|
158
159
|
models/error-source.ts
|
|
160
|
+
models/factur-xinvoice.ts
|
|
159
161
|
models/factur-xpdfinfo.ts
|
|
160
162
|
models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.ts
|
|
161
163
|
models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.ts
|
|
162
|
-
models/facture-factur-x.ts
|
|
163
164
|
models/field-status.ts
|
|
164
165
|
models/flow-direction.ts
|
|
165
166
|
models/flow-profile.ts
|
|
@@ -231,7 +232,6 @@ models/submit-vat-amount.ts
|
|
|
231
232
|
models/supplementary-attachment.ts
|
|
232
233
|
models/supplier.ts
|
|
233
234
|
models/task-response.ts
|
|
234
|
-
models/task-status.ts
|
|
235
235
|
models/taxable-amount.ts
|
|
236
236
|
models/total-gross-amount.ts
|
|
237
237
|
models/total-net-amount.ts
|
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,7 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [3.0.
|
|
10
|
+
## [3.0.4] - 2025-12-19
|
|
11
11
|
|
|
12
12
|
### Added
|
|
13
13
|
- Version initiale du SDK typescript
|
|
@@ -24,5 +24,5 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
24
24
|
- Guide d'authentification JWT
|
|
25
25
|
- Configuration avancée (timeout, proxy, debug)
|
|
26
26
|
|
|
27
|
-
[Unreleased]: https://github.com/factpulse/sdk-typescript/compare/v3.0.
|
|
28
|
-
[3.0.
|
|
27
|
+
[Unreleased]: https://github.com/factpulse/sdk-typescript/compare/v3.0.4...HEAD
|
|
28
|
+
[3.0.4]: https://github.com/factpulse/sdk-typescript/releases/tag/v3.0.4
|
|
@@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import type { APIProfile } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
+
import type { AsyncTaskStatus } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
27
29
|
import type { GenerateCertificateRequest } from '../models';
|
|
28
30
|
// @ts-ignore
|
|
29
31
|
import type { GenerateCertificateResponse } from '../models';
|
|
@@ -40,8 +42,6 @@ import type { SubmitCompleteInvoiceResponse } from '../models';
|
|
|
40
42
|
// @ts-ignore
|
|
41
43
|
import type { TaskResponse } from '../models';
|
|
42
44
|
// @ts-ignore
|
|
43
|
-
import type { TaskStatus } from '../models';
|
|
44
|
-
// @ts-ignore
|
|
45
45
|
import type { ValidationErrorResponse } from '../models';
|
|
46
46
|
// @ts-ignore
|
|
47
47
|
import type { ValidationSuccessResponse } from '../models';
|
|
@@ -664,7 +664,7 @@ export const InvoiceProcessingApiFp = function(configuration?: Configuration) {
|
|
|
664
664
|
* @param {*} [options] Override http request option.
|
|
665
665
|
* @throws {RequiredError}
|
|
666
666
|
*/
|
|
667
|
-
async getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
667
|
+
async getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AsyncTaskStatus>> {
|
|
668
668
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId, options);
|
|
669
669
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
670
670
|
const localVarOperationServerBasePath = operationServerMap['InvoiceProcessingApi.getTaskStatusApiV1ProcessingTasksTaskIdStatusGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -831,7 +831,7 @@ export const InvoiceProcessingApiFactory = function (configuration?: Configurati
|
|
|
831
831
|
* @param {*} [options] Override http request option.
|
|
832
832
|
* @throws {RequiredError}
|
|
833
833
|
*/
|
|
834
|
-
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
834
|
+
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<AsyncTaskStatus> {
|
|
835
835
|
return localVarFp.getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId, options).then((request) => request(axios, basePath));
|
|
836
836
|
},
|
|
837
837
|
/**
|
|
@@ -24,12 +24,12 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import type { APIError } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
+
import type { AsyncTaskStatus } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
27
29
|
import type { HTTPValidationError } from '../models';
|
|
28
30
|
// @ts-ignore
|
|
29
31
|
import type { TaskResponse } from '../models';
|
|
30
32
|
// @ts-ignore
|
|
31
|
-
import type { TaskStatus } from '../models';
|
|
32
|
-
// @ts-ignore
|
|
33
33
|
import type { VerificationSuccessResponse } from '../models';
|
|
34
34
|
/**
|
|
35
35
|
* PDFXMLVerificationApi - axios parameter creator
|
|
@@ -314,7 +314,7 @@ export const PDFXMLVerificationApiFp = function(configuration?: Configuration) {
|
|
|
314
314
|
* @param {*} [options] Override http request option.
|
|
315
315
|
* @throws {RequiredError}
|
|
316
316
|
*/
|
|
317
|
-
async getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
317
|
+
async getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AsyncTaskStatus>> {
|
|
318
318
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId, options);
|
|
319
319
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
320
320
|
const localVarOperationServerBasePath = operationServerMap['PDFXMLVerificationApi.getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -327,7 +327,7 @@ export const PDFXMLVerificationApiFp = function(configuration?: Configuration) {
|
|
|
327
327
|
* @param {*} [options] Override http request option.
|
|
328
328
|
* @throws {RequiredError}
|
|
329
329
|
*/
|
|
330
|
-
async getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
330
|
+
async getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AsyncTaskStatus>> {
|
|
331
331
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId, options);
|
|
332
332
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
333
333
|
const localVarOperationServerBasePath = operationServerMap['PDFXMLVerificationApi.getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1']?.[localVarOperationServerIndex]?.url;
|
|
@@ -403,7 +403,7 @@ export const PDFXMLVerificationApiFactory = function (configuration?: Configurat
|
|
|
403
403
|
* @param {*} [options] Override http request option.
|
|
404
404
|
* @throws {RequiredError}
|
|
405
405
|
*/
|
|
406
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
406
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<AsyncTaskStatus> {
|
|
407
407
|
return localVarFp.getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId, options).then((request) => request(axios, basePath));
|
|
408
408
|
},
|
|
409
409
|
/**
|
|
@@ -413,7 +413,7 @@ export const PDFXMLVerificationApiFactory = function (configuration?: Configurat
|
|
|
413
413
|
* @param {*} [options] Override http request option.
|
|
414
414
|
* @throws {RequiredError}
|
|
415
415
|
*/
|
|
416
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
416
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<AsyncTaskStatus> {
|
|
417
417
|
return localVarFp.getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId, options).then((request) => request(axios, basePath));
|
|
418
418
|
},
|
|
419
419
|
/**
|
|
@@ -13,6 +13,7 @@ import type { Configuration } from '../configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import type { APIProfile } from '../models';
|
|
16
|
+
import type { AsyncTaskStatus } from '../models';
|
|
16
17
|
import type { GenerateCertificateRequest } from '../models';
|
|
17
18
|
import type { GenerateCertificateResponse } from '../models';
|
|
18
19
|
import type { OutputFormat } from '../models';
|
|
@@ -20,7 +21,6 @@ import type { PDFValidationResultAPI } from '../models';
|
|
|
20
21
|
import type { SubmitCompleteInvoiceRequest } from '../models';
|
|
21
22
|
import type { SubmitCompleteInvoiceResponse } from '../models';
|
|
22
23
|
import type { TaskResponse } from '../models';
|
|
23
|
-
import type { TaskStatus } from '../models';
|
|
24
24
|
import type { ValidationSuccessResponse } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
* InvoiceProcessingApi - axios parameter creator
|
|
@@ -167,7 +167,7 @@ export declare const InvoiceProcessingApiFp: (configuration?: Configuration) =>
|
|
|
167
167
|
* @param {*} [options] Override http request option.
|
|
168
168
|
* @throws {RequiredError}
|
|
169
169
|
*/
|
|
170
|
-
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
170
|
+
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AsyncTaskStatus>>;
|
|
171
171
|
/**
|
|
172
172
|
* Signs an uploaded PDF with the electronic certificate configured for the client (via client_uid from JWT). **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **eIDAS levels**: SES (self-signed), AdES (commercial CA), QES (PSCO - out of scope). **Security**: Double authentication X-Internal-Secret + JWT Bearer to retrieve the certificate. **⚠️ Legal disclaimer**: Generated signatures are electronic seals as defined by the eIDAS regulation. The level of legal validity depends on the certificate used (SES/AdES/QES). FactPulse does not provide QES qualified certificates - you must obtain a certificate from a PSCO (qualified Trust Service Provider) for maximum legal validity.
|
|
173
173
|
* @summary Sign a PDF with client\'s certificate (PAdES-B-LT)
|
|
@@ -281,7 +281,7 @@ export declare const InvoiceProcessingApiFactory: (configuration?: Configuration
|
|
|
281
281
|
* @param {*} [options] Override http request option.
|
|
282
282
|
* @throws {RequiredError}
|
|
283
283
|
*/
|
|
284
|
-
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
284
|
+
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<AsyncTaskStatus>;
|
|
285
285
|
/**
|
|
286
286
|
* Signs an uploaded PDF with the electronic certificate configured for the client (via client_uid from JWT). **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **eIDAS levels**: SES (self-signed), AdES (commercial CA), QES (PSCO - out of scope). **Security**: Double authentication X-Internal-Secret + JWT Bearer to retrieve the certificate. **⚠️ Legal disclaimer**: Generated signatures are electronic seals as defined by the eIDAS regulation. The level of legal validity depends on the certificate used (SES/AdES/QES). FactPulse does not provide QES qualified certificates - you must obtain a certificate from a PSCO (qualified Trust Service Provider) for maximum legal validity.
|
|
287
287
|
* @summary Sign a PDF with client\'s certificate (PAdES-B-LT)
|
|
@@ -395,7 +395,7 @@ export declare class InvoiceProcessingApi extends BaseAPI {
|
|
|
395
395
|
* @param {*} [options] Override http request option.
|
|
396
396
|
* @throws {RequiredError}
|
|
397
397
|
*/
|
|
398
|
-
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
398
|
+
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AsyncTaskStatus, any, {}>>;
|
|
399
399
|
/**
|
|
400
400
|
* Signs an uploaded PDF with the electronic certificate configured for the client (via client_uid from JWT). **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **eIDAS levels**: SES (self-signed), AdES (commercial CA), QES (PSCO - out of scope). **Security**: Double authentication X-Internal-Secret + JWT Bearer to retrieve the certificate. **⚠️ Legal disclaimer**: Generated signatures are electronic seals as defined by the eIDAS regulation. The level of legal validity depends on the certificate used (SES/AdES/QES). FactPulse does not provide QES qualified certificates - you must obtain a certificate from a PSCO (qualified Trust Service Provider) for maximum legal validity.
|
|
401
401
|
* @summary Sign a PDF with client\'s certificate (PAdES-B-LT)
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { AsyncTaskStatus } from '../models';
|
|
15
16
|
import type { TaskResponse } from '../models';
|
|
16
|
-
import type { TaskStatus } from '../models';
|
|
17
17
|
import type { VerificationSuccessResponse } from '../models';
|
|
18
18
|
/**
|
|
19
19
|
* PDFXMLVerificationApi - axios parameter creator
|
|
@@ -81,7 +81,7 @@ export declare const PDFXMLVerificationApiFp: (configuration?: Configuration) =>
|
|
|
81
81
|
* @param {*} [options] Override http request option.
|
|
82
82
|
* @throws {RequiredError}
|
|
83
83
|
*/
|
|
84
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
84
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AsyncTaskStatus>>;
|
|
85
85
|
/**
|
|
86
86
|
* Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - `PENDING`: Task waiting in queue - `STARTED`: Task currently running - `SUCCESS`: Task completed successfully (see `result`) - `FAILURE`: System error (unhandled exception) **Note:** The `result.status` field can be \"SUCCESS\" or \"ERROR\" independently of Celery status (which will always be SUCCESS if the task ran).
|
|
87
87
|
* @summary Get status of an asynchronous verification
|
|
@@ -89,7 +89,7 @@ export declare const PDFXMLVerificationApiFp: (configuration?: Configuration) =>
|
|
|
89
89
|
* @param {*} [options] Override http request option.
|
|
90
90
|
* @throws {RequiredError}
|
|
91
91
|
*/
|
|
92
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
92
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AsyncTaskStatus>>;
|
|
93
93
|
/**
|
|
94
94
|
* Verifies PDF/XML Factur-X compliance asynchronously. **IMPORTANT**: Only Factur-X PDFs (with embedded XML) are accepted. PDFs without Factur-X XML will return a `NOT_FACTURX` error in the result. This version uses a Celery task and can call the OCR service if the PDF is an image or if `force_ocr=true`. **Returns immediately** a task ID. Use `/verify-async/{task_id}/status` to retrieve the result. **Verification principle (Factur-X 1.08):** - Principle #2: XML can only contain info present in the PDF - Principle #4: All XML info must be present and compliant in the PDF **Verified fields:** - Identification: BT-1 (invoice #), BT-2 (date), BT-3 (type), BT-5 (currency), BT-23 (framework) - Seller: BT-27 (name), BT-29 (SIRET), BT-30 (SIREN), BT-31 (VAT) - Buyer: BT-44 (name), BT-46 (SIRET), BT-47 (SIREN), BT-48 (VAT) - Amounts: BT-109 (excl. tax), BT-110 (VAT), BT-112 (incl. tax), BT-115 (amount due) - VAT breakdown: BT-116, BT-117, BT-118, BT-119 - Invoice lines: BT-153, BT-129, BT-146, BT-131 - Mandatory notes: PMT, PMD, AAB - Rule BR-FR-09: SIRET/SIREN consistency **Advantages over synchronous version:** - OCR support for image PDFs (via DocTR service) - Longer timeout for large documents - Doesn\'t block the server
|
|
95
95
|
* @summary Verify PDF/XML Factur-X compliance (asynchronous)
|
|
@@ -136,7 +136,7 @@ export declare const PDFXMLVerificationApiFactory: (configuration?: Configuratio
|
|
|
136
136
|
* @param {*} [options] Override http request option.
|
|
137
137
|
* @throws {RequiredError}
|
|
138
138
|
*/
|
|
139
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
139
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<AsyncTaskStatus>;
|
|
140
140
|
/**
|
|
141
141
|
* Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - `PENDING`: Task waiting in queue - `STARTED`: Task currently running - `SUCCESS`: Task completed successfully (see `result`) - `FAILURE`: System error (unhandled exception) **Note:** The `result.status` field can be \"SUCCESS\" or \"ERROR\" independently of Celery status (which will always be SUCCESS if the task ran).
|
|
142
142
|
* @summary Get status of an asynchronous verification
|
|
@@ -144,7 +144,7 @@ export declare const PDFXMLVerificationApiFactory: (configuration?: Configuratio
|
|
|
144
144
|
* @param {*} [options] Override http request option.
|
|
145
145
|
* @throws {RequiredError}
|
|
146
146
|
*/
|
|
147
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
147
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<AsyncTaskStatus>;
|
|
148
148
|
/**
|
|
149
149
|
* Verifies PDF/XML Factur-X compliance asynchronously. **IMPORTANT**: Only Factur-X PDFs (with embedded XML) are accepted. PDFs without Factur-X XML will return a `NOT_FACTURX` error in the result. This version uses a Celery task and can call the OCR service if the PDF is an image or if `force_ocr=true`. **Returns immediately** a task ID. Use `/verify-async/{task_id}/status` to retrieve the result. **Verification principle (Factur-X 1.08):** - Principle #2: XML can only contain info present in the PDF - Principle #4: All XML info must be present and compliant in the PDF **Verified fields:** - Identification: BT-1 (invoice #), BT-2 (date), BT-3 (type), BT-5 (currency), BT-23 (framework) - Seller: BT-27 (name), BT-29 (SIRET), BT-30 (SIREN), BT-31 (VAT) - Buyer: BT-44 (name), BT-46 (SIRET), BT-47 (SIREN), BT-48 (VAT) - Amounts: BT-109 (excl. tax), BT-110 (VAT), BT-112 (incl. tax), BT-115 (amount due) - VAT breakdown: BT-116, BT-117, BT-118, BT-119 - Invoice lines: BT-153, BT-129, BT-146, BT-131 - Mandatory notes: PMT, PMD, AAB - Rule BR-FR-09: SIRET/SIREN consistency **Advantages over synchronous version:** - OCR support for image PDFs (via DocTR service) - Longer timeout for large documents - Doesn\'t block the server
|
|
150
150
|
* @summary Verify PDF/XML Factur-X compliance (asynchronous)
|
|
@@ -191,7 +191,7 @@ export declare class PDFXMLVerificationApi extends BaseAPI {
|
|
|
191
191
|
* @param {*} [options] Override http request option.
|
|
192
192
|
* @throws {RequiredError}
|
|
193
193
|
*/
|
|
194
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
194
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AsyncTaskStatus, any, {}>>;
|
|
195
195
|
/**
|
|
196
196
|
* Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - `PENDING`: Task waiting in queue - `STARTED`: Task currently running - `SUCCESS`: Task completed successfully (see `result`) - `FAILURE`: System error (unhandled exception) **Note:** The `result.status` field can be \"SUCCESS\" or \"ERROR\" independently of Celery status (which will always be SUCCESS if the task ran).
|
|
197
197
|
* @summary Get status of an asynchronous verification
|
|
@@ -199,7 +199,7 @@ export declare class PDFXMLVerificationApi extends BaseAPI {
|
|
|
199
199
|
* @param {*} [options] Override http request option.
|
|
200
200
|
* @throws {RequiredError}
|
|
201
201
|
*/
|
|
202
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
202
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AsyncTaskStatus, any, {}>>;
|
|
203
203
|
/**
|
|
204
204
|
* Verifies PDF/XML Factur-X compliance asynchronously. **IMPORTANT**: Only Factur-X PDFs (with embedded XML) are accepted. PDFs without Factur-X XML will return a `NOT_FACTURX` error in the result. This version uses a Celery task and can call the OCR service if the PDF is an image or if `force_ocr=true`. **Returns immediately** a task ID. Use `/verify-async/{task_id}/status` to retrieve the result. **Verification principle (Factur-X 1.08):** - Principle #2: XML can only contain info present in the PDF - Principle #4: All XML info must be present and compliant in the PDF **Verified fields:** - Identification: BT-1 (invoice #), BT-2 (date), BT-3 (type), BT-5 (currency), BT-23 (framework) - Seller: BT-27 (name), BT-29 (SIRET), BT-30 (SIREN), BT-31 (VAT) - Buyer: BT-44 (name), BT-46 (SIRET), BT-47 (SIREN), BT-48 (VAT) - Amounts: BT-109 (excl. tax), BT-110 (VAT), BT-112 (incl. tax), BT-115 (amount due) - VAT breakdown: BT-116, BT-117, BT-118, BT-119 - Invoice lines: BT-153, BT-129, BT-146, BT-131 - Mandatory notes: PMT, PMD, AAB - Rule BR-FR-09: SIRET/SIREN consistency **Advantages over synchronous version:** - OCR support for image PDFs (via DocTR service) - Longer timeout for large documents - Doesn\'t block the server
|
|
205
205
|
* @summary Verify PDF/XML Factur-X compliance (asynchronous)
|
|
@@ -13,6 +13,7 @@ import type { Configuration } from '../configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import type { APIProfile } from '../models';
|
|
16
|
+
import type { AsyncTaskStatus } from '../models';
|
|
16
17
|
import type { GenerateCertificateRequest } from '../models';
|
|
17
18
|
import type { GenerateCertificateResponse } from '../models';
|
|
18
19
|
import type { OutputFormat } from '../models';
|
|
@@ -20,7 +21,6 @@ import type { PDFValidationResultAPI } from '../models';
|
|
|
20
21
|
import type { SubmitCompleteInvoiceRequest } from '../models';
|
|
21
22
|
import type { SubmitCompleteInvoiceResponse } from '../models';
|
|
22
23
|
import type { TaskResponse } from '../models';
|
|
23
|
-
import type { TaskStatus } from '../models';
|
|
24
24
|
import type { ValidationSuccessResponse } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
* InvoiceProcessingApi - axios parameter creator
|
|
@@ -167,7 +167,7 @@ export declare const InvoiceProcessingApiFp: (configuration?: Configuration) =>
|
|
|
167
167
|
* @param {*} [options] Override http request option.
|
|
168
168
|
* @throws {RequiredError}
|
|
169
169
|
*/
|
|
170
|
-
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
170
|
+
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AsyncTaskStatus>>;
|
|
171
171
|
/**
|
|
172
172
|
* Signs an uploaded PDF with the electronic certificate configured for the client (via client_uid from JWT). **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **eIDAS levels**: SES (self-signed), AdES (commercial CA), QES (PSCO - out of scope). **Security**: Double authentication X-Internal-Secret + JWT Bearer to retrieve the certificate. **⚠️ Legal disclaimer**: Generated signatures are electronic seals as defined by the eIDAS regulation. The level of legal validity depends on the certificate used (SES/AdES/QES). FactPulse does not provide QES qualified certificates - you must obtain a certificate from a PSCO (qualified Trust Service Provider) for maximum legal validity.
|
|
173
173
|
* @summary Sign a PDF with client\'s certificate (PAdES-B-LT)
|
|
@@ -281,7 +281,7 @@ export declare const InvoiceProcessingApiFactory: (configuration?: Configuration
|
|
|
281
281
|
* @param {*} [options] Override http request option.
|
|
282
282
|
* @throws {RequiredError}
|
|
283
283
|
*/
|
|
284
|
-
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
284
|
+
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<AsyncTaskStatus>;
|
|
285
285
|
/**
|
|
286
286
|
* Signs an uploaded PDF with the electronic certificate configured for the client (via client_uid from JWT). **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **eIDAS levels**: SES (self-signed), AdES (commercial CA), QES (PSCO - out of scope). **Security**: Double authentication X-Internal-Secret + JWT Bearer to retrieve the certificate. **⚠️ Legal disclaimer**: Generated signatures are electronic seals as defined by the eIDAS regulation. The level of legal validity depends on the certificate used (SES/AdES/QES). FactPulse does not provide QES qualified certificates - you must obtain a certificate from a PSCO (qualified Trust Service Provider) for maximum legal validity.
|
|
287
287
|
* @summary Sign a PDF with client\'s certificate (PAdES-B-LT)
|
|
@@ -395,7 +395,7 @@ export declare class InvoiceProcessingApi extends BaseAPI {
|
|
|
395
395
|
* @param {*} [options] Override http request option.
|
|
396
396
|
* @throws {RequiredError}
|
|
397
397
|
*/
|
|
398
|
-
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
398
|
+
getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AsyncTaskStatus, any, {}>>;
|
|
399
399
|
/**
|
|
400
400
|
* Signs an uploaded PDF with the electronic certificate configured for the client (via client_uid from JWT). **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **eIDAS levels**: SES (self-signed), AdES (commercial CA), QES (PSCO - out of scope). **Security**: Double authentication X-Internal-Secret + JWT Bearer to retrieve the certificate. **⚠️ Legal disclaimer**: Generated signatures are electronic seals as defined by the eIDAS regulation. The level of legal validity depends on the certificate used (SES/AdES/QES). FactPulse does not provide QES qualified certificates - you must obtain a certificate from a PSCO (qualified Trust Service Provider) for maximum legal validity.
|
|
401
401
|
* @summary Sign a PDF with client\'s certificate (PAdES-B-LT)
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { AsyncTaskStatus } from '../models';
|
|
15
16
|
import type { TaskResponse } from '../models';
|
|
16
|
-
import type { TaskStatus } from '../models';
|
|
17
17
|
import type { VerificationSuccessResponse } from '../models';
|
|
18
18
|
/**
|
|
19
19
|
* PDFXMLVerificationApi - axios parameter creator
|
|
@@ -81,7 +81,7 @@ export declare const PDFXMLVerificationApiFp: (configuration?: Configuration) =>
|
|
|
81
81
|
* @param {*} [options] Override http request option.
|
|
82
82
|
* @throws {RequiredError}
|
|
83
83
|
*/
|
|
84
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
84
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AsyncTaskStatus>>;
|
|
85
85
|
/**
|
|
86
86
|
* Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - `PENDING`: Task waiting in queue - `STARTED`: Task currently running - `SUCCESS`: Task completed successfully (see `result`) - `FAILURE`: System error (unhandled exception) **Note:** The `result.status` field can be \"SUCCESS\" or \"ERROR\" independently of Celery status (which will always be SUCCESS if the task ran).
|
|
87
87
|
* @summary Get status of an asynchronous verification
|
|
@@ -89,7 +89,7 @@ export declare const PDFXMLVerificationApiFp: (configuration?: Configuration) =>
|
|
|
89
89
|
* @param {*} [options] Override http request option.
|
|
90
90
|
* @throws {RequiredError}
|
|
91
91
|
*/
|
|
92
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
92
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AsyncTaskStatus>>;
|
|
93
93
|
/**
|
|
94
94
|
* Verifies PDF/XML Factur-X compliance asynchronously. **IMPORTANT**: Only Factur-X PDFs (with embedded XML) are accepted. PDFs without Factur-X XML will return a `NOT_FACTURX` error in the result. This version uses a Celery task and can call the OCR service if the PDF is an image or if `force_ocr=true`. **Returns immediately** a task ID. Use `/verify-async/{task_id}/status` to retrieve the result. **Verification principle (Factur-X 1.08):** - Principle #2: XML can only contain info present in the PDF - Principle #4: All XML info must be present and compliant in the PDF **Verified fields:** - Identification: BT-1 (invoice #), BT-2 (date), BT-3 (type), BT-5 (currency), BT-23 (framework) - Seller: BT-27 (name), BT-29 (SIRET), BT-30 (SIREN), BT-31 (VAT) - Buyer: BT-44 (name), BT-46 (SIRET), BT-47 (SIREN), BT-48 (VAT) - Amounts: BT-109 (excl. tax), BT-110 (VAT), BT-112 (incl. tax), BT-115 (amount due) - VAT breakdown: BT-116, BT-117, BT-118, BT-119 - Invoice lines: BT-153, BT-129, BT-146, BT-131 - Mandatory notes: PMT, PMD, AAB - Rule BR-FR-09: SIRET/SIREN consistency **Advantages over synchronous version:** - OCR support for image PDFs (via DocTR service) - Longer timeout for large documents - Doesn\'t block the server
|
|
95
95
|
* @summary Verify PDF/XML Factur-X compliance (asynchronous)
|
|
@@ -136,7 +136,7 @@ export declare const PDFXMLVerificationApiFactory: (configuration?: Configuratio
|
|
|
136
136
|
* @param {*} [options] Override http request option.
|
|
137
137
|
* @throws {RequiredError}
|
|
138
138
|
*/
|
|
139
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
139
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<AsyncTaskStatus>;
|
|
140
140
|
/**
|
|
141
141
|
* Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - `PENDING`: Task waiting in queue - `STARTED`: Task currently running - `SUCCESS`: Task completed successfully (see `result`) - `FAILURE`: System error (unhandled exception) **Note:** The `result.status` field can be \"SUCCESS\" or \"ERROR\" independently of Celery status (which will always be SUCCESS if the task ran).
|
|
142
142
|
* @summary Get status of an asynchronous verification
|
|
@@ -144,7 +144,7 @@ export declare const PDFXMLVerificationApiFactory: (configuration?: Configuratio
|
|
|
144
144
|
* @param {*} [options] Override http request option.
|
|
145
145
|
* @throws {RequiredError}
|
|
146
146
|
*/
|
|
147
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
147
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<AsyncTaskStatus>;
|
|
148
148
|
/**
|
|
149
149
|
* Verifies PDF/XML Factur-X compliance asynchronously. **IMPORTANT**: Only Factur-X PDFs (with embedded XML) are accepted. PDFs without Factur-X XML will return a `NOT_FACTURX` error in the result. This version uses a Celery task and can call the OCR service if the PDF is an image or if `force_ocr=true`. **Returns immediately** a task ID. Use `/verify-async/{task_id}/status` to retrieve the result. **Verification principle (Factur-X 1.08):** - Principle #2: XML can only contain info present in the PDF - Principle #4: All XML info must be present and compliant in the PDF **Verified fields:** - Identification: BT-1 (invoice #), BT-2 (date), BT-3 (type), BT-5 (currency), BT-23 (framework) - Seller: BT-27 (name), BT-29 (SIRET), BT-30 (SIREN), BT-31 (VAT) - Buyer: BT-44 (name), BT-46 (SIRET), BT-47 (SIREN), BT-48 (VAT) - Amounts: BT-109 (excl. tax), BT-110 (VAT), BT-112 (incl. tax), BT-115 (amount due) - VAT breakdown: BT-116, BT-117, BT-118, BT-119 - Invoice lines: BT-153, BT-129, BT-146, BT-131 - Mandatory notes: PMT, PMD, AAB - Rule BR-FR-09: SIRET/SIREN consistency **Advantages over synchronous version:** - OCR support for image PDFs (via DocTR service) - Longer timeout for large documents - Doesn\'t block the server
|
|
150
150
|
* @summary Verify PDF/XML Factur-X compliance (asynchronous)
|
|
@@ -191,7 +191,7 @@ export declare class PDFXMLVerificationApi extends BaseAPI {
|
|
|
191
191
|
* @param {*} [options] Override http request option.
|
|
192
192
|
* @throws {RequiredError}
|
|
193
193
|
*/
|
|
194
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
194
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AsyncTaskStatus, any, {}>>;
|
|
195
195
|
/**
|
|
196
196
|
* Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - `PENDING`: Task waiting in queue - `STARTED`: Task currently running - `SUCCESS`: Task completed successfully (see `result`) - `FAILURE`: System error (unhandled exception) **Note:** The `result.status` field can be \"SUCCESS\" or \"ERROR\" independently of Celery status (which will always be SUCCESS if the task ran).
|
|
197
197
|
* @summary Get status of an asynchronous verification
|
|
@@ -199,7 +199,7 @@ export declare class PDFXMLVerificationApi extends BaseAPI {
|
|
|
199
199
|
* @param {*} [options] Override http request option.
|
|
200
200
|
* @throws {RequiredError}
|
|
201
201
|
*/
|
|
202
|
-
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
202
|
+
getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_1(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AsyncTaskStatus, any, {}>>;
|
|
203
203
|
/**
|
|
204
204
|
* Verifies PDF/XML Factur-X compliance asynchronously. **IMPORTANT**: Only Factur-X PDFs (with embedded XML) are accepted. PDFs without Factur-X XML will return a `NOT_FACTURX` error in the result. This version uses a Celery task and can call the OCR service if the PDF is an image or if `force_ocr=true`. **Returns immediately** a task ID. Use `/verify-async/{task_id}/status` to retrieve the result. **Verification principle (Factur-X 1.08):** - Principle #2: XML can only contain info present in the PDF - Principle #4: All XML info must be present and compliant in the PDF **Verified fields:** - Identification: BT-1 (invoice #), BT-2 (date), BT-3 (type), BT-5 (currency), BT-23 (framework) - Seller: BT-27 (name), BT-29 (SIRET), BT-30 (SIREN), BT-31 (VAT) - Buyer: BT-44 (name), BT-46 (SIRET), BT-47 (SIREN), BT-48 (VAT) - Amounts: BT-109 (excl. tax), BT-110 (VAT), BT-112 (incl. tax), BT-115 (amount due) - VAT breakdown: BT-116, BT-117, BT-118, BT-119 - Invoice lines: BT-153, BT-129, BT-146, BT-131 - Mandatory notes: PMT, PMD, AAB - Rule BR-FR-09: SIRET/SIREN consistency **Advantages over synchronous version:** - OCR support for image PDFs (via DocTR service) - Longer timeout for large documents - Doesn\'t block the server
|
|
205
205
|
* @summary Verify PDF/XML Factur-X compliance (asynchronous)
|
|
@@ -13,7 +13,7 @@ import type { CeleryStatus } from './celery-status';
|
|
|
13
13
|
/**
|
|
14
14
|
* Complete description of an async task status. The `status` field indicates the Celery state of the task. When `status=\"SUCCESS\"`, check `result.status` for the business result (\"SUCCESS\" or \"ERROR\").
|
|
15
15
|
*/
|
|
16
|
-
export interface
|
|
16
|
+
export interface AsyncTaskStatus {
|
|
17
17
|
/**
|
|
18
18
|
* Unique task identifier
|
|
19
19
|
*/
|
|
@@ -23,7 +23,7 @@ import type { VATLine } from './vatline';
|
|
|
23
23
|
/**
|
|
24
24
|
* Data model for an invoice to be converted to Factur-X.
|
|
25
25
|
*/
|
|
26
|
-
export interface
|
|
26
|
+
export interface FacturXInvoice {
|
|
27
27
|
'invoice_number': string;
|
|
28
28
|
'payment_due_date': string;
|
|
29
29
|
'invoice_date'?: string;
|
|
@@ -7,6 +7,7 @@ export * from './apiprofile';
|
|
|
7
7
|
export * from './acknowledgment-status';
|
|
8
8
|
export * from './allowance-reason-code';
|
|
9
9
|
export * from './amount-due';
|
|
10
|
+
export * from './async-task-status';
|
|
10
11
|
export * from './bounding-box-schema';
|
|
11
12
|
export * from './celery-status';
|
|
12
13
|
export * from './certificate-info-response';
|
|
@@ -18,10 +19,10 @@ export * from './electronic-address';
|
|
|
18
19
|
export * from './enriched-invoice-info';
|
|
19
20
|
export * from './error-level';
|
|
20
21
|
export * from './error-source';
|
|
22
|
+
export * from './factur-xinvoice';
|
|
21
23
|
export * from './factur-xpdfinfo';
|
|
22
24
|
export * from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
|
|
23
25
|
export * from './facture-electronique-rest-api-schemas-processing-chorus-pro-credentials';
|
|
24
|
-
export * from './facture-factur-x';
|
|
25
26
|
export * from './field-status';
|
|
26
27
|
export * from './flow-direction';
|
|
27
28
|
export * from './flow-profile';
|
|
@@ -92,7 +93,6 @@ export * from './submit-vat-amount';
|
|
|
92
93
|
export * from './supplementary-attachment';
|
|
93
94
|
export * from './supplier';
|
|
94
95
|
export * from './task-response';
|
|
95
|
-
export * from './task-status';
|
|
96
96
|
export * from './taxable-amount';
|
|
97
97
|
export * from './total-gross-amount';
|
|
98
98
|
export * from './total-net-amount';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export * from './apiprofile';
|
|
|
7
7
|
export * from './acknowledgment-status';
|
|
8
8
|
export * from './allowance-reason-code';
|
|
9
9
|
export * from './amount-due';
|
|
10
|
+
export * from './async-task-status';
|
|
10
11
|
export * from './bounding-box-schema';
|
|
11
12
|
export * from './celery-status';
|
|
12
13
|
export * from './certificate-info-response';
|
|
@@ -18,10 +19,10 @@ export * from './electronic-address';
|
|
|
18
19
|
export * from './enriched-invoice-info';
|
|
19
20
|
export * from './error-level';
|
|
20
21
|
export * from './error-source';
|
|
22
|
+
export * from './factur-xinvoice';
|
|
21
23
|
export * from './factur-xpdfinfo';
|
|
22
24
|
export * from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
|
|
23
25
|
export * from './facture-electronique-rest-api-schemas-processing-chorus-pro-credentials';
|
|
24
|
-
export * from './facture-factur-x';
|
|
25
26
|
export * from './field-status';
|
|
26
27
|
export * from './flow-direction';
|
|
27
28
|
export * from './flow-profile';
|
|
@@ -92,7 +93,6 @@ export * from './submit-vat-amount';
|
|
|
92
93
|
export * from './supplementary-attachment';
|
|
93
94
|
export * from './supplier';
|
|
94
95
|
export * from './task-response';
|
|
95
|
-
export * from './task-status';
|
|
96
96
|
export * from './taxable-amount';
|
|
97
97
|
export * from './total-gross-amount';
|
|
98
98
|
export * from './total-net-amount';
|
|
@@ -77,21 +77,5 @@ export declare const InvoiceTypeCode: {
|
|
|
77
77
|
* Prepayment Credit Note
|
|
78
78
|
*/
|
|
79
79
|
readonly PREPAYMENT_CREDIT_NOTE: "503";
|
|
80
|
-
readonly _3802: "380";
|
|
81
|
-
readonly _3892: "389";
|
|
82
|
-
readonly _3932: "393";
|
|
83
|
-
readonly _5012: "501";
|
|
84
|
-
readonly _3862: "386";
|
|
85
|
-
readonly _5002: "500";
|
|
86
|
-
readonly _3842: "384";
|
|
87
|
-
readonly _4712: "471";
|
|
88
|
-
readonly _4722: "472";
|
|
89
|
-
readonly _4732: "473";
|
|
90
|
-
readonly _3812: "381";
|
|
91
|
-
readonly _2612: "261";
|
|
92
|
-
readonly _2622: "262";
|
|
93
|
-
readonly _3962: "396";
|
|
94
|
-
readonly _5022: "502";
|
|
95
|
-
readonly _5032: "503";
|
|
96
80
|
};
|
|
97
81
|
export type InvoiceTypeCode = typeof InvoiceTypeCode[keyof typeof InvoiceTypeCode];
|
|
@@ -78,21 +78,5 @@ export const InvoiceTypeCode = {
|
|
|
78
78
|
/**
|
|
79
79
|
* Prepayment Credit Note
|
|
80
80
|
*/
|
|
81
|
-
PREPAYMENT_CREDIT_NOTE: '503'
|
|
82
|
-
_3802: '380',
|
|
83
|
-
_3892: '389',
|
|
84
|
-
_3932: '393',
|
|
85
|
-
_5012: '501',
|
|
86
|
-
_3862: '386',
|
|
87
|
-
_5002: '500',
|
|
88
|
-
_3842: '384',
|
|
89
|
-
_4712: '471',
|
|
90
|
-
_4722: '472',
|
|
91
|
-
_4732: '473',
|
|
92
|
-
_3812: '381',
|
|
93
|
-
_2612: '261',
|
|
94
|
-
_2622: '262',
|
|
95
|
-
_3962: '396',
|
|
96
|
-
_5022: '502',
|
|
97
|
-
_5032: '503'
|
|
81
|
+
PREPAYMENT_CREDIT_NOTE: '503'
|
|
98
82
|
};
|
|
@@ -17,9 +17,5 @@ export declare const InvoicingFrameworkCode: {
|
|
|
17
17
|
readonly A2FactureFournisseurDejaPayee: "A2_FACTURE_FOURNISSEUR_DEJA_PAYEE";
|
|
18
18
|
readonly A9FactureSoustraitant: "A9_FACTURE_SOUSTRAITANT";
|
|
19
19
|
readonly A12FactureCotraitant: "A12_FACTURE_COTRAITANT";
|
|
20
|
-
readonly A1FactureFournisseur2: "A1_FACTURE_FOURNISSEUR";
|
|
21
|
-
readonly A2FactureFournisseurDejaPayee2: "A2_FACTURE_FOURNISSEUR_DEJA_PAYEE";
|
|
22
|
-
readonly A9FactureSoustraitant2: "A9_FACTURE_SOUSTRAITANT";
|
|
23
|
-
readonly A12FactureCotraitant2: "A12_FACTURE_COTRAITANT";
|
|
24
20
|
};
|
|
25
21
|
export type InvoicingFrameworkCode = typeof InvoicingFrameworkCode[keyof typeof InvoicingFrameworkCode];
|
|
@@ -18,9 +18,5 @@ export const InvoicingFrameworkCode = {
|
|
|
18
18
|
A1FactureFournisseur: 'A1_FACTURE_FOURNISSEUR',
|
|
19
19
|
A2FactureFournisseurDejaPayee: 'A2_FACTURE_FOURNISSEUR_DEJA_PAYEE',
|
|
20
20
|
A9FactureSoustraitant: 'A9_FACTURE_SOUSTRAITANT',
|
|
21
|
-
A12FactureCotraitant: 'A12_FACTURE_COTRAITANT'
|
|
22
|
-
A1FactureFournisseur2: 'A1_FACTURE_FOURNISSEUR',
|
|
23
|
-
A2FactureFournisseurDejaPayee2: 'A2_FACTURE_FOURNISSEUR_DEJA_PAYEE',
|
|
24
|
-
A9FactureSoustraitant2: 'A9_FACTURE_SOUSTRAITANT',
|
|
25
|
-
A12FactureCotraitant2: 'A12_FACTURE_COTRAITANT'
|
|
21
|
+
A12FactureCotraitant: 'A12_FACTURE_COTRAITANT'
|
|
26
22
|
};
|
|
@@ -19,11 +19,5 @@ export declare const PaymentMeans: {
|
|
|
19
19
|
readonly Espece: "ESPECE";
|
|
20
20
|
readonly Autre: "AUTRE";
|
|
21
21
|
readonly Report: "REPORT";
|
|
22
|
-
readonly Cheque2: "CHEQUE";
|
|
23
|
-
readonly Prelevement2: "PRELEVEMENT";
|
|
24
|
-
readonly Virement2: "VIREMENT";
|
|
25
|
-
readonly Espece2: "ESPECE";
|
|
26
|
-
readonly Autre2: "AUTRE";
|
|
27
|
-
readonly Report2: "REPORT";
|
|
28
22
|
};
|
|
29
23
|
export type PaymentMeans = typeof PaymentMeans[keyof typeof PaymentMeans];
|
|
@@ -20,11 +20,5 @@ export const PaymentMeans = {
|
|
|
20
20
|
Virement: 'VIREMENT',
|
|
21
21
|
Espece: 'ESPECE',
|
|
22
22
|
Autre: 'AUTRE',
|
|
23
|
-
Report: 'REPORT'
|
|
24
|
-
Cheque2: 'CHEQUE',
|
|
25
|
-
Prelevement2: 'PRELEVEMENT',
|
|
26
|
-
Virement2: 'VIREMENT',
|
|
27
|
-
Espece2: 'ESPECE',
|
|
28
|
-
Autre2: 'AUTRE',
|
|
29
|
-
Report2: 'REPORT'
|
|
23
|
+
Report: 'REPORT'
|
|
30
24
|
};
|
|
@@ -16,8 +16,5 @@ export declare const SubmissionMode: {
|
|
|
16
16
|
readonly SaisieApi: "SAISIE_API";
|
|
17
17
|
readonly DepotPdfApi: "DEPOT_PDF_API";
|
|
18
18
|
readonly DepotPdfSigneApi: "DEPOT_PDF_SIGNE_API";
|
|
19
|
-
readonly SaisieApi2: "SAISIE_API";
|
|
20
|
-
readonly DepotPdfApi2: "DEPOT_PDF_API";
|
|
21
|
-
readonly DepotPdfSigneApi2: "DEPOT_PDF_SIGNE_API";
|
|
22
19
|
};
|
|
23
20
|
export type SubmissionMode = typeof SubmissionMode[keyof typeof SubmissionMode];
|
|
@@ -17,8 +17,5 @@
|
|
|
17
17
|
export const SubmissionMode = {
|
|
18
18
|
SaisieApi: 'SAISIE_API',
|
|
19
19
|
DepotPdfApi: 'DEPOT_PDF_API',
|
|
20
|
-
DepotPdfSigneApi: 'DEPOT_PDF_SIGNE_API'
|
|
21
|
-
SaisieApi2: 'SAISIE_API',
|
|
22
|
-
DepotPdfApi2: 'DEPOT_PDF_API',
|
|
23
|
-
DepotPdfSigneApi2: 'DEPOT_PDF_SIGNE_API'
|
|
20
|
+
DepotPdfSigneApi: 'DEPOT_PDF_SIGNE_API'
|
|
24
21
|
};
|
|
@@ -19,11 +19,5 @@ export declare const UnitOfMeasure: {
|
|
|
19
19
|
readonly Kilogramme: "KILOGRAMME";
|
|
20
20
|
readonly Litre: "LITRE";
|
|
21
21
|
readonly Forfait: "FORFAIT";
|
|
22
|
-
readonly Piece2: "PIECE";
|
|
23
|
-
readonly Heure2: "HEURE";
|
|
24
|
-
readonly Jour2: "JOUR";
|
|
25
|
-
readonly Kilogramme2: "KILOGRAMME";
|
|
26
|
-
readonly Litre2: "LITRE";
|
|
27
|
-
readonly Forfait2: "FORFAIT";
|
|
28
22
|
};
|
|
29
23
|
export type UnitOfMeasure = typeof UnitOfMeasure[keyof typeof UnitOfMeasure];
|
|
@@ -20,11 +20,5 @@ export const UnitOfMeasure = {
|
|
|
20
20
|
Jour: 'JOUR',
|
|
21
21
|
Kilogramme: 'KILOGRAMME',
|
|
22
22
|
Litre: 'LITRE',
|
|
23
|
-
Forfait: 'FORFAIT'
|
|
24
|
-
Piece2: 'PIECE',
|
|
25
|
-
Heure2: 'HEURE',
|
|
26
|
-
Jour2: 'JOUR',
|
|
27
|
-
Kilogramme2: 'KILOGRAMME',
|
|
28
|
-
Litre2: 'LITRE',
|
|
29
|
-
Forfait2: 'FORFAIT'
|
|
23
|
+
Forfait: 'FORFAIT'
|
|
30
24
|
};
|
|
@@ -17,9 +17,5 @@ export declare const VATAccountingCode: {
|
|
|
17
17
|
readonly TvaSurEncaissement: "TVA_SUR_ENCAISSEMENT";
|
|
18
18
|
readonly Exoneration: "EXONERATION";
|
|
19
19
|
readonly SansTva: "SANS_TVA";
|
|
20
|
-
readonly TvaSurDebit2: "TVA_SUR_DEBIT";
|
|
21
|
-
readonly TvaSurEncaissement2: "TVA_SUR_ENCAISSEMENT";
|
|
22
|
-
readonly Exoneration2: "EXONERATION";
|
|
23
|
-
readonly SansTva2: "SANS_TVA";
|
|
24
20
|
};
|
|
25
21
|
export type VATAccountingCode = typeof VATAccountingCode[keyof typeof VATAccountingCode];
|