Interface TravelRestrictionService
- All Known Implementing Classes:
DefaultTravelRestrictionService
public interface TravelRestrictionService
Service that exposes methods relevant to TravelRestriction
-
Method Summary
Modifier and TypeMethodDescriptiongetAddToCartCriteria(ProductModel productModel) Returns the AddToCartCriteriaType for the given productModel.
-
Method Details
-
getAddToCartCriteria
Returns the AddToCartCriteriaType for the given productModel. It retrieves the offerGroup of the product and returns its addToCartCriteria restriction if present, the default criteria otherwise.- Parameters:
productModel- the product model- Returns:
- the AddToCartCriteriaType for the given product
-