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.
Constructor and Description |
---|
OfferAudit() |
Modifier and Type | Method and 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 associated
offer's id . |
String |
getOrderId()
The id of the cart upon which the related offer was used.
|
String |
getSharedCode()
The string of the
offer 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 associated
offer'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 the
offer code used to apply the related offer. |
void |
setUser(UserTarget user)
The identifying info of the user that used the related offer.
|
String |
toString() |
public String getOfferId()
offer's id
.offer's id
.public String getCampaignCode()
public String getCampaignTrackingId()
public UserTarget getUser()
public String getOrderId()
public String getSharedCode()
offer code
used to apply the related offer.offer code
used to apply the related
offer.public Instant getDateApplied()
public void setOfferId(String offerId)
offer's id
.offerID
- The associated offer's id
.public void setCampaignCode(String campaignCode)
campaignCode
- The campaign code string that this audit information is for.public void setCampaignTrackingId(String campaignTrackingId)
campaignTrackingId
- the tracking ID of the campaign this audit is forpublic void setUser(UserTarget user)
user
- The identifying info of the user that used the related offer.public void setOrderId(String orderId)
orderId
- The id of the cart upon which the related offer was used.public void setSharedCode(String sharedCode)
offer code
used to apply the related offer.sharedCode
- The string of the offer code
used to apply the
related offer.public void setDateApplied(Instant dateApplied)
dateApplied
- The date and time when the related offer was applied.protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.