Table of Contents

Class ClientConfigurationCanada

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

The canadian country specific client configuration.

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

Properties

ActivitySubSector

The sub sector of the business sector BusinessSector.

public string ActivitySubSector { get; set; }

Property Value

string

ApplicationVersionId

Certified Application Version ID.

public string ApplicationVersionId { get; set; }

Property Value

string

Remarks

Temporary solution. Subject to change in future versions.

ApplicationVersionPrevious

Previous Certified Application Version.

public string ApplicationVersionPrevious { get; set; }

Property Value

string

Remarks

Temporary solution. Subject to change in future versions.

BillingFileNumber

The billing file number.

public string BillingFileNumber { get; set; }

Property Value

string

Remarks

Provided by RQ to identify a sector of activity and, if applicable, the location of the operator's establishment based on its QST reg. no. noDossFO (= mandatory milling file no.; Format: AA9999 - 2 letters, 4 numbers)

CertificationCode

The number which is provided to ta after certification process.

public string CertificationCode { get; set; }

Property Value

string

Remarks

This number is mandatory for certification and without this number the client cannot be initialized.

CloudArchive

True if cloud archive is active; otherwise false.

public bool CloudArchive { get; set; }

Property Value

bool

DeviceIdentifier

The device identifier. (IDAPPRL)

public string DeviceIdentifier { get; set; }

Property Value

string

FiscalCountry

The fiscal country of the client configuration.

public FiscalCountry FiscalCountry { get; }

Property Value

FiscalCountry

GstNumberUser

The GST number of user.

public string GstNumberUser { get; set; }

Property Value

string

Remarks

GST number of the user mapped to _noGSTUser in "user" Request to RQ / WEB-SRM

IsCertification

Set to true if this client is in certification process; if certified set to false to use this client in production process.

public bool IsCertification { get; set; }

Property Value

bool

LocationTimeZone

The location time zone.

public string LocationTimeZone { get; set; }

Property Value

string

Remarks

Select the time zone of the location of the cash register

MainUserName

The main user name.

public string MainUserName { get; set; }

Property Value

string

Remarks

Name of the User. Will be registered as user for the respective organisation at Revenue Quebec mapped to _UserName in "user" Request to RQ / WEB-SRM

OperatorAuthorizationCode

The operator authorization code.

public string OperatorAuthorizationCode { get; set; }

Property Value

string

Remarks

Authorization code provided by Revenu Québec used to identify requestors to WEB-SRM

OperatorIdentificationNumber

The operator identification number.

public string OperatorIdentificationNumber { get; set; }

Property Value

string

Remarks

Identification number of the operator of the business (assigned by Revenu Québec)

QstNumberUser

The QST number of user.

public string QstNumberUser { get; set; }

Property Value

string

Remarks

QST number of the user mapped to _noQSTUser in "user" Request to RQ / WEB-SRM

RqPartnerId

The RQ partner ID.

public string RqPartnerId { get; set; }

Property Value

string

Remarks

Unique partner identifier (SRS developer identifier) as in 'My Account for partners - Mandatory billing'

SevCertSerialNumber

The SEV certificate serial number. (= SRS)

public string SevCertSerialNumber { get; set; }

Property Value

string

SrsId

The SRS-ID.

public string SrsId { get; set; }

Property Value

string

Remarks

Unique SRS identifier used to send requests to the WEB-SRM

WebSrmCertSerialNumber

The WEB-SRM certificate serial number. (= MEVWEB)

public string WebSrmCertSerialNumber { get; set; }

Property Value

string

WebSrmConnectionTimeout

WEB-SRM connection timeout in milliseconds.

public int? WebSrmConnectionTimeout { get; set; }

Property Value

int?

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