Class DefaultOfferPriceFacade

java.lang.Object
de.hybris.platform.ndc182facades.facades.offerprice.impl.DefaultOfferPriceFacade
All Implemented Interfaces:
OfferPriceFacade

public class DefaultOfferPriceFacade extends Object implements OfferPriceFacade
The ndc 182 implementation of OfferPriceFacade interface.
  • Constructor Details

    • DefaultOfferPriceFacade

      public DefaultOfferPriceFacade()
  • Method Details

    • getOfferPrice

      public IATAOfferPriceRS getOfferPrice(IATAOfferPriceRQ offerPriceRQ)
      Gets the actual price for an offer and the available ancillaries for each transport offering included in the offer and populates the OfferPriceRS with these data.
      Specified by:
      getOfferPrice in interface OfferPriceFacade
      Parameters:
      offerPriceRQ - the offerPriceRQ
      Returns:
      the IATAOfferPriceRS
    • validateNdcOfferDataByOfferItemsAndPaxList

      protected void validateNdcOfferDataByOfferItemsAndPaxList(NDCCarrierOfferData ndcOfferData, SelectedOfferType selectedOffer, List<PaxType> paxList) throws NDCException
      Validates the ndc offer data by offer items. Checks if all the offerItems are present in the ndcOfferData retrieved from the cache.
      Parameters:
      ndcOfferData - the ndc offer data
      selectedOffer - the selectedOffer
      paxList - the paxList
      Throws:
      NDCException
    • validateNdcOfferDataByPaxList

      protected void validateNdcOfferDataByPaxList(List<NDCPassengerData> ndcPassengerDataList, List<String> selectedOfferPaxList, List<PaxType> paxTypeList) throws NDCException
      Validates the ndc offer data by pax list. For each offerItem checks if the list of the passengers (and the type) is the same. Note that an offerItem has the type of passenger in its paxList.
      Parameters:
      ndcPassengerDataList - the ndcPassengerDataList
      selectedOfferPaxList - the selectedOfferPaxList
      Throws:
      NDCException
    • setCurrencyInSession

      protected void setCurrencyInSession(IATAOfferPriceRQ offerPriceRQ) throws NDCException
      Sets currency in session if it is specified in the offerPriceRQ.
      Parameters:
      offerPriceRQ - the offerPriceRQ
      Throws:
      NDCException
    • createError

      protected IATAOfferPriceRS createError(String message)
      creates error from caught exception in airshopping process
      Parameters:
      message - the message
      Returns:
      the offerPriceRS error
    • createOfferPriceRSError

      public IATAOfferPriceRS createOfferPriceRSError(List<ErrorType> errorsType)
      Creates the offerPriceRS with errors type field populated.
      Specified by:
      createOfferPriceRSError in interface OfferPriceFacade
      Parameters:
      errorsType - the errors type
      Returns:
      the IATAOfferPriceRS
    • getStoreSessionFacade

      protected de.hybris.platform.commercefacades.storesession.StoreSessionFacade getStoreSessionFacade()
      Gets store session facade.
      Returns:
      the store session facade
    • setStoreSessionFacade

      public void setStoreSessionFacade(de.hybris.platform.commercefacades.storesession.StoreSessionFacade storeSessionFacade)
      Sets store session facade.
      Parameters:
      storeSessionFacade - the store session facade
    • getOfferPricePipelineManager

      protected OfferPricePipelineManager getOfferPricePipelineManager()
      Gets offer price pipeline managers.
      Returns:
      the offer price pipeline managers
    • setOfferPricePipelineManager

      public void setOfferPricePipelineManager(OfferPricePipelineManager offerPricePipelineManager)
      Sets offer price pipeline managers.
      Parameters:
      offerPricePipelineManager - the offer price pipeline managers
    • getNdcOfferFacade

      protected NDCOfferFacade getNdcOfferFacade()
      Gets ndc offer facade.
      Returns:
      the ndc offer facade
    • setNdcOfferFacade

      public void setNdcOfferFacade(NDCOfferFacade ndcOfferFacade)
      Sets ndc offer facade.
      Parameters:
      ndcOfferFacade - the ndc offer facade