Table of Contents

Class LithuaniaValidation

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

Validation class for Lithuania.

public class LithuaniaValidation
Inheritance
object
LithuaniaValidation
Inherited Members

Fields

SupportedDocumentTypesMapping

Supported document types mapping for Lithuania.

public static Dictionary<DocumentType, Func<string, string>> SupportedDocumentTypesMapping

Field Value

Dictionary<DocumentType, Func<string, string>>

SupportedPaymentTypesMapping

Supported payment types mapping for Lithuania.

public static readonly Dictionary<PaymentType, string> SupportedPaymentTypesMapping

Field Value

Dictionary<PaymentType, string>

SupportedVatDefinitions

Adds supported and allowed vat definitions for Lithuania.

public static readonly ReadOnlyCollection<Vat> SupportedVatDefinitions

Field Value

ReadOnlyCollection<Vat>

Methods

GetDocumentType(DocumentType)

public static string GetDocumentType(DocumentType documentType)

Parameters

documentType DocumentType

Returns

string

Exceptions

NotSupportedException

GetPaymentType(PaymentType)

Gets the Lithuanian payment type string for the given retailforce payment type.

public static string GetPaymentType(PaymentType paymentType)

Parameters

paymentType PaymentType

The payment type to map.

Returns

string

The Lithuanian payment type mapping.

ValidateDocument(Document, LithuaniaFiscalProperties, FiscalClient, decimal, string)

Validates the document based on Lithuanian fiscal requirements.

public static List<DocumentValidationError> ValidateDocument(Document document, LithuaniaFiscalProperties lithuaniaFiscalProperties, FiscalClient fiscalClient, decimal stickSalesAmount, string endOfDayCaptionReturns)

Parameters

document Document

The document to validate.

lithuaniaFiscalProperties LithuaniaFiscalProperties

Fiscal properties for Lithuania.

fiscalClient FiscalClient

The fiscal client configuration.

stickSalesAmount decimal

The stick sales amount for end-of-day documents.

endOfDayCaptionReturns string

Caption for returns in end-of-day documents.

Returns

List<DocumentValidationError>

A list of document validation errors.