Class ValidationResult
- java.lang.Object
-
- com.adyen.model.relayedauthorizationwebhooks.ValidationResult
-
public class ValidationResult extends Object
ValidationResult
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_RESULTstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description ValidationResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this ValidationResult object is equal to o.static ValidationResultfromJson(String jsonString)Create an instance of ValidationResult given an JSON stringStringgetResult()The result of the check.StringgetType()Type of check.inthashCode()ValidationResultresult(String result)The result of the check.voidsetResult(String result)The result of the check.voidsetType(String type)Type of check.StringtoJson()Convert an instance of ValidationResult to an JSON stringStringtoString()ValidationResulttype(String type)Type of check.
-
-
-
Field Detail
-
JSON_PROPERTY_RESULT
public static final String JSON_PROPERTY_RESULT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
result
public ValidationResult result(String result)
The result of the check. Possible values: - **valid**: The validation was successful. - **invalid**: The validation failed. - **notValidated**: The validation was not performed because some services were unreachable or Adyen does not have the information needed to perform the check. - **notApplicable**: The validation is not applicable.- Parameters:
result- The result of the check. Possible values: - **valid**: The validation was successful. - **invalid**: The validation failed. - **notValidated**: The validation was not performed because some services were unreachable or Adyen does not have the information needed to perform the check. - **notApplicable**: The validation is not applicable.- Returns:
- the current
ValidationResultinstance, allowing for method chaining
-
getResult
public String getResult()
The result of the check. Possible values: - **valid**: The validation was successful. - **invalid**: The validation failed. - **notValidated**: The validation was not performed because some services were unreachable or Adyen does not have the information needed to perform the check. - **notApplicable**: The validation is not applicable.- Returns:
- result The result of the check. Possible values: - **valid**: The validation was successful. - **invalid**: The validation failed. - **notValidated**: The validation was not performed because some services were unreachable or Adyen does not have the information needed to perform the check. - **notApplicable**: The validation is not applicable.
-
setResult
public void setResult(String result)
The result of the check. Possible values: - **valid**: The validation was successful. - **invalid**: The validation failed. - **notValidated**: The validation was not performed because some services were unreachable or Adyen does not have the information needed to perform the check. - **notApplicable**: The validation is not applicable.- Parameters:
result- The result of the check. Possible values: - **valid**: The validation was successful. - **invalid**: The validation failed. - **notValidated**: The validation was not performed because some services were unreachable or Adyen does not have the information needed to perform the check. - **notApplicable**: The validation is not applicable.
-
type
public ValidationResult type(String type)
Type of check.- Parameters:
type- Type of check.- Returns:
- the current
ValidationResultinstance, allowing for method chaining
-
getType
public String getType()
Type of check.- Returns:
- type Type of check.
-
setType
public void setType(String type)
Type of check.- Parameters:
type- Type of check.
-
equals
public boolean equals(Object o)
Return true if this ValidationResult object is equal to o.
-
fromJson
public static ValidationResult fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ValidationResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ValidationResult
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ValidationResult
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ValidationResult to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-