Package com.adyen.model.checkout
Class RiskData
- java.lang.Object
-
- com.adyen.model.checkout.RiskData
-
public class RiskData extends Object
RiskData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRiskData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CLIENT_DATAstatic StringSERIALIZED_NAME_CUSTOM_FIELDSstatic StringSERIALIZED_NAME_FRAUD_OFFSETstatic StringSERIALIZED_NAME_PROFILE_REFERENCE
-
Constructor Summary
Constructors Constructor Description RiskData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RiskDataclientData(String clientData)RiskDatacustomFields(Map<String,String> customFields)booleanequals(Object o)RiskDatafraudOffset(Integer fraudOffset)static RiskDatafromJson(String jsonString)Create an instance of RiskData given an JSON stringStringgetClientData()Contains client-side data, like the device fingerprint, cookies, and specific browser settings.Map<String,String>getCustomFields()Any custom fields used as part of the input to configured risk rules.IntegergetFraudOffset()An integer value that is added to the normal fraud score.StringgetProfileReference()The risk profile to assign to this payment.inthashCode()RiskDataprofileReference(String profileReference)RiskDataputCustomFieldsItem(String key, String customFieldsItem)voidsetClientData(String clientData)voidsetCustomFields(Map<String,String> customFields)voidsetFraudOffset(Integer fraudOffset)voidsetProfileReference(String profileReference)StringtoJson()Convert an instance of RiskData 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_CLIENT_DATA
public static final String SERIALIZED_NAME_CLIENT_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CUSTOM_FIELDS
public static final String SERIALIZED_NAME_CUSTOM_FIELDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FRAUD_OFFSET
public static final String SERIALIZED_NAME_FRAUD_OFFSET
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROFILE_REFERENCE
public static final String SERIALIZED_NAME_PROFILE_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getClientData
public String getClientData()
Contains client-side data, like the device fingerprint, cookies, and specific browser settings.- Returns:
- clientData
-
setClientData
public void setClientData(String clientData)
-
getCustomFields
public Map<String,String> getCustomFields()
Any custom fields used as part of the input to configured risk rules.- Returns:
- customFields
-
getFraudOffset
public Integer getFraudOffset()
An integer value that is added to the normal fraud score. The value can be either positive or negative.- Returns:
- fraudOffset
-
setFraudOffset
public void setFraudOffset(Integer fraudOffset)
-
getProfileReference
public String getProfileReference()
The risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied.- Returns:
- profileReference
-
setProfileReference
public void setProfileReference(String profileReference)
-
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 RiskData
-
fromJson
public static RiskData fromJson(String jsonString) throws IOException
Create an instance of RiskData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RiskData
- Throws:
IOException- if the JSON string is invalid with respect to RiskData
-
toJson
public String toJson()
Convert an instance of RiskData to an JSON string- Returns:
- JSON string
-
-