Interface TppAccountsRestApi
-
public interface TppAccountsRestApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<AccountReport>accountReport(String accountId)Returns an account report by its ID if it belong to the same branch as STAFF user.org.springframework.http.ResponseEntity<Boolean>changeStatus(String accountId)org.springframework.http.ResponseEntity<Void>createAccount(String userId, DepositAccount account)org.springframework.http.ResponseEntity<Void>depositCash(String accountId, de.adorsys.ledgers.middleware.api.domain.payment.AmountTO amount)Returns a single account by its ID if it belong to the same branch as STAFF user.org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>downloadAccountTemplate()org.springframework.http.ResponseEntity<List<de.adorsys.ledgers.middleware.api.domain.account.AccountDetailsTO>>getAllAccounts()Returns the list of accounts that belong to the same branch as STAFF user.org.springframework.http.ResponseEntity<de.adorsys.ledgers.util.domain.CustomPageImpl<de.adorsys.ledgers.middleware.api.domain.account.AccountDetailsTO>>getAllAccounts(String queryParam, int page, int size)Returns the list of accounts that belong to the same branch as STAFF user, paged view.org.springframework.http.ResponseEntity<de.adorsys.ledgers.middleware.api.domain.account.AccountDetailsTO>getSingleAccount(String accountId)Returns a single account by its ID if it belong to the same branch as STAFF user.org.springframework.http.ResponseEntity<Void>updateAccountAccess(AccountAccess accountAccess)org.springframework.http.ResponseEntity<Void>updateCreditLimit(String accountId, BigDecimal creditAmount)
-
-
-
Field Detail
-
BASE_PATH
static final String BASE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
createAccount
@PostMapping org.springframework.http.ResponseEntity<Void> createAccount(@RequestParam("userId") String userId, @RequestBody DepositAccount account)
-
updateAccountAccess
@PutMapping("/access") org.springframework.http.ResponseEntity<Void> updateAccountAccess(@RequestBody AccountAccess accountAccess)
-
getAllAccounts
@GetMapping org.springframework.http.ResponseEntity<List<de.adorsys.ledgers.middleware.api.domain.account.AccountDetailsTO>> getAllAccounts()
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.
-
getAllAccounts
@GetMapping("/page") org.springframework.http.ResponseEntity<de.adorsys.ledgers.util.domain.CustomPageImpl<de.adorsys.ledgers.middleware.api.domain.account.AccountDetailsTO>> getAllAccounts(@RequestParam(value="queryParam",required=false,defaultValue="") String queryParam, @RequestParam(value="page",required=false,defaultValue="0") int page, @RequestParam(value="size",required=false,defaultValue="25") int size)Returns the list of accounts that belong to the same branch as STAFF user, paged view.- Returns:
- list of accounts that belongs to the same branch as staff user.
-
getSingleAccount
@GetMapping("/{accountId}") org.springframework.http.ResponseEntity<de.adorsys.ledgers.middleware.api.domain.account.AccountDetailsTO> getSingleAccount(@PathVariable("accountId") String accountId)Returns a single account by its ID if it belong to the same branch as STAFF user.- Returns:
- single account by its ID if it belong to the same branch as STAFF user.
-
accountReport
@GetMapping("/report/{accountId}") org.springframework.http.ResponseEntity<AccountReport> accountReport(@PathVariable("accountId") String accountId)Returns an account report by its ID if it belong to the same branch as STAFF user.- Returns:
- single account report by its ID if it belong to the same branch as STAFF user.
-
depositCash
@PostMapping("/{accountId}/deposit-cash") org.springframework.http.ResponseEntity<Void> depositCash(@PathVariable("accountId") String accountId, @RequestBody de.adorsys.ledgers.middleware.api.domain.payment.AmountTO amount)Returns a single account by its ID if it belong to the same branch as STAFF user.- Returns:
- single account by its ID if it belong to the same branch as STAFF user.
-
downloadAccountTemplate
@GetMapping("/example") org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> downloadAccountTemplate()
-
changeStatus
@PostMapping("/status") org.springframework.http.ResponseEntity<Boolean> changeStatus(@RequestParam("accountId") String accountId)
-
updateCreditLimit
@PutMapping("/credit") org.springframework.http.ResponseEntity<Void> updateCreditLimit(@RequestParam("accountId") String accountId, @RequestBody BigDecimal creditAmount)
-
-