Table of Contents

Class ClientConfigurationFlink

Namespace
RetailForce.Fiscalisation.Implementation.Shared.Flink
Assembly
RetailForce.Fiscalisation.Model.dll

Base client configuration for all flink connected modules

public abstract class ClientConfigurationFlink : ConfigurationValidationBase, IFiscalImplementationConfiguration
Inheritance
object
ValidationBase<ValidationError>
ValidationPropertyBase<ValidationError>
ClientConfigurationFlink
Implements
Derived
Inherited Members
ValidationPropertyBase<ValidationError>.Validate()

Properties

True if cloud archive is active; otherwise false.

public bool CloudArchive { get; set; }

Property Value

bool

Possible setting for encoding sent to flink service. Default is UTF8.

public int? Encoding { get; set; }

Property Value

int?

Payment mapping for FLink printer driver.

public Dictionary<PaymentType, int> FLinkPaymentMapping { get; set; }

Property Value

Dictionary<PaymentType, int>

The fiscal country of the client configuration.

public abstract FiscalCountry FiscalCountry { get; }

Property Value

FiscalCountry

The interface url for http flink interface. If not set "http://localhost:5530" is used.

public string FlinkHttpInterfaceUrl { get; set; }

Property Value

string

Optional. Format ItemCaption on fiscal printer printout.

public string ItemCaptionFormat { get; set; }

Property Value

string

Possible dictionary to replace characters on printouts.

public Dictionary<char, char> ReplacementChars { get; set; }

Property Value

Dictionary<char, char>

Possible overwrite for business tax number caption. Default is: 3ДДС

public string SimplifiedInvoiceBusinessTaxNumberCaption { get; set; }

Property Value

string

Possible overwrite for simplified invoice caption (invoice number). Default is: Получател

public string SimplifiedInvoiceCaption { get; set; }

Property Value

string

Possible overwrite for simplified invoice net amount caption in vat overview. Default is: Нето ст-ст

public string SimplifiedInvoiceNetAmountCaption { get; set; }

Property Value

string

Possible overwrite for simplified invoice text "original". Default is: ОРИГИНАЛ

public string SimplifiedInvoiceOriginalText { get; set; }

Property Value

string

Possible overwrite for simplified invoice reference (document reference) caption. Default is: към фактура

public string SimplifiedInvoiceReferenceCaption { get; set; }

Property Value

string

Possible overwrite for simplified invoice tax number caption (tax number of customer). Default is: ДДС Номер

public string SimplifiedInvoiceTaxNumberCaption { get; set; }

Property Value

string

Possible overwrite for tax symbol on simplified invoice. Default is: Б

public string SimplifiedInvoiceTaxSymbol { get; set; }

Property Value

string

Possible overwrite for simplified invoice vat amount caption in vat overview. Default is: EИK

public string SimplifiedInvoiceVatAmountCaption { get; set; }

Property Value

string

Possible overwrite for simplified invoice return caption (return number). Default is: Кредит

public string SimplifiedReturnCaption { get; set; }

Property Value

string

Methods

Encrypts sensitive data.

public virtual void Encrypt(Guid uniqueClientId)

Parameters

uniqueClientId Guid

GetSecure Fields

public virtual SecuredFields? GetSecuredFields()

Returns

SecuredFields

return the country implemenation configuration specific secure fields if available

If necessary this method is called to preserve configuration values when updating the configuration.

public virtual bool PreserveValues(IFiscalImplementationConfiguration oldConfiguration)

Parameters

oldConfiguration IFiscalImplementationConfiguration

The old configuration holding the values which should be preserved.

Returns

bool

true if new configuration should be updated in cloud

Implement this method if you want to preserve data in the configuration which would be updated by the cloud (serialno of security devices, aesKey in austria, etc.)

Exceptions

ArgumentNullException

Thrown if parameter oldConfiguration is set to null.

Removes sensitive data from the configuration.

public virtual void RemoveSensitiveData()

Used for sending data from cloud to client to remove sensitve data from configuration which is not needed by the client.

If necessary PreserveValues returns true update will be sent to cloud

public virtual void UpdateCloudConfiguration(Guid uniqueClientId, ICloudConnector connector)

Parameters

uniqueClientId Guid

The id of the client

connector ICloudConnector

CloudConnector for sending data to the cloud