Class NetworkTokenTransactionRulesResult
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.NetworkTokenTransactionRulesResult
-
public class NetworkTokenTransactionRulesResult extends Object
NetworkTokenTransactionRulesResult
-
-
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 NetworkTokenTransactionRulesResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkTokenTransactionRulesResultaddTriggeredTransactionRulesItem(NetworkTokenTriggeredRiskRule triggeredTransactionRulesItem)NetworkTokenTransactionRulesResultadvice(String advice)The advice given by the Risk analysis.NetworkTokenTransactionRulesResultallHardBlockRulesPassed(Boolean allHardBlockRulesPassed)Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**.booleanequals(Object o)Return true if this NetworkTokenTransactionRulesResult object is equal to o.static NetworkTokenTransactionRulesResultfromJson(String jsonString)Create an instance of NetworkTokenTransactionRulesResult given an JSON stringStringgetAdvice()The advice given by the Risk analysis.BooleangetAllHardBlockRulesPassed()Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**.IntegergetScore()The score of the Risk analysis.List<NetworkTokenTriggeredRiskRule>getTriggeredTransactionRules()Contains a list of all triggered transaction rules and the corresponding data.inthashCode()NetworkTokenTransactionRulesResultscore(Integer score)The score of the Risk analysis.voidsetAdvice(String advice)The advice given by the Risk analysis.voidsetAllHardBlockRulesPassed(Boolean allHardBlockRulesPassed)Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**.voidsetScore(Integer score)The score of the Risk analysis.voidsetTriggeredTransactionRules(List<NetworkTokenTriggeredRiskRule> triggeredTransactionRules)Contains a list of all triggered transaction rules and the corresponding data.StringtoJson()Convert an instance of NetworkTokenTransactionRulesResult to an JSON stringStringtoString()NetworkTokenTransactionRulesResulttriggeredTransactionRules(List<NetworkTokenTriggeredRiskRule> triggeredTransactionRules)Contains a list of all triggered transaction rules and the corresponding data.
-
-
-
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 NetworkTokenTransactionRulesResult advice(String advice)
The advice given by the Risk analysis.- Parameters:
advice- The advice given by the Risk analysis.- Returns:
- the current
NetworkTokenTransactionRulesResultinstance, allowing for method chaining
-
getAdvice
public String getAdvice()
The advice given by the Risk analysis.- Returns:
- advice The advice given by the Risk analysis.
-
setAdvice
public void setAdvice(String advice)
The advice given by the Risk analysis.- Parameters:
advice- The advice given by the Risk analysis.
-
allHardBlockRulesPassed
public NetworkTokenTransactionRulesResult allHardBlockRulesPassed(Boolean allHardBlockRulesPassed)
Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**.- Parameters:
allHardBlockRulesPassed- Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**.- Returns:
- the current
NetworkTokenTransactionRulesResultinstance, allowing for method chaining
-
getAllHardBlockRulesPassed
public Boolean getAllHardBlockRulesPassed()
Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**.- Returns:
- allHardBlockRulesPassed Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**.
-
setAllHardBlockRulesPassed
public void setAllHardBlockRulesPassed(Boolean allHardBlockRulesPassed)
Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**.- Parameters:
allHardBlockRulesPassed- Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**.
-
score
public NetworkTokenTransactionRulesResult score(Integer score)
The score of the Risk analysis.- Parameters:
score- The score of the Risk analysis.- Returns:
- the current
NetworkTokenTransactionRulesResultinstance, allowing for method chaining
-
getScore
public Integer getScore()
The score of the Risk analysis.- Returns:
- score The score of the Risk analysis.
-
setScore
public void setScore(Integer score)
The score of the Risk analysis.- Parameters:
score- The score of the Risk analysis.
-
triggeredTransactionRules
public NetworkTokenTransactionRulesResult triggeredTransactionRules(List<NetworkTokenTriggeredRiskRule> triggeredTransactionRules)
Contains a list of all triggered transaction rules and the corresponding data.- Parameters:
triggeredTransactionRules- Contains a list of all triggered transaction rules and the corresponding data.- Returns:
- the current
NetworkTokenTransactionRulesResultinstance, allowing for method chaining
-
addTriggeredTransactionRulesItem
public NetworkTokenTransactionRulesResult addTriggeredTransactionRulesItem(NetworkTokenTriggeredRiskRule triggeredTransactionRulesItem)
-
getTriggeredTransactionRules
public List<NetworkTokenTriggeredRiskRule> getTriggeredTransactionRules()
Contains a list of all triggered transaction rules and the corresponding data.- Returns:
- triggeredTransactionRules Contains a list of all triggered transaction rules and the corresponding data.
-
setTriggeredTransactionRules
public void setTriggeredTransactionRules(List<NetworkTokenTriggeredRiskRule> triggeredTransactionRules)
Contains a list of all triggered transaction rules and the corresponding data.- Parameters:
triggeredTransactionRules- Contains a list of all triggered transaction rules and the corresponding data.
-
equals
public boolean equals(Object o)
Return true if this NetworkTokenTransactionRulesResult object is equal to o.
-
fromJson
public static NetworkTokenTransactionRulesResult fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of NetworkTokenTransactionRulesResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NetworkTokenTransactionRulesResult
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to NetworkTokenTransactionRulesResult
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of NetworkTokenTransactionRulesResult to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-