Interface AccountRestAPI
-
public interface AccountRestAPI
-
-
Method Summary
All Methods Instance Methods Abstract 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)
-
-
-
Field Detail
-
BASE_PATH
static final String BASE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getListOfAccounts
@GetMapping org.springframework.http.ResponseEntity<List<AccountDetailsTO>> getListOfAccounts()
Return the list of accounts linked with the current customer.- Returns:
- : the list of accounts linked with the current customer.
-
getAccountDetailsById
@GetMapping("/{accountId}") org.springframework.http.ResponseEntity<AccountDetailsTO> getAccountDetailsById(@PathVariable("accountId") String accountId)
-
getBalances
@GetMapping("/{accountId}/balances") org.springframework.http.ResponseEntity<List<AccountBalanceTO>> getBalances(@PathVariable("accountId") String accountId)
-
getTransactionByDates
@GetMapping(path="/{accountId}/transactions", params={"dateFrom","dateTo"}) org.springframework.http.ResponseEntity<List<TransactionTO>> getTransactionByDates(@PathVariable("accountId") String accountId, @RequestParam(name="dateFrom",required=false) @DateTimeFormat(pattern="yyyy-MM-dd") LocalDate dateFrom, @RequestParam(name="dateTo") @DateTimeFormat(pattern="yyyy-MM-dd") LocalDate dateTo)
-
getTransactionByDatesPaged
@GetMapping(path="/{accountId}/transactions/page", params={"dateFrom","dateTo","page","size"}) org.springframework.http.ResponseEntity<CustomPageImpl<TransactionTO>> getTransactionByDatesPaged(@PathVariable(name="accountId") String accountId, @RequestParam(name="dateFrom",required=false) @DateTimeFormat(pattern="yyyy-MM-dd") LocalDate dateFrom, @RequestParam(name="dateTo") @DateTimeFormat(pattern="yyyy-MM-dd") LocalDate dateTo, @RequestParam("page") int page, @RequestParam("size") int size)
-
getTransactionById
@GetMapping("/{accountId}/transactions/{transactionId}") org.springframework.http.ResponseEntity<TransactionTO> getTransactionById(@PathVariable(name="accountId") String accountId, @PathVariable(name="transactionId") String transactionId)
-
fundsConfirmation
@PostMapping("/funds-confirmation") org.springframework.http.ResponseEntity<Boolean> fundsConfirmation(@RequestBody FundsConfirmationRequestTO request)
-
getAdditionalAccountInfo
@GetMapping(path="/info/{accountIdentifierType}/{accountIdentifier}") org.springframework.http.ResponseEntity<List<AdditionalAccountInformationTO>> getAdditionalAccountInfo(@PathVariable(name="accountIdentifierType") AccountIdentifierTypeTO accountIdentifierType, @PathVariable(name="accountIdentifier") String accountIdentifier)
-
-