public interface VoucherServiceLocal extends VoucherService
VoucherService| Modifier and Type | Method and Description |
|---|---|
void |
expire(Voucher voucher)
Expire the given voucher
|
Voucher |
findByToken(java.lang.String token,
User user)
Returns a voucher by token code
|
boolean |
isOnlyOwnRedeems()
Returns whether the logged user is a restricted operator that can only see vouchers redeemed by himself.
|
void |
notifyAboutToExpire(Voucher voucher)
Sends a notification that the voucher will expire in x days (as defined in the voucher
configuration).
|
assign, barcode, buy, cancel, changeExpirationDate, exportVoucher, exportVouchers, generate, getBuyData, getData, getGenerateData, getRedeemData, getRedeemInitialData, getSearchData, listTypesForBuy, listTypesForGenerate, loadByToken, redeem, search, searchWithSummaryvoid expire(Voucher voucher)
boolean isOnlyOwnRedeems()
Permission.MY_VOUCHERS_VIEW_REDEEMED is still needed.void notifyAboutToExpire(Voucher voucher)