Interface OfferAuditDao
- All Known Implementing Classes:
OfferAuditDaoImpl
public interface OfferAuditDao
DAO for auditing what went on with offers being added to an order
- Author:
- Phillip Verheyden (phillipuniverse)
-
Method Summary
Modifier and TypeMethodDescriptioncountOfferCodeUses(Long offerCodeId) Deprecated.countOfferCodeUses(Order order, Long offerCodeId) Counts how many times the given offer code has been used in the system.countUsesByAccount(Order order, Long accountId, Long offerId) Counts how many times the an offer has been used by an account.countUsesByAccount(Order order, Long accountId, Long offerId, Long minimumDaysPerUsage) Counts how many times the an offer has been used by an account (within the number of passed in days if provided).countUsesByCustomer(Long customerId, Long offerId) Deprecated.countUsesByCustomer(Order order, Long customerId, Long offerId) Counts how many times the an offer has been used by a customer.countUsesByCustomer(Order order, Long customerId, Long offerId, Long minimumDaysPerUsage) Counts how many times the an offer has been used by a customer (within the number of passed in days if provided).create()Creates a new offer auditvoiddelete(OfferAudit offerAudit) readAuditById(Long offerAuditId) readOfferAuditsByOrderId(Long orderId) Return all offer audits for a particular ordersave(OfferAudit offerAudit) Persists an audit record to the databasevoidsetCurrentDateResolution(Long currentDateResolution)
-
Method Details
-
readAuditById
-
save
Persists an audit record to the database -
delete
-
create
OfferAudit create()Creates a new offer audit -
countUsesByCustomer
Counts how many times the an offer has been used by a customer. This method will take into account if the Offer has already been applied to the Order so as not to prevent the Offer from applying to new items added to the Order by a CRS.- Parameters:
order-customerId-offerId-- Returns:
- number of times and offer has been used by a customer
-
countUsesByCustomer
Counts how many times the an offer has been used by a customer (within the number of passed in days if provided). This method will take into account if the Offer has already been applied to the Order so as not to prevent the Offer from applying to new items added to the Order by a CRS.- Parameters:
order-customerId-offerId-- Returns:
- number of times and offer has been used by a customer
-
countUsesByAccount
Counts how many times the an offer has been used by an account. This method will take into account if the Offer has already been applied to the Order so as not to prevent the Offer from applying to new items added to the Order by a CRS.- Parameters:
order-accountId-offerId-- Returns:
- number of times and offer has been used by a customer
-
countUsesByAccount
Counts how many times the an offer has been used by an account (within the number of passed in days if provided). This method will take into account if the Offer has already been applied to the Order so as not to prevent the Offer from applying to new items added to the Order by a CRS.- Parameters:
order-accountId-offerId-- Returns:
- number of times and offer has been used by a customer
-
countUsesByCustomer
Deprecated.Counts how many times the an offer has been used by a customer- Parameters:
customerId-offerId-- Returns:
- number of times and offer has been used by a customer
-
countOfferCodeUses
Counts how many times the given offer code has been used in the system. This method will take into account if the OfferCode has already been applied to the Order so as not to prevent the OfferCODE from applying to new items added to the Order by a CRS.- Parameters:
order-offerCodeId-- Returns:
- number of times the offer code has been used
-
countOfferCodeUses
Deprecated.Counts how many times the given offer code has been used in the system- Parameters:
offerCodeId-- Returns:
- number of times the offer code has been used
-
readOfferAuditsByOrderId
Return all offer audits for a particular order- Parameters:
orderId-- Returns:
-
getCurrentDateResolution
Long getCurrentDateResolution() -
setCurrentDateResolution
-
countOfferCodeUses(Order, Long)