Interface ConsignmentCancellationService
- All Known Implementing Classes:
DefaultConsignmentCancellationService
public interface ConsignmentCancellationService
Service to cancel items from consignments.
-
Method Summary
Modifier and TypeMethodDescriptioncancelConsignment(ConsignmentModel consignment, OrderCancelResponse orderCancelResponse) Cancel a consignment.voidprocessConsignmentCancellation(OrderCancelResponse orderCancelResponse) Cancel consignments linked to anOrderCancelResponse.
-
Method Details
-
processConsignmentCancellation
Cancel consignments linked to anOrderCancelResponse. It creates cancellation events accordingly and will trigger another sourcing if necessary It cancels all the consignments for the given product- Parameters:
orderCancelResponse- the order cancel response
-
cancelConsignment
Map<AbstractOrderEntryModel,Long> cancelConsignment(ConsignmentModel consignment, OrderCancelResponse orderCancelResponse) Cancel a consignment. This will cancel the entire consignment and not only the quantity requested for cancellation. If there is a leftover, then another sourcing evaluation will be performed in order to define the best location for the update quantities ordered.- Parameters:
consignment- the consignment to cancelorderCancelResponse- the order cancel response- Returns:
- Map<AbstractOrderEntryModel, Long>
-