Interface AccountRestAPI


  • public interface AccountRestAPI
    • Method Detail

      • getListOfAccounts

        @GetMapping
        org.springframework.http.ResponseEntity<List<AccountDetailsTO>> getListOfAccounts()
        Return the list of accounts linked with the current customer.
        Returns:
        : the list of accounts linked with the current customer.
      • getAccountDetailsById

        @GetMapping("/{accountId}")
        org.springframework.http.ResponseEntity<AccountDetailsTO> getAccountDetailsById​(@PathVariable("accountId")
                                                                                        String accountId)
      • getBalances

        @GetMapping("/{accountId}/balances")
        org.springframework.http.ResponseEntity<List<AccountBalanceTO>> getBalances​(@PathVariable("accountId")
                                                                                    String accountId)
      • getTransactionByDates

        @GetMapping(path="/{accountId}/transactions",
                    params={"dateFrom","dateTo"})
        org.springframework.http.ResponseEntity<List<TransactionTO>> getTransactionByDates​(@PathVariable("accountId")
                                                                                           String accountId,
                                                                                           @RequestParam(name="dateFrom",required=false) @DateTimeFormat(pattern="yyyy-MM-dd")
                                                                                           LocalDate dateFrom,
                                                                                           @RequestParam(name="dateTo") @DateTimeFormat(pattern="yyyy-MM-dd")
                                                                                           LocalDate dateTo)
      • getTransactionByDatesPaged

        @GetMapping(path="/{accountId}/transactions/page",
                    params={"dateFrom","dateTo","page","size"})
        org.springframework.http.ResponseEntity<CustomPageImpl<TransactionTO>> getTransactionByDatesPaged​(@PathVariable(name="accountId")
                                                                                                          String accountId,
                                                                                                          @RequestParam(name="dateFrom",required=false) @DateTimeFormat(pattern="yyyy-MM-dd")
                                                                                                          LocalDate dateFrom,
                                                                                                          @RequestParam(name="dateTo") @DateTimeFormat(pattern="yyyy-MM-dd")
                                                                                                          LocalDate dateTo,
                                                                                                          @RequestParam("page")
                                                                                                          int page,
                                                                                                          @RequestParam("size")
                                                                                                          int size)
      • getTransactionById

        @GetMapping("/{accountId}/transactions/{transactionId}")
        org.springframework.http.ResponseEntity<TransactionTO> getTransactionById​(@PathVariable(name="accountId")
                                                                                  String accountId,
                                                                                  @PathVariable(name="transactionId")
                                                                                  String transactionId)
      • fundsConfirmation

        @PostMapping("/funds-confirmation")
        org.springframework.http.ResponseEntity<Boolean> fundsConfirmation​(@RequestBody
                                                                           FundsConfirmationRequestTO request)
      • getAdditionalAccountInfo

        @GetMapping(path="/info/{accountIdentifierType}/{accountIdentifier}")
        org.springframework.http.ResponseEntity<List<AdditionalAccountInformationTO>> getAdditionalAccountInfo​(@PathVariable(name="accountIdentifierType")
                                                                                                               AccountIdentifierTypeTO accountIdentifierType,
                                                                                                               @PathVariable(name="accountIdentifier")
                                                                                                               String accountIdentifier)