Interface NDCChangeOrderValidationStrategy

All Known Implementing Classes:
NDCProductAvailabilityOrderValidationStrategy, NDCTravellerStatusOrderValidationStrategy, NDCTravelRestrictionOrderValidationStrategy

public interface NDCChangeOrderValidationStrategy
The interface Ndc change order validation strategy.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    validateAmendOrder(OrderModel order, String productCode, Long qty, String travellerCode, List<String> transportOfferingCodes, String travelRouteCode)
    Method that validates if an ancillary can be added or removed to the specified order
  • Method Details

    • validateAmendOrder

      boolean validateAmendOrder(OrderModel order, String productCode, Long qty, String travellerCode, List<String> transportOfferingCodes, String travelRouteCode)
      Method that validates if an ancillary can be added or removed to the specified order
      Parameters:
      order - the order to which the ancillary needs to be added
      productCode - as the product to be added or removed from the order
      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
      Returns:
      valid add to order if true, false otherwise.