Interface AccountMgmStaffResourceAPI


  • public interface AccountMgmStaffResourceAPI
    • 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 created
        accountDetailsTO - 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 Ledgers
        amount - 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)