in service/src/main/java/org/apache/fineract/cn/teller/service/rest/TellerOperationRestController.java [144:163]
ResponseEntity<Void> post(@PathVariable("tellerCode") final String tellerCode,
@RequestParam(value = "command", required = true) final String command) {
final Teller teller = this.verifyTeller(tellerCode);
this.verifyEmployee(teller);
switch (command.toUpperCase()) {
case "PAUSE":
if (!teller.getState().equals(Teller.State.ACTIVE.name())) {
throw ServiceException.badRequest("Teller {0} is not active.", tellerCode);
}
this.commandGateway.process(new PauseTellerCommand(tellerCode));
break;
default :
throw ServiceException.badRequest("Unknown command {0}", command);
}
return ResponseEntity.accepted().build();
}