Class DefaultOfferPriceFacade
java.lang.Object
de.hybris.platform.ndc182shoppingfacades.facades.offerprice.impl.DefaultOfferPriceFacade
- All Implemented Interfaces:
OfferPriceFacade
The ndc 182 implementation of
OfferPriceFacade interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IATAOfferPriceRScreateError(String message) creates error from caught exception in offer price processcreateOfferPriceRSError(List<ErrorType> errorsType) Creates the offerPriceRS with errors type field populated.protected NDCOfferFacadeGets ndc offer facade.protected NDCPassengerTypeServiceGets ndcPassengerTypeService.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.protected OfferPricePipelineManagerGets offer price pipeline managers.protected de.hybris.platform.commercefacades.storesession.StoreSessionFacadeGets store session facade.protected voidsetCurrencyInSession(IATAOfferPriceRQ offerPriceRQ) Sets currency in session if it is specified in the offerPriceRQ.voidsetNdcOfferFacade(NDCOfferFacade ndcOfferFacade) Sets ndc offer facade.voidsetNdcPassengerTypeService(NDCPassengerTypeService ndcPassengerTypeService) Sets ndcPassengerTypeService.voidsetOfferPricePipelineManager(OfferPricePipelineManager offerPricePipelineManager) Sets offer price pipeline managers.voidsetStoreSessionFacade(de.hybris.platform.commercefacades.storesession.StoreSessionFacade storeSessionFacade) Sets store session facade.protected voidvalidateNdcOfferDataByOfferItemsAndPaxList(NDCCarrierOfferData ndcOfferData, SelectedOfferType selectedOffer, List<PaxType> paxList) Validates the ndc offer data by offer items.protected voidvalidateNdcOfferDataByPaxList(List<NDCPassengerData> ndcPassengerDataList, List<String> selectedOfferPaxList, List<PaxType> paxTypeList) Validates the ndc offer data by pax list.
-
Constructor Details
-
DefaultOfferPriceFacade
public DefaultOfferPriceFacade()
-
-
Method Details
-
getOfferPrice
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:
getOfferPricein interfaceOfferPriceFacade- 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 dataselectedOffer- the selectedOfferpaxList- 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 ndcPassengerDataListselectedOfferPaxList- the selectedOfferPaxList- Throws:
NDCException
-
setCurrencyInSession
Sets currency in session if it is specified in the offerPriceRQ.- Parameters:
offerPriceRQ- the offerPriceRQ- Throws:
NDCException
-
createError
creates error from caught exception in offer price process- Parameters:
message- the message- Returns:
- the offerPriceRS error
-
createOfferPriceRSError
Creates the offerPriceRS with errors type field populated.- Specified by:
createOfferPriceRSErrorin interfaceOfferPriceFacade- 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
Gets offer price pipeline managers.- Returns:
- the offer price pipeline managers
-
setOfferPricePipelineManager
Sets offer price pipeline managers.- Parameters:
offerPricePipelineManager- the offer price pipeline managers
-
getNdcOfferFacade
Gets ndc offer facade.- Returns:
- the ndc offer facade
-
setNdcOfferFacade
Sets ndc offer facade.- Parameters:
ndcOfferFacade- the ndc offer facade
-
getNdcPassengerTypeService
Gets ndcPassengerTypeService.- Returns:
- the ndcPassengerTypeService
-
setNdcPassengerTypeService
Sets ndcPassengerTypeService.- Parameters:
ndcPassengerTypeService- the ndcPassengerTypeService
-