Class LithuaniaValidation
- Namespace
- RetailForce.Fiscalisation.Implementation.Lithuania
- Assembly
- RetailForce.Fiscalisation.Model.dll
Validation class for Lithuania.
public class LithuaniaValidation
- Inheritance
-
objectLithuaniaValidation
- Inherited Members
Fields
SupportedDocumentTypesMapping
Supported document types mapping for Lithuania.
public static Dictionary<DocumentType, Func<string, string>> SupportedDocumentTypesMapping
Field Value
SupportedPaymentTypesMapping
Supported payment types mapping for Lithuania.
public static readonly Dictionary<PaymentType, string> SupportedPaymentTypesMapping
Field Value
SupportedVatDefinitions
Adds supported and allowed vat definitions for Lithuania.
public static readonly ReadOnlyCollection<Vat> SupportedVatDefinitions
Field Value
Methods
GetDocumentType(DocumentType)
public static string GetDocumentType(DocumentType documentType)
Parameters
documentTypeDocumentType
Returns
- string
Exceptions
GetPaymentType(PaymentType)
Gets the Lithuanian payment type string for the given retailforce payment type.
public static string GetPaymentType(PaymentType paymentType)
Parameters
paymentTypePaymentTypeThe 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
documentDocumentThe document to validate.
lithuaniaFiscalPropertiesLithuaniaFiscalPropertiesFiscal properties for Lithuania.
fiscalClientFiscalClientThe fiscal client configuration.
stickSalesAmountdecimalThe stick sales amount for end-of-day documents.
endOfDayCaptionReturnsstringCaption for returns in end-of-day documents.
Returns
- List<DocumentValidationError>
A list of document validation errors.