Table of Contents

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 OrderState
checkDefault bool

Returns

bool

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

OrderState

GetStateById(string)

public OrderState GetStateById(string id)

Parameters

id string

Returns

OrderState

GetStatesByFlow(OrderFlow)

public IEnumerable<OrderState> GetStatesByFlow(OrderFlow flow)

Parameters

flow OrderFlow

Returns

IEnumerable<OrderState>

GetStatesByOrderType(OrderType)

public IEnumerable<OrderState> GetStatesByOrderType(OrderType orderType)

Parameters

orderType OrderType

Returns

IEnumerable<OrderState>

IsStateInUse(OrderState)

public bool IsStateInUse(OrderState state)

Parameters

state OrderState

Returns

bool

Save(OrderState)

public void Save(OrderState state)

Parameters

state OrderState
To top