Class InMemoryPurchaseOrder
This class is intended to be used internally by EPiServer. We do not support any backward compatibility on this.
Inheritance
Inherited Members
Namespace: EPiServer.Commerce.Order.Internal
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
public class InMemoryPurchaseOrder : IPurchaseOrder, IOrderGroup, IExtendedProperties, IOrderGroupCalculatedAmount
Constructors
InMemoryPurchaseOrder()
Initializes a new instance of an InMemoryPurchaseOrder.
Declaration
public InMemoryPurchaseOrder()
InMemoryPurchaseOrder(IPurchaseOrder)
Declaration
public InMemoryPurchaseOrder(IPurchaseOrder purchaseOrder)
Parameters
| Type | Name | Description |
|---|---|---|
| IPurchaseOrder | purchaseOrder |
Properties
Created
Gets the created date.
Declaration
public DateTime Created { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
Currency
Gets or sets the currency used in the order.
Declaration
public Currency Currency { get; set; }
Property Value
| Type | Description |
|---|---|
| Currency |
CustomerId
Gets the customer identifier.
Declaration
public Guid CustomerId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Guid |
ExpirationDate
Gets or sets the expiration date. Expiration date can be used for subscription type of orders.
Declaration
public DateTime? ExpirationDate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.DateTime> |
Forms
Gets the collection of order forms in the order group.
Declaration
public ICollection<IOrderForm> Forms { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<IOrderForm> |
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 order notes.
Declaration
public ICollection<IOrderNote> Notes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<IOrderNote> |
OrderLink
Gets or sets an instance of the class Mediachase.Commerce.Orders.OrderReference, which contains the unique identity for the order group, and the type of order group it represents (cart, purchase order, or payment plan)
Declaration
public OrderReference OrderLink { get; set; }
Property Value
| Type | Description |
|---|---|
| OrderReference |
OrderNumber
Gets or sets the order number.
Declaration
public string OrderNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
OrderStatus
Gets or sets the order 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 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 the property bag for dealing with custom meta fields.
Declaration
public Hashtable Properties { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Hashtable |
ReturnForms
Gets the return forms.
Declaration
public ICollection<IReturnOrderForm> ReturnForms { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<IReturnOrderForm> |
Explicit Interface Implementations
IOrderGroupCalculatedAmount.IsTaxTotalUpToDate
Gets or sets the flag indicating whether the TaxTotal is up-to-date.
Declaration
bool IOrderGroupCalculatedAmount.IsTaxTotalUpToDate { get; set; }
Returns
| Type | Description |
|---|---|
| System.Boolean |
IOrderGroupCalculatedAmount.TaxTotal
Gets or sets the tax total.
Declaration
decimal IOrderGroupCalculatedAmount.TaxTotal { get; set; }
Returns
| Type | Description |
|---|---|
| System.Decimal |