Class DefaultNDCAlaCarteOfferDataValidationStrategy

java.lang.Object
de.hybris.platform.ndc182facades.facades.order.strategies.impl.DefaultNDCAlaCarteOfferDataValidationStrategy
All Implemented Interfaces:
OrderCreateRQValidationStrategy<NDCAlaCarteOfferData>

public class DefaultNDCAlaCarteOfferDataValidationStrategy extends Object implements OrderCreateRQValidationStrategy<NDCAlaCarteOfferData>
The ndc 18.2 implementation of OrderCreateRQValidationStrategy interface.
  • Constructor Details

    • DefaultNDCAlaCarteOfferDataValidationStrategy

      public DefaultNDCAlaCarteOfferDataValidationStrategy()
  • Method Details

    • validate

      public void validate(List<NDCAlaCarteOfferData> ndcOfferDataList, IATAOrderCreateRQ orderCreateRQ) throws NDCException
      This method validates an AlaCarteOfferData. For each offerItem checks if 1) exists the same offerItem in the cached offer, 2) the passengers are the same, 3) the paxJourney linked to the ancillary is equal to the cached one (same transport offerings).
      Specified by:
      validate in interface OrderCreateRQValidationStrategy<NDCAlaCarteOfferData>
      Parameters:
      ndcOfferDataList - the ndcOfferDataList
      orderCreateRQ - the orderCreateRQ
      Throws:
      NDCException
    • filterAlaCarteOfferItemsAndPassengers

      protected void filterAlaCarteOfferItemsAndPassengers(NDCAlaCarteOfferData ndcAlaCarteOfferData, SelectedOfferType selectedOffer)
      Removes all the alaCarteOfferItems which are not included in the selected offer item list and filter the list of passenger for each of them.
      Parameters:
      ndcAlaCarteOfferData - the ndc ala carte offer data
      selectedOffer - the selected offer
    • validateAlaCarteOfferItems

      protected void validateAlaCarteOfferItems(List<NDCAlaCarteOfferItemData> offerItemIds, SelectedOfferType selectedOffer, String offerID, DataListsType dataLists) throws NDCException
      Validates all the alaCarteOfferItems. Checks if the offerItems are the same.
      Parameters:
      offerItemIds - the offer item ids
      selectedOffer - the selectedOffer
      offerID - the offer id
      dataLists - the data lists
      Throws:
      NDCException - the ndc exception
    • validatePaxList

      protected void validatePaxList(List<NDCPassengerData> passengers, List<String> paxRefID) throws NDCException
      Validates the ndc offer item data by pax list. For each offerItem checks if the list of the passengers is the same.
      Parameters:
      passengers - the passengers
      paxRefID - the pax ref id
      Throws:
      NDCException - the ndc exception
    • getNdcAlaCarteValidator

      protected NDCAlaCarteValidator getNdcAlaCarteValidator()
      Gets ndc ala carte validator.
      Returns:
      the ndc ala carte validator
    • setNdcAlaCarteValidator

      public void setNdcAlaCarteValidator(NDCAlaCarteValidator ndcAlaCarteValidator)
      Sets ndc ala carte validator.
      Parameters:
      ndcAlaCarteValidator - the ndc ala carte validator