Interface SelectedAccommodationStrategy

All Known Implementing Classes:
TravellerStatusAccommodationValidationStrategy

public interface SelectedAccommodationStrategy
Strategy to validate the amendment of the selected accommodation
  • Method Details

    • validateSelectedAccommodation

      AddToCartResponseData validateSelectedAccommodation(String accommodationUid, String previousSelectedAccommodation, String transportOfferingCode, String travellerCode, String originDestinationRefNo, String travelRoute)
      Method to validate the amendment of a selected accommodation
      Parameters:
      accommodationUid - the accommodation Uid
      previousSelectedAccommodation - the previous selected accommodation
      transportOfferingCode - the transport offering code
      travellerCode - the traveller code
      originDestinationRefNo - the origin destination ref no
      travelRoute - the travel route
      Returns:
      the addToCartResponseData, where valid is true if the addAccommodationToCart is valid, false otherwise.