Class AncillaryExtrasPageController


@Controller @RequestMapping({"/ancillary-extras","/manage-booking/ancillary-extras"}) public class AncillaryExtrasPageController extends TravelAbstractPageController
Controller for Ancillary Extras page
  • Constructor Details

    • AncillaryExtrasPageController

      public AncillaryExtrasPageController()
  • Method Details

    • getAncillaryPage

      @RequestMapping(method=GET) public String getAncillaryPage(org.springframework.ui.Model model, @RequestParam(value="roomStay",required=false) Integer roomStayRefNumberToUpdate) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Parameters:
      model -
      Returns:
      String
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getUpgradeBundleOptionsPage

      @RequestMapping(value="/upgrade-bundle-options", method=GET, produces="application/json") public String getUpgradeBundleOptionsPage(org.springframework.ui.Model model)
      Parameters:
      model -
      Returns:
      String
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • isUpgradeAvailable

      protected boolean isUpgradeAvailable(List<PricedItineraryData> pricedItineraries)
    • nextPage

      @RequestMapping(value="/next", method=GET) public String nextPage(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
      Redirects user to the next checkout page which is personal details
      Parameters:
      redirectModel -
      Returns:
      personal details page
    • determineNextUrl

      protected String determineNextUrl()
      This method determines the next url of checkout flow. If the context is purchase flow, then the next url is "/ancillary/next" else if the context is Amendments then the next url is "/manage-booking/ancillary/next".
      Returns:
      next url
    • getDefaultRoomBedPreferenceCode

      protected String getDefaultRoomBedPreferenceCode()
      Returns:
      the defaultRoomBedPreferenceCode
    • setDefaultRoomBedPreferenceCode

      public void setDefaultRoomBedPreferenceCode(String defaultRoomBedPreferenceCode)
      Parameters:
      defaultRoomBedPreferenceCode - the defaultRoomBedPreferenceCode to set