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 - The error code of the Android app with the `status` of either **error** or **invalid**.
        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 The error code of the Android app with the `status` of either **error** or **invalid**.
      • setErrorCode

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

        public AndroidAppError terminalModels​(List<String> terminalModels)
        The list of payment terminal models to which the returned `errorCode` applies.
        Parameters:
        terminalModels - The list of payment terminal models to which the returned `errorCode` applies.
        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 The list of payment terminal models to which the returned `errorCode` applies.
      • setTerminalModels

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

        public AndroidAppError includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • 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
      • getExplicitNulls

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • 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