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)
Returns a voucher by token code
|
java.util.function.Consumer<Payment> |
getTransactionAuthorizationHandler(AuthorizationAction action)
Returns the transaction authorization handler to manage authorizations of the related payment.
|
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, searchWithSummaryvoid expire(Voucher voucher)
Voucher findByToken(java.lang.String token)
java.util.function.Consumer<Payment> getTransactionAuthorizationHandler(AuthorizationAction action)
boolean isOnlyOwnRedeems()
Permission.MY_VOUCHERS_VIEW_REDEEMED is still needed.void notifyAboutToExpire(Voucher voucher)