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 Organization

Represents organization.

Inheritance
System.Object
Organization
Namespace: Mediachase.Commerce.Customers
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public class Organization : OrganizationEntity

Constructors

Organization()

Declaration
public Organization()

Fields

TextProperties

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

Properties

Addresses

Gets the addresses.

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

The addresses.

BusinessCategory

Gets or sets the business category.

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

The business category.

ChildOrganizations

Gets the child organizations.

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

The child organizations.

Contacts

Gets the contacts.

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

The contacts.

CreditCards

Gets the credit cards.

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

The credit cards.

OrganizationType

Gets or sets the type of the organization.

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

The type of the organization.

OrgCustomerGroup

Gets or sets the customer group.

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

The customer group.

Parent

Gets or sets the parent.

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

The parent.

PrimaryContact

Gets or sets the primary contact.

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

The primary contact.

Methods

CheckParentOrganizationValid(PrimaryKeyId, PrimaryKeyId)

Checks the parent organization valid.

Declaration
public static bool CheckParentOrganizationValid(PrimaryKeyId orgId, PrimaryKeyId parentId)
Parameters
Type Name Description
PrimaryKeyId orgId

The org id.

PrimaryKeyId parentId

The parent id.

Returns
Type Description
System.Boolean

CreateInstance()

Creates the instance.

Declaration
public static Organization CreateInstance()
Returns
Type Description
Organization

DeleteOrganizationOnly()

Deletes the organization only.

Declaration
public void DeleteOrganizationOnly()

DeleteWithAllDepends()

Deletes the organization with all depends.

Declaration
public void DeleteWithAllDepends()

IsParentOrganizationValid()

Determines whether [is parent organization valid].

Declaration
public bool IsParentOrganizationValid()
Returns
Type Description
System.Boolean

true if [is parent organization valid]; otherwise, false.

SaveChanges()

Saves the changes for Organization.

Declaration
public Organization SaveChanges()
Returns
Type Description
Organization

Extension Methods