Interface OfferCode
- All Superinterfaces:
MultiTenantCloneable<OfferCode>
,Serializable
,Status
- All Known Implementing Classes:
OfferCodeImpl
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
int
Returns the maximum number of times that this code can be used regardless of Order or CustomergetOffer()
int
getUses()
Deprecated.boolean
Indicates that this code has a limit on how many times it can be used.boolean
Indicates that this is an unlimited-use code.void
setEmailAddress
(String emailAddress) void
setEndDate
(Date endDate) void
void
setMaxUses
(int maxUses) Sets the maximum number of times that this code can be used regardless of Order or Customervoid
void
setOfferCode
(String offerCode) void
void
setStartDate
(Date startDate) void
setUses
(int uses) Deprecated.replaced by theOfferAudit
tableMethods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
Methods 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 theOfferAudit
table -
setUses
Deprecated.replaced by theOfferAudit
table -
getOrders
-
setOrders
-
OfferAudit
table