Class SharedCodeAuditSummary
java.lang.Object
com.broadleafcommerce.promotion.offer.domain.SharedCodeAuditSummary
Summary of relevant audit data for a shared code.
Utilized by the offer engine to enforce max use and frequency rules.
- Author:
- Marie Standeven (mariestandeven)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getId()
The context ID of the shared code audit summary.The string offer code this audit is for.The ID of the offer code this audit is for.javax.money.MonetaryAmount
The total savings that this offer code has been applied for.int
The total usages that this offer code has been applied for.int
hashCode()
void
The context ID of the shared code audit summary.void
setOfferCode
(String offerCode) The string offer code this audit is for.void
setOfferCodeId
(String offerCodeId) The ID of the offer code this audit is for.void
setTotalDiscounted
(javax.money.MonetaryAmount totalDiscounted) The total savings that this offer code has been applied for.void
setTotalUsages
(int totalUsages) The total usages that this offer code has been applied for.toString()
-
Constructor Details
-
SharedCodeAuditSummary
public SharedCodeAuditSummary()
-
-
Method Details
-
getId
The context ID of the shared code audit summary.- Returns:
- the context ID of the shared code audit summary
-
getOfferCodeId
The ID of the offer code this audit is for.- Returns:
- the ID of the offer code this audit is for
-
getOfferCode
The string offer code this audit is for.- Returns:
- the string offer code this audit is for
-
getTotalUsages
public int getTotalUsages()The total usages that this offer code has been applied for. -
getTotalDiscounted
public javax.money.MonetaryAmount getTotalDiscounted()The total savings that this offer code has been applied for. -
setId
The context ID of the shared code audit summary.- Parameters:
id
- the context ID of the shared code audit summary
-
setOfferCodeId
The ID of the offer code this audit is for.- Parameters:
offerCodeId
- the ID of the offer code this audit is for
-
setOfferCode
The string offer code this audit is for.- Parameters:
offerCode
- the string offer code this audit is for
-
setTotalUsages
public void setTotalUsages(int totalUsages) The total usages that this offer code has been applied for. -
setTotalDiscounted
public void setTotalDiscounted(javax.money.MonetaryAmount totalDiscounted) The total savings that this offer code has been applied for. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-