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 boolean
canEqual(Object other)
boolean
equals(Object o)
String
getCampaignCode()
The campaign code string that this audit information is for.String
getCampaignTrackingId()
The tracking ID of the campaign this audit is for.Instant
getDateApplied()
The date and time when the related offer was applied.String
getOfferId()
The associatedoffer's id
.String
getOrderId()
The id of the cart upon which the related offer was used.String
getSharedCode()
The string of theoffer code
used to apply the related offer.UserTarget
getUser()
The identifying info of the user that used the related offer.int
hashCode()
void
setCampaignCode(String campaignCode)
The campaign code string that this audit information is for.void
setCampaignTrackingId(String campaignTrackingId)
The tracking ID of the campaign this audit is for.void
setDateApplied(Instant dateApplied)
The date and time when the related offer was applied.void
setOfferId(String offerId)
The associatedoffer's id
.void
setOrderId(String orderId)
The id of the cart upon which the related offer was used.void
setSharedCode(String sharedCode)
The string of theoffer code
used to apply the related offer.void
setUser(UserTarget user)
The identifying info of the user that used the related offer.String
toString()
-
-
-
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 code
used to apply the related offer.- Returns:
- The string of the
offer code
used 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 code
used to apply the related offer.- Parameters:
sharedCode
- The string of theoffer code
used 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)
-
-