class FundsConfirmationController implements FundsConfirmationApi {

    @Override
    public ResponseEntity checkAvailabilityOfFunds(ConfirmationOfFunds body, UUID xRequestID, String consentID, String authorization, String digest, String signature, byte[] tpPSignatureCertificate) {
        ResponseObject<FundsConfirmationResponse> responseObject = fundsConfirmationService.fundsConfirmation(fundsConfirmationModelMapper.mapToFundsConfirmationRequest(body, consentID));

        return responseObject.hasError()
                   ? responseErrorMapper.generateErrorResponse(responseObject.getError())
                   : responseMapper.ok(responseObject, fundsConfirmationModelMapper::mapToInlineResponse2003);
    }

}