Class BrVatAeAfAgRuleBase

Namespace
EInvoice.Core.Validation.Rules.EN16931
Assembly
EInvoice.Core.dll
public abstract class BrVatAeAfAgRuleBase : IValidationRule
Inheritance
BrVatAeAfAgRuleBase
Implements
Derived
Inherited Members

Constructors

BrVatAeAfAgRuleBase(string)

protected BrVatAeAfAgRuleBase(string ruleId)

Parameters

ruleId string

Properties

RuleId

Rule identifier (e.g. "BR-01", "BR-DE-1").

public string RuleId { get; }

Property Value

string

Methods

Apply(Invoice)

Apply this rule to the invoice and return any violations.

public abstract IEnumerable<ValidationMessage> Apply(Invoice invoice)

Parameters

invoice Invoice

Returns

IEnumerable<ValidationMessage>

Error(string, string?)

protected ValidationMessage Error(string message, string? location = null)

Parameters

message string
location string

Returns

ValidationMessage