Interface NDCOrderFacade
- All Known Implementing Classes:
DefaultNDCOrderFacade
public interface NDCOrderFacade
The ndc 18.2 order facade interface.
-
Method Summary
Modifier and TypeMethodDescriptionchangeOrder(IATAOrderChangeRQ orderChangeRQ) Retrieves the original order and calculates the difference between this and the new one and places the amended order.voidcheckIfProductCanBeAddedToTraveller(OrderModel order, String travellerCode, ProductModel product, long quantity, List<String> transportOfferings, String routeCode) Check if product can be added to traveller.createError(String errorMessage) Creates an error typecreateErrorResponse(List<ErrorType> errors) Creates an error IATAOrderViewRS responsecreateOrder(IATAOrderCreateRQ orderCreateRQ) Creates an order from an OrderCreateRQ message.retrieveOrder(IATAOrderRetrieveRQ orderRetrieveRQ) Retrieves the order from the booking reference specified in the OrderRetrieveRQ.
-
Method Details
-
createOrder
Creates an order from an OrderCreateRQ message.- Parameters:
orderCreateRQ- the orderCreateRQ- Returns:
- the orderViewRS
-
changeOrder
Retrieves the original order and calculates the difference between this and the new one and places the amended order.- Parameters:
orderChangeRQ- the orderChangeRQ- Returns:
- the orderViewRS
- Throws:
NDCException- the ndc exception
-
retrieveOrder
Retrieves the order from the booking reference specified in the OrderRetrieveRQ.- Parameters:
orderRetrieveRQ- the order retrieve rq- Returns:
- the orderViewRS
- Throws:
NDCException- the ndc exception
-
checkIfProductCanBeAddedToTraveller
void checkIfProductCanBeAddedToTraveller(OrderModel order, String travellerCode, ProductModel product, long quantity, List<String> transportOfferings, String routeCode) throws NDCException Check if product can be added to traveller.- Parameters:
order- the ordertravellerCode- the traveller codeproduct- the productquantity- the quantitytransportOfferings- the transport offeringsrouteCode- the route code- Throws:
NDCException- the ndc exception
-
createErrorResponse
Creates an error IATAOrderViewRS response- Parameters:
errors- the errors- Returns:
- an error IATAOrderViewRS response
-
createError
Creates an error type- Parameters:
errorMessage- the error message- Returns:
- an
ErrorType
-