Skip to content

Class BrCo26

BR-CO-26: In order for the buyer to automatically identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identifier (BT-31) shall be present.

Assembly: FacturXDotNet.dll
csharp
public record BrCo26 : CrossIndustryInvoiceBusinessRule, IEquatable<BusinessRule>, IEquatable<CrossIndustryInvoiceBusinessRule>, IEquatable<BrCo26>

Inheritance: System.Object -> FacturXDotNet.Validation.BusinessRules.BusinessRule -> FacturXDotNet.Validation.BusinessRules.CII.CrossIndustryInvoiceBusinessRule

Implements:
System.IEquatable<FacturXDotNet.Validation.BusinessRules.BusinessRule>, System.IEquatable<FacturXDotNet.Validation.BusinessRules.CII.CrossIndustryInvoiceBusinessRule>, System.IEquatable<FacturXDotNet.Validation.BusinessRules.CII.BrCo.BrCo26>

Properties

EqualityContract

csharp
protected override Type EqualityContract { get; }

Methods

Check(CrossIndustryInvoice?, IBusinessRuleDetailsLogger?)

Determines whether the invoice satisfies the conditions defined by the rule.

csharp
public override bool Check(CrossIndustryInvoice? cii, IBusinessRuleDetailsLogger? logger = null)
Returns

System.Boolean: true if the rule is satisfied by the invoice; otherwise false.

Parameters
TypeNameDescription
FacturXDotNet.Models.CII.CrossIndustryInvoiceciiThe Cross-Industry Invoice to validate.
FacturXDotNet.Validation.BusinessRules.IBusinessRuleDetailsLoggerlogger

ToString()

csharp
public override string ToString()
Returns

System.String

PrintMembers(StringBuilder)

csharp
protected override bool PrintMembers(StringBuilder builder)
Returns

System.Boolean

Parameters
TypeName
System.Text.StringBuilderbuilder

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(CrossIndustryInvoiceBusinessRule?)

csharp
public override sealed bool Equals(CrossIndustryInvoiceBusinessRule? other)
Returns

System.Boolean

Parameters
TypeName
FacturXDotNet.Validation.BusinessRules.CII.CrossIndustryInvoiceBusinessRuleother

Equals(BrCo26?)

csharp
public virtual bool Equals(BrCo26? other)
Returns

System.Boolean

Parameters
TypeName
FacturXDotNet.Validation.BusinessRules.CII.BrCo.BrCo26other

Implements

  • System.IEquatable<FacturXDotNet.Validation.BusinessRules.BusinessRule>
  • System.IEquatable<FacturXDotNet.Validation.BusinessRules.CII.CrossIndustryInvoiceBusinessRule>
  • System.IEquatable<FacturXDotNet.Validation.BusinessRules.CII.BrCo.BrCo26>

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