Class PropertiesValidatorResponse

java.lang.Object
com.logicommerce.sdk.models.PropertiesValidatorResponse

public class PropertiesValidatorResponse extends Object
PropertiesValidatorResponse class. It is used for validate property values from the LogiCommerce
Since:
1.1.16
Author:
LogiCommerce
  • Constructor Details

    • PropertiesValidatorResponse

      public PropertiesValidatorResponse()
      Instantiates a new properties validator response.
    • PropertiesValidatorResponse

      public PropertiesValidatorResponse(boolean valid, Map<String,String> errors)
      Instantiates a new properties validator response.
      Parameters:
      valid - a boolean value
      errors - a Map<String, String> object
  • Method Details

    • isValid

      public boolean isValid()
      Checks if is valid.
      Returns:
      true, if is valid
    • setValid

      public void setValid(boolean valid)
      Sets the valid.
      Parameters:
      valid - a boolean value
    • setErrors

      public void setErrors(Map<String,String> errors)
      Sets the errors.
      Parameters:
      errors - a Map<String, String> object
    • getErrors

      public Map<String,String> getErrors()
      Gets the errors.
      Returns:
      a Map<String, String> object