Class DefaultPackageFacade
java.lang.Object
de.hybris.platform.travelfacades.facades.packages.impl.DefaultPackageFacade
- All Implemented Interfaces:
PackageFacade
- Direct Known Subclasses:
DefaultShoppingPackageFacade
Default implementation of
PackageFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPackageToCart(AddPackageToCartData addPackageToCartData) Add transport offerings and rooms into the cart.voidcleanUpCartBeforeAddition(String departureLocation, String arrivalLocation, String departureDate, String returnDate, String accommodationOfferingCode, String checkInDate, String checkOutDate, List<RoomStayCandidateData> roomStayCandidates) Verifies if whatever is currently in the cart, matches the details of package specified in the request.protected AccommodationCartFacadeGets accommodation cart facade.protected AddBundleToCartRequestDatagetAddBundleToCartRequestData(AddBundleToCartData bound, List<TravellerQuantityData> travellers) Returns the AddBundleToCartRequestData.protected PackageDetailsPipelineManagerGets amend package details pipeline manager.getAmendPackageResponse(PackageRequestData packageRequestData) Evaluates package response based on the package request provided and the transportation from cart.protected BookingFacadeGets booking facade.protected PackageDetailsPipelineManagerGets package details pipeline manager.getPackageResponse(PackageRequestData packageRequestData) Evaluates package response based on the package request provided.protected PassengerTypeServiceGets passenger type service.protected TravelCartFacadeGets travel cart facade.Checks if the cart is there and it has both transportation and accommodation partsisPackageInOrder(String bookingReference) Checks if the order is there and it has both transportation and accommodation partsvoidsetAccommodationCartFacade(AccommodationCartFacade accommodationCartFacade) Sets accommodation cart facade.voidsetAmendPackageDetailsPipelineManager(PackageDetailsPipelineManager amendPackageDetailsPipelineManager) Sets amend package details pipeline manager.voidsetBookingFacade(BookingFacade bookingFacade) Sets booking facade.voidsetPackageDetailsPipelineManager(PackageDetailsPipelineManager packageDetailsPipelineManager) Sets package details pipeline manager.voidsetPassengerTypeService(PassengerTypeService passengerTypeService) Sets passenger type service.voidsetTravelCartFacade(TravelCartFacade travelCartFacade) Sets travel cart facade.
-
Constructor Details
-
DefaultPackageFacade
public DefaultPackageFacade()
-
-
Method Details
-
getPackageResponse
Description copied from interface:PackageFacadeEvaluates package response based on the package request provided.- Specified by:
getPackageResponsein interfacePackageFacade- Parameters:
packageRequestData- package request data- Returns:
- the package response data
-
getAmendPackageResponse
Description copied from interface:PackageFacadeEvaluates package response based on the package request provided and the transportation from cart.- Specified by:
getAmendPackageResponsein interfacePackageFacade- Parameters:
packageRequestData- package request data- Returns:
- the package response data
-
isPackageInCart
Description copied from interface:PackageFacadeChecks if the cart is there and it has both transportation and accommodation parts- Specified by:
isPackageInCartin interfacePackageFacade- Returns:
- status of the package cart
-
isPackageInOrder
Description copied from interface:PackageFacadeChecks if the order is there and it has both transportation and accommodation parts- Specified by:
isPackageInOrderin interfacePackageFacade- Returns:
- status of the package in order
-
cleanUpCartBeforeAddition
public void cleanUpCartBeforeAddition(String departureLocation, String arrivalLocation, String departureDate, String returnDate, String accommodationOfferingCode, String checkInDate, String checkOutDate, List<RoomStayCandidateData> roomStayCandidates) Description copied from interface:PackageFacadeVerifies if whatever is currently in the cart, matches the details of package specified in the request. If it doesn't, the cart will be cleared.- Specified by:
cleanUpCartBeforeAdditionin interfacePackageFacade- Parameters:
departureLocation- departure locationarrivalLocation- arrival locationdepartureDate- departure datereturnDate- returning date (can be empty)accommodationOfferingCode- accommodation offering codecheckInDate- check in datecheckOutDate- check out date
-
addPackageToCart
public List<CartModificationData> addPackageToCart(AddPackageToCartData addPackageToCartData) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Description copied from interface:PackageFacadeAdd transport offerings and rooms into the cart.- Specified by:
addPackageToCartin interfacePackageFacade- Parameters:
addPackageToCartData- the addPackageToCartData- Returns:
- the cart modification data that includes a statusCode and the actual quantity that the entry was updated to
- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- if the cart cannot be modified
-
getAddBundleToCartRequestData
protected AddBundleToCartRequestData getAddBundleToCartRequestData(AddBundleToCartData bound, List<TravellerQuantityData> travellers) throws TravelCommerceCartModificationException Returns the AddBundleToCartRequestData.- Parameters:
bound- as the AddBundleToCartDatatravellers- the travellers- Returns:
- the AddBundleToCartRequestData
- Throws:
TravelCommerceCartModificationException- in case of errors
-
getPackageDetailsPipelineManager
Gets package details pipeline manager.- Returns:
- the package details pipeline manager
-
setPackageDetailsPipelineManager
public void setPackageDetailsPipelineManager(PackageDetailsPipelineManager packageDetailsPipelineManager) Sets package details pipeline manager.- Parameters:
packageDetailsPipelineManager- the package details pipeline manager
-
getAmendPackageDetailsPipelineManager
Gets amend package details pipeline manager.- Returns:
- the amendPackageDetailsPipelineManager
-
setAmendPackageDetailsPipelineManager
public void setAmendPackageDetailsPipelineManager(PackageDetailsPipelineManager amendPackageDetailsPipelineManager) Sets amend package details pipeline manager.- Parameters:
amendPackageDetailsPipelineManager- the amendPackageDetailsPipelineManager to set
-
getTravelCartFacade
Gets travel cart facade.- Returns:
- the travel cart facade
-
setTravelCartFacade
Sets travel cart facade.- Parameters:
travelCartFacade- the travel cart facade
-
getBookingFacade
Gets booking facade.- Returns:
- the booking facade
-
setBookingFacade
Sets booking facade.- Parameters:
bookingFacade- the booking facade
-
getAccommodationCartFacade
Gets accommodation cart facade.- Returns:
- the accommodation cart facade
-
setAccommodationCartFacade
Sets accommodation cart facade.- Parameters:
accommodationCartFacade- the accommodation cart facade
-
getPassengerTypeService
Gets passenger type service.- Returns:
- the passenger type service
-
setPassengerTypeService
Sets passenger type service.- Parameters:
passengerTypeService- the passenger type service
-