@Service public class AccountService extends Object
| Constructor and Description |
|---|
AccountService() |
| Modifier and Type | Method and Description |
|---|---|
Optional<AspspAccountDetails> |
addAccount(String psuId,
AspspAccountDetails accountDetails)
Adds new account to corresponding PSU by it's primary ASPSP identifier
|
void |
deleteAccountById(String accountId)
Deletes account by its primary ASPSP identifier
|
List<AspspAccountBalance> |
getAccountBalancesById(String accountId)
Returns a list of balances for account represented by its primary ASPSP identifier
|
Optional<AspspAccountDetails> |
getAccountById(String accountId)
Returns account details by accounts primary ASPSP identifier
|
List<AspspAccountDetails> |
getAccountsByIban(String iban)
Returns a list of account details containing requested IBAN
|
List<AspspAccountDetails> |
getAccountsByPsuId(String psuId)
Returns a list of PSU's account details by PSU's primary ASPSP identifier
|
List<AspspAccountDetails> |
getAllAccounts()
Returns a list of all accounts of all PSUs at this ASPSP (DEBUG ONLY!)
|
public Optional<AspspAccountDetails> addAccount(String psuId, AspspAccountDetails accountDetails)
psuId - PSU's primary ASPSP identifieraccountDetails - account details to be addedpublic List<AspspAccountDetails> getAllAccounts()
public Optional<AspspAccountDetails> getAccountById(String accountId)
accountId - accounts primary ASPSP identifierpublic List<AspspAccountDetails> getAccountsByIban(String iban)
iban - account IBANpublic List<AspspAccountBalance> getAccountBalancesById(String accountId)
accountId - accounts primary ASPSP identifierpublic List<AspspAccountDetails> getAccountsByPsuId(String psuId)
psuId - PSU's primary ASPSP identifierpublic void deleteAccountById(String accountId)
accountId - accounts primary ASPSP identifierCopyright © 2018. All rights reserved.