public interface AccountMgmStaffResourceAPI
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCOUNT_ID |
static String |
BASE_PATH |
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>> |
getListOfAccounts()
Returns the list of accounts that belong to the same branch as STAFF user.
|
static final String BASE_PATH
static final String ACCOUNT_ID
static final String USER_ID
@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(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 depositedCopyright © 2019. All rights reserved.