Package com.adyen.model.checkout
Class FraudCheckResult
- java.lang.Object
-
- com.adyen.model.checkout.FraudCheckResult
-
public class FraudCheckResult extends Object
FraudCheckResult
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_SCOREstatic StringJSON_PROPERTY_CHECK_IDstatic StringJSON_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description FraudCheckResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FraudCheckResultaccountScore(Integer accountScore)The fraud score generated by the risk check.FraudCheckResultcheckId(Integer checkId)The ID of the risk check.booleanequals(Object o)Return true if this FraudCheckResult object is equal to o.static FraudCheckResultfromJson(String jsonString)Create an instance of FraudCheckResult given an JSON stringIntegergetAccountScore()The fraud score generated by the risk check.IntegergetCheckId()The ID of the risk check.StringgetName()The name of the risk check.inthashCode()FraudCheckResultname(String name)The name of the risk check.voidsetAccountScore(Integer accountScore)The fraud score generated by the risk check.voidsetCheckId(Integer checkId)The ID of the risk check.voidsetName(String name)The name of the risk check.StringtoJson()Convert an instance of FraudCheckResult to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_SCORE
public static final String JSON_PROPERTY_ACCOUNT_SCORE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHECK_ID
public static final String JSON_PROPERTY_CHECK_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountScore
public FraudCheckResult accountScore(Integer accountScore)
The fraud score generated by the risk check.- Parameters:
accountScore-- Returns:
- the current
FraudCheckResultinstance, allowing for method chaining
-
getAccountScore
public Integer getAccountScore()
The fraud score generated by the risk check.- Returns:
- accountScore
-
setAccountScore
public void setAccountScore(Integer accountScore)
The fraud score generated by the risk check.- Parameters:
accountScore-
-
checkId
public FraudCheckResult checkId(Integer checkId)
The ID of the risk check.- Parameters:
checkId-- Returns:
- the current
FraudCheckResultinstance, allowing for method chaining
-
getCheckId
public Integer getCheckId()
The ID of the risk check.- Returns:
- checkId
-
setCheckId
public void setCheckId(Integer checkId)
The ID of the risk check.- Parameters:
checkId-
-
name
public FraudCheckResult name(String name)
The name of the risk check.- Parameters:
name-- Returns:
- the current
FraudCheckResultinstance, allowing for method chaining
-
getName
public String getName()
The name of the risk check.- Returns:
- name
-
setName
public void setName(String name)
The name of the risk check.- Parameters:
name-
-
equals
public boolean equals(Object o)
Return true if this FraudCheckResult object is equal to o.
-
fromJson
public static FraudCheckResult fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of FraudCheckResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FraudCheckResult
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to FraudCheckResult
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of FraudCheckResult to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-