Class PayAtTable


  • public class PayAtTable
    extends Object
    PayAtTable
    • Constructor Detail

      • PayAtTable

        public PayAtTable()
    • Method Detail

      • getAuthenticationMethod

        public PayAtTable.AuthenticationMethodEnum getAuthenticationMethod()
        Allowed authentication methods: Magswipe, Manual Entry.
        Returns:
        authenticationMethod
      • enablePayAtTable

        public PayAtTable enablePayAtTable​(Boolean enablePayAtTable)
      • getEnablePayAtTable

        public Boolean getEnablePayAtTable()
        Enable Pay at table.
        Returns:
        enablePayAtTable
      • setEnablePayAtTable

        public void setEnablePayAtTable​(Boolean enablePayAtTable)
      • 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 PayAtTable
      • fromJson

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

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