Class OrderFlowService
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
public class OrderFlowService : ICacheStorage<int, OrderFlow>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
OrderFlowService
- Implements
- Inherited Members
Methods
CanDelete(OrderFlow)
public bool CanDelete(OrderFlow flow)
Parameters
flowOrderFlow
Returns
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public void ClearCache()
Delete(OrderFlow)
Deletes a given flow
public void Delete(OrderFlow flow)
Parameters
flowOrderFlow- The flow to delete
GetAllFlows()
Gets all flows
public IEnumerable<OrderFlow> GetAllFlows()
Returns
- IEnumerable<OrderFlow>
- All existing flows, regardless of order type.
GetDefaultFlowByOrderType(OrderType)
Gets default flow by order type
public OrderFlow GetDefaultFlowByOrderType(OrderType flowType)
Parameters
flowTypeOrderType
Returns
GetFlowById(int)
Gets a flow by id
public OrderFlow GetFlowById(int id)
Parameters
idint- The id of the flow
Returns
GetFlowsByOrderType(OrderType)
Gets all flows by order type
public IEnumerable<OrderFlow> GetFlowsByOrderType(OrderType orderType)
Parameters
orderTypeOrderType
Returns
Save(OrderFlow)
Saves a given flow
public void Save(OrderFlow flow)
Parameters
flowOrderFlow- The flow to save