Interface PackageFacade

All Known Subinterfaces:
ShoppingPackageFacade
All Known Implementing Classes:
DefaultPackageFacade, DefaultShoppingPackageFacade

public interface PackageFacade
The interface for Package Facade.
  • Method Details

    • getPackageResponse

      PackageResponseData getPackageResponse(PackageRequestData packageRequestData)
      Evaluates package response based on the package request provided.
      Parameters:
      packageRequestData - package request data
      Returns:
      the package response data
    • getAmendPackageResponse

      PackageResponseData getAmendPackageResponse(PackageRequestData packageRequestData)
      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

      Boolean isPackageInOrder(String bookingReference)
      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 location
      arrivalLocation - arrival location
      departureDate - departure date
      returnDate - returning date (can be empty)
      accommodationOfferingCode - accommodation offering code
      checkInDate - check in date
      checkOutDate - check out date
      roomStayCandidates -
    • 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