Interface FareSearchHashResolver

All Known Implementing Classes:
DefaultFareSearchHashResolver

public interface FareSearchHashResolver
Interface for the FareSearchHashResolver
  • Method Details

    • generateSeed

      String generateSeed()
      Returns a random string generated using SecureRandom
      Returns:
    • generateIdentifier

      String generateIdentifier(ItineraryPricingInfoData itineraryPricingInfo)
      Generates the identifier based on the seed stored in session and the ItineraryPricingInfoData provided
      Parameters:
      itineraryPricingInfo -
    • generateIdentifier

      String generateIdentifier(ItineraryPricingInfoData itineraryPricingInfo, String searchSeed)
      Generates the identifier based on the seed and the ItineraryPricingInfoData provided
      Parameters:
      itineraryPricingInfo -
    • validItineraryIdentifier

      boolean validItineraryIdentifier(AddBundleToCartRequestData addBundleToCartRequestData, String itineraryIdentifier, String bundleType)
      Returns true if the identifier generated from the AddBundleToCartRequestData matches with the itineraryIdentifier and bundleType provided
      Parameters:
      addBundleToCartRequestData -
      itineraryIdentifier -
      bundleType -
      Returns:
    • validItineraryIdentifier

      boolean validItineraryIdentifier(List<ItineraryPricingInfoData> itineraryPricingInfos, String bundleTemplateID)
      Returns true if the identifier included in the ItineraryPricingInfoData matches the products included in the offer. Removes all the seeds from the session. This function in meant to be called from a deal page that reloads its content and regenerates the search seeds.
      Parameters:
      itineraryPricingInfos -
      bundleTemplateID -
      Returns:
    • validPackageItineraryIdentifier

      boolean validPackageItineraryIdentifier(ItineraryPricingInfoData itineraryPricingInfo)
      Returns true if the identifier included in the ItineraryPricingInfoData matches the products included in the offer
      Parameters:
      itineraryPricingInfo -
      Returns: