Interface IInvoiceModelValidator

Namespace
EInvoice.Core.Abstractions
Assembly
EInvoice.Core.dll

Validates an Invoice domain model against business rules.

public interface IInvoiceModelValidator

Properties

Name

Name of this validator (e.g. "EN 16931", "XRechnung").

string Name { get; }

Property Value

string

Methods

Validate(Invoice)

Validate an invoice object and return the result.

ValidationResult Validate(Invoice invoice)

Parameters

invoice Invoice

Returns

ValidationResult

Validate(Invoice, ValidationOptions?)

Validate an invoice with the specified options.

ValidationResult Validate(Invoice invoice, ValidationOptions? options)

Parameters

invoice Invoice
options ValidationOptions

Returns

ValidationResult