Class ValidationFacts
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.ValidationFacts
-
public class ValidationFacts extends Object
ValidationFacts
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidationFacts.ResultEnumThe evaluation result of the validation facts.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_REASONSstatic StringJSON_PROPERTY_RESULTstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description ValidationFacts()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationFactsaddReasonsItem(String reasonsItem)booleanequals(Object o)Return true if this ValidationFacts object is equal to o.static ValidationFactsfromJson(String jsonString)Create an instance of ValidationFacts given an JSON stringList<String>getReasons()The reason for the `result` of the validations.ValidationFacts.ResultEnumgetResult()The evaluation result of the validation facts.StringgetType()The type of the validation fact.inthashCode()ValidationFactsreasons(List<String> reasons)The reason for the `result` of the validations.ValidationFactsresult(ValidationFacts.ResultEnum result)The evaluation result of the validation facts.voidsetReasons(List<String> reasons)The reason for the `result` of the validations.voidsetResult(ValidationFacts.ResultEnum result)The evaluation result of the validation facts.voidsetType(String type)The type of the validation fact.StringtoJson()Convert an instance of ValidationFacts to an JSON stringStringtoString()ValidationFactstype(String type)The type of the validation fact.
-
-
-
Field Detail
-
JSON_PROPERTY_REASONS
public static final String JSON_PROPERTY_REASONS
- See Also:
- Constant Field Values
-
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
-
reasons
public ValidationFacts reasons(List<String> reasons)
The reason for the `result` of the validations. For example: **walletValidation**, **paymentInstrument**. Sent only when `result` is **invalid**.- Parameters:
reasons- The reason for the `result` of the validations. For example: **walletValidation**, **paymentInstrument**. Sent only when `result` is **invalid**.- Returns:
- the current
ValidationFactsinstance, allowing for method chaining
-
addReasonsItem
public ValidationFacts addReasonsItem(String reasonsItem)
-
getReasons
public List<String> getReasons()
The reason for the `result` of the validations. For example: **walletValidation**, **paymentInstrument**. Sent only when `result` is **invalid**.- Returns:
- reasons The reason for the `result` of the validations. For example: **walletValidation**, **paymentInstrument**. Sent only when `result` is **invalid**.
-
setReasons
public void setReasons(List<String> reasons)
The reason for the `result` of the validations. For example: **walletValidation**, **paymentInstrument**. Sent only when `result` is **invalid**.- Parameters:
reasons- The reason for the `result` of the validations. For example: **walletValidation**, **paymentInstrument**. Sent only when `result` is **invalid**.
-
result
public ValidationFacts result(ValidationFacts.ResultEnum result)
The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**.- Parameters:
result- The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**.- Returns:
- the current
ValidationFactsinstance, allowing for method chaining
-
getResult
public ValidationFacts.ResultEnum getResult()
The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**.- Returns:
- result The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**.
-
setResult
public void setResult(ValidationFacts.ResultEnum result)
The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**.- Parameters:
result- The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**.
-
type
public ValidationFacts type(String type)
The type of the validation fact.- Parameters:
type- The type of the validation fact.- Returns:
- the current
ValidationFactsinstance, allowing for method chaining
-
getType
public String getType()
The type of the validation fact.- Returns:
- type The type of the validation fact.
-
setType
public void setType(String type)
The type of the validation fact.- Parameters:
type- The type of the validation fact.
-
equals
public boolean equals(Object o)
Return true if this ValidationFacts object is equal to o.
-
fromJson
public static ValidationFacts fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ValidationFacts given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ValidationFacts
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ValidationFacts
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ValidationFacts to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-