Class FraudCheckResult


  • public class FraudCheckResult
    extends Object
    FraudCheckResult
    • Constructor Detail

      • FraudCheckResult

        public FraudCheckResult()
    • Method Detail

      • getAccountScore

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

        public void setAccountScore​(Integer accountScore)
      • getCheckId

        public Integer getCheckId()
        The ID of the risk check.
        Returns:
        checkId
      • setCheckId

        public void setCheckId​(Integer checkId)
      • getName

        public String getName()
        The name of the risk check.
        Returns:
        name
      • setName

        public void setName​(String name)
      • 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 FraudCheckResult
      • fromJson

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

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