Class CodeGenerationResult
java.lang.Object
com.broadleafcommerce.orderoperation.domain.CodeGenerationResult
- 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Error message from attempting to generateCampaignCodes
.GeneratedCampaignCodes
.int
hashCode()
boolean
Indicates whether the attempt to generateCampaignCodes
was successful.void
setErrorMessage
(String errorMessage) Error message from attempting to generateCampaignCodes
.void
setGeneratedCodes
(List<CampaignCode> generatedCodes) GeneratedCampaignCodes
.void
setSuccessful
(boolean successful) Indicates whether the attempt to generateCampaignCodes
was successful.toString()
-
Constructor Details
-
CodeGenerationResult
public CodeGenerationResult()
-
-
Method Details
-
getGeneratedCodes
GeneratedCampaignCodes
. -
isSuccessful
public boolean isSuccessful()Indicates whether the attempt to generateCampaignCodes
was successful. -
getErrorMessage
Error message from attempting to generateCampaignCodes
. -
setGeneratedCodes
GeneratedCampaignCodes
. -
setSuccessful
public void setSuccessful(boolean successful) Indicates whether the attempt to generateCampaignCodes
was successful. -
setErrorMessage
Error message from attempting to generateCampaignCodes
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-