Class ValidationResult


  • public class ValidationResult
    extends Object
    ValidationResult
    • Constructor Detail

      • ValidationResult

        public ValidationResult()
    • 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 ValidationResult instance, 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 ValidationResult instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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