Class DefaultNDCShoppingMerchandisingFacade
java.lang.Object
de.hybris.platform.ndc182shoppingfacades.facades.impl.DefaultNDCShoppingMerchandisingFacade
- All Implemented Interfaces:
NDCShoppingMerchandisingFacade
- Direct Known Subclasses:
DefaultNDCProsMerchandisingFacade
public abstract class DefaultNDCShoppingMerchandisingFacade
extends Object
implements NDCShoppingMerchandisingFacade
NDC extension of
DefaultShoppingMerchandisingFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AncillaryResponseDatacreateAncillaries(ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) Create AncillaryResponseData from the given shoppingMerchandisingHandlerDataprotected voiddiscardAncillaryProducts(List<String> returnedProducts, AncillaryResponseData ancillaryResponseData) This method filters out the ancillary products that should be evaluated as part of the rules but not returned after rule evaluationprotected voiddiscardBaggageProducts(List<String> returnedProducts, BaggageResponseData baggageResponseData) This method filters out the products that should be evaluated as part of the rules but not returned after rule evaluationprotected de.hybris.platform.servicelayer.dto.converter.Converter<OfferResponseData,AncillaryResponseData> Gets ancillary response data converter.protected OffersFacadeGets offers facade.protected TravelRulesServiceGets travel rules service.protected voidpopulateCommerceAncillaries(OfferRequestData offerRequest, AncillaryResponseData ancillaryResponseData, List<String> transportOfferingCodes) Populate commerce ancillaries.protected voidpopulateCommerceBaggageProducts(BaggageResponseData baggageResponseData) Populates the baggage Response Data with commerce baggage products.searchAncillaries(ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) Search ancillaries from shoppingMerchandisingHandlerDatavoidsetAncillaryResponseDataConverter(de.hybris.platform.servicelayer.dto.converter.Converter<OfferResponseData, AncillaryResponseData> ancillaryResponseDataConverter) Sets ancillary response data converter.abstract voidsetMerchandisingResponseToCart(CartModel cartModel) Sets merchandising response to cart.voidsetOffersFacade(OffersFacade offersFacade) Sets offers facade.voidsetTravelRulesService(TravelRulesService travelRulesService) Sets travel rules service.protected voidshowAncillaryProducts(OfferRequestData offerRequestData, AncillaryResponseData ancillaryResponseData) This method shows ancillary products that are evaluated using rulesprotected voidshowBaggageProducts(OfferRequestData offerRequestData, BaggageResponseData baggageResponseData) This method shows baggage products that are evaluated using rules
-
Constructor Details
-
DefaultNDCShoppingMerchandisingFacade
public DefaultNDCShoppingMerchandisingFacade()
-
-
Method Details
-
searchAncillaries
public AncillaryResponseData searchAncillaries(ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) throws MerchandisingRequestException, FarePriceException, NDCException Search ancillaries from shoppingMerchandisingHandlerData- Specified by:
searchAncillariesin interfaceNDCShoppingMerchandisingFacade- Parameters:
shoppingMerchandisingHandlerData- the shoppingMerchandisingHandlerData- Returns:
- AncillaryResponseData
- Throws:
MerchandisingRequestException- the MerchandisingRequestExceptionFarePriceException- the FarePriceExceptionNDCException
-
setMerchandisingResponseToCart
public abstract void setMerchandisingResponseToCart(CartModel cartModel) throws NDCException, MerchandisingRequestException Description copied from interface:NDCShoppingMerchandisingFacadeSets merchandising response to cart.- Specified by:
setMerchandisingResponseToCartin interfaceNDCShoppingMerchandisingFacade- Parameters:
cartModel- the cart model- Throws:
NDCException- the ndc exceptionMerchandisingRequestException- the merchandising request exception
-
createAncillaries
protected abstract AncillaryResponseData createAncillaries(ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) throws MerchandisingRequestException, FarePriceException, NDCException Create AncillaryResponseData from the given shoppingMerchandisingHandlerData- Parameters:
shoppingMerchandisingHandlerData- the shoppingMerchandisingHandlerData- Returns:
- AncillaryResponseData
- Throws:
MerchandisingRequestExceptionFarePriceExceptionNDCException
-
populateCommerceAncillaries
protected void populateCommerceAncillaries(OfferRequestData offerRequest, AncillaryResponseData ancillaryResponseData, List<String> transportOfferingCodes) Populate commerce ancillaries.- Parameters:
offerRequest- the offer requestancillaryResponseData- the ancillary response datatransportOfferingCodes- the transport offering codes
-
populateCommerceBaggageProducts
Populates the baggage Response Data with commerce baggage products.- Parameters:
baggageResponseData- the baggage response data
-
showAncillaryProducts
protected void showAncillaryProducts(OfferRequestData offerRequestData, AncillaryResponseData ancillaryResponseData) This method shows ancillary products that are evaluated using rules- Parameters:
offerRequestData- the offer request dataancillaryResponseData- the ancillary response data
-
discardAncillaryProducts
protected void discardAncillaryProducts(List<String> returnedProducts, AncillaryResponseData ancillaryResponseData) This method filters out the ancillary products that should be evaluated as part of the rules but not returned after rule evaluation- Parameters:
returnedProducts- the returned productsancillaryResponseData- the ancillary response data
-
showBaggageProducts
protected void showBaggageProducts(OfferRequestData offerRequestData, BaggageResponseData baggageResponseData) This method shows baggage products that are evaluated using rules- Parameters:
offerRequestData- the offer request databaggageResponseData- the baggage response data
-
discardBaggageProducts
protected void discardBaggageProducts(List<String> returnedProducts, BaggageResponseData baggageResponseData) This method filters out the products that should be evaluated as part of the rules but not returned after rule evaluation- Parameters:
returnedProducts- the returned productsbaggageResponseData- the baggage response data
-
getOffersFacade
Gets offers facade.- Returns:
- the offers facade
-
setOffersFacade
Sets offers facade.- Parameters:
offersFacade- the offers facade
-
getTravelRulesService
Gets travel rules service.- Returns:
- the travelRulesService
-
setTravelRulesService
Sets travel rules service.- Parameters:
travelRulesService- the travelRulesService to set
-
getAncillaryResponseDataConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<OfferResponseData,AncillaryResponseData> getAncillaryResponseDataConverter()Gets ancillary response data converter.- Returns:
- the ancillary response data converter
-
setAncillaryResponseDataConverter
public void setAncillaryResponseDataConverter(de.hybris.platform.servicelayer.dto.converter.Converter<OfferResponseData, AncillaryResponseData> ancillaryResponseDataConverter) Sets ancillary response data converter.- Parameters:
ancillaryResponseDataConverter- the ancillary response data converter
-