Interface AccountMgmStaffResourceAPI
-
public interface AccountMgmStaffResourceAPI
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Void>changeCreditLimit(String accountId, BigDecimal creditLimit)org.springframework.http.ResponseEntity<Boolean>changeStatus(String accountId)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 userorg.springframework.http.ResponseEntity<Void>depositCash(String accountId, AmountTO amount)Operation deposits cash to the deposit accountorg.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)
-
-
-
Field Detail
-
BASE_PATH
static final String BASE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAccountsByIbanAndCurrency
@GetMapping("/acc/acc") org.springframework.http.ResponseEntity<List<AccountDetailsTO>> getAccountsByIbanAndCurrency(@RequestParam(name="ibanParam") String iban, @RequestParam(name="currency",required=false,defaultValue="") String currency)
-
createDepositAccountForUser
@PostMapping org.springframework.http.ResponseEntity<Void> createDepositAccountForUser(@RequestParam(name="userId") String userId, @RequestBody AccountDetailsTO accountDetailsTO)
Creates a new deposit account for a user specified by ID Account is created for the same branch as Staff user- Parameters:
userId- user for who account is createdaccountDetailsTO- account details- Returns:
- Void
-
getListOfAccounts
@GetMapping org.springframework.http.ResponseEntity<List<AccountDetailsTO>> getListOfAccounts()
Returns the list of accounts that belong to the same branch as STAFF user.- Returns:
- list of accounts that belongs to the same branch as staff user.
-
getListOfAccountsPaged
@GetMapping(path="/page") org.springframework.http.ResponseEntity<CustomPageImpl<AccountDetailsTO>> getListOfAccountsPaged(@RequestParam(value="queryParam",defaultValue="",required=false) String queryParam, @RequestParam("page") int page, @RequestParam("size") int size)
-
getAccountDetailsById
@GetMapping("/{accountId}") org.springframework.http.ResponseEntity<AccountDetailsTO> getAccountDetailsById(@PathVariable("accountId") String accountId)
-
depositCash
@PostMapping("/{accountId}/cash") org.springframework.http.ResponseEntity<Void> depositCash(@PathVariable("accountId") String accountId, @RequestBody AmountTO amount)Operation deposits cash to the deposit account- Parameters:
accountId- Account ID in Ledgersamount- Amount to be deposited- Returns:
- Void
-
getExtendedAccountDetailsById
@GetMapping("/{accountId}/extended") org.springframework.http.ResponseEntity<AccountReportTO> getExtendedAccountDetailsById(@PathVariable("accountId") String accountId)
-
changeStatus
@PostMapping("/{accountId}/status") org.springframework.http.ResponseEntity<Boolean> changeStatus(@PathVariable("accountId") String accountId)
-
changeCreditLimit
@PutMapping("/{accountId}/credit") org.springframework.http.ResponseEntity<Void> changeCreditLimit(@PathVariable("accountId") String accountId, @RequestBody BigDecimal creditLimit)
-
-