Table of Contents

Class PostalAddress

Namespace
Rescope.Commerce.Core.Models
Assembly
Rescope.Commerce.Core.dll
public class PostalAddress
Inheritance
PostalAddress
Inherited Members

Constructors

PostalAddress()

public PostalAddress()

PostalAddress(PostalAddress)

public PostalAddress(PostalAddress address)

Parameters

address PostalAddress

Properties

AddressLine1

public string? AddressLine1 { get; set; }

Property Value

string

AddressLine2

public string? AddressLine2 { get; set; }

Property Value

string

City

public string? City { get; set; }

Property Value

string

CompanyName

public string? CompanyName { get; set; }

Property Value

string

Country

public string? Country { get; set; }

Property Value

string

FirstName

public string? FirstName { get; set; }

Property Value

string

LastName

public string? LastName { get; set; }

Property Value

string

PostCode

[RegularExpression("([Gg][Ii][Rr] 0[Aa]{2})|((([A-Za-z][0-9]{1,2})|(([A-Za-z][A-Ha-hJ-Yj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-Ha-hJ-Yj-y][0-9][A-Za-z]?))))\\s?[0-9][A-Za-z]{2})")]
public string? PostCode { get; set; }

Property Value

string

Telephone

public string? Telephone { get; set; }

Property Value

string

Methods

Apply(IMember)

Apply saved values from a member to this postal address (only if the relevant field has not yet been populated on this instance).

public void Apply(IMember user)

Parameters

user IMember