Interface AncillaryCartValidationStrategy
- All Known Implementing Classes:
AncillaryCartProductAvailabilityValidationStrategy,AncillaryCartTravelRestrictionValidationStrategy,DefaultCartProductEntryAvailabilityValidationStrategy,DefaultCartProductEntryTravelRestrictionValidationStrategy,TransportOfferingCodeValidationStrategy
public interface AncillaryCartValidationStrategy
Strategy to validate the add to cart of ancillaries
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidateAddToCart(String productCode, long qty, TravellerModel travellerCode, List<String> transportOfferingCodes, String travelRouteCode) Method to validate the add to cart of an ancillary product
-
Method Details
-
validateAddToCart
void validateAddToCart(String productCode, long qty, TravellerModel travellerCode, List<String> transportOfferingCodes, String travelRouteCode) throws ProductStockNotAvailableException, ProductTravelRestrictionException 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- 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- Throws:
ProductStockNotAvailableException- the product stock not available exceptionProductTravelRestrictionException- the product travel restriction exception
-