TPDFlibInvoiceValidationJSON

Data types, invoices

Description

Runs one invoice validation provider and reports as JSON for the validation methods.

TPDFlib declares the public methods and a protected dispatch method for the business-rule validation of an embedded invoice with a named provider. The edition class supplies the implementation as a callback of this type. A plain TPDFlib instance supplies none, so the call returns the documented empty result and sets LastErrorCode to PDFLIB_ERROR_SMALLBUSINESS_REQUIRED. Application code never declares, assigns or calls a value of this type.

Syntax

Delphi

TPDFlibInvoiceValidationJSON = Function(Mode: TPDFlibInvoiceValidationMode;
  Const EmbeddedFileName: WideString; Const Rules: TPDFInvoiceRuleSet;
  Const Config: TPDFInvoiceExternalToolConfig; TimeoutMS: Integer): WideString Of Object;

Parameters

ModeProvider to run: ivmTools, ivmPackage or ivmBuiltIn
EmbeddedFileNameName of the embedded invoice attachment, or an empty string to select the detected Factur-X or ZUGFeRD invoice
RulesTPDFInvoiceRuleSet with the standard, rule release, profile, schema and Schematron stylesheet the provider uses
ConfigTPDFInvoiceExternalToolConfig with the paths of xmllint, Java and the Saxon class path
TimeoutMSTimeout applied to each external tool in milliseconds

Return values

V

See also

TPDFlibInvoiceValidationMode, TPDFlibInvoiceBusinessValidation, ValidateInvoiceBusinessRulesWithTools