Table of Contents

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

TseDriver

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

string

TseParameter

Additional parameters for tse configuration.

[JsonConverter(typeof(TseParameterJsonConverter))]
public virtual List<ConfigurationParameter> TseParameter { get; set; }

Property Value

List<ConfigurationParameter>

UseTseGuid

True if the tse has to use the guid; otherwise false (use id).

[Obsolete]
public bool UseTseGuid { get; set; }

Property Value

bool

Methods

Equals(TseConfiguration)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(TseConfiguration other)

Parameters

other TseConfiguration

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetTseParameter(Guid, string, bool)

Returns the tse parameter for the given parameter name.

public string GetTseParameter(Guid clientId, string parameterName, bool optional = false)

Parameters

clientId Guid

The clientId of the client which holds this parameter.

parameterName string

The name of the requested parameter.

optional bool

True 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 clientId is set to Empty.

ArgumentNullException

Thrown if parameter parameterName is set to null or Empty.

InvalidOperationException

Thrown if parameter optional is set to false and given parameter is not supplied.

NullReferenceException

Thrown if property TseParameter of parameter configuration is set to null.