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
  • Constructor Details

    • DefaultNDCShoppingMerchandisingFacade

      public DefaultNDCShoppingMerchandisingFacade()
  • Method Details

    • searchAncillaries

      public AncillaryResponseData searchAncillaries(ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) throws MerchandisingRequestException, FarePriceException, NDCException
      Search ancillaries from shoppingMerchandisingHandlerData
      Specified by:
      searchAncillaries in interface NDCShoppingMerchandisingFacade
      Parameters:
      shoppingMerchandisingHandlerData - the shoppingMerchandisingHandlerData
      Returns:
      AncillaryResponseData
      Throws:
      MerchandisingRequestException - the MerchandisingRequestException
      FarePriceException - the FarePriceException
      NDCException
    • setMerchandisingResponseToCart

      public abstract void setMerchandisingResponseToCart(CartModel cartModel) throws NDCException, MerchandisingRequestException
      Description copied from interface: NDCShoppingMerchandisingFacade
      Sets merchandising response to cart.
      Specified by:
      setMerchandisingResponseToCart in interface NDCShoppingMerchandisingFacade
      Parameters:
      cartModel - the cart model
      Throws:
      NDCException - the ndc exception
      MerchandisingRequestException - 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:
      MerchandisingRequestException
      FarePriceException
      NDCException
    • populateCommerceAncillaries

      protected void populateCommerceAncillaries(OfferRequestData offerRequest, AncillaryResponseData ancillaryResponseData, List<String> transportOfferingCodes)
      Populate commerce ancillaries.
      Parameters:
      offerRequest - the offer request
      ancillaryResponseData - the ancillary response data
      transportOfferingCodes - the transport offering codes
    • populateCommerceBaggageProducts

      protected void populateCommerceBaggageProducts(BaggageResponseData baggageResponseData)
      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 data
      ancillaryResponseData - 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 products
      ancillaryResponseData - 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 data
      baggageResponseData - 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 products
      baggageResponseData - the baggage response data
    • getOffersFacade

      protected OffersFacade getOffersFacade()
      Gets offers facade.
      Returns:
      the offers facade
    • setOffersFacade

      public void setOffersFacade(OffersFacade offersFacade)
      Sets offers facade.
      Parameters:
      offersFacade - the offers facade
    • getTravelRulesService

      protected TravelRulesService getTravelRulesService()
      Gets travel rules service.
      Returns:
      the travelRulesService
    • setTravelRulesService

      public void setTravelRulesService(TravelRulesService travelRulesService)
      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