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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(OfferRequestData offerRequestData, OfferResponseData offerResponseData) Creates and populates OfferPricingInfoData for products of each category.Methods inherited from class de.hybris.platform.travelfacades.ancillary.search.handlers.impl.OfferPricingInfoHandler
createOfferPricingInfos, discardProducts, getAvailableProductsForTransportOffering, getAvailableProductsInOffer, getCategoryService, getCommonProducts, getProductConverter, getProductService, getQualifiedProductsForOfferGroup, getTransportOfferingService, getTravelCartService, getTravelPromotionsFacade, getTravelRulesService, setCategoryService, setProductConverter, setProductService, setTransportOfferingService, setTravelCartService, setTravelPromotionsFacade, setTravelRulesService, showProducts
-
Constructor Details
-
ShoppingCommerceOfferPricingInfoHandler
public ShoppingCommerceOfferPricingInfoHandler()
-
-
Method Details
-
handle
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:
handlein interfaceAncillarySearchHandler- Overrides:
handlein classOfferPricingInfoHandler- Parameters:
offerRequestData- the offer request dataofferResponseData- the offer response data
-