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

StatusOutcome of the stage: not checked, passed, failed, error or unavailable
CompleteTrue when the provider executed the requested rules and its result is final
EngineName or identifier of the engine that executed the stage
DetailShort human-readable explanation of the stage outcome
RawDiagnosticsEngine output retained for troubleshooting, bounded by MaxOutputBytes
ExecutedRulesNumber of rules the engine evaluated
IssuesStructured rule violations, each with rule ID, field path, message, severity, line and category
CoverageWhether the stage used a built-in rule subset or the supplied rule package
NotCoveredComma-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.

See also

IPDFInvoiceValidationProvider, TPDFInvoiceValidationReport