class RequestController extends AbstractController {

    @GetMapping("/requests/{id}/actions")
    public ModelAndView detailActions(final Principal principal, @PathVariable final Long id) {
        final RequestDto request = requestService.findRequest(id);
        if (request != null) {
            final IssueInformationDto issueInformation = request.getIssueInformation();
            return modelAndView().withObject("userClaimable", requestService.getUserClaimableResult(principal, id))
                                 .withObject("request", request)
                                 .withObject("isAuthenticated", getAsJson(securityContextService.isUserFullyAuthenticated()))
                                 .withObject("platformIssue", platformIssueService.findBy(issueInformation.getPlatform(), issueInformation.getPlatformId())
                                                                                  .orElseThrow(ResourceNotFoundException::new))
                                 .withView("pages/requests/detail-actions :: details")
                                 .build();
        } else {
            throw new ResourceNotFoundException();
        }
    }

    public  RequestController(final SecurityContextService securityContextService,
                             final RequestService requestService,
                             final PendingFundService pendingFundService,
                             final StatisticsService statisticsService,
                             final ProfileService profileService, FundService fundService,
                             final RefundService refundService,
                             final ClaimService claimService,
                             final FiatService fiatService,
                             final PlatformIssueService platformIssueService,
                             final ObjectMapper objectMapper,
                             final Mappers mappers);

}