Class DefaultOfferPricePricedOfferHandler

java.lang.Object
de.hybris.platform.ndc182facades.facades.offerprice.handlers.impl.DefaultOfferPricePricedOfferHandler
All Implemented Interfaces:
OfferPriceHandler

public class DefaultOfferPricePricedOfferHandler extends Object implements OfferPriceHandler
The ndc implementation of OfferPriceHandler interface.
  • Constructor Details

    • DefaultOfferPricePricedOfferHandler

      public DefaultOfferPricePricedOfferHandler()
  • Method Details

    • handle

      public void handle(NDCCarrierOfferData ndcOfferData, IATAOfferPriceRS offerPriceRS) throws NDCException
      This handler populates the pricedOffers. Each offerItem in the offer corresponds to a bundle for a certain type of passenger.
      Specified by:
      handle in interface OfferPriceHandler
      Parameters:
      ndcOfferData - the ndcOffersData
      offerPriceRS - the offerPriceRS
      Throws:
      NDCException
    • createPricedOffer

      protected void createPricedOffer(NDCCarrierOfferData ndcOfferData, ResponseType responseType) throws NDCException
      Creates the priced offer.
      Parameters:
      ndcOfferData - the ndc offer data
      responseType - the responseType
      Throws:
      NDCException
    • createJourneyOverview

      protected JourneyOverviewType createJourneyOverview(NDCCarrierOfferData ndcOfferData) throws NDCException
      Creates the journey overview.
      Parameters:
      ndcOfferData - the ndc offer data
      Returns:
      the journey overview type
      Throws:
      NDCException
    • createOfferItems

      protected List<OfferItemType> createOfferItems(NDCCarrierOfferData ndcOfferData) throws NDCException
      Creates offer items collection.
      Parameters:
      ndcOfferData - the ndc offer data
      Returns:
      the collection
      Throws:
      NDCException
    • createServices

      protected List<Service1Type> createServices(NDCCarrierOfferItemData ndcOfferItemData, String offerID) throws NDCException
      Create services list.
      Parameters:
      ndcOfferItemData - the ndc offer item data
      offerID - the offerID
      Returns:
      the list
      Throws:
      NDCException
    • createServicesFromIncludedAncillaries

      protected List<Service1Type> createServicesFromIncludedAncillaries(List<ProductModel> includedAncillaries, List<NDCPassengerData> ndcPassengerDataList, List<String> transportOfferingCodes)
      Creates services from included ancillaries list.
      Parameters:
      includedAncillaries - the included ancillaries
      ndcPassengerDataList - the ndc passenger data list
      transportOfferingCodes - the transport offering codes
      Returns:
      the list
    • createServiceFromFareProducts

      protected List<Service1Type> createServiceFromFareProducts(List<ProductModel> fareProducts, List<NDCPassengerData> ndcPassengerDataList, String routeCode, String offerID, List<String> transportOfferingCodes)
      Creates service from fare products list.
      Parameters:
      fareProducts - the fare products
      ndcPassengerDataList - the ndc passenger data list
      routeCode - the route code
      offerID - the offer id
      transportOfferingCodes -
      Returns:
      the list
    • calculatePriceForOfferItem

      protected PriceType calculatePriceForOfferItem(NDCCarrierOfferItemData ndcOfferItemData) throws NDCException
      Calculates the price for an offer item.
      Parameters:
      ndcOfferItemData - the ndc offer item data
      Returns:
      the price type
      Throws:
      NDCException
    • createTaxSummary

      protected TaxSummaryType createTaxSummary(List<TaxData> taxes)
      Creates tax summary list.
      Parameters:
      taxes - the taxes
      Returns:
      the list
    • getConfigurationService

      protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Gets configuration service.
      Returns:
      the configuration service
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Sets configuration service.
      Parameters:
      configurationService - the configuration service
    • getTravelBundleTemplateService

      protected TravelBundleTemplateService getTravelBundleTemplateService()
      Gets travel bundle template service.
      Returns:
      the travel bundle template service
    • setTravelBundleTemplateService

      public void setTravelBundleTemplateService(TravelBundleTemplateService travelBundleTemplateService)
      Sets travel bundle template service.
      Parameters:
      travelBundleTemplateService - the travel bundle template service
    • getNdcPriceFacade

      protected NDCTravelCommercePriceFacade getNdcPriceFacade()
      Gets ndc price facade.
      Returns:
      the ndc price facade
    • setNdcPriceFacade

      public void setNdcPriceFacade(NDCTravelCommercePriceFacade ndcPriceFacade)
      Sets ndc price facade.
      Parameters:
      ndcPriceFacade - the ndc price facade
    • getNdcOrderService

      protected NDCOrderService getNdcOrderService()
      Gets ndc order service.
      Returns:
      the ndc order service
    • setNdcOrderService

      public void setNdcOrderService(NDCOrderService ndcOrderService)
      Sets ndc order service.
      Parameters:
      ndcOrderService - the ndc order service