Class ValidationFacts


  • public class ValidationFacts
    extends Object
    ValidationFacts
    • Constructor Detail

      • ValidationFacts

        public ValidationFacts()
    • 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 ValidationFacts instance, allowing for method chaining
      • 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 ValidationFacts instance, 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 ValidationFacts instance, 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.
        Overrides:
        equals in class Object
      • hashCode

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