Class PickupSourcingStrategyMapper

  • All Implemented Interfaces:
    SourcingStrategyMapper

    public class PickupSourcingStrategyMapper
    extends AbstractSourcingStrategyMapper

    Mapper to map a sourcing strategy to handle pickup in store.

    This mapper will return a match if and only if every order entry in the context has a delivery point of service set.

    • Constructor Detail

      • PickupSourcingStrategyMapper

        public PickupSourcingStrategyMapper()
    • Method Detail

      • isMatch

        public java.lang.Boolean isMatch​(SourcingContext context)
        Description copied from interface: SourcingStrategyMapper
        Determines if this mapper produces a match for the given sourcing context.
        Parameters:
        context - - the sourcing context
        Returns:
        true if it is a match; false otherwise
      • isMatch

        protected java.lang.Boolean isMatch​(AbstractOrderEntryModel entry)
        Check to see if the order entry provides a match.
        Parameters:
        entry - - the abstract order entry model
        Returns:
        true if the delivery point of service is set on the order entry; false otherwise