Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class OrderStatusExtensions

Extension methods for OrderStatus.

Inheritance
System.Object
OrderStatusExtensions
Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public static class OrderStatusExtensions : Object

Methods

IsCancellable(OrderStatus)

Checks if an order with this status can be cancelled.

Declaration
public static bool IsCancellable(this OrderStatus orderStatus)
Parameters
Type Name Description
OrderStatus orderStatus
Returns
Type Description
System.Boolean

IsHoldable(OrderStatus)

Checks if an order this status can be put on hold.

Declaration
public static bool IsHoldable(this OrderStatus orderStatus)
Parameters
Type Name Description
OrderStatus orderStatus
Returns
Type Description
System.Boolean