Class DefaultNDCAlaCarteValidator

java.lang.Object
de.hybris.platform.ndc182facades.facades.order.impl.DefaultNDCAlaCarteValidator
All Implemented Interfaces:
NDCAlaCarteValidator

public class DefaultNDCAlaCarteValidator extends Object implements NDCAlaCarteValidator
The implementation of NDCAlaCarteValidator
  • Constructor Details

    • DefaultNDCAlaCarteValidator

      public DefaultNDCAlaCarteValidator()
  • Method Details

    • validateJourneyForAlaCarteOfferItem

      public void validateJourneyForAlaCarteOfferItem(NDCAlaCarteOfferItemData ndcAlaCarteOfferItemData, String alaCarteJourneyRefId, String offerID, List<String> alaCartePaxSegmentIds) throws NDCException
      Description copied from interface: NDCAlaCarteValidator
      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
      Specified by:
      validateJourneyForAlaCarteOfferItem in interface NDCAlaCarteValidator
      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

      public void validatePaxSegmentForAlaCarteOfferItem(NDCAlaCarteOfferItemData ndcAlaCarteOfferItemData, String alaCartePaxSegmentID, List<String> alaCartePaxSegmentIds) throws NDCException
      Description copied from interface: NDCAlaCarteValidator
      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
      Specified by:
      validatePaxSegmentForAlaCarteOfferItem in interface NDCAlaCarteValidator
      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