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

ManifestFilePath of the package manifest that was read
ManifestSHA256Digest of the manifest, or the expected digest when the package was pinned
StandardRule standard declared by the manifest, for example the Factur-X or UBL profile family
VersionRule version declared by the manifest
ProfileInvoice profile declared by the manifest
SyntaxXML syntax declared by the manifest, such as CII or UBL
SchemaFileXML Schema file named by the manifest
SchematronStylesheetFileSchematron stylesheet named by the manifest
FilesEvery file listed by the manifest with its recorded digest
PinnedTrue when the manifest itself matched the caller's expected digest
VerifiedTrue when every listed file exists and matches its recorded digest
ErrorCodeMachine-readable reason the package was not verified, or an empty string
ErrorTextHuman-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