Class AddressDto
- Namespace
- Integrations.Contracts.Common
- Assembly
- Integrations.Contracts.dll
Postal address. Region is the state/province code; Country is ISO 3166-1 alpha-2.
public sealed record AddressDto : IEquatable<AddressDto>
- Inheritance
-
AddressDto
- Implements
- Inherited Members
- Extension Methods
Constructors
AddressDto(string?, string?, string?, string?, string?, string?, string, decimal?, decimal?)
Postal address. Region is the state/province code; Country is ISO 3166-1 alpha-2.
public AddressDto(string? Line1, string? Line2, string? Line3, string? City, string? Region, string? PostalCode, string Country = "US", decimal? Latitude = null, decimal? Longitude = null)
Parameters
Line1stringStreet address.
Line2stringSuite, unit or building.
Line3stringAdditional address line.
CitystringCity; required when there is no postal code.
RegionstringState or province code, e.g.
OH,ON,QC.PostalCodestringZIP or postal code; required when there is no city.
CountrystringISO 3166-1 alpha-2 code. Defaults to
US.Latitudedecimal?Latitude, when known (pins the jurisdiction precisely).
Longitudedecimal?Longitude, when known.
Properties
City
City; required when there is no postal code.
public string? City { get; init; }
Property Value
Country
ISO 3166-1 alpha-2 code. Defaults to US.
public string Country { get; init; }
Property Value
Latitude
Latitude, when known (pins the jurisdiction precisely).
public decimal? Latitude { get; init; }
Property Value
Line1
Street address.
public string? Line1 { get; init; }
Property Value
Line2
Suite, unit or building.
public string? Line2 { get; init; }
Property Value
Line3
Additional address line.
public string? Line3 { get; init; }
Property Value
Longitude
Longitude, when known.
public decimal? Longitude { get; init; }
Property Value
PostalCode
ZIP or postal code; required when there is no city.
public string? PostalCode { get; init; }
Property Value
Region
State or province code, e.g. OH, ON, QC.
public string? Region { get; init; }