Skip to content

Class Br05InvoiceShallHaveCurrencyCode

BR-5: An Invoice shall have an Invoice currency code (BT-5).

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

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.Br.Br05InvoiceShallHaveCurrencyCode>

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

csharp
public virtual bool Equals(Br05InvoiceShallHaveCurrencyCode? other)
Returns

System.Boolean

Parameters
TypeName
FacturXDotNet.Validation.BusinessRules.CII.Br.Br05InvoiceShallHaveCurrencyCodeother

Implements

  • System.IEquatable<FacturXDotNet.Validation.BusinessRules.BusinessRule>
  • System.IEquatable<FacturXDotNet.Validation.BusinessRules.CII.CrossIndustryInvoiceBusinessRule>
  • System.IEquatable<FacturXDotNet.Validation.BusinessRules.CII.Br.Br05InvoiceShallHaveCurrencyCode>

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