java.lang.Object
com.broadleafcommerce.promotion.offer.client.web.context.info.Voucher
All Implemented Interfaces:
Serializable

public class Voucher extends Object implements Serializable
Represents a voucher that an order is qualified for.
Author:
Sunny Yu
See Also:
  • Constructor Details

    • Voucher

      public Voucher()
  • Method Details

    • getOfferId

      public String getOfferId()
    • setOfferId

      public void setOfferId(String offerId)
    • getOfferRef

      public OfferRef getOfferRef()
      A reference to the OfferRef
    • getOfferCodeRef

      public String getOfferCodeRef()
      A reference to the OfferCode (if any).
    • getVoucherCampaignId

      public String getVoucherCampaignId()
      The id of the voucher campaign, which will be used to generate voucher codes after a successful checkout.
    • getCodeUsed

      public String getCodeUsed()
      The code used (if any) that triggered the application of the offer for this voucher.
    • setOfferRef

      public void setOfferRef(OfferRef offerRef)
      A reference to the OfferRef
    • setOfferCodeRef

      public void setOfferCodeRef(String offerCodeRef)
      A reference to the OfferCode (if any).
    • setVoucherCampaignId

      public void setVoucherCampaignId(String voucherCampaignId)
      The id of the voucher campaign, which will be used to generate voucher codes after a successful checkout.
    • setCodeUsed

      public void setCodeUsed(String codeUsed)
      The code used (if any) that triggered the application of the offer for this voucher.
    • 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