Class TseConfiguration
- Namespace
- RetailForce.Fiscalisation.Implementation.Germany
- Assembly
- RetailForce.Fiscalisation.Model.dll
Configuration for a single tse unit.
public class TseConfiguration : ConfigurationValidationBase, IEquatable<TseConfiguration>
- Inheritance
-
ValidationBase<ValidationError>ValidationPropertyBase<ValidationError>TseConfiguration
- Implements
- Inherited Members
-
ValidationPropertyBase<ValidationError>.Validate()
Properties
TseDriver
The supported driver for the tse configuration.
public TseDriver TseDriver { get; set; }
Property Value
TseGuid
The guid of the tse (there is wether a guid or an id for a tse, not both).
[Obsolete]
public Guid? TseGuid { get; set; }
Property Value
- Guid?
TseId
The id of the tse.
public string TseId { get; set; }
Property Value
TseParameter
Additional parameters for tse configuration.
[JsonConverter(typeof(TseParameterJsonConverter))]
public virtual List<ConfigurationParameter> TseParameter { get; set; }
Property Value
UseTseGuid
True if the tse has to use the guid; otherwise false (use id).
[Obsolete]
public bool UseTseGuid { get; set; }
Property Value
Methods
Equals(TseConfiguration)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(TseConfiguration other)
Parameters
otherTseConfigurationAn object to compare with this object.
Returns
GetTseParameter(Guid, string, bool)
Returns the tse parameter for the given parameter name.
public string GetTseParameter(Guid clientId, string parameterName, bool optional = false)
Parameters
clientIdGuidThe clientId of the client which holds this parameter.
parameterNamestringThe name of the requested parameter.
optionalboolTrue if the parameter is optional; otherwise false. If parameter is optional and not supplied, null is returned.
Returns
- string
The tse parameter for the given parameter name.
Exceptions
- ArgumentNullException
Thrown if parameter
clientIdis set to Empty.- ArgumentNullException
Thrown if parameter
parameterNameis set to null or Empty.- InvalidOperationException
Thrown if parameter
optionalis set to false and given parameter is not supplied.- NullReferenceException
Thrown if property TseParameter of parameter
configurationis set to null.