Class DefaultTransportCartFacade
java.lang.Object
de.hybris.platform.commercefacades.order.impl.DefaultCartFacade
de.hybris.platform.travelfacades.order.impl.DefaultTravelCartFacade
de.hybris.platform.travelfacades.order.impl.DefaultTransportCartFacade
- All Implemented Interfaces:
de.hybris.platform.commercefacades.order.CartFacade,TransportCartFacade,TravelCartFacade
- Direct Known Subclasses:
DefaultShoppingTransportCartFacade
public class DefaultTransportCartFacade
extends DefaultTravelCartFacade
implements TransportCartFacade
The Implementation of
TransportCartFacade-
Field Summary
Fields inherited from class de.hybris.platform.travelfacades.order.impl.DefaultTravelCartFacade
MINIMUM_PRODUCT_QUANTITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAncillaryToCart(AncillaryEntryRequestData ancillaryEntryRQData) Add ancillary product to the current cartprotected List<CartModificationData>addBundleToCart(AddBundleToCartData addBundleToCartData, List<TravellerData> travellerDataList) Adds a transport bundle to the cart.protected CartModificationDataaddProductToCart(String productCode, List<String> transportOfferingCodes, String travellerCode, String travelRouteCode, long quantity, int originDestinationRefNumber) Add product to cart.protected voidaddPropertiesToCartEntry(String travellerCode, int originDestinationRefNo, String travelRoute, List<String> transportOfferingCodes, Boolean active, AmendStatus amendStatus, CartModificationData cartModification) Adds the properties to cart entry.addSeatEntry(String seatUid, String transportOfferingCode, String travellerUid) Add a seat to the current cart.addTransportBundleToCart(AddBundleToCartData addBundleToCartData) Add a transport bundle to the cart.voidaddTravellersToCart(TravellerQuantityListData travellerQuantityListData) Adds travellers to the cart.voidchangeCurrency(String currencyISO) Change current currency of active cartprotected List<AddTransportBundleToCartValidationStrategy>Gets add transport bundle to cart validation strategy list.protected List<AddTravellerToCartValidationStrategy>Gets add traveller to cart validation strategy list.protected List<AncillaryCartValidationStrategy>Gets the ancillary to cart validation strategy ListgetBoundIdForEntryNumber(Integer entryNumber) Get bound id for entry numberprotected CheckInFacadeGets check in facade.protected Map<String,EnrichAncillaryEntryDataStrategy> Gets the enrich ancillary entry data strategy mapprotected List<CartEntryValidationStrategy>Gets remove baggage cart entry validation strategies.protected List<CartEntryValidationStrategy>Gets the remove cart entry validation strategy ListGets remove traveller from cart validation strategy list.protected ReservationFacadeGets reservationFacade.getSeatCartEntry(Integer entryId) Gets seat entry from cart.protected List<SelectedAccommodationStrategy>Gets selected accommodation strategy list.protected de.hybris.platform.servicelayer.dto.converter.Converter<SelectedAccommodationModel,SelectedSeatData> Gets selected seat converter.protected de.hybris.platform.commercefacades.storesession.StoreSessionFacadeGets store session facade.protected de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel,TravellerData> Gets traveller data converter.protected Predicate<TravelOrderEntryInfoModel>getTravelOrderEntryInfoForPassenger(String passenger) Gets travel order entry info for passenger.protected TravelOrderEntryInfoModelgetTravelOrderEntryInfoForPassengersAndTransportOffering(CartModel sessionCart, String transportOfferingCode, String passenger) Gets travel order entry info for passenger and transport offering.protected Predicate<TravelOrderEntryInfoModel>getTravelOrderEntryInfoForTransportOffering(String transportOfferingCode) Gets travel order entry info for transport offering.protected TravelRestrictionFacadeGets travel restriction facade.Gets update baggage cart entry validation strategy list.protected List<CartEntryValidationStrategy>Gets the update cart entry validation strategy ListbooleanisOrderEntryPartOfBundle(AbstractOrderEntryModel orderEntryModel) Is order entry part of bundle.booleanisTravellerInEntryEligibleForAmendment(AbstractOrderEntryModel orderEntryModel) Is traveller in entry eligible for amendment.protected voidnormalizeOrderEntryNumbers(AbstractOrderModel abstractOrderModel) Normalize order entry numbers.voidremoveAncillaryCartEntry(Integer entryId) Removes ancillary product entry quantity from cart for travel.voidremoveAncillaryEntry(Integer entryId) Removes ancillary product entry quantity from cart.voidremoveBaggageCartEntry(Integer entryId) Removes baggage product entry quantity from cart.voidremoveSeatEntry(Integer entryId) Remove seat entry.voidremoveTravellerFromCart(String travellerId) Remove traveller from the cart.voidsetAddTransportBundleToCartValidationStrategyList(List<AddTransportBundleToCartValidationStrategy> addTransportBundleToCartValidationStrategyList) Sets add transport bundle to cart validation strategy list.voidsetAddTravellerToCartValidationStrategyList(List<AddTravellerToCartValidationStrategy> addTravellerToCartValidationStrategyList) Sets add traveller to cart validation strategy list.voidsetAncillaryCartValidationStrategyList(List<AncillaryCartValidationStrategy> ancillaryCartValidationStrategyList) Sets the ancillary to cart validation strategy ListvoidsetCheckInFacade(CheckInFacade checkInFacade) Sets check in facade.voidsetEnrichAncillaryEntryDataStrategyMap(Map<String, EnrichAncillaryEntryDataStrategy> enrichAncillaryEntryDataStrategyMap) Sets enrich the ancillary entry data strategy mapvoidsetRemoveBaggageCartEntryValidationStrategies(List<CartEntryValidationStrategy> removeBaggageCartEntryValidationStrategies) Sets remove baggage cart entry validation strategies.voidsetRemoveCartEntryValidationStrategyList(List<CartEntryValidationStrategy> removeCartEntryValidationStrategyList) Sets the remove cart entry validation strategy ListvoidsetRemoveTravellerFromCartValidationStrategyList(List<RemoveTravellerFromCartValidationStrategy> removeTravellerFromCartValidationStrategyList) Sets remove traveller from cart validation strategy list.voidsetReservationFacade(ReservationFacade reservationFacade) Sets reservationFacade.voidsetSelectedAccommodationStrategyList(List<SelectedAccommodationStrategy> selectedAccommodationStrategyList) Sets selected accommodation strategy list.voidsetSelectedSeatConverter(de.hybris.platform.servicelayer.dto.converter.Converter<SelectedAccommodationModel, SelectedSeatData> selectedSeatConverter) Sets selected seat converter.voidsetStoreSessionFacade(de.hybris.platform.commercefacades.storesession.StoreSessionFacade storeSessionFacade) Sets store session facade.voidsetTravellerDataConverter(de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel, TravellerData> travellerDataConverter) Sets traveller data converter.voidsetTravelRestrictionFacade(TravelRestrictionFacade travelRestrictionFacade) Sets travel restriction facade.voidsetUpdateBaggageCartEntryValidationStrategyList(List<CartEntryValidationStrategy> updateBaggageCartEntryValidationStrategyList) Sets update baggage cart entry validation strategy list.voidsetUpdateCartEntryValidationStrategyList(List<CartEntryValidationStrategy> updateCartEntryValidationStrategyList) Sets the update cart entry validation strategy ListvoidupdateAncillaryCartEntry(Integer entryId, Integer quantity) Update ancillary product entry quantity to cart for travel.voidupdateBaggageCartEntry(Integer entryId, Integer quantity) Update ancillary baggage product entry quantity to cart.voidupdateCartEntry(Integer entryId, Integer quantity) Update ancillary product entry quantity to cart.protected voidvalidateAndRemoveTraveller(String travellerId) protected voidvalidateIfAccommodationIsAvailableForBooking(CartModel cart, String transportOfferingCode, ConfiguredAccommodationModel accommodation, String passengerCode) Validate if accommodation is available for booking.protected voidvalidateIfFareProductForSeatExistInCart(ProductModel product, String transportOfferingCode, CartModel cart) Validate if fare product for seat exist in cart.protected voidvalidateIfTransportOfferingExistsInCart(CartModel cart, String transportOfferingCode) Validate if transport offering exists in cart.protected voidvalidateIfTravellerEligibleForAmendment(String seatId, String transportOfferingCode, String passengerCode, String originDestinationRefNumber, String travelRoute) Validate if traveller eligible for amendment.protected voidvalidateIfTravellerHasSeat(CartModel cart, String passengerCode, String transportOfferingCode) Validate if traveller has seat.protected voidvalidateTravellerForCart(String travellerId) Validates if session cart contains traveller.Methods inherited from class de.hybris.platform.travelfacades.order.impl.DefaultTravelCartFacade
addBundleToCart, addPerLegBundleProductToCart, addProduct, addPropertiesToCartEntry, addPropertiesToCartEntry, addSelectedAccommodationToCart, addToCart, applyVoucher, assignAnonymousCartToCurrentUser, cleanUpCartForMinOriginDestinationRefNumber, createCartFromOrder, createCartFromOrderGuid, deleteCurrentCart, evaluateCart, getAccommodationMapService, getBaseStoreService, getBookingDueAmount, getBookingFacade, getBookingService, getBookingTotal, getBundleCartFacade, getCartCode, getCartCode, getCartEntry, getCartTotal, getCommonI18NService, getCurrentCartCode, getCustomerAccountService, getDiscountsToDisplay, getGlobalDiscountForEntryType, getNextBundleNumberToUse, getNotAllowedStatusesForCreateAmendCart, getOrderEntry, getOrderEntry, getOrderEntryConverter, getOriginalOrderCode, getPartialPaymentAmount, getPaymentOptionConverter, getPaymentOptionList, getPaymentOptions, getPaymentOptions, getPopulateCartEntryPropertyStrategyMap, getProductPriceLevels, getQuantityToOffer, getSelectedAccommodationValidationStrategyList, getSessionService, getTotalsForReservation, getTotalToPayPrice, getTotalToPayPriceAfterChangeDates, getTransportOfferingService, getTravelBundleCommerceCartFacade, getTravelCartService, getTravelCartValidationStrategyList, getTravelCommerceCartService, getTravelCommercePriceFacade, getTravellerData, getTravellerFacade, getTravellerService, getTravellerVersionIdFromCart, getTravelPromotionsFacade, getTravelRouteService, getTravelRulesService, getVoucherFacade, hasCartBeenAmended, isAdditionalSecurityActive, isAmendmentCart, isAnonymousUserCart, isCurrentCartValid, isNetPrice, isProductAvailable, isSameTransaction, isSelectedOption, isValidPaymentOption, populatePropertiesMap, populateRateDataFromCart, recalculateCart, removeBoundFromCart, removeCart, removeDeliveryAddress, removeEntriesForOriginDestinationRefNumber, removeInternalItems, removeSelectedAccommodationFromCart, removeSpecialServiceRequest, removeTravelOrderEntryInfo, removeVoucher, setAccommodationMapService, setAdditionalSecurity, setAddToCartParametersInContext, setBaseStoreService, setBookingFacade, setBookingService, setBundleCartFacade, setCommonI18NService, setCustomerAccountService, setNotAllowedStatusesForCreateAmendCart, setOrderEntryConverter, setOrderEntryType, setPaymentOptionConverter, setPopulateCartEntryPropertyStrategyMap, setSelectedAccommodationValidationStrategyList, setSessionService, setTransportOfferingService, setTravelBundleCommerceCartFacade, setTravelCartService, setTravelCartValidationStrategyList, setTravelCommerceCartService, setTravelCommercePriceFacade, setTravellerFacade, setTravellerService, setTravelPromotionsFacade, setTravelRouteService, setTravelRulesService, setVoucherFacade, updateBundleEntriesWithBundleNumber, validateCart, validateCart, validateOrderForAmendment, validateOriginDestinationRefNumbersInCart, validateSeatSelectionMethods inherited from class de.hybris.platform.commercefacades.order.impl.DefaultCartFacade
addToCart, addToCart, configurationInfoToProductConfiguration, configureCartEntry, createCommerceCartParameter, createEmptyCart, deleteGroupedOrderEntriesMultiD, estimateExternalTaxes, filterConfigurationsByConfigurator, getBaseSiteService, getCartConverter, getCartModificationConverter, getCartRestorationConverter, getCartService, getCartsForCurrentUser, getCommerceCartParameterConverter, getCommerceCartService, getCountryConverter, getDeliveryCountries, getDeliveryService, getGroupCartModificationListConverter, getMiniCart, getMiniCartConverter, getModelService, getMostRecentCartGuidForUser, getOrderEntryNumberForMultiD, getPointOfServiceService, getPriceDataFactory, getProductConfigurationMergeStrategies, getProductFacade, getProductService, getSessionCart, getSessionCartGuid, getSessionCartWithEntryOrdering, getUserService, hasEntries, hasEntryGroups, hasSessionCart, mergeOrderEntryWithModelConfiguration, removeEntryGroup, removeSessionCart, removeStaleCarts, restoreAnonymousCartAndMerge, restoreAnonymousCartAndTakeOwnership, restoreCartAndMerge, restoreSavedCart, setBaseSiteService, setCartConverter, setCartModificationConverter, setCartRestorationConverter, setCartService, setCommerceCartParameterConverter, setCommerceCartService, setCountryConverter, setDeliveryService, setGroupCartModificationListConverter, setMiniCartConverter, setModelService, setPointOfServiceService, setPriceDataFactory, setProductConfigurationMergeStrategies, setProductFacade, setProductService, setUserService, updateCartEntry, updateCartEntry, updateCartEntry, updateCartMetadata, validateCartDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.commercefacades.order.CartFacade
addToCart, addToCart, estimateExternalTaxes, getCartsForCurrentUser, getDeliveryCountries, getMiniCart, getMostRecentCartGuidForUser, getSessionCart, getSessionCartGuid, getSessionCartWithEntryOrdering, hasEntries, hasSessionCart, removeEntryGroup, removeSessionCart, removeStaleCarts, restoreAnonymousCartAndMerge, restoreAnonymousCartAndTakeOwnership, restoreCartAndMerge, restoreSavedCart, updateCartEntry, updateCartEntry, updateCartEntry, updateCartMetadata, validateCartData
-
Constructor Details
-
DefaultTransportCartFacade
public DefaultTransportCartFacade()
-
-
Method Details
-
addSeatEntry
public CartModificationData addSeatEntry(String seatUid, String transportOfferingCode, String travellerUid) throws InvalidCabinClassException, SeatNotAvailableException, TransportOfferingNotInCartException, TravellerNotEligibleException, TravellerNotInCartException Description copied from interface:TransportCartFacadeAdd a seat to the current cart.- Specified by:
addSeatEntryin interfaceTransportCartFacade- Parameters:
seatUid- the seat uidtransportOfferingCode- the transport offering codetravellerUid- the traveller uid- Returns:
- the cart modification data
- Throws:
InvalidCabinClassException- the invalid cabin class exceptionSeatNotAvailableException- the seat not available exceptionTransportOfferingNotInCartException- the transport offering not in cart exceptionTravellerNotEligibleException- the traveller not eligible exceptionTravellerNotInCartException- the traveller not in cart exception
-
getSeatCartEntry
Description copied from interface:TransportCartFacadeGets seat entry from cart.- Specified by:
getSeatCartEntryin interfaceTransportCartFacade- Parameters:
entryId- the entry number- Returns:
- the seat cart entry
- Throws:
TravelCartEntryException- the travel cart entry exception
-
removeSeatEntry
public void removeSeatEntry(Integer entryId) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Remove seat entry.- Specified by:
removeSeatEntryin interfaceTransportCartFacade- Parameters:
entryId- the entry number- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- the commerce cart modification exception
-
isOrderEntryPartOfBundle
Description copied from interface:TransportCartFacadeIs order entry part of bundle.- Specified by:
isOrderEntryPartOfBundlein interfaceTransportCartFacade- Parameters:
orderEntryModel- the entry number- Returns:
- the boolean
-
isTravellerInEntryEligibleForAmendment
Description copied from interface:TransportCartFacadeIs traveller in entry eligible for amendment.- Specified by:
isTravellerInEntryEligibleForAmendmentin interfaceTransportCartFacade- Parameters:
orderEntryModel- the entry number- Returns:
- the boolean
-
updateCartEntry
public void updateCartEntry(Integer entryId, Integer quantity) throws InvalidSessionCartException, ProductNotEligibleException, ProductPartOfBundleException, ProductTravelRestrictionException, ProductStockNotAvailableException, UpdateAncillaryException Description copied from interface:TransportCartFacadeUpdate ancillary product entry quantity to cart.- Specified by:
updateCartEntryin interfaceTransportCartFacade- Parameters:
entryId- the entry identifier.quantity- the quantity.- Throws:
InvalidSessionCartException- the cart is not in session.ProductNotEligibleException- the product not eligible exception as not active or not a ancillary product.ProductPartOfBundleException- the product part of bundle exception.ProductTravelRestrictionException- the product travel restriction exception.ProductStockNotAvailableException- the product stock not available exception.UpdateAncillaryException- the exception while updating product quantity.
-
removeAncillaryEntry
public void removeAncillaryEntry(Integer entryId) throws InvalidSessionCartException, ProductNotEligibleException, ProductPartOfBundleException, RemoveAncillaryException Description copied from interface:TransportCartFacadeRemoves ancillary product entry quantity from cart.- Specified by:
removeAncillaryEntryin interfaceTransportCartFacade- Parameters:
entryId- the entry identifier.- Throws:
InvalidSessionCartException- the cart is not in session.ProductNotEligibleException- the product not eligible exception as not active or not a ancillary product.ProductPartOfBundleException- the product part of bundle exception.RemoveAncillaryException- the exception while removing product quantity.
-
updateAncillaryCartEntry
public void updateAncillaryCartEntry(Integer entryId, Integer quantity) throws InvalidSessionCartException, ProductNotEligibleException, ProductPartOfBundleException, ProductTravelRestrictionException, ProductStockNotAvailableException, UpdateAncillaryException Description copied from interface:TransportCartFacadeUpdate ancillary product entry quantity to cart for travel.- Specified by:
updateAncillaryCartEntryin interfaceTransportCartFacade- Parameters:
entryId- the entry identifier.quantity- the quantity.- Throws:
InvalidSessionCartException- the cart is not in session.ProductNotEligibleException- the product not eligible exception as not active or not a ancillary product.ProductPartOfBundleException- the product part of bundle exception.ProductTravelRestrictionException- the product travel restriction exception.ProductStockNotAvailableException- the product stock not available exception.UpdateAncillaryException- the exception while updating product quantity.
-
removeAncillaryCartEntry
public void removeAncillaryCartEntry(Integer entryId) throws InvalidSessionCartException, ProductNotEligibleException, ProductPartOfBundleException, RemoveAncillaryException Description copied from interface:TransportCartFacadeRemoves ancillary product entry quantity from cart for travel.- Specified by:
removeAncillaryCartEntryin interfaceTransportCartFacade- Parameters:
entryId- the entry identifier.- Throws:
InvalidSessionCartException- the cart is not in session.ProductNotEligibleException- the product not eligible exception as not active or not a ancillary product.ProductPartOfBundleException- the product part of bundle exception.RemoveAncillaryException- the exception while removing product quantity.
-
addAncillaryToCart
public CartModificationData addAncillaryToCart(AncillaryEntryRequestData ancillaryEntryRQData) throws ProductStockNotAvailableException, ProductTravelRestrictionException, TravellerNotInCartException, TransportOfferingNotInCartException, TravellerNotEligibleForTransportOfferingInCartException, TravelRouteNotInCartException Description copied from interface:TransportCartFacadeAdd ancillary product to the current cart- Specified by:
addAncillaryToCartin interfaceTransportCartFacade- Parameters:
ancillaryEntryRQData- the ancillary entry request data- Returns:
- the cart modification data
- Throws:
ProductStockNotAvailableException- the product stock not available exceptionProductTravelRestrictionException- the product travel restriction exceptionTravellerNotInCartException- the traveller not in cart exceptionTransportOfferingNotInCartException- the transport offering not in cart exceptionTravellerNotEligibleForTransportOfferingInCartException- the traveller not eligible for transport offering in cart exceptionTravelRouteNotInCartException
-
changeCurrency
Description copied from interface:TransportCartFacadeChange current currency of active cart- Specified by:
changeCurrencyin interfaceTransportCartFacade- Parameters:
currencyISO- currency ISO.- Throws:
IllegalArgumentException
-
addProductToCart
protected CartModificationData addProductToCart(String productCode, List<String> transportOfferingCodes, String travellerCode, String travelRouteCode, long quantity, int originDestinationRefNumber) Add product to cart.- Parameters:
productCode- the product codetransportOfferingCodes- the transport offering codestravellerCode- the traveller codetravelRouteCode- the travel routequantity- the quantityoriginDestinationRefNumber- the origin destination ref number- Returns:
- the cart modification data
-
validateIfTransportOfferingExistsInCart
protected void validateIfTransportOfferingExistsInCart(CartModel cart, String transportOfferingCode) throws TransportOfferingNotInCartException Validate if transport offering exists in cart.- Parameters:
cart- the carttransportOfferingCode- the transport offering code- Throws:
TransportOfferingNotInCartException- the transport offering not in cart exception
-
validateIfTravellerHasSeat
protected void validateIfTravellerHasSeat(CartModel cart, String passengerCode, String transportOfferingCode) throws TravellerNotEligibleException Validate if traveller has seat.- Parameters:
cart- the cartpassengerCode- the passenger codetransportOfferingCode- the transport offering code- Throws:
TravellerNotEligibleException- the traveller not eligible exception
-
validateIfAccommodationIsAvailableForBooking
protected void validateIfAccommodationIsAvailableForBooking(CartModel cart, String transportOfferingCode, ConfiguredAccommodationModel accommodation, String passengerCode) throws SeatNotAvailableException Validate if accommodation is available for booking.- Parameters:
cart- the carttransportOfferingCode- the transport offering codeaccommodation- the accommodationpassengerCode- the passenger code- Throws:
SeatNotAvailableException- the seat not available exception
-
validateIfFareProductForSeatExistInCart
protected void validateIfFareProductForSeatExistInCart(ProductModel product, String transportOfferingCode, CartModel cart) throws InvalidCabinClassException Validate if fare product for seat exist in cart.- Parameters:
product- the producttransportOfferingCode- the transport offering codecart- the cart- Throws:
InvalidCabinClassException- the invalid cabin class exception
-
validateIfTravellerEligibleForAmendment
protected void validateIfTravellerEligibleForAmendment(String seatId, String transportOfferingCode, String passengerCode, String originDestinationRefNumber, String travelRoute) throws TravellerNotEligibleException Validate if traveller eligible for amendment.- Parameters:
seatId- the seat idtransportOfferingCode- the transport offering codepassengerCode- the passenger codeoriginDestinationRefNumber- the origin destination ref numbertravelRoute- the travel route- Throws:
TravellerNotEligibleException- the traveller not eligible exception
-
getTravelOrderEntryInfoForPassengersAndTransportOffering
protected TravelOrderEntryInfoModel getTravelOrderEntryInfoForPassengersAndTransportOffering(CartModel sessionCart, String transportOfferingCode, String passenger) Gets travel order entry info for passenger and transport offering.- Parameters:
sessionCart- the session carttransportOfferingCode- the transport offering codepassenger- the passenger- Returns:
- the travel order entry info for passenger and transport offering
-
getTravelOrderEntryInfoForPassenger
protected Predicate<TravelOrderEntryInfoModel> getTravelOrderEntryInfoForPassenger(String passenger) Gets travel order entry info for passenger.- Parameters:
passenger- the passenger- Returns:
- the travel order entry info for passenger
-
getTravelOrderEntryInfoForTransportOffering
protected Predicate<TravelOrderEntryInfoModel> getTravelOrderEntryInfoForTransportOffering(String transportOfferingCode) Gets travel order entry info for transport offering.- Parameters:
transportOfferingCode- the transport offering code- Returns:
- the travel order entry info for transport offering
-
addPropertiesToCartEntry
protected void addPropertiesToCartEntry(String travellerCode, int originDestinationRefNo, String travelRoute, List<String> transportOfferingCodes, Boolean active, AmendStatus amendStatus, CartModificationData cartModification) Adds the properties to cart entry.- Parameters:
travellerCode- the traveller codeoriginDestinationRefNo- the origin destination ref notravelRoute- the travel routetransportOfferingCodes- the transport offering codesactive- the activeamendStatus- the amend statuscartModification- the cart modification
-
normalizeOrderEntryNumbers
Normalize order entry numbers.- Parameters:
abstractOrderModel- the abstract order model
-
addTransportBundleToCart
public List<CartModificationData> addTransportBundleToCart(AddBundleToCartData addBundleToCartData) throws AddTransportBundleToCartException, InvalidSessionCartException Add a transport bundle to the cart. The addBundleToCartData is first validated through the addTransportBundleToCartValidationStrategyList and the originDestinationRefNumberCartValidationStrategy; then a transport bundle is added for each traveller in the list of travellers of the cart.- Specified by:
addTransportBundleToCartin interfaceTransportCartFacade- Parameters:
addBundleToCartData- the addBundleToCartData containing all the information of the transport bundle to add- Throws:
AddTransportBundleToCartExceptionInvalidSessionCartException
-
addBundleToCart
protected List<CartModificationData> addBundleToCart(AddBundleToCartData addBundleToCartData, List<TravellerData> travellerDataList) throws AddTransportBundleToCartException Adds a transport bundle to the cart. This method will add a bundle for each traveller already saved in the cart.- Parameters:
addBundleToCartData- the addBundleToCartData containing all the information of the transport bundle to addtravellerDataList- the list of travellers saved in the cart- Returns:
- the list of cartModificationData
- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- the commerce cart modification exceptionAddTransportBundleToCartException
-
addTravellersToCart
public void addTravellersToCart(TravellerQuantityListData travellerQuantityListData) throws AddTravellerToCartException, InvalidSessionCartException Adds travellers to the cart.- Specified by:
addTravellersToCartin interfaceTransportCartFacade- Parameters:
travellerQuantityListData- the list of travellers to be added to the cart- Throws:
AddTravellerToCartExceptionInvalidSessionCartException
-
getBoundIdForEntryNumber
Description copied from interface:TransportCartFacadeGet bound id for entry number- Specified by:
getBoundIdForEntryNumberin interfaceTransportCartFacade- Parameters:
entryNumber- entry number to fetch the bound Id for
-
removeTravellerFromCart
public void removeTravellerFromCart(String travellerId) throws InvalidSessionCartException, InvalidTravellerException, InvalidCartPriceException Description copied from interface:TransportCartFacadeRemove traveller from the cart.- Specified by:
removeTravellerFromCartin interfaceTransportCartFacade- Parameters:
travellerId- the id of traveller- Throws:
InvalidSessionCartExceptionInvalidTravellerExceptionInvalidCartPriceException
-
validateAndRemoveTraveller
- Throws:
InvalidSessionCartException
-
updateBaggageCartEntry
public void updateBaggageCartEntry(Integer entryId, Integer quantity) throws InvalidSessionCartException, ProductNotEligibleException, ProductPartOfBundleException, ProductTravelRestrictionException, ProductStockNotAvailableException, UpdateBaggageException Description copied from interface:TransportCartFacadeUpdate ancillary baggage product entry quantity to cart.- Specified by:
updateBaggageCartEntryin interfaceTransportCartFacade- Parameters:
entryId- the entry identifier.quantity- the quantity.- Throws:
InvalidSessionCartException- the cart is not in session.ProductNotEligibleException- the product not eligible exception as not active or not a ancillary product.ProductPartOfBundleException- the product part of bundle exception.ProductTravelRestrictionException- the product travel restriction exception.ProductStockNotAvailableException- the product stock not available exception.UpdateBaggageException
-
removeBaggageCartEntry
public void removeBaggageCartEntry(Integer entryId) throws TravelCartEntryException, TravelModelNotFoundException Description copied from interface:TransportCartFacadeRemoves baggage product entry quantity from cart.- Specified by:
removeBaggageCartEntryin interfaceTransportCartFacade- Parameters:
entryId- the entry id.- Throws:
TravelCartEntryExceptionTravelModelNotFoundException
-
validateTravellerForCart
Validates if session cart contains traveller. -
getTravelRestrictionFacade
Gets travel restriction facade.- Returns:
- the travel restriction facade
-
setTravelRestrictionFacade
Sets travel restriction facade.- Parameters:
travelRestrictionFacade- the travel restriction facade
-
getSelectedAccommodationStrategyList
Gets selected accommodation strategy list.- Returns:
- the selected accommodation strategy list
-
setSelectedAccommodationStrategyList
public void setSelectedAccommodationStrategyList(List<SelectedAccommodationStrategy> selectedAccommodationStrategyList) Sets selected accommodation strategy list.- Parameters:
selectedAccommodationStrategyList- the selected accommodation strategy list
-
getCheckInFacade
Gets check in facade.- Returns:
- the check in facade
-
setCheckInFacade
Sets check in facade.- Parameters:
checkInFacade- the check in facade
-
getSelectedSeatConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<SelectedAccommodationModel,SelectedSeatData> getSelectedSeatConverter()Gets selected seat converter.- Returns:
- the selected seat converter
-
setSelectedSeatConverter
public void setSelectedSeatConverter(de.hybris.platform.servicelayer.dto.converter.Converter<SelectedAccommodationModel, SelectedSeatData> selectedSeatConverter) Sets selected seat converter.- Parameters:
selectedSeatConverter- the selected seat converter
-
getAddTransportBundleToCartValidationStrategyList
protected List<AddTransportBundleToCartValidationStrategy> getAddTransportBundleToCartValidationStrategyList()Gets add transport bundle to cart validation strategy list.- Returns:
- the add transport bundle to cart validation strategy list
-
setAddTransportBundleToCartValidationStrategyList
public void setAddTransportBundleToCartValidationStrategyList(List<AddTransportBundleToCartValidationStrategy> addTransportBundleToCartValidationStrategyList) Sets add transport bundle to cart validation strategy list.- Parameters:
addTransportBundleToCartValidationStrategyList- the add transport bundle to cart validation strategy list
-
getTravellerDataConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel,TravellerData> getTravellerDataConverter()Gets traveller data converter.- Returns:
- the traveller data converter
-
setTravellerDataConverter
public void setTravellerDataConverter(de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel, TravellerData> travellerDataConverter) Sets traveller data converter.- Parameters:
travellerDataConverter- the traveller data converter
-
getAddTravellerToCartValidationStrategyList
Gets add traveller to cart validation strategy list.- Returns:
- the add traveller to cart validation strategy list
-
setAddTravellerToCartValidationStrategyList
public void setAddTravellerToCartValidationStrategyList(List<AddTravellerToCartValidationStrategy> addTravellerToCartValidationStrategyList) Sets add traveller to cart validation strategy list.- Parameters:
addTravellerToCartValidationStrategyList- the add traveller to cart validation strategy list
-
getRemoveTravellerFromCartValidationStrategyList
public List<RemoveTravellerFromCartValidationStrategy> getRemoveTravellerFromCartValidationStrategyList()Gets remove traveller from cart validation strategy list.- Returns:
- the remove traveller from cart validation strategy list
-
setRemoveTravellerFromCartValidationStrategyList
public void setRemoveTravellerFromCartValidationStrategyList(List<RemoveTravellerFromCartValidationStrategy> removeTravellerFromCartValidationStrategyList) Sets remove traveller from cart validation strategy list.- Parameters:
removeTravellerFromCartValidationStrategyList- the remove traveller from cart validation strategy list
-
setEnrichAncillaryEntryDataStrategyMap
public void setEnrichAncillaryEntryDataStrategyMap(Map<String, EnrichAncillaryEntryDataStrategy> enrichAncillaryEntryDataStrategyMap) Sets enrich the ancillary entry data strategy map- Parameters:
enrichAncillaryEntryDataStrategyMap- the ancillary entry data
-
getEnrichAncillaryEntryDataStrategyMap
Gets the enrich ancillary entry data strategy map- Returns:
- the enrich ancillary entry data strategy map
-
setAncillaryCartValidationStrategyList
public void setAncillaryCartValidationStrategyList(List<AncillaryCartValidationStrategy> ancillaryCartValidationStrategyList) Sets the ancillary to cart validation strategy List- Parameters:
ancillaryCartValidationStrategyList- List of ancillary cart validation strategy
-
getAncillaryCartValidationStrategyList
Gets the ancillary to cart validation strategy List- Returns:
- List of ancillary to cart validation strategy
-
getUpdateCartEntryValidationStrategyList
Gets the update cart entry validation strategy List- Returns:
- List of cart entry validation strategy
-
setUpdateCartEntryValidationStrategyList
public void setUpdateCartEntryValidationStrategyList(List<CartEntryValidationStrategy> updateCartEntryValidationStrategyList) Sets the update cart entry validation strategy List- Parameters:
updateCartEntryValidationStrategyList- List of update cart entry validation strategy
-
getRemoveCartEntryValidationStrategyList
Gets the remove cart entry validation strategy List- Returns:
- List of cart entry validation strategy
-
setRemoveCartEntryValidationStrategyList
public void setRemoveCartEntryValidationStrategyList(List<CartEntryValidationStrategy> removeCartEntryValidationStrategyList) Sets the remove cart entry validation strategy List- Parameters:
removeCartEntryValidationStrategyList- List of remove cart entry validation strategy
-
getUpdateBaggageCartEntryValidationStrategyList
Gets update baggage cart entry validation strategy list.- Returns:
- the update baggage cart entry validation strategy list
-
setUpdateBaggageCartEntryValidationStrategyList
public void setUpdateBaggageCartEntryValidationStrategyList(List<CartEntryValidationStrategy> updateBaggageCartEntryValidationStrategyList) Sets update baggage cart entry validation strategy list.- Parameters:
updateBaggageCartEntryValidationStrategyList- the update baggage cart entry validation strategy list
-
getRemoveBaggageCartEntryValidationStrategies
Gets remove baggage cart entry validation strategies.- Returns:
- the remove baggage cart entry validation strategies
-
setRemoveBaggageCartEntryValidationStrategies
public void setRemoveBaggageCartEntryValidationStrategies(List<CartEntryValidationStrategy> removeBaggageCartEntryValidationStrategies) Sets remove baggage cart entry validation strategies.- Parameters:
removeBaggageCartEntryValidationStrategies- the remove baggage cart entry validation strategies
-
getStoreSessionFacade
protected de.hybris.platform.commercefacades.storesession.StoreSessionFacade getStoreSessionFacade()Gets store session facade.- Returns:
- the store session facade
-
setStoreSessionFacade
public void setStoreSessionFacade(de.hybris.platform.commercefacades.storesession.StoreSessionFacade storeSessionFacade) Sets store session facade.- Parameters:
storeSessionFacade- the store session facade
-
getReservationFacade
Gets reservationFacade.- Returns:
- the reservation facade
-
setReservationFacade
Sets reservationFacade.- Parameters:
reservationFacade- the reservation facade
-