public interface OfferAuditDao
VerifyCustomerMaxOfferUsesActivity}, {@link RecordOfferUsageActivity},
{@link OfferService#verifyMaxCustomerUsageThreshold(org.broadleafcommerce.profile.core.domain.Customer, org.broadleafcommerce.core.offer.domain.OfferCode)}| Modifier and Type | Method and Description |
|---|---|
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
|
OfferAudit readAuditById(Long offerAuditId)
OfferAudit save(OfferAudit offerAudit)
void delete(OfferAudit offerAudit)
OfferAudit create()
Long countUsesByCustomer(Long customerId, Long offerId)
customerId - offerId - Copyright © 2015. All Rights Reserved.