Interface NDCAlaCarteValidator

All Known Implementing Classes:
DefaultNDCAlaCarteValidator

public interface NDCAlaCarteValidator
The Ndc validation facade interface. All common methods related to request/response validation can be placed here.
  • Method Details

    • validateJourneyForAlaCarteOfferItem

      void validateJourneyForAlaCarteOfferItem(NDCAlaCarteOfferItemData ndcAlaCarteOfferItemData, String alaCarteJourneyRefId, String offerID, List<String> alaCartePaxSegmentIds) throws NDCException
      Validates: 1. alaCartePaxJourneyIds from the PaxJourneyList contains alaCarteJourneyRefId from FlightAssociations 2. Transport offerings in the journey is same as the transport offerings from the cache
      Parameters:
      ndcAlaCarteOfferItemData - the ndc ala carte offer item data
      alaCarteJourneyRefId - the ala carte journey ref id
      offerID - the offer id
      alaCartePaxSegmentIds - the ala carte pax segment ids
      Throws:
      NDCException - the ndc exception
    • validatePaxSegmentForAlaCarteOfferItem

      void validatePaxSegmentForAlaCarteOfferItem(NDCAlaCarteOfferItemData ndcAlaCarteOfferItemData, String alaCartePaxSegmentID, List<String> alaCartePaxSegmentIds) throws NDCException
      Validates: 1. alaCartePaxSegmentIds from the PaxJourneyList contains alaCartePaxSegmentID from FlightAssociations 2. Transport offerings in the segment is same as the transport offerings from the cache
      Parameters:
      ndcAlaCarteOfferItemData - the ndc ala carte offer item data
      alaCartePaxSegmentID - the ala carte pax segment id
      alaCartePaxSegmentIds - the ala carte pax segment ids
      Throws:
      NDCException - the ndc exception