Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class AddressModel

Inheritance
System.Object
AddressModel
Implements
System.IEquatable<AddressModel>
Namespace: EPiServer.Commerce.UI.CustomerService.Models
Assembly: EPiServer.Commerce.UI.CustomerService.dll
Version: 14.26.0
Syntax
public class AddressModel : Object, IEquatable<AddressModel>

Constructors

AddressModel()

Declaration
public AddressModel()

AddressModel(IOrderAddress)

Declaration
public AddressModel(IOrderAddress address)
Parameters
Type Name Description
IOrderAddress address

AddressModel(CustomerAddress, CustomerContact)

Declaration
public AddressModel(CustomerAddress address, CustomerContact contact)
Parameters
Type Name Description
CustomerAddress address
CustomerContact contact

Properties

AddressId

Declaration
public string AddressId { get; set; }
Property Value
Type Description
System.String

City

Declaration
public string City { get; set; }
Property Value
Type Description
System.String

CountryCode

Declaration
public string CountryCode { get; set; }
Property Value
Type Description
System.String

CountryName

Declaration
public string CountryName { get; set; }
Property Value
Type Description
System.String

DaytimePhoneNumber

Declaration
public string DaytimePhoneNumber { get; set; }
Property Value
Type Description
System.String

DisplayName

Declaration
public string DisplayName { get; }
Property Value
Type Description
System.String

Email

Declaration
public string Email { get; set; }
Property Value
Type Description
System.String

ExtendedProperties

Declaration
public IEnumerable<PropertyItemModel> ExtendedProperties { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<PropertyItemModel>

FirstName

Declaration
public string FirstName { get; set; }
Property Value
Type Description
System.String

IsPreferredBillingAddress

Declaration
public bool IsPreferredBillingAddress { get; set; }
Property Value
Type Description
System.Boolean

IsPreferredShippingAddress

Declaration
public bool IsPreferredShippingAddress { get; set; }
Property Value
Type Description
System.Boolean

LastName

Declaration
public string LastName { get; set; }
Property Value
Type Description
System.String

Line1

Declaration
public string Line1 { get; set; }
Property Value
Type Description
System.String

Line2

Declaration
public string Line2 { get; set; }
Property Value
Type Description
System.String

Name

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

PostalCode

Declaration
public string PostalCode { get; set; }
Property Value
Type Description
System.String

RegionCode

Declaration
public string RegionCode { get; set; }
Property Value
Type Description
System.String

Methods

ConvertToOrderAddress(IOrderGroupFactory, IOrderGroup)

Declaration
public IOrderAddress ConvertToOrderAddress(IOrderGroupFactory orderGroupFactory, IOrderGroup orderGroup)
Parameters
Type Name Description
IOrderGroupFactory orderGroupFactory
IOrderGroup orderGroup
Returns
Type Description
IOrderAddress

Equals(AddressModel)

Declaration
public bool Equals(AddressModel other)
Parameters
Type Name Description
AddressModel other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

Implements

System.IEquatable<>