public interface MiddlewareAccountManagementService
| Modifier and Type | Method and Description |
|---|---|
SCAConsentResponseTO |
authorizeConsent(String consentId,
String authorisationId,
String authCode)
Authorizes a consent request.
|
boolean |
confirmFundsAvailability(FundsConfirmationRequestTO request)
Confirm the availability of funds on user account to perform the operation with specified amount
|
void |
createDepositAccount(AccountDetailsTO depositAccount)
Creates a new DepositAccount.
|
void |
createDepositAccount(AccountDetailsTO depositAccount,
List<AccountAccessTO> accountAccesss)
Creates a new DepositAccount.
|
void |
createDepositAccount(String accountNumberPrefix,
String accountNumberSuffix,
AccountDetailsTO accDetails)
Creates a new DepositAccount for the connected user.
|
void |
depositCash(String accountId,
AmountTO amount)
Deposits given amount in cash into specified account.
|
List<AccountDetailsTO> |
getAllAccountDetailsByUserLogin(String userLogin)
Retrieves a List of AccountDetails by user login (psuId)
|
AccountDetailsTO |
getDepositAccountByIban(String iban,
LocalDateTime time,
boolean withBalance)
Retrieves AccountDetails with Balance on demand
|
AccountDetailsTO |
getDepositAccountById(String Id,
LocalDateTime time,
boolean withBalance)
Retrieves AccountDetails with Balance on demand
|
TransactionTO |
getTransactionById(String accountId,
String transactionId)
Retrieves transaction by accountId and transactionId
|
List<TransactionTO> |
getTransactionsByDates(String accountId,
LocalDate dateFrom,
LocalDate dateTo)
Retrieves a List of transactions by accountId and dates (from/to) if dateTo is empty it is considered that requested date is today
|
void |
grantAccessToDepositAccount(AccountAccessTO accountAccess)
Provide account access to another user of the system.
|
BearerTokenTO |
grantAisConsent(AisConsentTO aisConsent)
Provide a third party provider with necessary permission to read accounts and
transaction informations for the specified account.
|
String |
iban(String id) |
List<AccountDetailsTO> |
listOfDepositAccounts()
Retrieve the list of account viewable by the connected user.
|
SCAConsentResponseTO |
loadSCAForAisConsent(String consentId,
String authorisationId) |
SCAConsentResponseTO |
selectSCAMethodForAisConsent(String consentId,
String authorisationId,
String scaMethodId) |
SCAConsentResponseTO |
startSCA(String consentId,
AisConsentTO aisConsent)
Start an account consent process.
|
void createDepositAccount(AccountDetailsTO depositAccount) throws UserNotFoundMiddlewareException
depositAccount - : the deposit account to be crated.UserNotFoundMiddlewareException - : if the associated user does not exist.void createDepositAccount(AccountDetailsTO depositAccount, List<AccountAccessTO> accountAccesss) throws UserNotFoundMiddlewareException
depositAccount - : the deposit account to be crated.accountAccesss - : define who has access to the account.UserNotFoundMiddlewareException - : if the associated user does not exist.void createDepositAccount(String accountNumberPrefix, String accountNumberSuffix, AccountDetailsTO accDetails) throws AccountWithPrefixGoneMiddlewareException, AccountWithSuffixExistsMiddlewareException, UserNotFoundMiddlewareException
accountNumberPrefix - : the account number prefix : the account number prefixaccountNumberSuffix - : th eaccount number suffixaccDetails - : account to create.AccountWithPrefixGoneMiddlewareException - : another user owns this preficAccountWithSuffixExistsMiddlewareException - : user has account with same prefix and this suffixUserNotFoundMiddlewareException - : no uservoid grantAccessToDepositAccount(AccountAccessTO accountAccess) throws AccountNotFoundMiddlewareException, InsufficientPermissionMiddlewareException
accountAccess - : define who it being given access to the account.AccountNotFoundMiddlewareException - : target account not found.InsufficientPermissionMiddlewareException - : if the connected user is not linked ot the account.List<AccountDetailsTO> listOfDepositAccounts()
AccountDetailsTO getDepositAccountById(String Id, LocalDateTime time, boolean withBalance) throws AccountNotFoundMiddlewareException, InsufficientPermissionMiddlewareException
Id - DepositAccount identifiertime - the reference time.withBalance - boolean specifying if Balances has to be added to AccountDetailsAccountNotFoundMiddlewareException - : target account not found.InsufficientPermissionMiddlewareException - : if the connected user is not linked ot the account.AccountDetailsTO getDepositAccountByIban(String iban, LocalDateTime time, boolean withBalance) throws AccountNotFoundMiddlewareException, InsufficientPermissionMiddlewareException
iban - DepositAccount ibantime - the reference time.withBalance - boolean specifying if Balances has to be added to AccountDetailsAccountNotFoundMiddlewareException - : target account not found.InsufficientPermissionMiddlewareException - : if the connected user is not linked ot the account.List<AccountDetailsTO> getAllAccountDetailsByUserLogin(String userLogin) throws UserNotFoundMiddlewareException, AccountNotFoundMiddlewareException, InsufficientPermissionMiddlewareException
userLogin - the user loginUserNotFoundMiddlewareException - : if the associated user does not exist.AccountNotFoundMiddlewareException - : target account not found.InsufficientPermissionMiddlewareException - : if the connected user is not linked ot the account.TransactionTO getTransactionById(String accountId, String transactionId) throws AccountNotFoundMiddlewareException, TransactionNotFoundMiddlewareException, InsufficientPermissionMiddlewareException
accountId - the account idtransactionId - the transaction idAccountNotFoundMiddlewareException - : target account not found.TransactionNotFoundMiddlewareException - : no transation with this id.InsufficientPermissionMiddlewareException - : if the connected user is not linked ot the account.List<TransactionTO> getTransactionsByDates(String accountId, LocalDate dateFrom, LocalDate dateTo) throws AccountNotFoundMiddlewareException, InsufficientPermissionMiddlewareException
accountId - the account iddateFrom - from this timedateTo - to this timeAccountNotFoundMiddlewareException - : target account not found.InsufficientPermissionMiddlewareException - : if the connected user is not linked of the account.boolean confirmFundsAvailability(FundsConfirmationRequestTO request) throws AccountNotFoundMiddlewareException
request - : teh fund confirmation request.AccountNotFoundMiddlewareException - : target account not found.SCAConsentResponseTO startSCA(String consentId, AisConsentTO aisConsent) throws InsufficientPermissionMiddlewareException
consentId - : the cosent id.aisConsent - : the consent detailsInsufficientPermissionMiddlewareException - : if the connected user is not linked ot the account.SCAConsentResponseTO loadSCAForAisConsent(String consentId, String authorisationId) throws SCAOperationExpiredMiddlewareException, AisConsentNotFoundMiddlewareException
SCAConsentResponseTO selectSCAMethodForAisConsent(String consentId, String authorisationId, String scaMethodId) throws PaymentNotFoundMiddlewareException, SCAMethodNotSupportedMiddleException, UserScaDataNotFoundMiddlewareException, SCAOperationValidationMiddlewareException, SCAOperationNotFoundMiddlewareException, AisConsentNotFoundMiddlewareException
SCAConsentResponseTO authorizeConsent(String consentId, String authorisationId, String authCode) throws SCAOperationNotFoundMiddlewareException, SCAOperationValidationMiddlewareException, SCAOperationExpiredMiddlewareException, SCAOperationUsedOrStolenMiddlewareException, AisConsentNotFoundMiddlewareException
consentId - : the cosent idauthorisationId - : the authorization id.authCode - : SCAConsentResponseTOSCAOperationNotFoundMiddlewareException - : operation no logger in dbSCAOperationValidationMiddlewareException - : operation data not valid.SCAOperationExpiredMiddlewareException - : expiredSCAOperationUsedOrStolenMiddlewareException - : user sca method not supported.AisConsentNotFoundMiddlewareException - : consent not found.BearerTokenTO grantAisConsent(AisConsentTO aisConsent) throws AccountNotFoundMiddlewareException, InsufficientPermissionMiddlewareException
aisConsent - : the consent detailsAccountNotFoundMiddlewareException - : target account not found.InsufficientPermissionMiddlewareException - : if the connected user is not linked ot the account.void depositCash(String accountId, AmountTO amount) throws AccountNotFoundMiddlewareException
accountId - id of the account deposited intoamount - amount of cash depositedAccountNotFoundMiddlewareException - target account not foundCopyright © 2019. All rights reserved.