TPDFlibInvoiceBusinessValidation
Data types, invoices
Description
Validates an embedded invoice with a caller-supplied provider for ValidateInvoiceBusinessRules.
TPDFlib declares the public methods and a protected dispatch method for the business-rule validation of an embedded invoice. 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
TPDFlibInvoiceBusinessValidation = Function(Const EmbeddedFileName: WideString;
Const Request: TPDFInvoiceValidationRequest; Const Provider: IPDFInvoiceValidationProvider;
Out Report: TPDFInvoiceValidationReport): Boolean Of Object;Parameters
| EmbeddedFileName | File name of the embedded invoice XML attachment to validate |
|---|---|
| Request | Validation request carrying the rule set, the schema and Schematron requirements, the timeout and the output size limit |
| Provider | Provider interface that executes the requested validation stages |
| Report | Receives the stage-by-stage validation report |
Return values
| True | The provider ran the requested validation stages; Report holds the results |
|---|---|
| False | The validation could not run |
See also
TPDFlibInvoiceValidationMode, TPDFlibInvoiceValidationJSON, ValidateInvoiceBusinessRules