Interface DynamicSkuActiveDatesService


public interface DynamicSkuActiveDatesService

Interface for dynamically determining the activity dates.

Provides an ability to set active dates programatically. Intended for use by add-on modules like the PriceList module which supports activeDates dates by PriceList.

Even if the dates are being overridden dynamically, the master activeStart and activeEnd dates still control the global activeDates of a SKU.

Rather than implementing this interface directly, consider sub-classing the DefaultDynamicSkuActiveDatesServiceImpl and providing overrides to methods there.

Author:
bpolster
  • Method Details

    • getDynamicSkuActiveStartDate

      @Nonnull Date getDynamicSkuActiveStartDate(Sku sku)
      Returns the activeStartDate for the SKU if it has been overridden.
      Parameters:
      sku -
      Returns:
    • getDynamicSkuActiveEndDate

      Date getDynamicSkuActiveEndDate(Sku sku)
      Returns the activeEndDate for the SKU if it has been overridden.
      Parameters:
      sku -
      Returns: