Class PROSOfferRestrictionHandler

All Implemented Interfaces:
AncillarySearchHandler

public class PROSOfferRestrictionHandler extends OfferRestrictionHandler
The type Pros offer restriction handler.
  • Constructor Details

    • PROSOfferRestrictionHandler

      public PROSOfferRestrictionHandler()
  • Method Details

    • handle

      public void handle(OfferRequestData offerRequestData, OfferResponseData offerResponseData)
      Description copied from interface: AncillarySearchHandler
      Handle method.
      Specified by:
      handle in interface AncillarySearchHandler
      Overrides:
      handle in class OfferRestrictionHandler
      Parameters:
      offerRequestData - the offer request data
      offerResponseData - the offer response data
    • getSearchResponseWrapper

      protected SearchResponseWrapper getSearchResponseWrapper()
      Gets search response wrapper.
      Returns:
      the search response wrapper
    • setPROSTravelRestrictions

      protected void setPROSTravelRestrictions(OfferResponseData offerResponseData, SearchResponseWrapper searchResponseWrapper)
      Sets pros travel restrictions. Iterates on the Charge and for each different type calculates the minimum and maximum number of occurrences of that specific ShoppingBaggageProductModel in the OfferPricingInfoData.
      Parameters:
      offerResponseData - the offer response data
      searchResponseWrapper - the search response wrapper
    • setPROSBaggageTravelRestrictions

      protected void setPROSBaggageTravelRestrictions(OfferPricingInfoData offerPricingInfoData, ProductModel product, Map<String,Integer> productToMaxQuantityMap, Map<String,Integer> productToMinQuantityMap)
      Sets pros travel restrictions. Iterates on the Charge and for each different type calculates the minimum and maximum number of occurrences of that specific ShoppingBaggageProductModel in the OfferPricingInfoData.
      Parameters:
      offerPricingInfoData - the offer pricing info data
      product - the product
      productToMaxQuantityMap - the product to max quantity map
      productToMinQuantityMap - the product to min quantity map
    • getProsSearchResponseService

      protected PROSSearchResponseService getProsSearchResponseService()
      Gets pros search response service.
      Returns:
      the pros search response service
    • setProsSearchResponseService

      public void setProsSearchResponseService(PROSSearchResponseService prosSearchResponseService)
      Sets pros search response service.
      Parameters:
      prosSearchResponseService - the pros search response service
    • getTravelCartService

      protected TravelCartService getTravelCartService()
      Gets travel cart service.
      Returns:
      the travel cart service
    • setTravelCartService

      public void setTravelCartService(TravelCartService travelCartService)
      Sets travel cart service.
      Parameters:
      travelCartService - the travel cart service