Class Connectivity


  • public class Connectivity
    extends Object
    Connectivity
    • Constructor Detail

      • Connectivity

        public Connectivity()
    • Method Detail

      • simcardStatus

        public Connectivity simcardStatus​(Connectivity.SimcardStatusEnum simcardStatus)
        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.
        Parameters:
        simcardStatus -
        Returns:
        the current Connectivity instance, allowing for method chaining
      • 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
      • setSimcardStatus

        public void setSimcardStatus​(Connectivity.SimcardStatusEnum simcardStatus)
        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.
        Parameters:
        simcardStatus -
      • terminalIPAddressURL

        public Connectivity terminalIPAddressURL​(EventUrl terminalIPAddressURL)
        terminalIPAddressURL
        Parameters:
        terminalIPAddressURL -
        Returns:
        the current Connectivity instance, allowing for method chaining
      • getTerminalIPAddressURL

        public EventUrl getTerminalIPAddressURL()
        terminalIPAddressURL
        Returns:
        terminalIPAddressURL
      • setTerminalIPAddressURL

        public void setTerminalIPAddressURL​(EventUrl terminalIPAddressURL)
        terminalIPAddressURL
        Parameters:
        terminalIPAddressURL -
      • equals

        public boolean equals​(Object o)
        Return true if this Connectivity object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

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

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Connectivity to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException