Interface AddAncillaryToCartValidationStrategy

All Known Implementing Classes:
AbstractAddAncillaryToCartValidationStrategy, TravelRouteOriginDestinationRefNumberValidationStrategy

public interface AddAncillaryToCartValidationStrategy
Strategy to validate the travel route, transport offerings and the originDestinationRefNumber in the add to cart of an ancillary product.
  • Method Summary

    Modifier and Type
    Method
    Description
    validateAddToCart(String productCode, long qty, String travellerCode, List<String> transportOfferingCodes, String travelRouteCode, int originDestinationRefNumber)
    Method to validate the add to cart of an ancillary product
  • Method Details

    • validateAddToCart

      AddToCartResponseData validateAddToCart(String productCode, long qty, String travellerCode, List<String> transportOfferingCodes, String travelRouteCode, int originDestinationRefNumber)
      Method to validate the add to cart of an ancillary product
      Parameters:
      productCode - as the product to be added or removed from the cart
      qty - as the quantity to add/remove
      travellerCode - as the code of the traveller to whom the product is added or removed
      transportOfferingCodes - as the codes of the transportOfferings the product is added to or removed from
      travelRouteCode - as the travelRouteCode the product is added to or removed from
      originDestinationRefNumber - as the origin destination reference number
      Returns:
      the add to cart response data