33 lines
1.9 KiB
C#
33 lines
1.9 KiB
C#
using Landmark.OLA.Models.Assets.Enums;
|
|
|
|
namespace CRIF.ACTion.Loan.Assets
|
|
{
|
|
public static class PropertyValues
|
|
{
|
|
public static (int CollateralId, string PropertyType, string PropertySubType, string elementName) GetPropertyValues(VehicleType type)
|
|
{
|
|
switch (type)
|
|
{
|
|
case VehicleType.Automobile:
|
|
return (CrifConstants.CollateralIds[CrifConstants.Collateral.Vehicle], "Auto", "Automobile", "propertyAuto");
|
|
case VehicleType.Motorcycle:
|
|
return (CrifConstants.CollateralIds[CrifConstants.Collateral.Motorcycle], "Motorcycle", "NoneSelected", "propertyAuto");
|
|
case VehicleType.Boat:
|
|
return (CrifConstants.CollateralIds[CrifConstants.Collateral.Marine], "Marine", "NoneSelected", "propertyMarine");
|
|
case VehicleType.ATV:
|
|
return (CrifConstants.CollateralIds[CrifConstants.Collateral.ATV], "ATV", "NoneSelected", "propertyAuto");
|
|
case VehicleType.PWC:
|
|
return (CrifConstants.CollateralIds[CrifConstants.Collateral.Marine], "Marine", "NoneSelected", "propertyMarine");
|
|
case VehicleType.RecreationalVehicle:
|
|
return (CrifConstants.CollateralIds[CrifConstants.Collateral.RecreationalVehicle], "RV", "CampingTrailer", "propertyAuto"); //"CampingTrailer" is from CRIF example
|
|
case VehicleType.Snowmobile:
|
|
return (CrifConstants.CollateralIds[CrifConstants.Collateral.Snowmobile], "Snowmobile", "NoneSelected", "propertyAuto");
|
|
case VehicleType.TrailerMotorHome:
|
|
return (CrifConstants.CollateralIds[CrifConstants.Collateral.RecreationalVehicle], "RV", "Other", "propertyAuto"); //"Other" is from sprint requirements doc
|
|
default:
|
|
throw new NotImplementedException("This vehicle type is not implemented.");
|
|
}
|
|
}
|
|
}
|
|
}
|