Class RoomRateReservationCreationStrategy
java.lang.Object
de.hybris.platform.travelservices.strategies.stock.accommodation.impl.RoomRateReservationCreationStrategy
- All Implemented Interfaces:
StockReservationCreationStrategy
public class RoomRateReservationCreationStrategy
extends Object
implements StockReservationCreationStrategy
Concrete implementation to handle reservation and release for room rates in amendment scenario
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(AbstractOrderEntryModel entry) Creates a list ofStockReservationDatafor the given AbstractOrderEntryModelprotected List<StockReservationData>createStockDataForRoomRate(ProductModel roomRateProduct, Long quantity, AbstractOrderEntryGroupModel orderEntryGroup) Creates stock reservation data for room rate
-
Constructor Details
-
RoomRateReservationCreationStrategy
public RoomRateReservationCreationStrategy()
-
-
Method Details
-
create
Description copied from interface:StockReservationCreationStrategyCreates a list ofStockReservationDatafor the given AbstractOrderEntryModel- Specified by:
createin interfaceStockReservationCreationStrategy- Parameters:
entry- the abstractOrderEntryModel used to create the list of stockReservationData- Returns:
- the list of stockReservationData
-
createStockDataForRoomRate
protected List<StockReservationData> createStockDataForRoomRate(ProductModel roomRateProduct, Long quantity, AbstractOrderEntryGroupModel orderEntryGroup) Creates stock reservation data for room rate- Parameters:
roomRateProduct- the room rate productquantity- the quantityorderEntryGroup- the order entry group- Returns:
- list list
-