Interface CommerceCartHashCalculationStrategy

All Known Implementing Classes:
DefaultCommerceCartHashCalculationStrategy

public interface CommerceCartHashCalculationStrategy
Strategy tp calculate a hash value based on the abstractOrderModel state plus the additionalValues
  • Method Details

    • buildHashForAbstractOrder

      @Deprecated(since="5.2", forRemoval=true) String buildHashForAbstractOrder(AbstractOrderModel abstractOrderModel, List<String> additionalValues)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 5.2. Use buildHashForAbstractOrder(de.hybris.platform.commerceservices.service.data.CommerceOrderParameter) instead Calculate a hash for the order + additional values passed as a parameter
      Parameters:
      abstractOrderModel - the order to calculate the hash for
      additionalValues - the additional values
      Returns:
      the calculated hash
    • buildHashForAbstractOrder

      String buildHashForAbstractOrder(CommerceOrderParameter parameter)
      Calculate a hash for the order + additional values passed as a parameter
      Parameters:
      parameter - A parameter object holding the following values - abstractOrderModel the order to calculate the hash for - additionalValues the additional values
      Returns:
      the calculated hash