/**
   * Consulta las lineas de credito 24x7 del cliente, solo se puede tener una linea por cliente
   *
   * @param request Datos de entrada de la peticion, se recibe un json
   * @param response Datos de salida de la petcion
   * @return regresa la respuesta del servicio en formato json
   */
  public ModelAndView consultarDatosLinea24X7(
      HttpServletRequest request, HttpServletResponse response) {

    ClienteBean cliente = (ClienteBean) request.getSession().getAttribute("cliente");
    JSONResponseBean responseBean = new JSONResponseBean();
    JSONObject jsonObject = new JSONObject();
    CreditoConsumoBean linea = null;

    try {
      linea = lineas24x7Service.consultarDatosLinea24X7("", cliente);

      jsonObject.put("autorizado", linea.getSaldos().getMontoAutorizado());
      jsonObject.put("disponible", linea.getSaldos().getMontoDisponible());
      jsonObject.put("vigencia", linea.getFechas().getFechaVencimientoLinea());
      jsonObject.put("credito", linea.getNumCredito());
      jsonObject.put("montoMinimo", linea.getSaldos().getMontoMinimo());
      jsonObject.put("entidad", linea.getProducto().getIdEntidad());

      responseBean.setError(ErrorBean.SUCCESS);
      responseBean.setDto(JSONObject.fromBean(jsonObject).toString());
    } catch (BusinessException e) {
      responseBean.setError(e.getError());
    }

    return getResponseView(responseBean);
  }