Interface DealFacade

All Known Implementing Classes:
DefaultDealFacade

public interface DealFacade
Facade that exposes Deal specific services
  • Method Details

    • getDealCategories

      List<DealCategoryData> getDealCategories()
      Returns a list of deal categories
      Returns:
      list of deal categories
    • searchDeals

      PackagesResponseData searchDeals(String dealCategoryCode)
      Performs a search for the DealBundleTemplate based on the deal category and first available starting date.
      Parameters:
      dealCategoryCode - the deal category code
      Returns:
      the PackageRequestData with the deal bundle templates matching the deal category and the first available starting date
    • getAvailableDealDates

      Set<Date> getAvailableDealDates(String dealId, Date startingDate, Date endingDate)
      Evaluates valid dates for the availability of the deal based on the deal id and the given dates.
      Parameters:
      dealId - the deal id
      startingDate - the starting date which used in search of available dates
      endingDate - the ending date which used in search of available dates
      Returns:
      the list of valid dates
    • getDealDetails

      PackageResponseData getDealDetails(String dealId, Date departureDate)
      Returns details for the DealBundleTemplate based on the deal id and the given departure date.
      Parameters:
      dealId - the deal id
      departureDate - the departure date
      Returns:
      the PackageResponseData with the deal bundle template matching the deal id and the given departure date
    • addDealToCart

      This method allows to add a deal to the current cart
      Parameters:
      addDealToCartData - the add deal to cart data
      Returns:
      list of cart modification data
      Throws:
      TravelCartModificationException