Class OfferAudit
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.domain.OfferAudit
-
- All Implemented Interfaces:
Serializable
public class OfferAudit extends Object implements Serializable
Captures audit relevant data when an offer was applied to an order.
Utilized by the offer engine to enforce max use and frequency rules and as a high-level audit of what orders and users have used an offer.
- Author:
- Chad Harchar (charchar)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OfferAudit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetCampaignCode()The campaign code string that this audit information is for.StringgetCampaignTrackingId()The tracking ID of the campaign this audit is for.InstantgetDateApplied()The date and time when the related offer was applied.StringgetOfferId()The associatedoffer's id.StringgetOrderId()The id of the cart upon which the related offer was used.StringgetSharedCode()The string of theoffer codeused to apply the related offer.UserTargetgetUser()The identifying info of the user that used the related offer.inthashCode()voidsetCampaignCode(String campaignCode)The campaign code string that this audit information is for.voidsetCampaignTrackingId(String campaignTrackingId)The tracking ID of the campaign this audit is for.voidsetDateApplied(Instant dateApplied)The date and time when the related offer was applied.voidsetOfferId(String offerId)The associatedoffer's id.voidsetOrderId(String orderId)The id of the cart upon which the related offer was used.voidsetSharedCode(String sharedCode)The string of theoffer codeused to apply the related offer.voidsetUser(UserTarget user)The identifying info of the user that used the related offer.StringtoString()
-
-
-
Method Detail
-
getOfferId
public String getOfferId()
The associatedoffer's id.- Returns:
- The associated
offer's id.
-
getCampaignCode
public String getCampaignCode()
The campaign code string that this audit information is for.- Returns:
- The campaign code string that this audit information is for.
-
getCampaignTrackingId
public String getCampaignTrackingId()
The tracking ID of the campaign this audit is for.- Returns:
- the tracking ID of the campaign this audit is for
-
getUser
public UserTarget getUser()
The identifying info of the user that used the related offer.- Returns:
- The identifying info of the user that used the related offer.
-
getOrderId
public String getOrderId()
The id of the cart upon which the related offer was used.- Returns:
- The id of the cart upon which the related offer was used.
-
getSharedCode
public String getSharedCode()
The string of theoffer codeused to apply the related offer.- Returns:
- The string of the
offer codeused to apply the related offer.
-
getDateApplied
public Instant getDateApplied()
The date and time when the related offer was applied.- Returns:
- The date and time when the related offer was applied.
-
setOfferId
public void setOfferId(String offerId)
The associatedoffer's id.- Parameters:
offerID- The associatedoffer's id.
-
setCampaignCode
public void setCampaignCode(String campaignCode)
The campaign code string that this audit information is for.- Parameters:
campaignCode- The campaign code string that this audit information is for.
-
setCampaignTrackingId
public void setCampaignTrackingId(String campaignTrackingId)
The tracking ID of the campaign this audit is for.- Parameters:
campaignTrackingId- the tracking ID of the campaign this audit is for
-
setUser
public void setUser(UserTarget user)
The identifying info of the user that used the related offer.- Parameters:
user- The identifying info of the user that used the related offer.
-
setOrderId
public void setOrderId(String orderId)
The id of the cart upon which the related offer was used.- Parameters:
orderId- The id of the cart upon which the related offer was used.
-
setSharedCode
public void setSharedCode(String sharedCode)
The string of theoffer codeused to apply the related offer.- Parameters:
sharedCode- The string of theoffer codeused to apply the related offer.
-
setDateApplied
public void setDateApplied(Instant dateApplied)
The date and time when the related offer was applied.- Parameters:
dateApplied- The date and time when the related offer was applied.
-
canEqual
protected boolean canEqual(Object other)
-
-