Class SingleCodeGenerationResult
java.lang.Object
com.broadleafcommerce.promotion.offer.domain.SingleCodeGenerationResult
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetCode()The generated codeError message from a failed unique code generation attempt.inthashCode()booleanIndicates whether the attempt to generate the code was successful.voidThe generated codevoidsetErrorMessage(String errorMessage) Error message from a failed unique code generation attempt.voidsetSuccessful(boolean successful) Indicates whether the attempt to generate the code was successful.toString()
-
Constructor Details
-
SingleCodeGenerationResult
public SingleCodeGenerationResult()
-
-
Method Details
-
getCode
The generated code -
isSuccessful
public boolean isSuccessful()Indicates whether the attempt to generate the code was successful. -
getErrorMessage
Error message from a failed unique code generation attempt. -
setCode
The generated code -
setSuccessful
public void setSuccessful(boolean successful) Indicates whether the attempt to generate the code was successful. -
setErrorMessage
Error message from a failed unique code generation attempt. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-