@RestController @MiddlewareUserResource @RequestMapping(value="/accounts") public class AccountResource extends Object implements AccountRestAPI
ACCOUNT_ID, BASE_PATH, DATE_FROM_QUERY_PARAM, DATE_TO_QUERY_PARAM, IBAN_QUERY_PARAM, LOCAL_DATE_YYYY_MM_DD_FORMAT, PAGE, SIZE, TRANSACTION_ID| Constructor and Description |
|---|
AccountResource() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Void> |
createDepositAccount(AccountDetailsTO accountDetailsTO) |
org.springframework.http.ResponseEntity<Void> |
depositCash(String accountId,
AmountTO amount) |
org.springframework.http.ResponseEntity<Boolean> |
fundsConfirmation(FundsConfirmationRequestTO request) |
org.springframework.http.ResponseEntity<AccountDetailsTO> |
getAccountDetailsByIban(String iban) |
org.springframework.http.ResponseEntity<AccountDetailsTO> |
getAccountDetailsById(String accountId) |
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) |
@PreAuthorize(value="hasAnyRole(\'CUSTOMER\',\'SYSTEM\')") public org.springframework.http.ResponseEntity<List<AccountDetailsTO>> getListOfAccounts()
getListOfAccounts in interface AccountRestAPI@PreAuthorize(value="hasRole(\'CUSTOMER\') and tokenUsage(\'DIRECT_ACCESS\')") public org.springframework.http.ResponseEntity<Void> createDepositAccount(AccountDetailsTO accountDetailsTO)
createDepositAccount in interface AccountRestAPI@PreAuthorize(value="accountInfoById(#accountId)") public org.springframework.http.ResponseEntity<AccountDetailsTO> getAccountDetailsById(String accountId)
getAccountDetailsById in interface AccountRestAPI@PreAuthorize(value="accountInfoById(#accountId)") public org.springframework.http.ResponseEntity<List<AccountBalanceTO>> getBalances(String accountId)
getBalances in interface AccountRestAPI@PreAuthorize(value="accountInfoById(#accountId)") public org.springframework.http.ResponseEntity<List<TransactionTO>> getTransactionByDates(String accountId, LocalDate dateFrom, LocalDate dateTo)
getTransactionByDates in interface AccountRestAPI@PreAuthorize(value="accountInfoById(#accountId)") public org.springframework.http.ResponseEntity<CustomPageImpl<TransactionTO>> getTransactionByDatesPaged(String accountId, LocalDate dateFrom, LocalDate dateTo, int page, int size)
getTransactionByDatesPaged in interface AccountRestAPI@PreAuthorize(value="accountInfoById(#accountId)") public org.springframework.http.ResponseEntity<TransactionTO> getTransactionById(String accountId, String transactionId)
getTransactionById in interface AccountRestAPI@PreAuthorize(value="accountInfoByIban(#iban)") public org.springframework.http.ResponseEntity<AccountDetailsTO> getAccountDetailsByIban(String iban)
getAccountDetailsByIban in interface AccountRestAPIiban - @PreAuthorize(value="accountInfoByIban(#request.psuAccount.iban)") public org.springframework.http.ResponseEntity<Boolean> fundsConfirmation(FundsConfirmationRequestTO request)
fundsConfirmation in interface AccountRestAPI@PreAuthorize(value="hasAnyRole(\'STAFF\',\'SYSTEM\')") public org.springframework.http.ResponseEntity<Void> depositCash(String accountId, AmountTO amount)
depositCash in interface AccountRestAPICopyright © 2020. All rights reserved.