Class FindTerminalRequest


  • public class FindTerminalRequest
    extends Object
    FindTerminalRequest
    • Constructor Detail

      • FindTerminalRequest

        public FindTerminalRequest()
    • Method Detail

      • getTerminal

        public String getTerminal()
        The unique terminal ID in the format `[Device model]-[Serial number]`. For example, **V400m-324689776**.
        Returns:
        terminal
      • setTerminal

        public void setTerminal​(String terminal)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to FindTerminalRequest
      • fromJson

        public static FindTerminalRequest fromJson​(String jsonString)
                                            throws IOException
        Create an instance of FindTerminalRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of FindTerminalRequest
        Throws:
        IOException - if the JSON string is invalid with respect to FindTerminalRequest
      • toJson

        public String toJson()
        Convert an instance of FindTerminalRequest to an JSON string
        Returns:
        JSON string