Class FraudResult


  • public class FraudResult
    extends Object
    FraudResult
    • Constructor Detail

      • FraudResult

        public FraudResult()
    • Method Detail

      • getAccountScore

        public Integer getAccountScore()
        The total fraud score generated by the risk checks.
        Returns:
        accountScore
      • setAccountScore

        public void setAccountScore​(Integer accountScore)
      • getResults

        public List<FraudCheckResult> getResults()
        The result of the individual risk checks.
        Returns:
        results
      • 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 FraudResult
      • fromJson

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

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