Table of Contents

Class AddressDto

Namespace
CMS.Commerce
Assembly
CMS.Commerce.dll

Represents a structured address used in price calculation requests.

public record AddressDto
Inheritance
object
AddressDto
Extension Methods

Constructors

AddressDto()

public AddressDto()

AddressDto(AddressDto)

protected AddressDto(AddressDto original)

Parameters

original AddressDto

Properties

City

Name of the city or locality.

public string City { get; init; }

Property Value

string

Company

Company.

public string Company { get; init; }

Property Value

string

CountryID

Unique identifier for the country, mapped to CountryID.

public int CountryID { get; init; }

Property Value

int

Email

Customer email address.

public string Email { get; init; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

FirstName

Customer first name.

public string FirstName { get; init; }

Property Value

string

LastName

Customer last name.

public string LastName { get; init; }

Property Value

string

Line1

Primary street address or building number.

public string Line1 { get; init; }

Property Value

string

Line2

Additional address details, such as apartment, suite, or floor.

public string Line2 { get; init; }

Property Value

string

Phone

Customer phone number.

public string Phone { get; init; }

Property Value

string

StateID

Unique identifier for the state or province, mapped to StateID. Used for regional tax and shipping rules.

public int StateID { get; init; }

Property Value

int

Zip

Postal or ZIP code used for mail delivery and regional identification.

public string Zip { get; init; }

Property Value

string

Methods

Equals(AddressDto?)

public virtual bool Equals(AddressDto? other)

Parameters

other AddressDto

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(AddressDto?, AddressDto?)

public static bool operator ==(AddressDto? left, AddressDto? right)

Parameters

left AddressDto
right AddressDto

Returns

bool

operator !=(AddressDto?, AddressDto?)

public static bool operator !=(AddressDto? left, AddressDto? right)

Parameters

left AddressDto
right AddressDto

Returns

bool