public interface InventoryEventService
java.util.Collection<AllocationEventModel> createAllocationEvents(ConsignmentModel consignment)
AllocationEventModel to account for the changes in stock quantities.consignment - the ConsignmentModel where stock was allocated; never nullAllocationEventModel; never null@Deprecated AllocationEventModel createAllocationEvent(ConsignmentEntryModel consignmentEntry)
createAllocationEventsForConsignmentEntry(ConsignmentEntryModel)consignmentEntry - the ConsignmentEntryModeljava.util.Collection<AllocationEventModel> createAllocationEventsForConsignmentEntry(ConsignmentEntryModel consignmentEntry)
AllocationEventModel that are required to fulfill the ConsignmentEntryModelconsignmentEntry - the ConsignmentEntryModelAllocationEventModelShrinkageEventModel createShrinkageEvent(ShrinkageEventModel shrinkageEventModel)
shrinkageEventModel - the event containing information about the shrinkageWastageEventModel createWastageEvent(WastageEventModel wastageEventModel)
wastageEventModel - the event containing information about the wastage@Deprecated CancellationEventModel createCancellationEvent(CancellationEventModel cancellationEventModel)
createCancellationEvents(CancellationEventModel)}cancellationEventModel - the event containing information about the cancelled consignment entryjava.util.Collection<CancellationEventModel> createCancellationEvents(CancellationEventModel cancellationEventModel)
CancellationEventModelcancellationEventModel - the event containing information about the cancelled consignment entryCancellationEventModel@Deprecated AllocationEventModel getAllocationEventForDeclineEntry(DeclineEntry declineEntry)
getAllocationEventsForConsignmentEntry(de.hybris.platform.ordersplitting.model.ConsignmentEntryModel)AllocationEventModel for a DeclineEntrydeclineEntry - the entry to declineAllocationEventModel associated to the DeclineEntryjava.util.Collection<AllocationEventModel> getAllocationEventsForConsignmentEntry(ConsignmentEntryModel consignmentEntry)
AllocationEventModel for a ConsignmentEntryModelconsignmentEntry - the ConsignmentEntryModel for which to retrieve the eventAllocationEventModel associated to the consignment entryjava.util.Collection<AllocationEventModel> getAllocationEventsForOrderEntry(OrderEntryModel orderEntry)
AllocationEventModel for an OrderEntryModelorderEntry - the OrderEntryModel for which to retrieve the eventsAllocationEventModel for the order entry<T extends InventoryEventModel> java.util.Collection<T> getInventoryEventsForStockLevel(StockLevelModel stockLevel, java.lang.Class<T> eventClassType)
InventoryEventModel for the StockLevelModelstockLevel - the StockLevelModel for which the events need to be extractedeventClassType - the class representing the type of inventory eventStockLevelModelIncreaseEventModel createIncreaseEvent(IncreaseEventModel increaseEventModel)
increaseEventModel - the IncreaseEventModel containing information about the increase event modelvoid reallocateAllocationEvent(DeclineEntry declineEntry, java.lang.Long quantityToDecline)
declineEntry - the DeclineEntry to decline/reallocatequantityToDecline - the quantity to decline/reallocatejava.util.Map<AllocationEventModel,java.lang.Long> getAllocationEventsForReallocation(java.util.Collection<AllocationEventModel> allocationEvents, java.lang.Long quantityToDecline)
StockLevelModel of AllocationEventModel and sorts them by quantity.
Tries to map quantity to a stock level for adjustementallocationEvents - collection of allocation eventsquantityToDecline - total quantity to be adjustedAllocationEventModel with the quantity to adjust for this stock leveljava.util.Collection<AllocationEventModel> getAllocationEventsForConsignment(ConsignmentModel consignment)
AllocationEventModel for the given ConsignmentModelconsignment - the ConsignmentModel for which all allocation events will be returnedAllocationEventModelCopyright © 2018 SAP SE. All Rights Reserved.