Table of Contents

Class UpdateAddressRequest

Namespace
SEBT.Portal.Api.Models.Household
Assembly
SEBT.Portal.Api.dll

Request model for updating a household's mailing address.

public record UpdateAddressRequest
Inheritance
object
UpdateAddressRequest

Properties

AcceptEnteredAddress

Persist the submitted address even when verification suggests an alternative (user chose entered address).

public bool? AcceptEnteredAddress { get; init; }

Property Value

bool?

City

City name.

[Required(ErrorMessage = "City is required.")]
public required string City { get; init; }

Property Value

string

PostalCode

5- or 9-digit ZIP code (e.g., "20001" or "20001-1234").

[Required(ErrorMessage = "Postal code is required.")]
[RegularExpression("^\\d{5}(-\\d{4})?$", ErrorMessage = "Postal code must be a valid 5- or 9-digit ZIP code.")]
public required string PostalCode { get; init; }

Property Value

string

State

State or territory name.

[Required(ErrorMessage = "State is required.")]
public required string State { get; init; }

Property Value

string

StreetAddress1

Street address line 1 (e.g., "123 Main St NW").

[Required(ErrorMessage = "Street address is required.")]
public required string StreetAddress1 { get; init; }

Property Value

string

StreetAddress2

Street address line 2 (e.g., apartment, suite). Optional.

public string? StreetAddress2 { get; init; }

Property Value

string