first commit

This commit is contained in:
Zeeshaun
2026-03-11 11:18:25 -05:00
commit f3cb730f3b
472 changed files with 53651 additions and 0 deletions
@@ -0,0 +1,13 @@
namespace Landmark.OLA.Models.Individuals.Enums
{
public enum EmploymentTypeOption
{
NoneSelected,
Contract,
FullTime,
PartTime,
SelfEmployed,
Retired,
Temporary
}
}
@@ -0,0 +1,16 @@
namespace Landmark.OLA.Models.Individuals.Enums
{
/// <summary>
/// EthnicityEnum from CRIF's commonSchema.xsd trimmed down to HMDA form options
/// </summary>
public enum Ethnicity
{
HispanicOrLatino,
NotHispanicOrLatino,
Mexican,
PuertoRican,
Cuban,
OtherHispanicLatino,
NotProvided
}
}
@@ -0,0 +1,13 @@
namespace Landmark.OLA.Models.Individuals.Enums
{
public enum Frequency
{
Annually,
SemiAnnually,
Monthly,
SemiMonthly,
TwoWeeks,
Weekly,
Hourly
}
}
@@ -0,0 +1,9 @@
namespace Landmark.OLA.Models.Individuals.Enums
{
public enum LanguageOption
{
//A language value is required by the CRIF API
//TODO #229: Accept other values here?
English,
}
}
@@ -0,0 +1,8 @@
namespace Landmark.OLA.Models.Individuals.Enums
{
public enum PhoneType
{
Mobile,
Home,
}
}
@@ -0,0 +1,26 @@
namespace Landmark.OLA.Models.Individuals.Enums
{
/// <summary>
/// RaceEnum from CRIF's commonSchema.xsd trimmed down to HMDA form options
/// </summary>
public enum Race
{
AmericanIndianAlaskaNative,
Asian,
NativeHawaiian,
BlackOrAfricanAmerican,
White,
AsianIndian,
Chinese,
Filipino,
Japanese,
Korean,
Vietnamese,
OtherAsian,
Hawaiian,
GuamanianChamorro,
Samoan,
OtherPacificIslander,
NotProvided
}
}
@@ -0,0 +1,12 @@
namespace Landmark.OLA.Models.Individuals.Enums
{
/// <summary>
/// Values from HMDA form
/// </summary>
public enum Sex
{
Female,
Male,
NotProvided,
}
}
@@ -0,0 +1,13 @@
namespace Landmark.OLA.Models.Individuals.Enums
{
public enum Suffix
{
II,
III,
IV,
V,
Jr,
Sr
}
}
@@ -0,0 +1,45 @@
namespace Landmark.OLA.Models.Individuals.Enums
{
public class SuffixType
{
public string CD { get; set; }
public string Name { get; set; }
public Suffix SuffixEnum { get; set; }
public SuffixType(string cd, string name, Suffix suffix)
{
SuffixEnum = suffix;
CD = cd;
Name = name;
}
}
public sealed class SuffixMap
{
public SuffixMap() {}
public static readonly SuffixType II = new("2", "II", Suffix.II);
public static readonly SuffixType III = new("3", "III", Suffix.III);
public static readonly SuffixType IV = new("4", "IV", Suffix.IV);
public static readonly SuffixType V = new("5", "V", Suffix.V);
public static readonly SuffixType Jr = new("J", "Jr.", Suffix.Jr);
public static readonly SuffixType Sr = new("S", "Sr.", Suffix.Sr);
public static readonly SuffixType[] map = [II, III, IV, V, Jr, Sr];
public static SuffixType GetSuffixType(Suffix? suffix)
{
SuffixType match = null;
foreach (SuffixType suff in map)
{
if (suff.SuffixEnum == suffix)
{
match = suff;
}
}
return match;
}
}
}