Class CustomerContact

Contact class

Inheritance
System.Object
CustomerContact
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Customers
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public class CustomerContact : ContactEntity

Constructors

CustomerContact()

Initializes a new instance of the CustomerContact class.

Declaration
public CustomerContact()

Fields

TextProperties

Declaration
public static IEnumerable<string> TextProperties
Field Value
Type Description
System.Collections.Generic.IEnumerable<System.String>

Properties

ContactAddresses

Gets the contact addresses.

Declaration
public IEnumerable<CustomerAddress> ContactAddresses { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<CustomerAddress>

The contact addresses.

ContactCreditCards

Gets the contact credit cards.

Declaration
public IEnumerable<CreditCard> ContactCreditCards { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<CreditCard>

The contact credit cards.

ContactOrganization

Gets the contact organization.

Declaration
public Organization ContactOrganization { get; }
Property Value
Type Description
Organization

The contact organization.

CustomerGroup

Gets or sets the customer group.

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

The customer group.

EffectiveCustomerGroup

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

PreferredBillingAddress

Declaration
public CustomerAddress PreferredBillingAddress { get; set; }
Property Value
Type Description
CustomerAddress

PreferredShippingAddress

Declaration
public CustomerAddress PreferredShippingAddress { get; set; }
Property Value
Type Description
CustomerAddress

ProviderUserKey

Declaration
[Obsolete("Use Mediachase.BusinessFoundation.Data.Business.PrimaryKeyId instead. Will remain at least until November 2016.")]
public object ProviderUserKey { get; }
Property Value
Type Description
System.Object

Methods

AddContactAddress(CustomerAddress)

Adds the contact address.

Declaration
public void AddContactAddress(CustomerAddress address)
Parameters
Type Name Description
CustomerAddress address

The address.

AddCreditCard(CreditCard)

Adds the credit card.

Declaration
public void AddCreditCard(CreditCard creditCard)
Parameters
Type Name Description
CreditCard creditCard

The credit card.

CreateInstance()

Creates the instance.

Declaration
public static CustomerContact CreateInstance()
Returns
Type Description
CustomerContact

CreateInstance(IPrincipal)

Declaration
public static CustomerContact CreateInstance(IPrincipal principal)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal
Returns
Type Description
CustomerContact

CreateInstance(IPrincipal, String, String)

Declaration
public static CustomerContact CreateInstance(IPrincipal principal, string password, string email)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal
System.String password
System.String email
Returns
Type Description
CustomerContact

CreateInstance(MembershipUser)

Creates the instance.

Declaration
public static CustomerContact CreateInstance(MembershipUser user)
Parameters
Type Name Description
System.Web.Security.MembershipUser user

The user.

Returns
Type Description
CustomerContact

DeleteContactAddress(CustomerAddress)

Deletes the contact address.

Declaration
public void DeleteContactAddress(CustomerAddress address)
Parameters
Type Name Description
CustomerAddress address

The address.

DeleteCreditCard(CreditCard)

Deletes the credit card.

Declaration
public void DeleteCreditCard(CreditCard creditCard)
Parameters
Type Name Description
CreditCard creditCard

The credit card.

DeleteCustomerContactOnly()

Deletes the customer contact only.

Declaration
public void DeleteCustomerContactOnly()

DeleteWithAllDependents()

Deletes the customer contact with all depends.

Declaration
public void DeleteWithAllDependents()

SaveChanges()

Saves the changes.

Declaration
public CustomerContact SaveChanges()
Returns
Type Description
CustomerContact

UpdateContactAddress(CustomerAddress)

Updates the contact address.

Declaration
public void UpdateContactAddress(CustomerAddress address)
Parameters
Type Name Description
CustomerAddress address

The address.

UpdateCreditCard(CreditCard)

Updates the credit card.

Declaration
public void UpdateCreditCard(CreditCard creditCard)
Parameters
Type Name Description
CreditCard creditCard

The credit card.

Extension Methods