Class ShoppingCommerceOfferPricingInfoHandler

java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.OfferPricingInfoHandler
de.hybris.platform.shoppingfacades.ancillary.search.handlers.impl.ShoppingCommerceOfferPricingInfoHandler
All Implemented Interfaces:
AncillarySearchHandler

public class ShoppingCommerceOfferPricingInfoHandler extends OfferPricingInfoHandler implements AncillarySearchHandler
Handler class to populate OfferPricingInfoData for each category of products available to offer as Commerce Ancillaries.
  • Constructor Details

    • ShoppingCommerceOfferPricingInfoHandler

      public ShoppingCommerceOfferPricingInfoHandler()
  • Method Details

    • handle

      public void handle(OfferRequestData offerRequestData, OfferResponseData offerResponseData)
      Creates and populates OfferPricingInfoData for products of each category. Retrieve list of products for each categoryCode (in this case its offerGroupData.getCode()) Collect common products across all transportOfferings, whose product code matches with the products from above list and stock level is more than zero. For each of those collected products create OfferPricingInfoData and set the productData.
      Specified by:
      handle in interface AncillarySearchHandler
      Overrides:
      handle in class OfferPricingInfoHandler
      Parameters:
      offerRequestData - the offer request data
      offerResponseData - the offer response data