Class DefaultOfferPricePricedOfferHandler
java.lang.Object
de.hybris.platform.ndc182facades.facades.offerprice.handlers.impl.DefaultOfferPricePricedOfferHandler
- All Implemented Interfaces:
OfferPriceHandler
The ndc implementation of
OfferPriceHandler interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PriceTypecalculatePriceForOfferItem(NDCCarrierOfferItemData ndcOfferItemData) Calculates the price for an offer item.protected JourneyOverviewTypecreateJourneyOverview(NDCCarrierOfferData ndcOfferData) Creates the journey overview.protected List<OfferItemType>createOfferItems(NDCCarrierOfferData ndcOfferData) Creates offer items collection.protected voidcreatePricedOffer(NDCCarrierOfferData ndcOfferData, ResponseType responseType) Creates the priced offer.protected List<Service1Type>createServiceFromFareProducts(List<ProductModel> fareProducts, List<NDCPassengerData> ndcPassengerDataList, String routeCode, String offerID, List<String> transportOfferingCodes) Creates service from fare products list.protected List<Service1Type>createServices(NDCCarrierOfferItemData ndcOfferItemData, String offerID) Create services list.protected List<Service1Type>createServicesFromIncludedAncillaries(List<ProductModel> includedAncillaries, List<NDCPassengerData> ndcPassengerDataList, List<String> transportOfferingCodes) Creates services from included ancillaries list.protected TaxSummaryTypecreateTaxSummary(List<TaxData> taxes) Creates tax summary list.protected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.protected NDCOrderServiceGets ndc order service.protected NDCTravelCommercePriceFacadeGets ndc price facade.protected TravelBundleTemplateServiceGets travel bundle template service.voidhandle(NDCCarrierOfferData ndcOfferData, IATAOfferPriceRS offerPriceRS) This handler populates the pricedOffers.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.voidsetNdcOrderService(NDCOrderService ndcOrderService) Sets ndc order service.voidsetNdcPriceFacade(NDCTravelCommercePriceFacade ndcPriceFacade) Sets ndc price facade.voidsetTravelBundleTemplateService(TravelBundleTemplateService travelBundleTemplateService) Sets travel bundle template service.
-
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:
handlein interfaceOfferPriceHandler- Parameters:
ndcOfferData- the ndcOffersDataofferPriceRS- the offerPriceRS- Throws:
NDCException
-
createPricedOffer
protected void createPricedOffer(NDCCarrierOfferData ndcOfferData, ResponseType responseType) throws NDCException Creates the priced offer.- Parameters:
ndcOfferData- the ndc offer dataresponseType- 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 dataofferID- 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 ancillariesndcPassengerDataList- the ndc passenger data listtransportOfferingCodes- 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 productsndcPassengerDataList- the ndc passenger data listrouteCode- the route codeofferID- the offer idtransportOfferingCodes-- 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
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
Gets travel bundle template service.- Returns:
- the travel bundle template service
-
setTravelBundleTemplateService
Sets travel bundle template service.- Parameters:
travelBundleTemplateService- the travel bundle template service
-
getNdcPriceFacade
Gets ndc price facade.- Returns:
- the ndc price facade
-
setNdcPriceFacade
Sets ndc price facade.- Parameters:
ndcPriceFacade- the ndc price facade
-
getNdcOrderService
Gets ndc order service.- Returns:
- the ndc order service
-
setNdcOrderService
Sets ndc order service.- Parameters:
ndcOrderService- the ndc order service
-