Package com.adyen.model.payout
Class FraudResult
- java.lang.Object
-
- com.adyen.model.payout.FraudResult
-
public class FraudResult extends Object
FraudResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFraudResult.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACCOUNT_SCOREstatic StringSERIALIZED_NAME_RESULTS
-
Constructor Summary
Constructors Constructor Description FraudResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FraudResultaccountScore(Integer accountScore)FraudResultaddResultsItem(FraudCheckResultWrapper resultsItem)booleanequals(Object o)static FraudResultfromJson(String jsonString)Create an instance of FraudResult given an JSON stringIntegergetAccountScore()The total fraud score generated by the risk checks.List<FraudCheckResultWrapper>getResults()The result of the individual risk checks.inthashCode()FraudResultresults(List<FraudCheckResultWrapper> results)voidsetAccountScore(Integer accountScore)voidsetResults(List<FraudCheckResultWrapper> results)StringtoJson()Convert an instance of FraudResult 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_RESULTS
public static final String SERIALIZED_NAME_RESULTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountScore
public FraudResult accountScore(Integer accountScore)
-
getAccountScore
public Integer getAccountScore()
The total fraud score generated by the risk checks.- Returns:
- accountScore
-
setAccountScore
public void setAccountScore(Integer accountScore)
-
results
public FraudResult results(List<FraudCheckResultWrapper> results)
-
addResultsItem
public FraudResult addResultsItem(FraudCheckResultWrapper resultsItem)
-
getResults
public List<FraudCheckResultWrapper> getResults()
The result of the individual risk checks.- Returns:
- results
-
setResults
public void setResults(List<FraudCheckResultWrapper> results)
-
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 FraudResult
-
fromJson
public static FraudResult fromJson(String jsonString) throws IOException
Create an instance of FraudResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FraudResult
- Throws:
IOException- if the JSON string is invalid with respect to FraudResult
-
toJson
public String toJson()
Convert an instance of FraudResult to an JSON string- Returns:
- JSON string
-
-