Interface TravelRulesService

All Known Implementing Classes:
DefaultTravelDroolsService

public interface TravelRulesService
Interface for Travel rules functionalities.
  • Method Details

    • evaluateCart

      List<CartEntryModel> evaluateCart(CartModel cart)
      Method to evaluate cart with rules to add fees and discounts.
      Parameters:
      cart - the cart
      Returns:
      cart entry
    • getTotalFee

      double getTotalFee()
      Method to get total fee eg:admin fee after evaluating the rules.
      Returns:
      total fee
    • getRefundAction

      RefundActionType getRefundAction(OrderModel orderModel)
      Method to get refund action after rules evaluation
      Parameters:
      orderModel - the order model
      Returns:
      refund action type
    • filterFareProducts

      List<FareProductData> filterFareProducts(List<FareProductData> fareProducts, FareSearchRequestData fareSearchRequest)
      Method to filter out the fare products that match rules
      Parameters:
      fareProducts - the fare products
      fareSearchRequest - the fare search request
      Returns:
      list of fare products excluded by rules evaluation
    • filterBundles

      @Deprecated List<String> filterBundles(FareSearchRequestData fareSearchRequestData, UserModel currentUser)
      Deprecated.
      since version 4.0
      Method to filter out bundles excluded by rules evaluation
      Parameters:
      fareSearchRequestData - the fare search request data
      currentUser - the current user
      Returns:
      list of bundle types excluded by rules evaluation
    • showBundleTemplates

      List<String> showBundleTemplates(FareSearchRequestData fareSearchRequestData)
      Method to show bundle templates returned from rule evaluation
      Parameters:
      fareSearchRequestData - the fare search request data
      Returns:
      list of bundle templates returned from rules evaluation
    • filterTransportOfferings

      void filterTransportOfferings(List<TransportOfferingData> transportOfferings, FareSearchRequestData fareSearchRequest)
      Method to filter out transport offerings that matches rules
      Parameters:
      transportOfferings - the transport offerings
      fareSearchRequest - the fare search request
    • showProducts

      List<String> showProducts(OfferRequestData offerRequestData)
      Method to show products returned after evaluating rules
      Parameters:
      offerRequestData - the offer request data
      Returns:
      list of product codes to be shown as per the rules
    • showProductCategories

      List<String> showProductCategories(OfferRequestData offerRequestData)
      Method to show product categories returned after evaluating rules
      Parameters:
      offerRequestData - the offer request data
      Returns:
      list of product codes to be shown as per the rules
    • showExtraProducts

      List<String> showExtraProducts(AccommodationReservationData reservationData)
      Show extra products list.
      Parameters:
      reservationData - the reservation data
      Returns:
      the list
    • showAccommodationOfferings

      List<String> showAccommodationOfferings(AccommodationSearchResponseData accommodationSearchResponseData)
      Show accommodation offerings.
      Parameters:
      accommodationSearchResponseData - the accommodation search response data
      Returns:
      the list
    • showAccommodationCategories

      List<String> showAccommodationCategories(AccommodationAvailabilityRequestData availabilityRequestData)
      Show accommodation categories list.
      Parameters:
      availabilityRequestData - the availability request data
      Returns:
      the list
    • showRatePlans

      List<String> showRatePlans(AccommodationAvailabilityRequestData availabilityRequestData, RoomStayData roomStayData)
      Show Rate Plans.
      Parameters:
      availabilityRequestData - the accommodation availability request data
      roomStayData - the room stay data
      Returns:
      the list of rate plans
    • showAccommodations

      List<String> showAccommodations(AccommodationAvailabilityRequestData accommodationAvailabilityRequestData, RoomStayData roomStayData)
      Show accommodations list.
      Parameters:
      accommodationAvailabilityRequestData - the accommodation availability request data
      roomStayData - the room stay data
      Returns:
      the list