Skip to content

Struct FacturXValidationReport

Represents the result of validating a Factur-X Cross-Industry Invoice against business rules.

Assembly: FacturXDotNet.dll
csharp
public readonly struct FacturXValidationReport : IEquatable<FacturXValidationReport>

Implements:
System.IEquatable<FacturXDotNet.Validation.FacturXValidationReport>

Properties

ExpectedProfile

The profile that was expected for the document. This is the profile that is specified in the document.

csharp
public FacturXProfile ExpectedProfile { get; init; }

Rules

The validation status of each business rule.

csharp
public IReadOnlyList<BusinessRuleValidationResult> Rules { get; init; }

ValidProfiles

The profiles that are valid for the document.

csharp
public FacturXProfileFlags ValidProfiles { get; }

Success

Whether the validation was successful.

csharp
public bool Success { get; }

Methods

ToString()

csharp
public override string ToString()
Returns

System.String

GetHashCode()

csharp
public override int GetHashCode()
Returns

System.Int32

Equals(object)

csharp
public override bool Equals(object obj)
Returns

System.Boolean

Parameters
TypeName
System.Objectobj

Equals(FacturXValidationReport)

csharp
public bool Equals(FacturXValidationReport other)
Returns

System.Boolean

Parameters
TypeName
FacturXDotNet.Validation.FacturXValidationReportother

Deconstruct(out FacturXProfile, out IReadOnlyList<BusinessRuleValidationResult>)

csharp
public void Deconstruct(out FacturXProfile ExpectedProfile, out IReadOnlyList<BusinessRuleValidationResult> Rules)
Parameters
TypeName
FacturXDotNet.Models.FacturXProfileExpectedProfile
System.Collections.Generic.IReadOnlyList<FacturXDotNet.Validation.BusinessRuleValidationResult>Rules

Implements

  • System.IEquatable<FacturXDotNet.Validation.FacturXValidationReport>

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