Interface OfferCode
- All Superinterfaces:
MultiTenantCloneable<OfferCode>,Serializable,Status
- All Known Implementing Classes:
OfferCodeImpl
-
Method Summary
Modifier and TypeMethodDescriptiongetId()intReturns the maximum number of times that this code can be used regardless of Order or CustomergetOffer()intgetUses()Deprecated.booleanIndicates that this code has a limit on how many times it can be used.booleanIndicates that this is an unlimited-use code.voidsetEmailAddress(String emailAddress) voidsetEndDate(Date endDate) voidvoidsetMaxUses(int maxUses) Sets the maximum number of times that this code can be used regardless of Order or CustomervoidvoidsetOfferCode(String offerCode) voidvoidsetStartDate(Date startDate) voidsetUses(int uses) Deprecated.replaced by theOfferAudittableMethods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstanceMethods inherited from interface org.broadleafcommerce.common.persistence.Status
getArchived, isActive, setArchived
-
Method Details
-
getId
Long getId() -
setId
-
getOffer
Offer getOffer() -
setOffer
-
getOfferCode
String getOfferCode() -
setOfferCode
-
getStartDate
Date getStartDate() -
setStartDate
-
getEndDate
Date getEndDate() -
setEndDate
-
getMaxUses
int getMaxUses()Returns the maximum number of times that this code can be used regardless of Order or Customer0 indicates unlimited usage.
- Returns:
-
setMaxUses
void setMaxUses(int maxUses) Sets the maximum number of times that this code can be used regardless of Order or Customer0 indicates unlimited usage.
- Parameters:
maxUses-
-
getEmailAddress
String getEmailAddress() -
setEmailAddress
-
isUnlimitedUse
boolean isUnlimitedUse()Indicates that this is an unlimited-use code. By default this is true ifgetMaxUses()== 0 -
isLimitedUse
boolean isLimitedUse()Indicates that this code has a limit on how many times it can be used. By default this is true ifgetMaxUses()> 0 -
getUses
Deprecated.replaced by theOfferAudittable -
setUses
Deprecated.replaced by theOfferAudittable -
getOrders
-
setOrders
-
OfferAudittable