Interface DealFacade
- All Known Implementing Classes:
DefaultDealFacade
public interface DealFacade
Facade that exposes Deal specific services
-
Method Summary
Modifier and TypeMethodDescriptionaddDealToCart(AddDealToCartData addDealToCartData) This method allows to add a deal to the current cartgetAvailableDealDates(String dealId, Date startingDate, Date endingDate) Evaluates valid dates for the availability of the deal based on the deal id and the given dates.Returns a list of deal categoriesgetDealDetails(String dealId, Date departureDate) Returns details for the DealBundleTemplate based on the deal id and the given departure date.searchDeals(String dealCategoryCode) Performs a search for the DealBundleTemplate based on the deal category and first available starting date.
-
Method Details
-
getDealCategories
List<DealCategoryData> getDealCategories()Returns a list of deal categories- Returns:
- list of deal categories
-
searchDeals
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
Evaluates valid dates for the availability of the deal based on the deal id and the given dates.- Parameters:
dealId- the deal idstartingDate- the starting date which used in search of available datesendingDate- the ending date which used in search of available dates- Returns:
- the list of valid dates
-
getDealDetails
Returns details for the DealBundleTemplate based on the deal id and the given departure date.- Parameters:
dealId- the deal iddepartureDate- the departure date- Returns:
- the PackageResponseData with the deal bundle template matching the deal id and the given departure date
-
addDealToCart
List<CartModificationData> addDealToCart(AddDealToCartData addDealToCartData) throws TravelCartModificationException 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
-