public interface AccountRestAPI
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCOUNT_ID |
static String |
BASE_PATH |
static String |
DATE_FROM_QUERY_PARAM |
static String |
DATE_TO_QUERY_PARAM |
static String |
IBAN_QUERY_PARAM |
static String |
LOCAL_DATE_YYYY_MM_DD_FORMAT |
static String |
THE_ID_OF_THE_DEPOSIT_ACCOUNT_CANNOT_BE_EMPTY |
static String |
THE_ID_OF_THE_TRANSACTION_CANNOT_BE_EMPTY |
static String |
TRANSACTION_ID |
| 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<TransactionTO> |
getTransactionById(String accountId,
String transactionId) |
static final String BASE_PATH
static final String IBAN_QUERY_PARAM
static final String LOCAL_DATE_YYYY_MM_DD_FORMAT
static final String DATE_TO_QUERY_PARAM
static final String DATE_FROM_QUERY_PARAM
static final String ACCOUNT_ID
static final String TRANSACTION_ID
static final String THE_ID_OF_THE_DEPOSIT_ACCOUNT_CANNOT_BE_EMPTY
static final String THE_ID_OF_THE_TRANSACTION_CANNOT_BE_EMPTY
@GetMapping org.springframework.http.ResponseEntity<List<AccountDetailsTO>> getListOfAccounts() throws ForbiddenRestException
ForbiddenRestException@PostMapping org.springframework.http.ResponseEntity<Void> createDepositAccount(@RequestBody AccountDetailsTO accountDetailsTO) throws ForbiddenRestException, ConflictRestException
@GetMapping(value="/{accountId}")
org.springframework.http.ResponseEntity<AccountDetailsTO> getAccountDetailsById(@PathVariable(name="accountId")
String accountId)
throws NotFoundRestException,
ForbiddenRestException
@GetMapping(value="/{accountId}/balances")
org.springframework.http.ResponseEntity<List<AccountBalanceTO>> getBalances(@PathVariable(name="accountId")
String accountId)
throws NotFoundRestException,
ForbiddenRestException
@GetMapping(path="/{accountId}/transactions",
params={"dateFrom","dateTo"})
org.springframework.http.ResponseEntity<List<TransactionTO>> getTransactionByDates(@PathVariable(name="accountId")
String accountId,
@RequestParam(name="dateFrom") @Nullable @DateTimeFormat(pattern="yyyy-MM-dd")
LocalDate dateFrom,
@RequestParam(name="dateTo") @Nullable @DateTimeFormat(pattern="yyyy-MM-dd")
LocalDate dateTo)
throws NotFoundRestException,
ForbiddenRestException
@GetMapping(value="/{accountId}/transactions/{transactionId}")
org.springframework.http.ResponseEntity<TransactionTO> getTransactionById(@PathVariable(name="accountId")
String accountId,
@PathVariable(name="transactionId")
String transactionId)
throws NotFoundRestException,
ForbiddenRestException
@GetMapping(path="/query",
params="iban")
org.springframework.http.ResponseEntity<AccountDetailsTO> getAccountDetailsByIban(@RequestParam(name="iban")
String iban)
throws NotFoundRestException,
ForbiddenRestException
iban - : the ibanNotFoundRestExceptionForbiddenRestException@PostMapping(value="/funds-confirmation") org.springframework.http.ResponseEntity<Boolean> fundsConfirmation(@RequestBody FundsConfirmationRequestTO request) throws NotFoundRestException, ForbiddenRestException
Copyright © 2019. All rights reserved.