Table of Contents

Class AustrianValidation

Namespace
RetailForce.Fiscalisation.Implementation.Austria
Assembly
RetailForce.Fiscalisation.Model.dll

Validation for Austria.

public static class AustrianValidation
Inheritance
object
AustrianValidation
Inherited Members

Fields

SupportedVatDefinitions

public static readonly ReadOnlyCollection<Vat> SupportedVatDefinitions

Field Value

ReadOnlyCollection<Vat>

VALIDATION_ERROR_SOURCE

Represents the source identifier used for validation errors originating from the Trusted Fiscal Module for Austria.

public const string VALIDATION_ERROR_SOURCE = "TrustedFiscalModuleAustria"

Field Value

string

Methods

GetCashPaymentTypes()

Returns all payment types which are treated as cash in austria.

public static List<PaymentType> GetCashPaymentTypes()

Returns

List<PaymentType>

A list of all payment types which are treated as cash in austria.

GetNoCashPaymentTypes()

Returns all payment types which are treated as not to be cash in austria.

public static List<PaymentType> GetNoCashPaymentTypes()

Returns

List<PaymentType>

A list of all payment types which are treated as not to be cash in austria.

ValidateDocument(Document)

Validates the specified document and returns a list of validation errors found.

public static List<DocumentValidationError> ValidateDocument(Document document)

Parameters

document Document

The document to validate.

Returns

List<DocumentValidationError>

A list of validation errors detected in the document. (The list is empty if no errors are found.)

ValidateDocumentPosition(List<DocumentValidationError>, DateTimeOffset, DocumentPositionBase)

Validates document position for Austria.

public static void ValidateDocumentPosition(List<DocumentValidationError> errorList, DateTimeOffset bookDate, DocumentPositionBase position)

Parameters

errorList List<DocumentValidationError>

The list to which validation errors will be added.

bookDate DateTimeOffset

The booking date of the document.

position DocumentPositionBase

The document position to validate.