Interface TmaCompatibilityPolicyEngine

All Known Implementing Classes:
DefaultTmaCompatibilityPolicyEngine

public interface TmaCompatibilityPolicyEngine
Service responsible for verifying if a list of several product offerings are eligible to be bought together from compatibility policies point of view.
Since:
6.7
  • Method Details

    • verifyCompatibilityPolicies

      @Deprecated(since="2102") void verifyCompatibilityPolicies(AbstractOrderModel orderModel, EntryGroup entryGroup)
      Verifies compatibility policies identified for the product offerings within a given entry group from an order. In case of any invalid compatibility policy found, the actions are applied by either setting an error message on the entry group or adding a new auto picked entry.
      Parameters:
      orderModel - the current order
      entryGroup - the group whose product offerings entries are verified
    • verifyCompatibilityPolicies

      void verifyCompatibilityPolicies(AbstractOrderEntryModel entryModel, UserModel userModel)
      Verifies compatibility policies identified for the product offerings within provided entry and its children. In case of any invalid compatibility policy found, the actions are applied by either setting an error message on the entry group or adding a new auto picked entry.
      Parameters:
      entryModel - The entry which is verified
      userModel - The user
    • verifyCompatibilityPoliciesForStandaloneProducts

      void verifyCompatibilityPoliciesForStandaloneProducts(AbstractOrderModel orderModel)
      Verifies compatibility policies identified for all standalone products from the cart. In case of any invalid compatibility policy found, the actions are applied by either setting an error message on cart or by adding a new auto picked entry.
      Parameters:
      orderModel - the current order