|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OfferAuditService
Service for managing OfferAudits. An OfferAudit is used to track usage of an offer and offer code
for a particular Order and Customer. This provides easy and fast tracking of verifying max uses on
particular Offers.
| Method Summary | |
|---|---|
Long |
countOfferCodeUses(Long offerCodeId)
Counts how many times the given offer code has been used in the system |
Long |
countUsesByCustomer(Long customerId,
Long offerId)
Counts how many times the an offer has been used by a customer |
OfferAudit |
create()
Creates a new offer audit |
void |
delete(OfferAudit offerAudit)
|
OfferAudit |
readAuditById(Long offerAuditId)
|
OfferAudit |
save(OfferAudit offerAudit)
Persists an audit record to the database |
| Method Detail |
|---|
OfferAudit readAuditById(Long offerAuditId)
OfferAudit save(OfferAudit offerAudit)
void delete(OfferAudit offerAudit)
OfferAudit create()
Long countUsesByCustomer(Long customerId,
Long offerId)
customerId - offerId -
Long countOfferCodeUses(Long offerCodeId)
offerCodeId -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||