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
ruleIdstring
Properties
RuleId
Rule identifier (e.g. "BR-01", "BR-DE-1").
public string RuleId { get; }
Property Value
Methods
Apply(Invoice)
Apply this rule to the invoice and return any violations.
public abstract IEnumerable<ValidationMessage> Apply(Invoice invoice)
Parameters
invoiceInvoice
Returns
Error(string, string?)
protected ValidationMessage Error(string message, string? location = null)