TPDFInvoiceStageResult
Data types, invoices, compliance
Description
TPDFInvoiceStageResult describes one validation stage, either the XML Schema check or the Schematron business-rule evaluation, as returned by an IPDFInvoiceValidationProvider.
The provider fills Status and Complete; the validator uses them together with the issue severities to decide whether the stage passed.
Syntax
Delphi
TPDFInvoiceStageResult = record
Status: TPDFInvoiceValidationStatus;
Complete: Boolean;
Engine, Detail, RawDiagnostics: WideString;
ExecutedRules: Integer;
Issues: TPDFInvoiceValidationIssueArray;
Coverage: WideString;
NotCovered: WideString;
end;Fields
| Status | Outcome of the stage: not checked, passed, failed, error or unavailable |
|---|---|
| Complete | True when the provider executed the requested rules and its result is final |
| Engine | Name or identifier of the engine that executed the stage |
| Detail | Short human-readable explanation of the stage outcome |
| RawDiagnostics | Engine output retained for troubleshooting, bounded by MaxOutputBytes |
| ExecutedRules | Number of rules the engine evaluated |
| Issues | Structured rule violations, each with rule ID, field path, message, severity, line and category |
| Coverage | Whether the stage used a built-in rule subset or the supplied rule package |
| NotCovered | Comma-separated rule areas the stage did not check |
Remarks
A stage that reports ivstPassed or ivstFailed must set Complete; otherwise the validator downgrades it to ivstError with the provider-incomplete diagnostic.
Any issue with ivseError or ivseFatal severity downgrades a passed stage to ivstFailed.