public interface VoucherServiceLocal extends VoucherService
VoucherService| Modifier and Type | Method and Description |
|---|---|
int |
cancelAll(UserAccount account)
Cancels all vouchers bought by the given user account
|
void |
expire(Voucher voucher)
Expire the given voucher
|
Voucher |
findByToken(java.lang.String token)
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).
|
barcode, buy, cancel, changeExpirationDate, exportToCSV, generate, getBuyData, getData, getGenerateData, getRedeemData, getRedeemInitialData, getSearchData, listTypesForBuy, listTypesForGenerate, loadByToken, print, printAll, redeem, search, searchWithSummaryint cancelAll(UserAccount account)
void expire(Voucher voucher)
Voucher findByToken(java.lang.String token)
boolean isOnlyOwnRedeems()
Permission.MY_VOUCHERS_VIEW_REDEEMED is still needed.void notifyAboutToExpire(Voucher voucher)