@Service @Transactional public class MiddlewareAccountManagementServiceImpl extends Object implements MiddlewareAccountManagementService
| Constructor and Description |
|---|
MiddlewareAccountManagementServiceImpl(DepositAccountService depositAccountService,
AccountDetailsMapper accountDetailsMapper,
PaymentConverter paymentConverter,
UserService userService,
UserMapper userMapper,
AisConsentBOMapper aisConsentMapper,
BearerTokenMapper bearerTokenMapper,
AccessTokenMapper accessTokenMapper,
AccessTokenTO accessToken,
SCAOperationService scaOperationService,
SCAUtils scaUtils,
AccessService accessService,
AmountMapper amountMapper,
CreateDepositAccountService createDepositAccountService) |
public MiddlewareAccountManagementServiceImpl(DepositAccountService depositAccountService, AccountDetailsMapper accountDetailsMapper, PaymentConverter paymentConverter, UserService userService, UserMapper userMapper, AisConsentBOMapper aisConsentMapper, BearerTokenMapper bearerTokenMapper, AccessTokenMapper accessTokenMapper, AccessTokenTO accessToken, SCAOperationService scaOperationService, SCAUtils scaUtils, AccessService accessService, AmountMapper amountMapper, CreateDepositAccountService createDepositAccountService)
public void createDepositAccount(AccountDetailsTO depositAccount, List<AccountAccessTO> accountAccesses) throws UserNotFoundMiddlewareException
createDepositAccount in interface MiddlewareAccountManagementServiceUserNotFoundMiddlewareExceptionpublic void createDepositAccount(String userID, AccountDetailsTO depositAccount) throws UserNotFoundMiddlewareException
createDepositAccount in interface MiddlewareAccountManagementServiceUserNotFoundMiddlewareExceptionpublic AccountDetailsTO getDepositAccountById(String accountId, LocalDateTime time, boolean withBalance) throws AccountNotFoundMiddlewareException
getDepositAccountById in interface MiddlewareAccountManagementServiceAccountNotFoundMiddlewareExceptionpublic AccountDetailsTO getDepositAccountByIban(String iban, LocalDateTime time, boolean withBalance) throws AccountNotFoundMiddlewareException
getDepositAccountByIban in interface MiddlewareAccountManagementServiceAccountNotFoundMiddlewareExceptionpublic List<AccountDetailsTO> getAllAccountDetailsByUserLogin(String userLogin) throws UserNotFoundMiddlewareException, AccountNotFoundMiddlewareException
getAllAccountDetailsByUserLogin in interface MiddlewareAccountManagementServiceUserNotFoundMiddlewareExceptionAccountNotFoundMiddlewareExceptionpublic TransactionTO getTransactionById(String accountId, String transactionId) throws TransactionNotFoundMiddlewareException
getTransactionById in interface MiddlewareAccountManagementServiceTransactionNotFoundMiddlewareExceptionpublic List<TransactionTO> getTransactionsByDates(String accountId, LocalDate dateFrom, LocalDate dateTo) throws AccountNotFoundMiddlewareException
getTransactionsByDates in interface MiddlewareAccountManagementServiceAccountNotFoundMiddlewareExceptionpublic boolean confirmFundsAvailability(FundsConfirmationRequestTO request) throws AccountNotFoundMiddlewareException
confirmFundsAvailability in interface MiddlewareAccountManagementServiceAccountNotFoundMiddlewareExceptionpublic void createDepositAccount(String accountNumberPrefix, String accountNumberSuffix, AccountDetailsTO accDetails) throws AccountWithPrefixGoneMiddlewareException, AccountWithSuffixExistsMiddlewareException
createDepositAccount in interface MiddlewareAccountManagementServiceAccountWithPrefixGoneMiddlewareExceptionAccountWithSuffixExistsMiddlewareExceptionpublic void grantAccessToDepositAccount(AccountAccessTO accountAccess) throws InsufficientPermissionMiddlewareException
grantAccessToDepositAccount in interface MiddlewareAccountManagementServiceInsufficientPermissionMiddlewareExceptionpublic List<AccountDetailsTO> listDepositAccounts()
listDepositAccounts in interface MiddlewareAccountManagementServicepublic List<AccountDetailsTO> listDepositAccountsByBranch()
listDepositAccountsByBranch in interface MiddlewareAccountManagementServicepublic String iban(String id)
iban in interface MiddlewareAccountManagementServicepublic SCAConsentResponseTO startSCA(String consentId, AisConsentTO aisConsent) throws InsufficientPermissionMiddlewareException
startSCA in interface MiddlewareAccountManagementServiceInsufficientPermissionMiddlewareExceptionpublic SCAConsentResponseTO loadSCAForAisConsent(String consentId, String authorisationId) throws SCAOperationExpiredMiddlewareException, AisConsentNotFoundMiddlewareException
loadSCAForAisConsent in interface MiddlewareAccountManagementServiceSCAOperationExpiredMiddlewareExceptionAisConsentNotFoundMiddlewareExceptionpublic SCAConsentResponseTO selectSCAMethodForAisConsent(String consentId, String authorisationId, String scaMethodId) throws SCAMethodNotSupportedMiddleException, UserScaDataNotFoundMiddlewareException, SCAOperationValidationMiddlewareException, SCAOperationNotFoundMiddlewareException, AisConsentNotFoundMiddlewareException
public SCAConsentResponseTO authorizeConsent(String consentId, String authorisationId, String authCode) throws SCAOperationNotFoundMiddlewareException, SCAOperationValidationMiddlewareException, SCAOperationExpiredMiddlewareException, SCAOperationUsedOrStolenMiddlewareException, AisConsentNotFoundMiddlewareException
public SCAConsentResponseTO grantAisConsent(AisConsentTO aisConsent) throws InsufficientPermissionMiddlewareException
grantAisConsent in interface MiddlewareAccountManagementServiceInsufficientPermissionMiddlewareExceptionpublic void depositCash(String accountId, AmountTO amount) throws AccountNotFoundMiddlewareException
depositCash in interface MiddlewareAccountManagementServiceAccountNotFoundMiddlewareExceptionCopyright © 2019. All rights reserved.