Class TerminalSettings
the Settings for one terminal.
Inheritance
Inherited Members
Namespace: SIX.TimApi
Assembly: TimApi.dll
Syntax
public class TerminalSettings
Remarks
The per terminal configuration can be done on two ways:
- In a configuration file "TimApi.cfg"
- With the API TerminalSettings done from the application.
TIMApi reads the configuration file when the first Terminal instance is created.
The class TerminalSettings allows the setting from Application. Each instance of the Terminal class is initialized using an own instance of TerminalSettings containing the configuration relevant for this terminal. The Terminal instances read only the configuration file section with the matching terminal identifier. Multiple terminals can be configured as long as their terminal identifier are different.
All configuration has to be done before an instance of TerminalSettings is used to create a Terminal class instance.
Defines also automatic behavior for interacting with EFT terminals. By default all automatic behaviors are enabled.
Constructors
TerminalSettings()
Initializes a new instance of the TerminalSettings class.
Declaration
public TerminalSettings()
TerminalSettings(String)
Initializes a new instance of the TerminalSettings class.
Declaration
public TerminalSettings(string deviceId)
Parameters
Type | Name | Description |
---|---|---|
System.String | deviceId | The device identifier. |
Fields
PathTimApiCfg
Path to configuration file to load. Default value is "TimApi.cfg". Set this value before constructing a TerminalSettings instance.
Declaration
public static string PathTimApiCfg
Field Value
Type | Description |
---|---|
System.String |
Properties
AllowClosedCardInsert
Allow insert card before activation.
Declaration
public bool AllowClosedCardInsert { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
AutoCommit
Declaration
public bool? AutoCommit { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
AutoShiftManagement
Declaration
public bool AutoShiftManagement { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
AutoShutterManagement
Declaration
public bool AutoShutterManagement { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
BroadcastInterface
Gets or sets the broadcast interface.
Declaration
public string BroadcastInterface { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CardInsertionTimeout
Timeout in seconds the terminal waits for a card to be inserted before canceling an open transaction request.
Declaration
public int CardInsertionTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The card insertion timeout. |
CardRemovalTimeout
Timeout in seconds the terminal waits for a card to be removed before requesting attendant interaction.
Declaration
public int CardRemovalTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The card removal timeout. |
CommitTimeout
Timeout in seconds the terminal waits until the technical auto-reversal is processed, if no commit received. Timer starts with response and is reset in case client enters information in the terminal.
Declaration
public int CommitTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The commit timeout. |
ConnectionIPPort
Listening Port of the EFT terminal in case of ConnectionMode OnFixIP.
Declaration
public int ConnectionIPPort { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The connection ip port. |
ConnectionIPString
IP address of the EFT terminal in case of ConnectionMode OnFixIP.
Declaration
public string ConnectionIPString { get; set; }
Property Value
Type | Description |
---|---|
System.String | The connection ip string. |
ConnectionListen
EFT connects to ECR instead of ECR connecting to EFT, which is the default way to connect.
Declaration
public bool ConnectionListen { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ConnectionListenIPPort
Listening Port of the ECR if listening.
Declaration
public int ConnectionListenIPPort { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The connection listen ip port. |
ConnectionListenIPString
IP address of the ECR if listening.
Declaration
public string ConnectionListenIPString { get; set; }
Property Value
Type | Description |
---|---|
System.String | The connection listen ip string. |
ConnectionMode
Gets or sets the connection mode. default: Broadcast
Declaration
public ConnectionMode ConnectionMode { get; set; }
Property Value
Type | Description |
---|---|
ConnectionMode | The connection mode. |
Dcc
Indicates if Dcc shall be supported.
Declaration
public bool Dcc { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
EnabledHacks
Enabled hacks. For internal use only.
Declaration
public List<int> EnabledHacks { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Int32> |
EnableKeepAlive
Enable Keep-Alive handling. Default is true.
Declaration
public bool EnableKeepAlive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
FastNtfMode
Set enable fast notification mode. This parameter is only used if {@link com.six.timapi.constants.Guides#AUSTRIAN_USE_CASES} is enabled.
Declaration
public bool FastNtfMode { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
FetchBrands
Declaration
public bool FetchBrands { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Guides
Required guides. Login succeeds only if the terminal is able to provide all requested guides.
Declaration
public List<Guides> Guides { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Guides> | The guides. |
IntegratorId
Gets or sets the integrator identifier.
Declaration
public string IntegratorId { get; set; }
Property Value
Type | Description |
---|---|
System.String | The integrator identifier. |
LateCheckinTimeout
This timeout indicates how long a terminal shall wait in seconds for an AmtAdjustment notification from the ECR in case of a late-checkin.
Declaration
public int LateCheckinTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LogBackend
Gets or sets the log level for the backend module.
Declaration
public string LogBackend { get; set; }
Property Value
Type | Description |
---|---|
System.String | The log level. |
LogComm
Gets or sets the log level for the commumication module.
Declaration
public string LogComm { get; set; }
Property Value
Type | Description |
---|---|
System.String | The log level. |
LogDir
Defines where the Log File has to be generated. Use "." to log into the current directory. Use empty string to disable logging.
Declaration
public string LogDir { get; set; }
Property Value
Type | Description |
---|---|
System.String | The log dir. |
LogFileCountPerArchive
Number of log files to keep before per archive file.
Declaration
public int LogFileCountPerArchive { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LogRetainArchiveCount
Number of log file archives to keep before deleting them. Use 0 to disable delete
Declaration
public int LogRetainArchiveCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LogRetainFileCount
Number of log files to keep before archiving them. 0 to disable using archive files.
Declaration
public int LogRetainFileCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LogStateMachine
Gets or sets the log level for the statemachine module.
Declaration
public string LogStateMachine { get; set; }
Property Value
Type | Description |
---|---|
System.String | The log level. |
LogTerminal
Gets or sets the log level for the terminal module.
Declaration
public string LogTerminal { get; set; }
Property Value
Type | Description |
---|---|
System.String | The log level. |
ManufacturerFlags
Gets or sets the manufacturer flags.
Declaration
public int ManufacturerFlags { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The manufacturer flags. |
PartialApproval
Indicates if partial approval shall be supported.
Declaration
public bool PartialApproval { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
PersistentState
Enable persistent state if supported. Default is false
Declaration
public bool PersistentState { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ProceedTimeout
Timeout in seconds the terminal waits in WaitForProceed state for an additional function until an error is returned.
Declaration
public int ProceedTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The proceed timeout. |
ProtocolType
Protocol type.
Declaration
public ProtocolType ProtocolType { get; set; }
Property Value
Type | Description |
---|---|
ProtocolType | Protocol type. |
RequestRepetition
Set number of send request repetitions or 0 to disable. Default is 0. Affects these functions:
- Commit
- Rollback
Declaration
public int RequestRepetition { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SaferpayBaseUrl
Saferpay: Base URL.
Declaration
public string SaferpayBaseUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SaferpayCredentials
aferpay: Base64 encoded user name + password.
Declaration
public string SaferpayCredentials { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SaferpayCustomerId
Saferpay: Customer ID.
Declaration
public string SaferpayCustomerId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SaferpayTerminalId
Saferpay: Terminal Id.
Declaration
public string SaferpayTerminalId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SerialBaudrate
Gets or sets the serial baudrate.
Declaration
public int SerialBaudrate { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The serial baudrate. |
SerialPort
Gets or sets the serial port.
Declaration
public string SerialPort { get; set; }
Property Value
Type | Description |
---|---|
System.String | The serial port. |
TerminalId
Terminal ID to be broadcasted in case of ConnectionMode Broadcast.
Declaration
public string TerminalId { get; set; }
Property Value
Type | Description |
---|---|
System.String | The terminal identifier. |
TipAllowed
Tip is allowed for purchase transactions. This parameter is only used if {@link com.six.timapi.constants.Guides#GASTRO} is enabled.
Declaration
public bool TipAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |