NET

Open

This is the first method call that actually communicates with the terminal. It sends a LoginRequest which is needed before any other request.

Edit "Open" on GitHub

Method Signatures

  • void Open(string POIID=null)
  • void OpenEx(string POIID=null, string OperatorID=null, string ShiftNumber=null)

  • async Task<OpenResult> OpenAsync(string POIID=null)
  • async Task<OpenResult> OpenExAsync(string POIID=null, string OperatorID=null, string ShiftNumber=null)

Description

The Open/OpenAsync call is the first method call that actually communicates with the terminal. It uses the information passed in the SaleApplInfo to the Start call. This starts a login session with the terminal.

warning

Warning: Even if the Open is successful, some action towards the host will occur and possibly cause the next method call to fail.

info

Reset terminal state: A LoginRequest that happens when calling any of the open functions, should reset states in the terminal. A login session lasts until next open, close or reboot.

info

POIID cannot change during login session: To change POIID for a terminal a Logout or terminal reboot needs to be performed

Returns

An OpenResult object.

1
2
3
4
5
6
7
8
9
10
public class OpenResult
    {
        public OpenResult();

        public ResponseResult Result { get; set; }
        public string Text { get; set; }
        public string SoftwareVersion { get; set; }
        public string SerialNumber { get; set; }
        public TerminalEnvironment Environment { get; set; }
    }
1
    public enum ResponseResult { Success, Failure };