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
-
objectValidationBase<ValidationError>ValidationPropertyBase<ValidationError>ClientConfigurationFlink
- Implements
- Derived
- Inherited Members
-
ValidationPropertyBase<ValidationError>.Validate()
Properties
CloudArchive
True if cloud archive is active; otherwise false.
public bool CloudArchive { get; set; }
Property Value
- bool
Encoding
Possible setting for encoding sent to flink service. Default is UTF8.
public int? Encoding { get; set; }
Property Value
- int?
FLinkPaymentMapping
Payment mapping for FLink printer driver.
public Dictionary<PaymentType, int> FLinkPaymentMapping { get; set; }
Property Value
FiscalCountry
The fiscal country of the client configuration.
public abstract FiscalCountry FiscalCountry { get; }
Property Value
FlinkHttpInterfaceUrl
The interface url for http flink interface. If not set "http://localhost:5530" is used.
public string FlinkHttpInterfaceUrl { get; set; }
Property Value
- string
ItemCaptionFormat
Optional. Format ItemCaption on fiscal printer printout.
public string ItemCaptionFormat { get; set; }
Property Value
- string
ReplacementChars
Possible dictionary to replace characters on printouts.
public Dictionary<char, char> ReplacementChars { get; set; }
Property Value
SimplifiedInvoiceBusinessTaxNumberCaption
Possible overwrite for business tax number caption. Default is: 3ДДС
public string SimplifiedInvoiceBusinessTaxNumberCaption { get; set; }
Property Value
- string
SimplifiedInvoiceCaption
Possible overwrite for simplified invoice caption (invoice number). Default is: Получател
public string SimplifiedInvoiceCaption { get; set; }
Property Value
- string
SimplifiedInvoiceNetAmountCaption
Possible overwrite for simplified invoice net amount caption in vat overview. Default is: Нето ст-ст
public string SimplifiedInvoiceNetAmountCaption { get; set; }
Property Value
- string
SimplifiedInvoiceOriginalText
Possible overwrite for simplified invoice text "original". Default is: ОРИГИНАЛ
public string SimplifiedInvoiceOriginalText { get; set; }
Property Value
- string
SimplifiedInvoiceReferenceCaption
Possible overwrite for simplified invoice reference (document reference) caption. Default is: към фактура
public string SimplifiedInvoiceReferenceCaption { get; set; }
Property Value
- string
SimplifiedInvoiceTaxNumberCaption
Possible overwrite for simplified invoice tax number caption (tax number of customer). Default is: ДДС Номер
public string SimplifiedInvoiceTaxNumberCaption { get; set; }
Property Value
- string
SimplifiedInvoiceTaxSymbol
Possible overwrite for tax symbol on simplified invoice. Default is: Б
public string SimplifiedInvoiceTaxSymbol { get; set; }
Property Value
- string
SimplifiedInvoiceVatAmountCaption
Possible overwrite for simplified invoice vat amount caption in vat overview. Default is: EИK
public string SimplifiedInvoiceVatAmountCaption { get; set; }
Property Value
- string
SimplifiedReturnCaption
Possible overwrite for simplified invoice return caption (return number). Default is: Кредит
public string SimplifiedReturnCaption { get; set; }
Property Value
- string
Methods
Encrypt(Guid)
Encrypts sensitive data.
public virtual void Encrypt(Guid uniqueClientId)
Parameters
uniqueClientIdGuid
GetSecuredFields()
GetSecure Fields
public virtual SecuredFields? GetSecuredFields()
Returns
- SecuredFields
return the country implemenation configuration specific secure fields if available
PreserveValues(IFiscalImplementationConfiguration)
If necessary this method is called to preserve configuration values when updating the configuration.
public virtual bool PreserveValues(IFiscalImplementationConfiguration oldConfiguration)
Parameters
oldConfigurationIFiscalImplementationConfigurationThe old configuration holding the values which should be preserved.
Returns
- bool
true if new configuration should be updated in cloud
Remarks
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
oldConfigurationis set to null.
RemoveSensitiveData()
Removes sensitive data from the configuration.
public virtual void RemoveSensitiveData()
Remarks
Used for sending data from cloud to client to remove sensitve data from configuration which is not needed by the client.
UpdateCloudConfiguration(Guid, ICloudConnector)
If necessary PreserveValues returns true update will be sent to cloud
public virtual void UpdateCloudConfiguration(Guid uniqueClientId, ICloudConnector connector)
Parameters
uniqueClientIdGuidThe id of the client
connectorICloudConnectorCloudConnector for sending data to the cloud