Class TransactionRulesResult


  • public class TransactionRulesResult
    extends Object
    TransactionRulesResult
    • Constructor Detail

      • TransactionRulesResult

        public TransactionRulesResult()
    • Method Detail

      • getAdvice

        public String getAdvice()
        The advice given by the Risk analysis.
        Returns:
        advice
      • setAdvice

        public void setAdvice​(String advice)
      • getAllRulesPassed

        public Boolean getAllRulesPassed()
        Indicates whether the transaction passed the evaluation for all transaction rules.
        Returns:
        allRulesPassed
      • setAllRulesPassed

        public void setAllRulesPassed​(Boolean allRulesPassed)
      • getFailedTransactionRules

        public List<TransactionEventViolation> getFailedTransactionRules()
        Array containing all the transaction rules that the transaction violated. This list is only sent when `allRulesPassed` is **false**.
        Returns:
        failedTransactionRules
      • getScore

        public Integer getScore()
        The score of the Risk analysis.
        Returns:
        score
      • setScore

        public void setScore​(Integer score)
      • 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 TransactionRulesResult
      • fromJson

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

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