public interface TransactionAuthorizationServiceLocal extends TransactionAuthorizationService
| Modifier and Type | Method and Description |
|---|---|
void |
authorizeFirstLevelIfNeeded(BasePayment transaction)
If the given transaction is pending authorization and the logged user could authorize the first level, the
transaction is immediately
authorized.
|
void |
cancel(BasePayment payment,
java.lang.String comments)
Cancel the given payment and set the comments to the corresponding
TransactionAuthorization |
int |
cancelAll(UserAccount account)
Cancels all payments pending authorization from the given account
|
void |
expire(BasePayment payment)
Expires the given payment (invoked by a polling task)
|
Pair<TransactionAuthorizationType,AuthorizationLevel> |
initialAuthorization(PaymentTransferType transferType)
Returns the first authorization condition for a given transfer
|
java.util.List<AccountType> |
listAccountTypes(InternalAccountOwner owner)
Returns the account types the logged user can view authorizations over the given owner
|
void |
notifyPendingAuthorization(BasePayment transaction)
Notifies the next authorizer in line about the pending transaction to be authorized.
|
<T extends BasePayment> |
registerHandler(AuthorizationAction action,
java.lang.Class<T> transactionClass,
java.util.function.Consumer<T> handler)
Registers a handler which runs when an authorization action takes place over the given transaction
|
authorize, cancel, denyvoid authorizeFirstLevelIfNeeded(BasePayment transaction)
void cancel(BasePayment payment, java.lang.String comments)
TransactionAuthorizationint cancelAll(UserAccount account)
void expire(BasePayment payment)
java.lang.IllegalAccessException - if the payment's authorization status is not
TransactionAuthorizationStatus.PENDING_AUTHORIZATIONPair<TransactionAuthorizationType,AuthorizationLevel> initialAuthorization(PaymentTransferType transferType)
java.util.List<AccountType> listAccountTypes(InternalAccountOwner owner)
void notifyPendingAuthorization(BasePayment transaction)
<T extends BasePayment> void registerHandler(AuthorizationAction action, java.lang.Class<T> transactionClass, java.util.function.Consumer<T> handler)