Class OrderStateService
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
public class OrderStateService : ICacheStorage<string, OrderState>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
OrderStateService
- Implements
- Inherited Members
Methods
CanDelete(OrderState, bool)
public bool CanDelete(OrderState state, bool checkDefault)
Parameters
state
OrderStatecheckDefault
bool
Returns
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public void ClearCache()
Delete(OrderState)
public void Delete(OrderState state)
Parameters
state
OrderState
GetDefaultStateByFlow(OrderFlow)
public OrderState GetDefaultStateByFlow(OrderFlow flow)
Parameters
flow
OrderFlow
Returns
GetStateById(string)
public OrderState GetStateById(string id)
Parameters
id
string
Returns
GetStatesByFlow(OrderFlow)
public IEnumerable<OrderState> GetStatesByFlow(OrderFlow flow)
Parameters
flow
OrderFlow
Returns
GetStatesByOrderType(OrderType)
public IEnumerable<OrderState> GetStatesByOrderType(OrderType orderType)
Parameters
orderType
OrderType
Returns
IsStateInUse(OrderState)
public bool IsStateInUse(OrderState state)
Parameters
state
OrderState
Returns
Save(OrderState)
public void Save(OrderState state)
Parameters
state
OrderState