Interface ConsignmentCancellationService

    • Method Detail

      • 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

        java.util.Map<AbstractOrderEntryModel,​java.lang.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