Interface PackageFacade
- All Known Subinterfaces:
ShoppingPackageFacade
- All Known Implementing Classes:
DefaultPackageFacade,DefaultShoppingPackageFacade
public interface PackageFacade
The interface for Package Facade.
-
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.getAmendPackageResponse(PackageRequestData packageRequestData) Evaluates package response based on the package request provided and the transportation from cart.getPackageResponse(PackageRequestData packageRequestData) Evaluates package response based on the package request provided.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 parts
-
Method Details
-
getPackageResponse
Evaluates package response based on the package request provided.- Parameters:
packageRequestData- package request data- Returns:
- the package response data
-
getAmendPackageResponse
Evaluates package response based on the package request provided and the transportation from cart.- Parameters:
packageRequestData- package request data- Returns:
- the package response data
-
isPackageInCart
Boolean isPackageInCart()Checks if the cart is there and it has both transportation and accommodation parts- Returns:
- status of the package cart
-
isPackageInOrder
Checks if the order is there and it has both transportation and accommodation parts- Parameters:
bookingReference-- Returns:
- status of the package in order
-
cleanUpCartBeforeAddition
void cleanUpCartBeforeAddition(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. If it doesn't, the cart will be cleared.- Parameters:
departureLocation- departure locationarrivalLocation- arrival locationdepartureDate- departure datereturnDate- returning date (can be empty)accommodationOfferingCode- accommodation offering codecheckInDate- check in datecheckOutDate- check out dateroomStayCandidates-
-
addPackageToCart
List<CartModificationData> addPackageToCart(AddPackageToCartData addPackageToCartData) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Add transport offerings and rooms into the cart.- 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
-