187 lines
No EOL
6.5 KiB
C#
187 lines
No EOL
6.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web.Http;
|
|
using ULA.Davivienda.PrendarioModel.Prendario;
|
|
|
|
namespace ULA.Davivienda.PrestamoAutos.Json
|
|
{
|
|
#region Request
|
|
public class JsonCotizacionRequest : Cotizacion
|
|
{
|
|
public List<JsonRubro> Rubros { get; set; }
|
|
public int? IdCarroceriaVehiculo { get; set; }
|
|
}
|
|
|
|
public class JsonRubro
|
|
{
|
|
public int IdTipoRubroSeguro { get; set; }
|
|
public int IdRubroSeguro { get; set; }
|
|
public string Descripcion { get; set; }
|
|
public List<RubroSeguro> RubroSeguro { get; set; }
|
|
}
|
|
#endregion
|
|
|
|
#region Response
|
|
public class JsonResponseBase
|
|
{
|
|
public string CodigoRespuesta { get; set; }
|
|
public string DescripcionRespuesta { get; set; }
|
|
public int IdCotizacion { get; set; }
|
|
public int IdSolicitud { get; set; }
|
|
public int Incidente { get; set; }
|
|
public List<string> Alertas { get; set; }
|
|
public JsonResponseBase()
|
|
{
|
|
Alertas = new List<string>();
|
|
}
|
|
}
|
|
|
|
public class ResumenCotizacion
|
|
{
|
|
public int? Periodo { get; set; }
|
|
public int? Anno { get; set; }
|
|
public double? CuotaSinSeguro { get; set; }
|
|
public double? CuotaSeguroVehiculo { get; set; }
|
|
public double? CuotaFinal { get; set; }
|
|
public decimal? TasaInteres { get; set; }
|
|
}
|
|
|
|
public class JsonCotizacionResponse : JsonResponseBase
|
|
{
|
|
public ICollection<JsonPlanPago> planPago { get; set; }
|
|
public List<SegurosCotizacion> Seguros { get; set; }
|
|
public List<SegurosCotizacion> SegurosEnCotizacion { get; set; }
|
|
public List<ResumenCotizacion> DesgloseCuota { get; set; }
|
|
public List<ResumenCotizacion> DesgloseTabla { get; set; }
|
|
public double? MontoCredito { get; set; }
|
|
public double? MontoCreditoSinSeguros { get; set; }
|
|
|
|
public double? MontoComision { get; set; }
|
|
public double? MontoDesembolso { get; set; }
|
|
public double? TipoCambio { get; set; }
|
|
public double? IngresogReqDol { get; set; }
|
|
public double? IngresogReqCol { get; set; }
|
|
public double MontoTraspaso { get; set; }
|
|
public double MontoConstitucionPrenda { get; set; }
|
|
|
|
public string EtiquetaPrimerPeriodo { get; set; }
|
|
public string EtiquetaSegundoPeriodo { get; set; }
|
|
|
|
public string EnunciadoCondiciones { get; set; }
|
|
}
|
|
|
|
public class JsonDocumentoResponse : JsonResponseBase
|
|
{
|
|
public string url { get; set; }
|
|
public string path { get; set; }
|
|
}
|
|
|
|
public class JsonDatosCotizacion : Cotizacion
|
|
{
|
|
public int IdSolicitud { get; set; }
|
|
public string Process { get; set; }
|
|
public string DescripcionProgramaCrediticio { get; set; }
|
|
public string DescripcionCampanna { get; set; }
|
|
public string DescripcionMoneda { get; set; }
|
|
public string DescripcionTipoVehiculo { get; set; }
|
|
public string DescripcionAnnoVehiculo { get; set; }
|
|
public string DescripcionAgenciaVehiculo { get; set; }
|
|
public string DescripcionSubAgenciaVehiculo { get; set; }
|
|
public string DescripcionMarcaVehiculo { get; set; }
|
|
public string DescripcionEstiloVehiculo { get; set; }
|
|
public string DescripcionTipoFuenteIngreso { get; set; }
|
|
public string DescripcionUsoVehiculo { get; set; }
|
|
public string DescripcionTipoIdentificacion { get; set; }
|
|
public string EnunciadoCondiciones { get; set; }
|
|
public bool SeguroAuto { get; set; }
|
|
public bool SeguroVida { get; set; }
|
|
public bool SeguroDesempleo { get; set; }
|
|
public string CategoriaRiesgo { get; set; }
|
|
public string ConclusionJustificacion { get; set; }
|
|
public int? IdSucursal { get; set; }
|
|
public string DescripcionSucursal { get; set; }
|
|
public List<JsonCondicionesTasaCotizacion> CondicionesTasaCotizacionAdapted { get; set; }
|
|
public Garantia Garantia { get; set; }
|
|
|
|
public int? MaximoPeriodoMesesGracia { get; set; }
|
|
|
|
|
|
public JsonDatosCotizacion()
|
|
{
|
|
SeguroAuto = false;
|
|
SeguroVida = false;
|
|
SeguroDesempleo = false;
|
|
}
|
|
}
|
|
|
|
public class JsonDefaultPolizasAdicionales : JsonResponseBase
|
|
{
|
|
public bool SeguroAuto { get; set; }
|
|
public bool SeguroVida { get; set; }
|
|
public bool SeguroDesempleo { get; set; }
|
|
public List<SegurosCotizacion> SegurosCotizacion { get; set; }
|
|
public JsonDefaultPolizasAdicionales()
|
|
{
|
|
SeguroAuto = false;
|
|
SeguroVida = false;
|
|
SeguroDesempleo = false;
|
|
SegurosCotizacion = new List<SegurosCotizacion>();
|
|
}
|
|
}
|
|
|
|
public class JsonCondicionesTasaCotizacion : CondicionesTasaCotizacion
|
|
{
|
|
public string DescripcionTipoTasa { get; set; }
|
|
public string DescripcionTipoTasaReferencia { get; set; }
|
|
public string DescripcionPeriodoReajuste { get; set; }
|
|
public decimal? TasaInteresFinal { get; set; }
|
|
}
|
|
#endregion
|
|
|
|
public class DetalleProgramaCrediticio
|
|
{
|
|
public ProgramaCrediticioCondiciones ProgramaCrediticio { get; set; }
|
|
}
|
|
|
|
public class JsonBusqueda : JsonResponseBase
|
|
{
|
|
public List<JsonBusquedaSolicitud> Cotizaciones { get; set; }
|
|
}
|
|
|
|
public class JsonBusquedaSolicitud
|
|
{
|
|
public int IdCotizacion { get; set; }
|
|
public int IdSolicitud { get; set; }
|
|
public string Solicitante { get; set; }
|
|
public string Identificacion { get; set; }
|
|
public string Vehiculo { get; set; }
|
|
public decimal? ValorAutomovil { get; set; }
|
|
public DateTime FechaCotizacion { get; set; }
|
|
}
|
|
|
|
public class JsonEnviarCotizacion
|
|
{
|
|
public int IdCotizacion { get; set; }
|
|
public string UserId { get; set; }
|
|
public string TaskId { get; set; }
|
|
public string Process { get; set; }
|
|
public string Step { get; set; }
|
|
public int Incident { get; set; }
|
|
public string IdDecision { get; set; }
|
|
public int? IdMotivo { get; set; }
|
|
public int? IdSolicitud { get; set; }
|
|
}
|
|
|
|
public class JsonConsultarTipoCambio
|
|
{
|
|
public string CodigoRespuesta { get; set; }
|
|
public string DescripcionRespuesta { get; set; }
|
|
|
|
public string Usuario { get; set; }
|
|
public string Proceso { get; set; }
|
|
|
|
public decimal TipoCambioVenta { get; set; }
|
|
public decimal TipoCambioCompra { get; set; }
|
|
}
|
|
} |