Class AndroidAppError


  • public class AndroidAppError
    extends Object
    AndroidAppError
    • Constructor Detail

      • AndroidAppError

        public AndroidAppError()
    • Method Detail

      • errorCode

        public AndroidAppError errorCode​(String errorCode)
        The error code of the Android app with the `status` of either **error** or **invalid**.
        Parameters:
        errorCode -
        Returns:
        the current AndroidAppError instance, allowing for method chaining
      • getErrorCode

        public String getErrorCode()
        The error code of the Android app with the `status` of either **error** or **invalid**.
        Returns:
        errorCode
      • setErrorCode

        public void setErrorCode​(String errorCode)
        The error code of the Android app with the `status` of either **error** or **invalid**.
        Parameters:
        errorCode -
      • terminalModels

        public AndroidAppError terminalModels​(List<String> terminalModels)
        The list of payment terminal models to which the returned `errorCode` applies.
        Parameters:
        terminalModels -
        Returns:
        the current AndroidAppError instance, allowing for method chaining
      • getTerminalModels

        public List<String> getTerminalModels()
        The list of payment terminal models to which the returned `errorCode` applies.
        Returns:
        terminalModels
      • setTerminalModels

        public void setTerminalModels​(List<String> terminalModels)
        The list of payment terminal models to which the returned `errorCode` applies.
        Parameters:
        terminalModels -
      • equals

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

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

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

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