Package de.hybris.platform.ordercancel
package de.hybris.platform.ordercancel
-
ClassDescriptionRepresents cancel decision that provides information if cancel is allowed by the Order Cancel Service.Default implementation for Cancel Order Service denial reasons.This interface is used by Warehouse adapter to provide feedback information about execution of cancel request.This strategy interface provides information about cancelable entries of given order.Tests complete cancel execution in different scenarios.Marker interface used for objects that represents Order Cancel denial reasons.Strategy that determines if cancel is possible for given conditions.Exception thrown when
OrderCancelService.requestOrderCancel(OrderCancelRequest, de.hybris.platform.core.model.security.PrincipalModel)method is invoked and Cancel is denied for given conditions.Represents a cancel entry in an Order Cancel Request or Order Cancel Response.The test class tests the cancel service behavior basing on the default implementation of state mapping and internal business strategies.
The test presumes the following configuration ofOrderCancelConfigModel:
OrderCancelConfigModel.ORDERCANCELALLOWED= TRUEOrderCancelConfigModel.CANCELAFTERWAREHOUSEALLOWED= TRUEOrderCancelConfigModel.COMPLETECANCELAFTERSHIPPINGSTARTEDALLOWED= TRUEOrderCancelConfigModel.PARTIALCANCELALLOWED= TRUEOrderCancelConfigModel.PARTIALORDERENTRYCANCELALLOWED= TRUETests partial cancel execution in different scenarios.Tests if cancel is possible by usingOrderCancelService.isCancelPossible(OrderModel, de.hybris.platform.core.model.security.PrincipalModel, boolean, boolean)method in different scenarios.Handles creation (based on OrderCancelRequests), updating (OrderCancelResponse) of order cancel records in databaseRepresents Order Cancel requests.This is the interface for executors of cancel requests.Represents Order Cancel responses.This is the interface for executors of cancel responses - messages received from a Warehouse in response to cancel request.Order Cancel Service interfaceDetermines OrderCancelState for a given Order.This interface is used to change OrderStatus of an Order after cancel operation.Utilities to manage orderTest that check all use cases ofOrderUtilsclass.