Interface SapOrderCancelService

    • Method Detail

      • cancelOrder

        void cancelOrder​(OrderModel order,
                         java.lang.String erpRejectionReason)
                  throws OrderCancelException
        Cancel a hybris order,
        Parameters:
        order - the order to be cancelled
        erpRejectionReason - 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