Class OfferAuditSummary
java.lang.Object
com.broadleafcommerce.promotion.offer.domain.OfferAuditSummary
Summary of relevant audit data for an offer.
Utilized by the offer engine to enforce max use and frequency rules.
- Author:
- Marie Standeven (mariestandeven)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetId()The context ID of the offer audit summary.The ID of the offer this audit is for.javax.money.MonetaryAmountThe total savings that this offer has been applied for.intThe total usages that this offer has been applied for.inthashCode()voidThe context ID of the offer audit summary.voidsetOfferId(String offerId) The ID of the offer this audit is for.voidsetTotalDiscounted(javax.money.MonetaryAmount totalDiscounted) The total savings that this offer has been applied for.voidsetTotalUsages(int totalUsages) The total usages that this offer has been applied for.toString()
-
Constructor Details
-
OfferAuditSummary
public OfferAuditSummary()
-
-
Method Details
-
getId
The context ID of the offer audit summary.- Returns:
- the context ID of the offer audit summary
-
getOfferId
The ID of the offer this audit is for.- Returns:
- the ID of the offer this audit is for
-
getTotalUsages
public int getTotalUsages()The total usages that this offer has been applied for. -
getTotalDiscounted
public javax.money.MonetaryAmount getTotalDiscounted()The total savings that this offer has been applied for. -
setId
The context ID of the offer audit summary.- Parameters:
id- the context ID of the offer audit summary
-
setOfferId
The ID of the offer this audit is for.- Parameters:
offerCodeId- the ID of the offer this audit is for
-
setTotalUsages
public void setTotalUsages(int totalUsages) The total usages that this offer has been applied for. -
setTotalDiscounted
public void setTotalDiscounted(javax.money.MonetaryAmount totalDiscounted) The total savings that this offer has been applied for. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-