Class OrderStatusManager
OrderStatus manager acts as proxy between methods that call data layer functions and the facade layer.
The methods here check whether the appropriate security is set and that the data is cached.
Inheritance
System.Object
OrderStatusManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
public static class OrderStatusManager
Methods
Declaration
public static PaymentPlan CancelOrder(PaymentPlan plan)
Parameters
Returns
Declaration
public static PurchaseOrder CancelOrder(PurchaseOrder purchaseOrder)
Parameters
Returns
Declaration
public static Shipment CancelOrderShipment(Shipment shipment)
Parameters
Returns
Declaration
public static Shipment CompleteOrderShipment(Shipment shipment)
Parameters
Returns
Declaration
public static OrderStatusDto GetDefinedOrderStatuses()
Returns
Declaration
public static OrderStatus GetOrderGroupStatus(IOrderGroup orderGroup)
Parameters
Type |
Name |
Description |
IOrderGroup |
orderGroup |
The order group.
|
Returns
Gets the order group status.
Declaration
[Obsolete("This method is no longer used, use GetOrderGroupStatus(IOrderGroup) instead. Will remain at least until January 2018.")]
public static OrderStatus GetOrderGroupStatus(OrderGroup order)
Parameters
Returns
Gets the order shipment status.
Declaration
public static OrderShipmentStatus GetOrderShipmentStatus(Shipment shipment)
Parameters
Type |
Name |
Description |
Shipment |
shipment |
The shipment.
|
Returns
Gets the purchase order status.
Declaration
public static OrderStatus GetPurchaseOrderStatus(PaymentPlan plan)
Parameters
Returns
Gets the purchase order status.
Declaration
public static OrderStatus GetPurchaseOrderStatus(PurchaseOrder purchaseOrder)
Parameters
Type |
Name |
Description |
PurchaseOrder |
purchaseOrder |
The purchase order.
|
Returns
Declaration
public static PaymentPlan HoldOrder(PaymentPlan plan)
Parameters
Returns
Declaration
public static PurchaseOrder HoldOrder(PurchaseOrder purchaseOrder)
Parameters
Returns
Declaration
public static bool IsOrderCancellable(PaymentPlan plan)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Determines whether order can be cancelled.
Declaration
public static bool IsOrderCancellable(PurchaseOrder purchaseOrder)
Parameters
Type |
Name |
Description |
PurchaseOrder |
purchaseOrder |
The purchase order.
|
Returns
Type |
Description |
System.Boolean |
true if order can be cancelled; otherwise, false .
|
Determines whether order has any awaiting completion return form
Declaration
public static bool IsOrderHaveAwaitingReturnCompletable(PurchaseOrder purchaseOrder)
Parameters
Type |
Name |
Description |
PurchaseOrder |
purchaseOrder |
The purchase order.
|
Returns
Type |
Description |
System.Boolean |
true if [is order awaiting return completable] [the specified purchase order]; otherwise, false .
|
Determines whether the order has any waiting stock return form
Declaration
public static bool IsOrderHaveAwaitingStockReturns(PurchaseOrder purchaseOrder)
Parameters
Type |
Name |
Description |
PurchaseOrder |
purchaseOrder |
The purchase order.
|
Returns
Type |
Description |
System.Boolean |
true if [is order awaiting stock returns] [the specified purchase order]; otherwise, false .
|
Declaration
public static bool IsOrderHoldable(PaymentPlan plan)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Determines if order can be put on hold.
Declaration
public static bool IsOrderHoldable(PurchaseOrder purchaseOrder)
Parameters
Type |
Name |
Description |
PurchaseOrder |
purchaseOrder |
The purchase order.
|
Returns
Type |
Description |
System.Boolean |
true if can be put on hold; otherwise, false .
|
Determines whether [is order paid] [the specified plan].
Declaration
public static bool IsOrderPaid(PaymentPlan plan)
Parameters
Returns
Type |
Description |
System.Boolean |
true if [is order paid] [the specified plan]; otherwise, false .
|
Determines whether [is order paid] [the specified purchase order].
Declaration
public static bool IsOrderPaid(PurchaseOrder purchaseOrder)
Parameters
Type |
Name |
Description |
PurchaseOrder |
purchaseOrder |
The purchase order.
|
Returns
Type |
Description |
System.Boolean |
true if [is order paid] [the specified purchase order]; otherwise, false .
|
Declaration
public static bool IsShipmentCancellable(Shipment shipment)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool IsShipmentCompletable(Shipment shipment)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool IsShipmentPackable(Shipment shipment)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool IsShipmentReleaseable(Shipment shipment)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool IsShipmentReturnable(Shipment shipment)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Picks the shipment for packing.
Declaration
public static Shipment PickForPackingOrderShipment(Shipment shipment)
Parameters
Type |
Name |
Description |
Shipment |
shipment |
The shipment.
|
Returns
Declaration
public static PurchaseOrder ProcessOrder(PurchaseOrder purchaseOrder)
Parameters
Returns
Recalculates the purchase order.
Declaration
public static WorkflowResults RecalculatePurchaseOrder(PaymentPlan plan)
Parameters
Returns
Recalculates the purchase order.
Declaration
public static WorkflowResults RecalculatePurchaseOrder(PaymentPlan plan, bool throwException)
Parameters
Type |
Name |
Description |
PaymentPlan |
plan |
The plan.
|
System.Boolean |
throwException |
if set to true [throw exception].
|
Returns
Recalculates the purchase order.
Declaration
public static WorkflowResults RecalculatePurchaseOrder(PurchaseOrder purchaseOrder)
Parameters
Type |
Name |
Description |
PurchaseOrder |
purchaseOrder |
The purchase order.
|
Returns
Recalculates the purchase order.
Declaration
public static WorkflowResults RecalculatePurchaseOrder(PurchaseOrder purchaseOrder, bool throwException)
Parameters
Type |
Name |
Description |
PurchaseOrder |
purchaseOrder |
The purchase order.
|
System.Boolean |
throwException |
if set to true [throw exception].
|
Returns
Recalculates the purchase order.
Declaration
public static WorkflowResults RecalculatePurchaseOrder(PurchaseOrder purchaseOrder, bool throwException, Dictionary<string, object> param)
Parameters
Type |
Name |
Description |
PurchaseOrder |
purchaseOrder |
The purchase order.
|
System.Boolean |
throwException |
if set to true [throw exception].
|
System.Collections.Generic.Dictionary<System.String, System.Object> |
param |
The additional input parameters.
|
Returns
Declaration
public static PaymentPlan ReleaseHoldOnOrder(PaymentPlan plan)
Parameters
Returns
Declaration
public static PurchaseOrder ReleaseHoldOnOrder(PurchaseOrder purchaseOrder)
Parameters
Returns
Declaration
public static Shipment ReleaseOrderShipment(Shipment shipment)
Parameters
Returns
Returns the shipment from packing to release.
Declaration
public static Shipment ReturnFromPackingOrderShipment(Shipment shipment)
Parameters
Type |
Name |
Description |
Shipment |
shipment |
The shipment.
|
Returns
Saves changes in OrderStatusDto. Not implemented!
Declaration
public static void SaveOrderStatus(OrderStatusDto dto)
Parameters