Package com.adyen.model.transferwebhooks
Class TransactionRulesResult
- java.lang.Object
-
- com.adyen.model.transferwebhooks.TransactionRulesResult
-
public class TransactionRulesResult extends Object
TransactionRulesResult
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADVICEstatic StringJSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSEDstatic StringJSON_PROPERTY_SCOREstatic StringJSON_PROPERTY_TRIGGERED_TRANSACTION_RULES
-
Constructor Summary
Constructors Constructor Description TransactionRulesResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionRulesResultaddTriggeredTransactionRulesItem(TransactionEventViolation triggeredTransactionRulesItem)TransactionRulesResultadvice(String advice)TransactionRulesResultallHardBlockRulesPassed(Boolean allHardBlockRulesPassed)booleanequals(Object o)Return true if this TransactionRulesResult object is equal to o.static TransactionRulesResultfromJson(String jsonString)Create an instance of TransactionRulesResult given an JSON stringStringgetAdvice()The advice given by the Risk analysis.BooleangetAllHardBlockRulesPassed()Indicates whether the transaction passed the evaluation for all hardblock rulesIntegergetScore()The score of the Risk analysis.List<TransactionEventViolation>getTriggeredTransactionRules()Array containing all the transaction rules that the transaction triggered.inthashCode()TransactionRulesResultscore(Integer score)voidsetAdvice(String advice)The advice given by the Risk analysis.voidsetAllHardBlockRulesPassed(Boolean allHardBlockRulesPassed)Indicates whether the transaction passed the evaluation for all hardblock rulesvoidsetScore(Integer score)The score of the Risk analysis.voidsetTriggeredTransactionRules(List<TransactionEventViolation> triggeredTransactionRules)Array containing all the transaction rules that the transaction triggered.StringtoJson()Convert an instance of TransactionRulesResult to an JSON stringStringtoString()TransactionRulesResulttriggeredTransactionRules(List<TransactionEventViolation> triggeredTransactionRules)
-
-
-
Field Detail
-
JSON_PROPERTY_ADVICE
public static final String JSON_PROPERTY_ADVICE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED
public static final String JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCORE
public static final String JSON_PROPERTY_SCORE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES
public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES
- See Also:
- Constant Field Values
-
-
Method Detail
-
advice
public TransactionRulesResult advice(String advice)
-
getAdvice
public String getAdvice()
The advice given by the Risk analysis.- Returns:
- advice
-
setAdvice
public void setAdvice(String advice)
The advice given by the Risk analysis.- Parameters:
advice-
-
allHardBlockRulesPassed
public TransactionRulesResult allHardBlockRulesPassed(Boolean allHardBlockRulesPassed)
-
getAllHardBlockRulesPassed
public Boolean getAllHardBlockRulesPassed()
Indicates whether the transaction passed the evaluation for all hardblock rules- Returns:
- allHardBlockRulesPassed
-
setAllHardBlockRulesPassed
public void setAllHardBlockRulesPassed(Boolean allHardBlockRulesPassed)
Indicates whether the transaction passed the evaluation for all hardblock rules- Parameters:
allHardBlockRulesPassed-
-
score
public TransactionRulesResult score(Integer score)
-
getScore
public Integer getScore()
The score of the Risk analysis.- Returns:
- score
-
setScore
public void setScore(Integer score)
The score of the Risk analysis.- Parameters:
score-
-
triggeredTransactionRules
public TransactionRulesResult triggeredTransactionRules(List<TransactionEventViolation> triggeredTransactionRules)
-
addTriggeredTransactionRulesItem
public TransactionRulesResult addTriggeredTransactionRulesItem(TransactionEventViolation triggeredTransactionRulesItem)
-
getTriggeredTransactionRules
public List<TransactionEventViolation> getTriggeredTransactionRules()
Array containing all the transaction rules that the transaction triggered.- Returns:
- triggeredTransactionRules
-
setTriggeredTransactionRules
public void setTriggeredTransactionRules(List<TransactionEventViolation> triggeredTransactionRules)
Array containing all the transaction rules that the transaction triggered.- Parameters:
triggeredTransactionRules-
-
equals
public boolean equals(Object o)
Return true if this TransactionRulesResult object is equal to o.
-
fromJson
public static TransactionRulesResult fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TransactionRulesResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionRulesResult
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TransactionRulesResult
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TransactionRulesResult to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-