Class AbstractTravelCartValidationStrategy
java.lang.Object
de.hybris.platform.travelfacades.order.strategies.impl.AbstractTravelCartValidationStrategy
- All Implemented Interfaces:
TravelCartValidationStrategy
- Direct Known Subclasses:
TravelCartAccommodationValidationStrategy,TravelCartBundleValidationStrategy,TravelCartCommerceAncillaryValidationStrategy,TravelCartItineraryValidationStrategy,TravelCartTravellersValidationStrategy
public abstract class AbstractTravelCartValidationStrategy
extends Object
implements TravelCartValidationStrategy
Abstract implementation of
TravelCartValidationStrategy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<AbstractOrderEntryModel>getTransportFareProductEntries(CartModel cartModel) Gets transport fare product entries from cart.protected List<TravelOrderEntryInfoModel>Gets travel order entry infos for fare product.protected ZonedDateTimegetUTCDepartureTime(TransportOfferingModel transportOfferingModel) Return the UTC departure time for the given transportOfferingprotected booleanisReturnJourney(List<TravelOrderEntryInfoModel> travelOrderEntryInfoModelList) Is return journey.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.travelfacades.order.strategies.TravelCartValidationStrategy
validateCart
-
Constructor Details
-
AbstractTravelCartValidationStrategy
public AbstractTravelCartValidationStrategy()
-
-
Method Details
-
getTravelOrderEntryInfoListForFareProducts
protected List<TravelOrderEntryInfoModel> getTravelOrderEntryInfoListForFareProducts(CartModel cartModel) Gets travel order entry infos for fare product.- Parameters:
cartModel- the cart model- Returns:
- the travel order entry info list from cart
-
getTransportFareProductEntries
Gets transport fare product entries from cart.- Parameters:
cartModel- the cart model- Returns:
- the transport fare product entries
-
getUTCDepartureTime
Return the UTC departure time for the given transportOffering- Parameters:
transportOfferingModel- as the tranportOffering- Returns:
- the zoned date time
-
isReturnJourney
Is return journey. Groups travel order entry info by origin destination ref number. Returns true (return journey) if there is more than one origin destination ref number.- Parameters:
travelOrderEntryInfoModelList- the travel order entry info model list- Returns:
- the boolean
-