@Service(value="blOfferAuditService") public class OfferAuditServiceImpl extends Object implements OfferAuditService
| Modifier and Type | Field and Description |
|---|---|
protected OfferAuditDao |
offerAuditDao |
| Constructor and Description |
|---|
OfferAuditServiceImpl() |
| 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 |
countUsesByAccount(Order order,
Long accountId,
Long offerId,
Long minimumDaysPerUsage)
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.
|
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.
|
Long |
countUsesByCustomer(Order order,
Long customerId,
Long offerId,
Long minimumDaysPerUsage)
Counts how many times the an offer has been used by a customer (within the passed in number of days if provided).
|
OfferAudit |
create()
Creates a new offer audit
|
void |
delete(OfferAudit offerAudit) |
OfferAudit |
readAuditById(Long offerAuditId) |
List<OfferAudit> |
readOfferAuditsByOrderId(Long orderId)
Read all audits by order id
|
OfferAudit |
save(OfferAudit offerAudit)
Persists an audit record to the database
|
protected OfferAuditDao offerAuditDao
public OfferAudit readAuditById(Long offerAuditId)
readAuditById in interface OfferAuditService@Transactional(value="blTransactionManager") public OfferAudit save(OfferAudit offerAudit)
OfferAuditServicesave in interface OfferAuditService@Transactional(value="blTransactionManager") public void delete(OfferAudit offerAudit)
delete in interface OfferAuditServicepublic OfferAudit create()
OfferAuditServicecreate in interface OfferAuditServicepublic Long countUsesByCustomer(Order order, Long customerId, Long offerId)
OfferAuditServicecountUsesByCustomer in interface OfferAuditServicepublic Long countUsesByCustomer(Order order, Long customerId, Long offerId, Long minimumDaysPerUsage)
OfferAuditServicecountUsesByCustomer in interface OfferAuditServicepublic Long countUsesByAccount(Order order, Long accountId, Long offerId, Long minimumDaysPerUsage)
OfferAuditServicecountUsesByAccount in interface OfferAuditService@Deprecated public Long countUsesByCustomer(Long customerId, Long offerId)
OfferAuditServicecountUsesByCustomer in interface OfferAuditServicepublic Long countOfferCodeUses(Order order, Long offerCodeId)
OfferAuditServicecountOfferCodeUses in interface OfferAuditService@Deprecated public Long countOfferCodeUses(Long offerCodeId)
OfferAuditServicecountOfferCodeUses in interface OfferAuditServicepublic List<OfferAudit> readOfferAuditsByOrderId(Long orderId)
OfferAuditServicereadOfferAuditsByOrderId in interface OfferAuditServiceCopyright © 2021. All rights reserved.