Class SingleCodeGenerationResult

java.lang.Object
com.broadleafcommerce.promotion.offer.domain.SingleCodeGenerationResult
All Implemented Interfaces:
Serializable

public class SingleCodeGenerationResult extends Object implements Serializable
DTO holding the resulting information about the code generation. This is mainly used for purpose of holding and transferring information about generated voucher codes and generation failure post-checkout.
See Also:
  • Constructor Details

    • SingleCodeGenerationResult

      public SingleCodeGenerationResult()
  • Method Details

    • getCode

      public String getCode()
      The generated code
    • isSuccessful

      public boolean isSuccessful()
      Indicates whether the attempt to generate the code was successful.
    • getErrorMessage

      public String getErrorMessage()
      Error message from a failed unique code generation attempt.
    • setCode

      public void setCode(String code)
      The generated code
    • setSuccessful

      public void setSuccessful(boolean successful)
      Indicates whether the attempt to generate the code was successful.
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      Error message from a failed unique code generation attempt.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object