Class AccountResource
- java.lang.Object
-
- de.adorsys.ledgers.middleware.rest.resource.AccountResource
-
- All Implemented Interfaces:
AccountRestAPI
@RestController @MiddlewareUserResource @RequestMapping("/accounts") public class AccountResource extends Object implements AccountRestAPI
-
-
Field Summary
-
Fields inherited from interface de.adorsys.ledgers.middleware.rest.resource.AccountRestAPI
BASE_PATH
-
-
Constructor Summary
Constructors Constructor Description AccountResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Boolean>fundsConfirmation(FundsConfirmationRequestTO request)org.springframework.http.ResponseEntity<AccountDetailsTO>getAccountDetailsById(String accountId)org.springframework.http.ResponseEntity<List<AdditionalAccountInformationTO>>getAdditionalAccountInfo(AccountIdentifierTypeTO accountIdentifierType, String accountIdentifier)org.springframework.http.ResponseEntity<List<AccountBalanceTO>>getBalances(String accountId)org.springframework.http.ResponseEntity<List<AccountDetailsTO>>getListOfAccounts()Return the list of accounts linked with the current customer.org.springframework.http.ResponseEntity<List<TransactionTO>>getTransactionByDates(String accountId, LocalDate dateFrom, LocalDate dateTo)org.springframework.http.ResponseEntity<CustomPageImpl<TransactionTO>>getTransactionByDatesPaged(String accountId, LocalDate dateFrom, LocalDate dateTo, int page, int size)org.springframework.http.ResponseEntity<TransactionTO>getTransactionById(String accountId, String transactionId)
-
-
-
Method Detail
-
getListOfAccounts
@PreAuthorize("hasAnyRole(\'CUSTOMER\',\'SYSTEM\')") public org.springframework.http.ResponseEntity<List<AccountDetailsTO>> getListOfAccounts()Return the list of accounts linked with the current customer.- Specified by:
getListOfAccountsin interfaceAccountRestAPI- Returns:
- : the list of accounts linked with the current customer.
-
getAccountDetailsById
@PreAuthorize("hasAccessToAccount(#accountId)") public org.springframework.http.ResponseEntity<AccountDetailsTO> getAccountDetailsById(String accountId)- Specified by:
getAccountDetailsByIdin interfaceAccountRestAPI
-
getBalances
@PreAuthorize("hasAccessToAccount(#accountId)") public org.springframework.http.ResponseEntity<List<AccountBalanceTO>> getBalances(String accountId)- Specified by:
getBalancesin interfaceAccountRestAPI
-
getTransactionByDates
@PreAuthorize("hasAccessToAccount(#accountId)") public org.springframework.http.ResponseEntity<List<TransactionTO>> getTransactionByDates(String accountId, LocalDate dateFrom, LocalDate dateTo)- Specified by:
getTransactionByDatesin interfaceAccountRestAPI
-
getTransactionByDatesPaged
@PreAuthorize("hasAccessToAccount(#accountId)") public org.springframework.http.ResponseEntity<CustomPageImpl<TransactionTO>> getTransactionByDatesPaged(String accountId, LocalDate dateFrom, LocalDate dateTo, int page, int size)- Specified by:
getTransactionByDatesPagedin interfaceAccountRestAPI
-
getTransactionById
@PreAuthorize("hasAccessToAccount(#accountId)") public org.springframework.http.ResponseEntity<TransactionTO> getTransactionById(String accountId, String transactionId)- Specified by:
getTransactionByIdin interfaceAccountRestAPI
-
fundsConfirmation
@PreAuthorize("hasAccessToAccountWithIban(#request.psuAccount.iban)") public org.springframework.http.ResponseEntity<Boolean> fundsConfirmation(FundsConfirmationRequestTO request)- Specified by:
fundsConfirmationin interfaceAccountRestAPI
-
getAdditionalAccountInfo
@PreAuthorize("accountInfoByIdentifier(#accountIdentifierType, #accountIdentifier)") public org.springframework.http.ResponseEntity<List<AdditionalAccountInformationTO>> getAdditionalAccountInfo(AccountIdentifierTypeTO accountIdentifierType, String accountIdentifier)- Specified by:
getAdditionalAccountInfoin interfaceAccountRestAPI
-
-