Interface ConsignmentCancellationService

All Known Implementing Classes:
DefaultConsignmentCancellationService

public interface ConsignmentCancellationService
Service to cancel items from consignments.
  • Method Details

    • processConsignmentCancellation

      void processConsignmentCancellation(OrderCancelResponse orderCancelResponse)
      Cancel consignments linked to an OrderCancelResponse. 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 cancel
      orderCancelResponse - the order cancel response
      Returns:
      Map<AbstractOrderEntryModel, Long>