Table of Contents

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

flow OrderFlow

Returns

bool

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

flow OrderFlow
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

flowType OrderType

Returns

OrderFlow

GetFlowById(int)

Gets a flow by id
public OrderFlow GetFlowById(int id)

Parameters

id int
The id of the flow

Returns

OrderFlow
An instance of OrderFlow, if found; otherwise, null.

GetFlowsByOrderType(OrderType)

Gets all flows by order type
public IEnumerable<OrderFlow> GetFlowsByOrderType(OrderType orderType)

Parameters

orderType OrderType

Returns

IEnumerable<OrderFlow>

Save(OrderFlow)

Saves a given flow
public void Save(OrderFlow flow)

Parameters

flow OrderFlow
The flow to save
To top