Interface NDCOrderFacade

All Known Implementing Classes:
DefaultNDCOrderFacade

public interface NDCOrderFacade
The ndc 18.2 order facade interface.
  • Method Details

    • createOrder

      IATAOrderViewRS createOrder(IATAOrderCreateRQ orderCreateRQ)
      Creates an order from an OrderCreateRQ message.
      Parameters:
      orderCreateRQ - the orderCreateRQ
      Returns:
      the orderViewRS
    • changeOrder

      IATAOrderViewRS changeOrder(IATAOrderChangeRQ orderChangeRQ) throws NDCException
      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

      IATAOrderViewRS retrieveOrder(IATAOrderRetrieveRQ orderRetrieveRQ) throws NDCException
      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 order
      travellerCode - the traveller code
      product - the product
      quantity - the quantity
      transportOfferings - the transport offerings
      routeCode - the route code
      Throws:
      NDCException - the ndc exception
    • createErrorResponse

      IATAOrderViewRS createErrorResponse(List<ErrorType> errors)
      Creates an error IATAOrderViewRS response
      Parameters:
      errors - the errors
      Returns:
      an error IATAOrderViewRS response
    • createError

      ErrorType createError(String errorMessage)
      Creates an error type
      Parameters:
      errorMessage - the error message
      Returns:
      an ErrorType