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
Inherited Members
Namespace: EPiServer.Commerce.Order.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
public class SerializableCart : ICart, IOrderGroup, IExtendedProperties, IDeepCloneable, IOrderGroupCalculatedAmount
Constructors
SerializableCart()
Creates an instance of SerializableCart.
Declaration
public SerializableCart()
SerializableCart(ICollection<SerializableOrderForm>, ICollection<SerializableNote>)
Creates an instance of SerializableCart. This constructor is required for the JSON deserializer to be able to identify concrete classes to use when deserializing the interface properties.
Declaration
public SerializableCart(ICollection<SerializableOrderForm> forms, ICollection<SerializableNote> notes)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<SerializableOrderForm> | forms | The order form collection. |
System.Collections.Generic.ICollection<SerializableNote> | notes | The order note collection. |
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 |
IsTaxTotalUpToDate
Gets or sets the flag indicating whether the TaxTotal is up-to-date.
Declaration
public bool IsTaxTotalUpToDate { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Market
Gets or sets the market.
Declaration
[Obsolete("This property is no longer used. Use IMarketService to get the market from MarketId instead. Will remain at least until May 2019.")]
public IMarket Market { get; set; }
Property Value
Type | Description |
---|---|
IMarket |
MarketId
Gets or sets the market id.
Declaration
public MarketId MarketId { get; set; }
Property Value
Type | Description |
---|---|
MarketId |
MarketName
Gets or sets the market name.
Declaration
public string MarketName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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> |
OrderLink
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> |
PricesIncludeTax
Gets or sets the value indicating if the price of the order group includes tax or not.
Declaration
public bool PricesIncludeTax { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 |
TaxTotal
Gets or sets the tax total.
Declaration
public decimal TaxTotal { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
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. |