Class NetworkTokenRiskRuleData
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.NetworkTokenRiskRuleData
-
public class NetworkTokenRiskRuleData extends Object
NetworkTokenRiskRuleData
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_OUTCOME_TYPEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_SCORE
-
Constructor Summary
Constructors Constructor Description NetworkTokenRiskRuleData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkTokenRiskRuleDatadescription(String description)The description of the transaction rule.booleanequals(Object o)Return true if this NetworkTokenRiskRuleData object is equal to o.static NetworkTokenRiskRuleDatafromJson(String jsonString)Create an instance of NetworkTokenRiskRuleData given an JSON stringStringgetDescription()The description of the transaction rule.StringgetId()The unique identifier of the transaction rule.StringgetOutcomeType()The outcome type of the transaction rule.StringgetReference()The reference for the transaction rule.IntegergetScore()The transaction score determined by the rule.inthashCode()NetworkTokenRiskRuleDataid(String id)The unique identifier of the transaction rule.NetworkTokenRiskRuleDataoutcomeType(String outcomeType)The outcome type of the transaction rule.NetworkTokenRiskRuleDatareference(String reference)The reference for the transaction rule.NetworkTokenRiskRuleDatascore(Integer score)The transaction score determined by the rule.voidsetDescription(String description)The description of the transaction rule.voidsetId(String id)The unique identifier of the transaction rule.voidsetOutcomeType(String outcomeType)The outcome type of the transaction rule.voidsetReference(String reference)The reference for the transaction rule.voidsetScore(Integer score)The transaction score determined by the rule.StringtoJson()Convert an instance of NetworkTokenRiskRuleData to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OUTCOME_TYPE
public static final String JSON_PROPERTY_OUTCOME_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCORE
public static final String JSON_PROPERTY_SCORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public NetworkTokenRiskRuleData description(String description)
The description of the transaction rule.- Parameters:
description- The description of the transaction rule.- Returns:
- the current
NetworkTokenRiskRuleDatainstance, allowing for method chaining
-
getDescription
public String getDescription()
The description of the transaction rule.- Returns:
- description The description of the transaction rule.
-
setDescription
public void setDescription(String description)
The description of the transaction rule.- Parameters:
description- The description of the transaction rule.
-
id
public NetworkTokenRiskRuleData id(String id)
The unique identifier of the transaction rule.- Parameters:
id- The unique identifier of the transaction rule.- Returns:
- the current
NetworkTokenRiskRuleDatainstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the transaction rule.- Returns:
- id The unique identifier of the transaction rule.
-
setId
public void setId(String id)
The unique identifier of the transaction rule.- Parameters:
id- The unique identifier of the transaction rule.
-
outcomeType
public NetworkTokenRiskRuleData outcomeType(String outcomeType)
The outcome type of the transaction rule.- Parameters:
outcomeType- The outcome type of the transaction rule.- Returns:
- the current
NetworkTokenRiskRuleDatainstance, allowing for method chaining
-
getOutcomeType
public String getOutcomeType()
The outcome type of the transaction rule.- Returns:
- outcomeType The outcome type of the transaction rule.
-
setOutcomeType
public void setOutcomeType(String outcomeType)
The outcome type of the transaction rule.- Parameters:
outcomeType- The outcome type of the transaction rule.
-
reference
public NetworkTokenRiskRuleData reference(String reference)
The reference for the transaction rule.- Parameters:
reference- The reference for the transaction rule.- Returns:
- the current
NetworkTokenRiskRuleDatainstance, allowing for method chaining
-
getReference
public String getReference()
The reference for the transaction rule.- Returns:
- reference The reference for the transaction rule.
-
setReference
public void setReference(String reference)
The reference for the transaction rule.- Parameters:
reference- The reference for the transaction rule.
-
score
public NetworkTokenRiskRuleData score(Integer score)
The transaction score determined by the rule.- Parameters:
score- The transaction score determined by the rule.- Returns:
- the current
NetworkTokenRiskRuleDatainstance, allowing for method chaining
-
getScore
public Integer getScore()
The transaction score determined by the rule.- Returns:
- score The transaction score determined by the rule.
-
setScore
public void setScore(Integer score)
The transaction score determined by the rule.- Parameters:
score- The transaction score determined by the rule.
-
equals
public boolean equals(Object o)
Return true if this NetworkTokenRiskRuleData object is equal to o.
-
fromJson
public static NetworkTokenRiskRuleData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of NetworkTokenRiskRuleData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NetworkTokenRiskRuleData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to NetworkTokenRiskRuleData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of NetworkTokenRiskRuleData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-