using System.ComponentModel.DataAnnotations; using Landmark.OLA.Models.Individuals.Enums; namespace Landmark.OLA.Models.Individuals { public class Income { [Required] //Nullable so that there is no default value public IncomeType? IncomeTypeCD { get; set; } [Required] [StringLength(60, MinimumLength = 1)] public string SourceName { get; set; } // required based on type? //Nullable so that there is no default value public AlimonyStatus? AlimonyStatus { get; set; } [Required] [Range(minimum: 0, maximum: 1000000000)] public decimal? AmountPerPeriod { get; set; } [Required] //Nullable so that there is no default value public Frequency? Frequency { get; set; } [Range(0, 168)] public int? HoursPerWeek { get; set; } [Required] // Must be Excluded when part of a previous employer //Nullable so that there is no default value public IncomeStatus? IncomeStatus { get; set; } } public enum IncomeStatus { IncomeStatus_Excluded, IncomeStatus_Included } public enum IncomeType { Alimony, Bonuses, ChildSupport, RetirementDisability, Dividends, Commissions, Other, Spouse, RentalProperty, Interest, SocialSecurity, IndividualAccount, Salary } public enum AlimonyStatus { CourtOrdered, OralUnderstanding, Written } }