Interface ShoppingTravelCartService

All Superinterfaces:
de.hybris.platform.order.AbstractOrderService<CartModel,CartEntryModel>, de.hybris.platform.order.CartService, TravelCartService
All Known Implementing Classes:
DefaultPROSTravelCartService, DefaultShoppingTravelCartService

public interface ShoppingTravelCartService extends TravelCartService
The interface shopping travel cart service
  • Method Details

    • validateCart

      void validateCart() throws de.hybris.platform.order.InvalidCartException
      Validate cart.
      Throws:
      de.hybris.platform.order.InvalidCartException - the invalid cart exception
    • cancelSolution

      double cancelSolution(CartModel cartModel, RepricingRequestData repricingRequestData, ShoppingRepricingResponseMessage repricerResponseMessage) throws CancelFlightException, de.hybris.platform.order.exceptions.CalculationException
      This method deletes a specific solution from the cart for all the associated passengers.
      Parameters:
      cartModel - the cartModel
      repricingRequestData - the solution Id
      repricerResponseMessage - the repricer response message
      Returns:
      the total amount to refund
      Throws:
      CancelFlightException
      de.hybris.platform.order.exceptions.CalculationException
    • addChangeFee

      void addChangeFee(CartModel cartModel, TravellerData traveller) throws ChangeFlightException
      Adds a change fee to the cart for a specific traveller.
      Parameters:
      cartModel - the cart model
      traveller - the traveller
      Throws:
      ChangeFlightException - thrown when an error occurs during the addition of the changeFee product in the cart.
    • removeOrderEntriesBySolutionId

      void removeOrderEntriesBySolutionId(Integer solutionId, CartModel cartModel, List<String> passengerIds) throws CancelFlightException
      Removes the order entries having the specific solution Id or the same transport offering for that solution.
      Parameters:
      solutionId - the solution Id
      cartModel - the cart model
      passengerIds - the list of passengers
      Throws:
      CancelFlightException
    • addEvenExchangeFee

      void addEvenExchangeFee(CartModel cartModel, TravellerModel traveller) throws ChangeFlightException
      Adds an even exchange fee to the cart.
      Parameters:
      cartModel - the cart model
      traveller - the traveller
      Throws:
      ChangeFlightException - thrown when an error occurs during the addition of the EvenExchangeFee product in the cart.