Interface NDCAddAncillaryToOrderStrategy
- All Known Implementing Classes:
AbstractNDCAddAncillariesToOrderStrategy,NDCAddAncillaryToOrderPerBookingStrategy,NDCAddAncillaryToOrderPerLegPerPaxStrategy,NDCAddAncillaryToOrderPerLegStrategy,NDCAddAncillaryToOrderPerPaxStrategy
public interface NDCAddAncillaryToOrderStrategy
Adds ancillaries to the order based on its travel restriction and the lists of
TravellerModel and
TransportOfferingModel provided-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAncillary(OrderModel order, List<TravellerModel> travellers, ProductModel ancillaryProduct, List<TransportOfferingModel> transportOfferings, String routeCode, int originDestinationRefNumber, List<AbstractOrderEntryModel> orderEntries, Long quantity) Adds ancillaries to the order based on its travel restriction and the lists ofTravellerModelandTransportOfferingModelprovided and populates a list with the modified or createdAbstractOrderEntryModel
-
Method Details
-
addAncillary
void addAncillary(OrderModel order, List<TravellerModel> travellers, ProductModel ancillaryProduct, List<TransportOfferingModel> transportOfferings, String routeCode, int originDestinationRefNumber, List<AbstractOrderEntryModel> orderEntries, Long quantity) throws NDCException Adds ancillaries to the order based on its travel restriction and the lists ofTravellerModelandTransportOfferingModelprovided and populates a list with the modified or createdAbstractOrderEntryModel- Parameters:
order- the ordertravellers- the travellersancillaryProduct- the ancillary producttransportOfferings- the transport offeringsrouteCode- the route codeoriginDestinationRefNumber- the origin destination ref numberorderEntries- the order entries- Throws:
NDCException- the ndc exception
-