Interface SapOrderCancelService
-
- All Known Implementing Classes:
DefaultSapOrderCancelService,SapOmsOrderCancelService
public interface SapOrderCancelServiceThis interface provides methods to cancel a hybris order and to restore an order status if cancellation failed
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancelOrder(OrderModel order, java.lang.String erpRejectionReason)Cancel a hybris order,voidrestoreAfterCancelFailed(OrderModel order)restore the order status after a failed cancel request
-
-
-
Method Detail
-
cancelOrder
void cancelOrder(OrderModel order, java.lang.String erpRejectionReason) throws OrderCancelException
Cancel a hybris order,- Parameters:
order- the order to be cancellederpRejectionReason- rejection reason coming from ERP- Throws:
OrderCancelException- Exception thrown when cancelling an order fails
-
restoreAfterCancelFailed
void restoreAfterCancelFailed(OrderModel order) throws OrderCancelException
restore the order status after a failed cancel request- Parameters:
order- the order to be cancelled- Throws:
OrderCancelException- Exception thrown when cancelling an order fails
-
-