Package com.adyen.model.payment
Class FraudCheckResult
- java.lang.Object
-
- com.adyen.model.payment.FraudCheckResult
-
public class FraudCheckResult extends Object
FraudCheckResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFraudCheckResult.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACCOUNT_SCOREstatic StringSERIALIZED_NAME_CHECK_IDstatic StringSERIALIZED_NAME_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)FraudCheckResultcheckId(Integer checkId)booleanequals(Object 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)voidsetAccountScore(Integer accountScore)voidsetCheckId(Integer checkId)voidsetName(String name)StringtoJson()Convert an instance of FraudCheckResult 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_ACCOUNT_SCORE
public static final String SERIALIZED_NAME_ACCOUNT_SCORE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CHECK_ID
public static final String SERIALIZED_NAME_CHECK_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountScore
public FraudCheckResult accountScore(Integer accountScore)
-
getAccountScore
public Integer getAccountScore()
The fraud score generated by the risk check.- Returns:
- accountScore
-
setAccountScore
public void setAccountScore(Integer accountScore)
-
checkId
public FraudCheckResult checkId(Integer checkId)
-
getCheckId
public Integer getCheckId()
The ID of the risk check.- Returns:
- checkId
-
setCheckId
public void setCheckId(Integer checkId)
-
name
public FraudCheckResult name(String name)
-
getName
public String getName()
The name of the risk check.- Returns:
- name
-
setName
public void setName(String name)
-
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 FraudCheckResult
-
fromJson
public static FraudCheckResult fromJson(String jsonString) throws IOException
Create an instance of FraudCheckResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FraudCheckResult
- Throws:
IOException- if the JSON string is invalid with respect to FraudCheckResult
-
toJson
public String toJson()
Convert an instance of FraudCheckResult to an JSON string- Returns:
- JSON string
-
-