Table of Contents

Class ClientConfigurationSweden

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

The swedish country specific configuration for the client.

public class ClientConfigurationSweden : ConfigurationValidationBase, IFiscalImplementationConfiguration
Inheritance
ValidationBase<ValidationError>
ValidationPropertyBase<ValidationError>
ClientConfigurationSweden
Implements
Inherited Members
ValidationPropertyBase<ValidationError>.Validate()

Fields

AxenaCentralControlUnit_ControlUnitApplicationPackage

Application package name for control unit provisioning.

public const string AxenaCentralControlUnit_ControlUnitApplicationPackage = "CCUAppPackage"

Field Value

string

AxenaCentralControlUnit_ControlUnitProvPassword

Password to create an entity on the ccu for the requested terminal. Not to use for normal "signing".

public const string AxenaCentralControlUnit_ControlUnitProvPassword = "CCUProvPassword"

Field Value

string

AxenaCentralControlUnit_ControlUnitProvUser

User to create an entity on the ccu for the requested terminal. Not to use for normal "signing".

public const string AxenaCentralControlUnit_ControlUnitProvUser = "CCUProvUser"

Field Value

string

Properties

CentralControlUnit

Configuration for central control unit.

public ControlUnitConfiguration CentralControlUnit { get; set; }

Property Value

ControlUnitConfiguration

CloudArchive

True if data should be archived to the cloud; otherwise false.

public bool CloudArchive { get; set; }

Property Value

bool

FiscalCountry

The fiscal country of the client configuration.

public FiscalCountry FiscalCountry { get; }

Property Value

FiscalCountry

Methods

Encrypt(Guid)

Encrypts sensitive data.

public void Encrypt(Guid uniqueClientId)

Parameters

uniqueClientId Guid

PreserveValues(IFiscalImplementationConfiguration)

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

public 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

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 oldConfiguration is set to null.

RemoveSensitiveData()

Removes sensitive data from the configuration.

public 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 void UpdateCloudConfiguration(Guid uniqueClientId, ICloudConnector connector)

Parameters

uniqueClientId Guid

The id of the client

connector ICloudConnector

CloudConnector for sending data to the cloud