Interface TravelManageStockByEntryTypeStrategy

All Known Implementing Classes:
AccommodationEntryManageStockStrategy, DefaultEntryTypeManageStockStrategy, ShoppingDefaultEntryTypeManageStockStrategy, TransportEntryManageStockStrategy

public interface TravelManageStockByEntryTypeStrategy
Strategy to reserve and release the stockLevel based on abstract order entry OrderEntryType
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    release(AbstractOrderEntryModel abstractOrderEntry)
    Handles stock releasing for a given abstractOrderEntry belonging to a given type.
    void
    reserve(AbstractOrderEntryModel abstractOrderEntry)
    Handles stock reservation for a given abstractOrderEntry belonging to a given type.
  • Method Details

    • reserve

      void reserve(AbstractOrderEntryModel abstractOrderEntry) throws de.hybris.platform.stock.exception.InsufficientStockLevelException
      Handles stock reservation for a given abstractOrderEntry belonging to a given type.
      Parameters:
      abstractOrderEntry - the abstract order entry
      Throws:
      de.hybris.platform.stock.exception.InsufficientStockLevelException - the insufficient stock level exception
    • release

      void release(AbstractOrderEntryModel abstractOrderEntry)
      Handles stock releasing for a given abstractOrderEntry belonging to a given type.
      Parameters:
      abstractOrderEntry - the abstract order entry