public interface TransactionAuthorizationService extends Service
| Modifier and Type | Method and Description |
|---|---|
PaymentAuthorizationLevelData |
authorize(@NotNull TransactionAuthorizationDTO transferAuthorizationDto)
Authorizes a payment pending authorization
|
void |
cancel(@NotNull TransactionAuthorizationDTO transferAuthorizationDto)
Cancels a payment pending authorization
|
void |
deny(@NotNull TransactionAuthorizationDTO transferAuthorizationDto)
Denies a payment pending authorization
|
PaymentAuthorizationLevelData authorize(@NotNull @NotNull TransactionAuthorizationDTO transferAuthorizationDto) throws TransferException, FrameworkException, IllegalActionException
IllegalActionException - The payment is not on a state which can be authorized or was already authorized by
the logged user, even if it
would be possible (through multiple roles) to authorize againTransferExceptionFrameworkExceptionvoid cancel(@NotNull
@NotNull TransactionAuthorizationDTO transferAuthorizationDto)
throws FrameworkException,
IllegalActionException
IllegalActionException - The payment is not on a state which can be canceled, or is part of a scheduled
payment (instead, the entire
scheduled payment should be canceled)FrameworkExceptionvoid deny(@NotNull
@NotNull TransactionAuthorizationDTO transferAuthorizationDto)
throws FrameworkException,
IllegalActionException
IllegalActionException - The payment is not on a state which can be deniedFrameworkException