Package com.adyen.model.transferwebhooks
Class TransactionRulesResult
- java.lang.Object
-
- com.adyen.model.transferwebhooks.TransactionRulesResult
-
public class TransactionRulesResult extends Object
TransactionRulesResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransactionRulesResult.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADVICEstatic StringSERIALIZED_NAME_ALL_RULES_PASSEDstatic StringSERIALIZED_NAME_FAILED_TRANSACTION_RULESstatic StringSERIALIZED_NAME_SCORE
-
Constructor Summary
Constructors Constructor Description TransactionRulesResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionRulesResultaddFailedTransactionRulesItem(TransactionEventViolation failedTransactionRulesItem)TransactionRulesResultadvice(String advice)TransactionRulesResultallRulesPassed(Boolean allRulesPassed)booleanequals(Object o)TransactionRulesResultfailedTransactionRules(List<TransactionEventViolation> failedTransactionRules)static TransactionRulesResultfromJson(String jsonString)Create an instance of TransactionRulesResult given an JSON stringStringgetAdvice()The advice given by the Risk analysis.BooleangetAllRulesPassed()Indicates whether the transaction passed the evaluation for all transaction rules.List<TransactionEventViolation>getFailedTransactionRules()Array containing all the transaction rules that the transaction violated.IntegergetScore()The score of the Risk analysis.inthashCode()TransactionRulesResultscore(Integer score)voidsetAdvice(String advice)voidsetAllRulesPassed(Boolean allRulesPassed)voidsetFailedTransactionRules(List<TransactionEventViolation> failedTransactionRules)voidsetScore(Integer score)StringtoJson()Convert an instance of TransactionRulesResult to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ADVICE
public static final String SERIALIZED_NAME_ADVICE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ALL_RULES_PASSED
public static final String SERIALIZED_NAME_ALL_RULES_PASSED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FAILED_TRANSACTION_RULES
public static final String SERIALIZED_NAME_FAILED_TRANSACTION_RULES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SCORE
public static final String SERIALIZED_NAME_SCORE
- 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)
-
allRulesPassed
public TransactionRulesResult allRulesPassed(Boolean allRulesPassed)
-
getAllRulesPassed
public Boolean getAllRulesPassed()
Indicates whether the transaction passed the evaluation for all transaction rules.- Returns:
- allRulesPassed
-
setAllRulesPassed
public void setAllRulesPassed(Boolean allRulesPassed)
-
failedTransactionRules
public TransactionRulesResult failedTransactionRules(List<TransactionEventViolation> failedTransactionRules)
-
addFailedTransactionRulesItem
public TransactionRulesResult addFailedTransactionRulesItem(TransactionEventViolation failedTransactionRulesItem)
-
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
-
setFailedTransactionRules
public void setFailedTransactionRules(List<TransactionEventViolation> failedTransactionRules)
-
score
public TransactionRulesResult score(Integer score)
-
getScore
public Integer getScore()
The score of the Risk analysis.- Returns:
- score
-
setScore
public void setScore(Integer score)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
-
-