Class OfferAuditDetail
- java.lang.Object
-
- com.broadleafcommerce.promotion.offer.domain.OfferAuditDetail
-
- All Implemented Interfaces:
Serializable
public class OfferAuditDetail 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 OfferAuditDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)InstantgetDateApplied()The date and time when the related offer was applied.StringgetId()The context ID of the offer audit detailStringgetOfferId()The associatedoffer's id.StringgetOrderId()The id of the order upon which the related offer was used.StringgetSharedCode()The string of the shared code used to apply the related offer if one was used.UserTargetgetUser()The identifying info of the user that used the related offer.inthashCode()voidsetDateApplied(Instant dateApplied)The date and time when the related offer was applied.voidsetId(String id)The context ID of the offer audit detailvoidsetOfferId(String offerId)The associatedoffer's id.voidsetOrderId(String orderId)The id of the order upon which the related offer was used.voidsetSharedCode(String sharedCode)The string of the shared code used to apply the related offer if one was used.voidsetUser(UserTarget user)The identifying info of the user that used the related offer.StringtoString()
-
-
-
Method Detail
-
getId
public String getId()
The context ID of the offer audit detail- Returns:
- the context ID of the offer audit detail
-
getOfferId
public String getOfferId()
The associatedoffer's id.- Returns:
- The associated
offer's id.
-
getUser
public UserTarget getUser()
The identifying info of the user that used the related offer. Used to check against anOffer.maxUsesPerUser.- Returns:
- The identifying info of the user that used the related offer.
-
getOrderId
public String getOrderId()
The id of the order upon which the related offer was used. Used to check against anOffer.maxUsesPerOrder.- Returns:
- The id of the order upon which the related offer was used.
-
getSharedCode
public String getSharedCode()
The string of the shared code used to apply the related offer if one was used. Used to check against aSharedCode.maxUses.- Returns:
- The string of the shared code used to apply the related offer.
-
getDateApplied
public Instant getDateApplied()
The date and time when the related offer was applied. Used to check against an frequency type criteria in anoffer's time criteria.- Returns:
- The date and time when the related offer was applied.
-
setId
public void setId(String id)
The context ID of the offer audit detail- Parameters:
id- the context ID of the offer audit detail
-
setOfferId
public void setOfferId(String offerId)
The associatedoffer's id.- Parameters:
offerID- The associatedoffer's id.
-
setUser
public void setUser(UserTarget user)
The identifying info of the user that used the related offer. Used to check against anOffer.maxUsesPerUser.- Parameters:
user- The identifying info of the user that used the related offer.
-
setOrderId
public void setOrderId(String orderId)
The id of the order upon which the related offer was used. Used to check against anOffer.maxUsesPerOrder.- Parameters:
orderId- The id of the order upon which the related offer was used.
-
setSharedCode
public void setSharedCode(String sharedCode)
The string of the shared code used to apply the related offer if one was used. Used to check against aSharedCode.maxUses.- Parameters:
sharedCode- The string of the shared code used to apply the related offer.
-
setDateApplied
public void setDateApplied(Instant dateApplied)
The date and time when the related offer was applied. Used to check against an frequency type criteria in anoffer's time criteria.- Parameters:
dateApplied- The date and time when the related offer was applied.
-
canEqual
protected boolean canEqual(Object other)
-
-