Class CodeGenerationResult

java.lang.Object
com.broadleafcommerce.orderoperation.domain.CodeGenerationResult
All Implemented Interfaces:
Serializable

public class CodeGenerationResult 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

    • CodeGenerationResult

      public CodeGenerationResult()
  • Method Details

    • getGeneratedCodes

      public List<CampaignCode> getGeneratedCodes()
      Generated CampaignCodes.
    • isSuccessful

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

      public String getErrorMessage()
      Error message from attempting to generate CampaignCodes.
    • setGeneratedCodes

      public void setGeneratedCodes(List<CampaignCode> generatedCodes)
      Generated CampaignCodes.
    • setSuccessful

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

      public void setErrorMessage(String errorMessage)
      Error message from attempting to generate CampaignCodes.
    • 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