Class AddressDto
Represents a structured address used in price calculation requests.
public record AddressDto
- Inheritance
-
objectAddressDto
- Extension Methods
Constructors
AddressDto()
public AddressDto()
AddressDto(AddressDto)
protected AddressDto(AddressDto original)
Parameters
originalAddressDto
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
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
otherAddressDto
Returns
- bool
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
- bool
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(AddressDto?, AddressDto?)
public static bool operator ==(AddressDto? left, AddressDto? right)
Parameters
leftAddressDtorightAddressDto
Returns
- bool
operator !=(AddressDto?, AddressDto?)
public static bool operator !=(AddressDto? left, AddressDto? right)
Parameters
leftAddressDtorightAddressDto
Returns
- bool