Class Connectivity


  • public class Connectivity
    extends Object
    Connectivity
    • Constructor Detail

      • Connectivity

        public Connectivity()
    • Method Detail

      • getSimcardStatus

        public Connectivity.SimcardStatusEnum getSimcardStatus()
        Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity.
        Returns:
        simcardStatus
      • 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 Connectivity
      • fromJson

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

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