Class OfferAudit
java.lang.Object
com.broadleafcommerce.cartoperation.domain.OfferAudit
- All Implemented Interfaces:
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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The campaign code string that this audit information is for.The tracking ID of the campaign this audit is for.The date and time when the related offer was applied.The associatedoffer's id
.The id of the cart upon which the related offer was used.The string of theoffer code
used to apply the related offer.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.toString()
-
Constructor Details
-
OfferAudit
public OfferAudit()
-
-
Method Details
-
getOfferId
The associatedoffer's id
.- Returns:
- The associated
offer's id
.
-
getCampaignCode
The campaign code string that this audit information is for.- Returns:
- The campaign code string that this audit information is for.
-
getCampaignTrackingId
The tracking ID of the campaign this audit is for.- Returns:
- the tracking ID of the campaign this audit is for
-
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
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.
-
getDateApplied
The date and time when the related offer was applied.- Returns:
- The date and time when the related offer was applied.
-
setOfferId
The associatedoffer's id
.- Parameters:
offerID
- The associatedoffer's id
.
-
setCampaignCode
The campaign code string that this audit information is for.- Parameters:
campaignCode
- The campaign code string that this audit information is for.
-
setCampaignTrackingId
The tracking ID of the campaign this audit is for.- Parameters:
campaignTrackingId
- the tracking ID of the campaign this audit is for
-
setUser
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
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.
-
setDateApplied
The date and time when the related offer was applied.- Parameters:
dateApplied
- The date and time when the related offer was applied.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-