Interface ShoppingTravellerFacade

All Superinterfaces:
TravellerFacade
All Known Implementing Classes:
DefaultShoppingTravellerFacade

public interface ShoppingTravellerFacade extends TravellerFacade
Facade that exposes Traveller specific services
  • Method Details

    • createTraveller

      TravellerData createTraveller(String travellerType, String passengerType, String travellerCode, int passengerNumber, String travellerUidPrefix, String cartOrOrderCode, int shoppingTravellerId)
      Creates a new instance of TravellerData with relevant details populated
      Parameters:
      travellerType - the traveller type
      passengerType - the passenger type
      travellerCode - the traveller code
      passengerNumber - the passenger number
      travellerUidPrefix - the traveller uid prefix
      cartOrOrderCode - the cartOrOrderCode
      shoppingTravellerId - the shopping traveller id
      Returns:
      newly created instance of Traveller
    • getTravellersFromCart

      List<TravellerData> getTravellersFromCart(Integer solutionId)
      Method gets travellers from session cart entries for the given solution id.
      Parameters:
      solutionId - the solution id
      Returns:
      the list of traveller data
    • getTravellerFromCart

      TravellerData getTravellerFromCart(String travellerUid, Integer solutionId)
      Method gets traveller from session cart entries for the given traveller uid and solution id.
      Parameters:
      travellerUid - the traveller uid
      solutionId - the solution id
      Returns:
      the traveller data
    • getTravellersFromOrder

      List<TravellerData> getTravellersFromOrder(String orderId, Integer solutionId)
      Method gets travellers from order entries for the given solution id.
      Parameters:
      orderId - the order id
      solutionId - the solution id
      Returns:
      the list of traveller data
    • getTravellerFromOrder

      TravellerData getTravellerFromOrder(String orderId, String travellerUid, Integer solutionId)
      Method gets traveller from order entries for the given traveller uid and solution id.
      Parameters:
      orderId - the order id
      travellerUid - the traveller uid
      solutionId - the solution id
      Returns:
      the traveller data
    • saveAdvancePassengerInformation

      void saveAdvancePassengerInformation(String orderId, String travellerId, PassengerInformationData passengerInformationData, Integer solutionId)
      Method is used to save advance passenger details for traveller with solution id.
      Parameters:
      orderId - the orderId
      travellerId - the travellerId
      passengerInformationData - the passengerInformationData
      solutionId - the solution id
    • getAdvancePassengerInformation

      PassengerInformationData getAdvancePassengerInformation(String orderId, Integer solutionId, String travellerId)
      Method to get the advance passenger information details of a passenger against order.
      Parameters:
      orderId - the userId
      solutionId - the solutionId
      travellerId - the travellerId
      Returns:
      passengerInformationData