TPDFlibInvoiceValidationMode

Data types, invoices

Description

Selects which validation provider a dispatched invoice validation call stands for. The value travels with the Mode parameter of the TPDFlibInvoiceValidationJSON callback; the rules and tool configuration it receives differ per provider.

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, and this value tells the callback which public method is calling. 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 passes a value of this type.

Syntax

Delphi

type TPDFlibInvoiceValidationMode = (ivmTools, ivmPackage, ivmBuiltIn);

Values

ivmToolsSchema and Schematron validation through external tools; the provider behind ValidateInvoiceBusinessRulesWithTools
ivmPackageValidation against a rule package with a manifest; the provider behind ValidateInvoiceBusinessRulesWithPackage
ivmBuiltInNative subset of the EN 16931 business rules without external tools; the provider behind ValidateInvoiceBusinessRulesBuiltIn

See also

TPDFlibInvoiceValidationJSON, TPDFlibInvoiceBusinessValidation, TPDFlibInvoicePackageRun