Interface AddToCartValidationStrategy
- All Known Implementing Classes:
AbstractAddToCartValidationStrategy,BundledProductValidationStrategy,ProductAvailabilityValidationStrategy,TravellerStatusValidationStrategy,TravelRestrictionValidationStrategy
public interface AddToCartValidationStrategy
Strategy to validate the add to cart of ancillaries
-
Method Details
-
validateAddToCart
AddToCartResponseData validateAddToCart(String productCode, long qty, String travellerCode, List<String> transportOfferingCodes, String travelRouteCode) Method to validate the add to cart of an ancillary product- Parameters:
productCode- as the product to be added or removed from the cartqty- as the quantity to add/removetravellerCode- as the code of the traveller to whom the product is added or removedtransportOfferingCodes- as the codes of the transportOfferings the product is added to or removed fromtravelRouteCode- as the travelRouteCode the product is added to or removed from- Returns:
- the addToCartResponseData, where valid is true if the addToCart is valid, false otherwise.
-