Skip to content

Class FacturXValidationOptions

Provides configuration options for the FacturXDotNet.Validation.FacturXValidator.

Assembly: FacturXDotNet.dll
csharp
public class FacturXValidationOptions

Properties

ProfileOverride

The profile to use for validation.

csharp
public FacturXProfile? ProfileOverride { get; set; }

TreatWarningsAsErrors

Whether to treat warnings as errors during validation.

csharp
public bool TreatWarningsAsErrors { get; set; }

RulesToSkip

The list of rules to skip during validation.

csharp
public List<string> RulesToSkip { get; }

Logger

The logger that should be used by the validator.

csharp
public ILogger? Logger { get; set; }

CheckCallback

The callback that should be called when a business rule validation result is available. These results will also be available in the final validation report, this callback can be used to display the results asap, e.g. in a UI. Note that this callback will be called for each rule, performance may be affected if the callback is slow.

csharp
public Action<BusinessRuleValidationResult>? CheckCallback { get; set; }

Methods

SkipCiiRules()

Skips all Cross-Industry Invoice business rules during validation.

csharp
public void SkipCiiRules()

SkipHybridRules()

Skips all Hybrid business rules during validation.

csharp
public void SkipHybridRules()

The tools are open source and released under the MIT License, feel free to use, modify, and share.