Class ClientConfigurationPortugal
- Namespace
- RetailForce.Fiscalisation.Implementation.Portugal
- Assembly
- RetailForce.Fiscalisation.Model.dll
The Portugal country specific configuration for the client.
public class ClientConfigurationPortugal : ConfigurationValidationBase, IFiscalImplementationConfiguration
- Inheritance
-
objectValidationBase<ValidationError>ValidationPropertyBase<ValidationError>ClientConfigurationPortugal
- Implements
- Inherited Members
-
ValidationPropertyBase<ValidationError>.Validate()
Properties
CashVatSchemaApplied
The cash VAT schema applied flag.
public bool CashVatSchemaApplied { get; set; }
Property Value
- bool
Remarks
Activate only if Cash VAT Schema ("regime de IVA de Caixa") is applied!
CloudArchive
True if cloud archive is active; otherwise false.
public bool CloudArchive { get; set; }
Property Value
- bool
FiscalCountry
Returns the fiscal country for this configuration.
public FiscalCountry FiscalCountry { get; }
Property Value
NifSoftwareProducer
The NIF of software producer.
public string NifSoftwareProducer { get; set; }
Property Value
- string
ProgramType
The program type.
[Required]
public ProgramType? ProgramType { get; set; }
Property Value
Remarks
Defines which documents can be issued by the system
SoftwareCertificateNumber
The software certificate number.
public int? SoftwareCertificateNumber { get; set; }
Property Value
- int?
SupportOnlySafTExport
True if only SAF-T export is supported; otherwise false.
public bool SupportOnlySafTExport { get; set; }
Property Value
- bool
WsePassword
The WSE password.
public string WsePassword { get; set; }
Property Value
- string
Remarks
WSE - Comunicação e Gestão de Séries por webservice / Communication and Series Management by webservice
WseUsername
The WSE username.
public string WseUsername { get; set; }
Property Value
- string
Remarks
WSE - Comunicação e Gestão de Séries por webservice / Communication and Series Management by webservice
Methods
Encrypt(Guid)
Encrypts sensitive data.
public void Encrypt(Guid uniqueClientId)
Parameters
uniqueClientIdGuid
GetSecuredFields()
GetSecure Fields
public 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 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 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
uniqueClientIdGuidThe id of the client
connectorICloudConnectorCloudConnector for sending data to the cloud