TPDFInvoiceRulePackageInfo
Data types, invoices, compliance
Description
TPDFInvoiceRulePackageInfo describes the rule package that a validation run resolved, including the manifest digest, the standard and profile it declares and the files it lists.
Verified reports that every listed file exists and matches its digest; Pinned reports that the manifest matched the digest the caller supplied.
Syntax
Delphi
TPDFInvoiceRulePackageInfo = record
ManifestFile, ManifestSHA256: WideString;
Standard, Version, Profile, Syntax: WideString;
SchemaFile, SchematronStylesheetFile: WideString;
Files: TPDFInvoiceRulePackageFileArray;
Pinned, Verified: Boolean;
ErrorCode, ErrorText: WideString;
end;Fields
| ManifestFile | Path of the package manifest that was read |
|---|---|
| ManifestSHA256 | Digest of the manifest, or the expected digest when the package was pinned |
| Standard | Rule standard declared by the manifest, for example the Factur-X or UBL profile family |
| Version | Rule version declared by the manifest |
| Profile | Invoice profile declared by the manifest |
| Syntax | XML syntax declared by the manifest, such as CII or UBL |
| SchemaFile | XML Schema file named by the manifest |
| SchematronStylesheetFile | Schematron stylesheet named by the manifest |
| Files | Every file listed by the manifest with its recorded digest |
| Pinned | True when the manifest itself matched the caller's expected digest |
| Verified | True when every listed file exists and matches its recorded digest |
| ErrorCode | Machine-readable reason the package was not verified, or an empty string |
| ErrorText | Human-readable package verification failure, or an empty string |
Remarks
A package can be pinned but not verified, or verified but not pinned; FullConformance requires a verified package.
The file list is retained with the report so a later audit can identify the exact rules that ran.
See also
TPDFInvoiceRuleSet, TPDFInvoiceRulePackageFile, TPDFInvoiceValidationReport