Class NetworkTokenTriggeredRiskRule
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.NetworkTokenTriggeredRiskRule
-
public class NetworkTokenTriggeredRiskRule extends Object
NetworkTokenTriggeredRiskRule
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_REASONstatic StringJSON_PROPERTY_TRANSACTION_RULEstatic StringJSON_PROPERTY_TRANSACTION_RULE_SOURCE
-
Constructor Summary
Constructors Constructor Description NetworkTokenTriggeredRiskRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this NetworkTokenTriggeredRiskRule object is equal to o.static NetworkTokenTriggeredRiskRulefromJson(String jsonString)Create an instance of NetworkTokenTriggeredRiskRule given an JSON stringStringgetReason()Explains why the transaction rule failed.NetworkTokenRiskRuleDatagetTransactionRule()Get transactionRuleNetworkTokenRiskRuleSourcegetTransactionRuleSource()Get transactionRuleSourceinthashCode()NetworkTokenTriggeredRiskRulereason(String reason)Explains why the transaction rule failed.voidsetReason(String reason)Explains why the transaction rule failed.voidsetTransactionRule(NetworkTokenRiskRuleData transactionRule)transactionRulevoidsetTransactionRuleSource(NetworkTokenRiskRuleSource transactionRuleSource)transactionRuleSourceStringtoJson()Convert an instance of NetworkTokenTriggeredRiskRule to an JSON stringStringtoString()NetworkTokenTriggeredRiskRuletransactionRule(NetworkTokenRiskRuleData transactionRule)transactionRuleNetworkTokenTriggeredRiskRuletransactionRuleSource(NetworkTokenRiskRuleSource transactionRuleSource)transactionRuleSource
-
-
-
Field Detail
-
JSON_PROPERTY_REASON
public static final String JSON_PROPERTY_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSACTION_RULE
public static final String JSON_PROPERTY_TRANSACTION_RULE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSACTION_RULE_SOURCE
public static final String JSON_PROPERTY_TRANSACTION_RULE_SOURCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
reason
public NetworkTokenTriggeredRiskRule reason(String reason)
Explains why the transaction rule failed.- Parameters:
reason- Explains why the transaction rule failed.- Returns:
- the current
NetworkTokenTriggeredRiskRuleinstance, allowing for method chaining
-
getReason
public String getReason()
Explains why the transaction rule failed.- Returns:
- reason Explains why the transaction rule failed.
-
setReason
public void setReason(String reason)
Explains why the transaction rule failed.- Parameters:
reason- Explains why the transaction rule failed.
-
transactionRule
public NetworkTokenTriggeredRiskRule transactionRule(NetworkTokenRiskRuleData transactionRule)
transactionRule- Parameters:
transactionRule-- Returns:
- the current
NetworkTokenTriggeredRiskRuleinstance, allowing for method chaining
-
getTransactionRule
public NetworkTokenRiskRuleData getTransactionRule()
Get transactionRule- Returns:
- transactionRule
-
setTransactionRule
public void setTransactionRule(NetworkTokenRiskRuleData transactionRule)
transactionRule- Parameters:
transactionRule-
-
transactionRuleSource
public NetworkTokenTriggeredRiskRule transactionRuleSource(NetworkTokenRiskRuleSource transactionRuleSource)
transactionRuleSource- Parameters:
transactionRuleSource-- Returns:
- the current
NetworkTokenTriggeredRiskRuleinstance, allowing for method chaining
-
getTransactionRuleSource
public NetworkTokenRiskRuleSource getTransactionRuleSource()
Get transactionRuleSource- Returns:
- transactionRuleSource
-
setTransactionRuleSource
public void setTransactionRuleSource(NetworkTokenRiskRuleSource transactionRuleSource)
transactionRuleSource- Parameters:
transactionRuleSource-
-
equals
public boolean equals(Object o)
Return true if this NetworkTokenTriggeredRiskRule object is equal to o.
-
fromJson
public static NetworkTokenTriggeredRiskRule fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of NetworkTokenTriggeredRiskRule given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NetworkTokenTriggeredRiskRule
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to NetworkTokenTriggeredRiskRule
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of NetworkTokenTriggeredRiskRule to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-