Class Voucher
java.lang.Object
com.broadleafcommerce.promotion.offer.client.web.context.info.Voucher
- All Implemented Interfaces:
Serializable
Represents a voucher that an order is qualified for.
- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe code used (if any) that triggered the application of the offer for this voucher.A reference to the OfferCode (if any).A reference to theOfferRefThe id of the voucher campaign, which will be used to generate voucher codes after a successful checkout.inthashCode()voidsetCodeUsed(String codeUsed) The code used (if any) that triggered the application of the offer for this voucher.voidsetOfferCodeRef(String offerCodeRef) A reference to the OfferCode (if any).voidsetOfferId(String offerId) voidsetOfferRef(OfferRef offerRef) A reference to theOfferRefvoidsetVoucherCampaignId(String voucherCampaignId) The id of the voucher campaign, which will be used to generate voucher codes after a successful checkout.toString()
-
Constructor Details
-
Voucher
public Voucher()
-
-
Method Details
-
getOfferId
-
setOfferId
-
getOfferRef
A reference to theOfferRef -
getOfferCodeRef
A reference to the OfferCode (if any). -
getVoucherCampaignId
The id of the voucher campaign, which will be used to generate voucher codes after a successful checkout. -
getCodeUsed
The code used (if any) that triggered the application of the offer for this voucher. -
setOfferRef
A reference to theOfferRef -
setOfferCodeRef
A reference to the OfferCode (if any). -
setVoucherCampaignId
The id of the voucher campaign, which will be used to generate voucher codes after a successful checkout. -
setCodeUsed
The code used (if any) that triggered the application of the offer for this voucher. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-