Table of Contents

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

Line1 string

Street address.

Line2 string

Suite, unit or building.

Line3 string

Additional address line.

City string

City; required when there is no postal code.

Region string

State or province code, e.g. OH, ON, QC.

PostalCode string

ZIP or postal code; required when there is no city.

Country string

ISO 3166-1 alpha-2 code. Defaults to US.

Latitude decimal?

Latitude, when known (pins the jurisdiction precisely).

Longitude decimal?

Longitude, when known.

Properties

City

City; required when there is no postal code.

public string? City { get; init; }

Property Value

string

Country

ISO 3166-1 alpha-2 code. Defaults to US.

public string Country { get; init; }

Property Value

string

Latitude

Latitude, when known (pins the jurisdiction precisely).

public decimal? Latitude { get; init; }

Property Value

decimal?

Line1

Street address.

public string? Line1 { get; init; }

Property Value

string

Line2

Suite, unit or building.

public string? Line2 { get; init; }

Property Value

string

Line3

Additional address line.

public string? Line3 { get; init; }

Property Value

string

Longitude

Longitude, when known.

public decimal? Longitude { get; init; }

Property Value

decimal?

PostalCode

ZIP or postal code; required when there is no city.

public string? PostalCode { get; init; }

Property Value

string

Region

State or province code, e.g. OH, ON, QC.

public string? Region { get; init; }

Property Value

string