Class HouseholdIdentifier
A typed identifier used to look up and authorize access to household data. The type is determined by state configuration (e.g. Email, SNAP ID); the value comes from the authenticated user.
public sealed record HouseholdIdentifier
- Inheritance
-
objectHouseholdIdentifier
Constructors
HouseholdIdentifier(PreferredHouseholdIdType, string)
A typed identifier used to look up and authorize access to household data. The type is determined by state configuration (e.g. Email, SNAP ID); the value comes from the authenticated user.
public HouseholdIdentifier(PreferredHouseholdIdType Type, string Value)
Parameters
TypePreferredHouseholdIdTypeThe kind of identifier (e.g. Email, SnapId).
ValuestringThe identifier value (normalized for lookups).
Properties
Type
The kind of identifier (e.g. Email, SnapId).
public PreferredHouseholdIdType Type { get; init; }
Property Value
Value
The identifier value (normalized for lookups).
public string Value { get; init; }
Property Value
- string
Methods
Email(string)
Creates an identifier with Email.
public static HouseholdIdentifier Email(string value)
Parameters
valuestring
Returns
Phone(string)
Creates an identifier with Phone.
public static HouseholdIdentifier Phone(string value)
Parameters
valuestring
Returns
SnapId(string)
Creates an identifier with SnapId.
public static HouseholdIdentifier SnapId(string value)
Parameters
valuestring
Returns
Ssn(string)
Creates an identifier with Ssn.
public static HouseholdIdentifier Ssn(string value)
Parameters
valuestring
Returns
TanfId(string)
Creates an identifier with TanfId.
public static HouseholdIdentifier TanfId(string value)
Parameters
valuestring