public interface OfferAuditDao
VerifyCustomerMaxOfferUsesActivity}, {@link RecordOfferUsageActivity},
{@link OfferService#verifyMaxCustomerUsageThreshold(Order, OfferCode)},
{@link OfferService#verifyMaxCustomerUsageThreshold(Order, OfferCode)}
Modifier and Type | Method and Description |
---|---|
Long |
countOfferCodeUses(Long offerCodeId)
Deprecated.
|
Long |
countOfferCodeUses(Order order,
Long offerCodeId)
Counts how many times the given offer code has been used in the system.
|
Long |
countUsesByCustomer(Long customerId,
Long offerId)
Deprecated.
|
Long |
countUsesByCustomer(Order order,
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) |
List<OfferAudit> |
readOfferAuditsByOrderId(Long orderId)
Return all offer audits for a particular order
|
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(Order order, Long customerId, Long offerId)
order
- customerId
- offerId
- Long countUsesByCustomer(Long customerId, Long offerId)
countUsesByCustomer(Order, Long, Long)
customerId
- offerId
- Long countOfferCodeUses(Order order, Long offerCodeId)
order
- offerCodeId
- @Deprecated Long countOfferCodeUses(Long offerCodeId)
countOfferCodeUses(Order, Long)
offerCodeId
- List<OfferAudit> readOfferAuditsByOrderId(Long orderId)
orderId
- Copyright © 2020. All rights reserved.