Class DefaultPriceInfoPostMatcher

    • Constructor Detail

      • DefaultPriceInfoPostMatcher

        public DefaultPriceInfoPostMatcher()
    • Method Detail

      • filterPriceRows

        protected java.util.List<PriceRowModel> filterPriceRows​(java.util.Collection<PriceRowModel> priceRows)
        Removes price rows from set of matching rows if they will never be applicable. This may be the case if two rows have different match values (e.g. product only vs. user+product) but same unit and minimum quantity - only the better matching will ever apply so we omit the second one. We expect the price rows ordered as follows:
        • unit - order unimportant
        • minimum quantity - ascending
        • match value - greatest at top
        • currency - requested currency on top ; only if requested currency is not base currency )
        • net - requested net state is on top
        • date range - non-null date ranges at top
      • setRetrieveChannelStrategy

        public void setRetrieveChannelStrategy​(RetrieveChannelStrategy retrieveChannelStrategy)