Class SerializableCart

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

This class represents a cart in the new cart system. It works with the new database model for cart.

Inheritance
System.Object
SerializableCart
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: EPiServer.Commerce.Order.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public class SerializableCart : ICart, IOrderGroup, IExtendedProperties, IDeepCloneable

Constructors

SerializableCart()

Creates an instance of SerializableCart.

Declaration
public SerializableCart()

SerializableCart(IObjectSerializerFactory)

Creates an instance of SerializableCart.

Declaration
public SerializableCart(IObjectSerializerFactory serializerFactory)
Parameters
Type Name Description
EPiServer.Framework.Serialization.IObjectSerializerFactory serializerFactory

The serializer factory.

Properties

Created

Gets or sets the modified date.

Declaration
public DateTime Created { get; set; }
Property Value
Type Description
System.DateTime

Currency

Gets or sets the currency used in the cart.

Declaration
public Currency Currency { get; set; }
Property Value
Type Description
Currency

CustomerId

Gets or sets the customer identifier.

Declaration
public Guid CustomerId { get; set; }
Property Value
Type Description
System.Guid

DefaultName

Gets the default name for the cart.

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

default name for the cart.

ExchangeName

Gets the exchange name for the cart.

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

exchange name for the cart.

Forms

Gets the collection of order forms in the cart.

Declaration
public ICollection<IOrderForm> Forms { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<IOrderForm>

Id

Gets or sets the cart identifier.

Declaration
public int Id { get; set; }
Property Value
Type Description
System.Int32

Market

Gets or sets the market.

Declaration
public IMarket Market { get; set; }
Property Value
Type Description
IMarket

Modified

Gets the modified date.

Declaration
public DateTime? Modified { get; }
Property Value
Type Description
System.Nullable<System.DateTime>

Name

Gets or sets the name.

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

Notes

Gets the cart notes.

Declaration
public ICollection<IOrderNote> Notes { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<IOrderNote>

Gets an instance of the class OrderReference, which contains the unique identity for the cart.

Declaration
public OrderReference OrderLink { get; }
Property Value
Type Description
OrderReference

OrderStatus

Gets or sets the cart status.

Declaration
public OrderStatus OrderStatus { get; set; }
Property Value
Type Description
OrderStatus

Organization

Gets or sets the organization.

Declaration
public Guid? Organization { get; set; }
Property Value
Type Description
System.Nullable<System.Guid>

Properties

Gets or sets the property bag for dealing with custom meta fields.

Declaration
public Hashtable Properties { get; set; }
Property Value
Type Description
System.Collections.Hashtable

WishListName

Gets the name for the Wishlist.

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

name for the Wishlist.

Methods

DeepClone()

Clones the cart.

Declaration
public object DeepClone()
Returns
Type Description
System.Object

The cloned cart.

Implements

Extension Methods