Interface OfferAudit
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
OfferAuditImpl
Captures when an offer was applied to a customer.
Utilized by the offer process to enforce max use by customer rules and as a high-level audit of what orders and customers have used an offer.
-
Method Summary
Modifier and TypeMethodDescriptionThe id of the associated account.The id of the associated customer.getId()System generated unique id for this audit record.The offer code that was used to retrieve the offer.The associated offer id.The associated order id.The date the offer was applied to the order.voidsetAccountId(Long customerId) Sets the associated account id.voidsetCustomerId(Long customerId) Sets the customer id.voidSets the id.voidsetOfferCodeId(Long offerCodeId) Sets the offer code that was used to retrieve the offer.voidsetOfferId(Long offerId) Sets the associated offer id.voidsetOrderId(Long orderId) Sets the associated order id.voidsetRedeemedDate(Date redeemedDate) Sets the offer redeemed date.
-
Method Details
-
getId
Long getId()System generated unique id for this audit record.- Returns:
-
setId
Sets the id.- Parameters:
id-
-
getOfferId
Long getOfferId()The associated offer id.- Returns:
-
setOfferId
Sets the associated offer id.- Parameters:
offerId-
-
getOfferCodeId
Long getOfferCodeId()The offer code that was used to retrieve the offer. This will be null if the offer was automatically applied and not obtained by an
OfferCode. -
setOfferCodeId
Sets the offer code that was used to retrieve the offer. This should be null if the offer was automatically applied and not obtained by an
OfferCode. -
getOrderId
Long getOrderId()The associated order id.- Returns:
-
setOrderId
Sets the associated order id.- Parameters:
orderId-
-
getCustomerId
Long getCustomerId()The id of the associated customer.- Returns:
-
setCustomerId
Sets the customer id.- Parameters:
customerId-
-
getAccountId
Long getAccountId()The id of the associated account.- Returns:
-
setAccountId
Sets the associated account id.- Parameters:
customerId-
-
getRedeemedDate
Date getRedeemedDate()The date the offer was applied to the order.- Returns:
-
setRedeemedDate
Sets the offer redeemed date.- Parameters:
redeemedDate-
-