Struct FacturXValidationResult
Represents the result of validating a Factur-X Cross-Industry Invoice against business rules.
Assembly: FacturXDotNet.dll
csharp
public readonly struct FacturXValidationResult : IEquatable<FacturXValidationResult>
Implements:System.IEquatable<FacturXDotNet.Validation.FacturXValidationResult>
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
Type | Name |
---|---|
System.Object | obj |
Equals(FacturXValidationResult)
csharp
public bool Equals(FacturXValidationResult other)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
FacturXDotNet.Validation.FacturXValidationResult | other |
Deconstruct(out FacturXProfile, out IReadOnlyList<BusinessRuleValidationResult>)
csharp
public void Deconstruct(out FacturXProfile ExpectedProfile, out IReadOnlyList<BusinessRuleValidationResult> Rules)
Parameters
Type | Name |
---|---|
FacturXDotNet.Models.FacturXProfile | ExpectedProfile |
System.Collections.Generic.IReadOnlyList<FacturXDotNet.Validation.BusinessRuleValidationResult> | Rules |
Implements
System.IEquatable<FacturXDotNet.Validation.FacturXValidationResult>