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 Summary
Modifier and TypeMethodDescriptionvoidvalidateJourneyForAlaCarteOfferItem(NDCAlaCarteOfferItemData ndcAlaCarteOfferItemData, String alaCarteJourneyRefId, List<String> alaCartePaxSegmentIds) Validates: 1.voidvalidatePaxSegmentForAlaCarteOfferItem(NDCAlaCarteOfferItemData ndcAlaCarteOfferItemData, String alaCartePaxSegmentID, List<String> alaCartePaxSegmentIds) Validates: 1.
-
Method Details
-
validateJourneyForAlaCarteOfferItem
void validateJourneyForAlaCarteOfferItem(NDCAlaCarteOfferItemData ndcAlaCarteOfferItemData, String alaCarteJourneyRefId, 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 dataalaCarteJourneyRefId- the ala carte journey ref idalaCartePaxSegmentIds- 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 dataalaCartePaxSegmentID- the ala carte pax segment idalaCartePaxSegmentIds- the ala carte pax segment ids- Throws:
NDCException- the ndc exception
-