public interface AccountMgmStaffResourceAPI
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCOUNT_ID |
static String |
BASE_PATH |
static String |
PAGE |
static String |
QUERY_PARAM |
static String |
SIZE |
static String |
USER_ID |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Void> |
createDepositAccountForUser(String userId,
AccountDetailsTO accountDetailsTO)
Creates a new deposit account for a user specified by ID
Account is created for the same branch as Staff user
|
org.springframework.http.ResponseEntity<Void> |
depositCash(String accountId,
AmountTO amount)
Operation deposits cash to the deposit account
|
org.springframework.http.ResponseEntity<AccountDetailsTO> |
getAccountDetailsById(String accountId) |
org.springframework.http.ResponseEntity<List<AccountDetailsTO>> |
getAccountsByIbanAndCurrency(String iban,
String currency) |
org.springframework.http.ResponseEntity<AccountReportTO> |
getExtendedAccountDetailsById(String accountId) |
org.springframework.http.ResponseEntity<List<AccountDetailsTO>> |
getListOfAccounts()
Returns the list of accounts that belong to the same branch as STAFF user.
|
org.springframework.http.ResponseEntity<CustomPageImpl<AccountDetailsTO>> |
getListOfAccountsPaged(String queryParam,
int page,
int size) |
static final String BASE_PATH
static final String ACCOUNT_ID
static final String USER_ID
static final String QUERY_PARAM
static final String PAGE
static final String SIZE
@GetMapping(value="/acc/acc") org.springframework.http.ResponseEntity<List<AccountDetailsTO>> getAccountsByIbanAndCurrency(@RequestParam(name="iban") String iban, @RequestParam(name="currency",required=false,defaultValue="") String currency)
@PostMapping org.springframework.http.ResponseEntity<Void> createDepositAccountForUser(@RequestParam(name="userId") String userId, @RequestBody AccountDetailsTO accountDetailsTO)
userId - user for who account is createdaccountDetailsTO - account details@GetMapping org.springframework.http.ResponseEntity<List<AccountDetailsTO>> getListOfAccounts()
@GetMapping(path="/page") org.springframework.http.ResponseEntity<CustomPageImpl<AccountDetailsTO>> getListOfAccountsPaged(@RequestParam(value="queryParam",defaultValue="",required=false) String queryParam, @RequestParam(value="page") int page, @RequestParam(value="size") int size)
@GetMapping(value="/{accountId}")
org.springframework.http.ResponseEntity<AccountDetailsTO> getAccountDetailsById(@PathVariable(value="accountId")
String accountId)
@PostMapping(value="/{accountId}/cash")
org.springframework.http.ResponseEntity<Void> depositCash(@PathVariable(value="accountId")
String accountId,
@RequestBody
AmountTO amount)
accountId - Account ID in Ledgersamount - Amount to be deposited@GetMapping(value="/{accountId}/extended")
org.springframework.http.ResponseEntity<AccountReportTO> getExtendedAccountDetailsById(@PathVariable(value="accountId")
String accountId)
Copyright © 2020. All rights reserved.