Interface ShoppingMerchandisingFacade
- All Known Implementing Classes:
DefaultPROSMerchandisingFacade,DefaultShoppingMerchandisingFacade
public interface ShoppingMerchandisingFacade
The Shopping interface for integrating the Merchandising APIs.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateMerchandisingChangeFee(Integer entryId) This method creates a change fee when an existing merchandising entry is updated, removed or deleted.searchAncillaries(List<String> transportOfferingCodes) This method performs the merchandising request for searching all the available ancillaries.This method performs the merchandising request for searching all the charged baggages for flights in session cart.searchBaggages(List<String> transportOfferingCodes) This method performs the merchandising request for searching all the charged baggages.voidvalidateMerchandisingEntries(AbstractOrderModel orderModel) Validate shopping ancillaries in the cart with merchandising response.
-
Method Details
-
searchAncillaries
AncillaryResponseData searchAncillaries(List<String> transportOfferingCodes) throws MerchandisingRequestException, InvalidSessionCartException, FarePriceException This method performs the merchandising request for searching all the available ancillaries. The response will be filtered accordingly to the list of flights.- Parameters:
transportOfferingCodes- the list of flight codes to be used in order to filter the merchandising response- Returns:
- the AncillaryResponseData
- Throws:
MerchandisingRequestException- to be thrown when a bad request response is returned from the merchandising api call.InvalidSessionCartException- to be thrown either when there is no cart in the session or when the cart is empty.FarePriceException- to be thrown when a fare price response is missing in the cart.
-
searchBaggages
BaggageResponseData searchBaggages() throws MerchandisingRequestException, InvalidSessionCartException, FarePriceExceptionThis method performs the merchandising request for searching all the charged baggages for flights in session cart. The response will be filtered accordingly to the list of flights.- Returns:
- the BaggageResponseData
- Throws:
MerchandisingRequestException- to be thrown when a bad request response is returned from the merchandising api call.InvalidSessionCartException- to be thrown either when there is no cart in the session or when the cart is empty.FarePriceException- to be thrown when a fare price response is missing in the cart.
-
searchBaggages
BaggageResponseData searchBaggages(List<String> transportOfferingCodes) throws MerchandisingRequestException, InvalidSessionCartException, FarePriceException This method performs the merchandising request for searching all the charged baggages. The response will be filtered accordingly to the list of flights.- Parameters:
transportOfferingCodes- the list of flight codes to be used in order to filter the merchandising response- Returns:
- the BaggageResponseData
- Throws:
MerchandisingRequestException- to be thrown when a bad request response is returned from the merchandising api call.InvalidSessionCartException- to be thrown either when there is no cart in the session or when the cart is empty.FarePriceException- to be thrown when a fare price response is missing in the cart.
-
createMerchandisingChangeFee
This method creates a change fee when an existing merchandising entry is updated, removed or deleted.- Parameters:
entryId- the entry id- Throws:
CancelFlightException- the cancel flight exception
-
validateMerchandisingEntries
void validateMerchandisingEntries(AbstractOrderModel orderModel) throws TravelCartValidationException Validate shopping ancillaries in the cart with merchandising response.- Parameters:
orderModel- the cart model- Throws:
TravelCartValidationException
-