IPDFInvoiceValidationProvider

Data types

Description

Contract for one invoice XML validation stage used by ValidateInvoiceBusinessRules

The validator calls ValidateStage once for ivsSchema and once for ivsSchematron, passing the effective request after any rule package has been resolved

Syntax

Delphi

IPDFInvoiceValidationProvider = interface
  ['{EC1C0D3D-7907-4BFB-A6B2-717082362F9C}']
  procedure ValidateStage(const Request: TPDFInvoiceValidationRequest;
    Stage: TPDFInvoiceValidationStage; out StageResult: TPDFInvoiceStageResult);
end;

Remarks

A Nil provider yields ivstUnavailable with the code Provider.Missing

An exception raised by the provider is caught and reported as ivstError with the code Provider.Exception and the exception message

A stage that reports ivstPassed or ivstFailed must set Complete; otherwise it is downgraded to ivstError with the code Provider.IncompleteResult

Any issue with ivseError or ivseFatal severity downgrades a passed stage to ivstFailed

See also

ValidateInvoiceBusinessRules, ValidateInvoiceBusinessRulesWithTools, ValidateInvoiceBusinessRulesBuiltIn, GetBuiltInInvoiceRuleCatalog