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 boolean
boolean
The code used (if any) that triggered the application of the offer for this voucher.A reference to the OfferCode (if any).A reference to theOfferRef
The id of the voucher campaign, which will be used to generate voucher codes after a successful checkout.int
hashCode()
void
setCodeUsed
(String codeUsed) The code used (if any) that triggered the application of the offer for this voucher.void
setOfferCodeRef
(String offerCodeRef) A reference to the OfferCode (if any).void
setOfferId
(String offerId) void
setOfferRef
(OfferRef offerRef) A reference to theOfferRef
void
setVoucherCampaignId
(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
-