Interface TransportCartFacade
- All Known Subinterfaces:
ShoppingTransportCartFacade
- All Known Implementing Classes:
DefaultPROSTransportCartFacade,DefaultShoppingTransportCartFacade,DefaultTransportCartFacade
public interface TransportCartFacade
This facade provides functionality for adding or removing transport specific products to / from cart.
-
Method Summary
Modifier and TypeMethodDescriptionaddAncillaryToCart(AncillaryEntryRequestData ancillaryEntryRQData) Add ancillary product to the current cartaddSeatEntry(String seatUid, String transportOfferingCode, String travellerUid) Add a seat to the current cart.addTransportBundleToCart(AddBundleToCartData addBundleToCartData) voidaddTravellersToCart(TravellerQuantityListData travellerQuantityListData) Adds travellers to the cart.voidchangeCurrency(String currencyISO) Change current currency of active cartgetBoundIdForEntryNumber(Integer entryNumber) Get bound id for entry numbergetSeatCartEntry(Integer entryNumber) Gets seat entry from cart.booleanisOrderEntryPartOfBundle(AbstractOrderEntryModel entryNumber) Is order entry part of bundle.booleanIs traveller in entry eligible for amendment.voidremoveAncillaryCartEntry(Integer entryId) Removes ancillary product entry quantity from cart for travel.voidremoveAncillaryEntry(Integer entryId) Removes ancillary product entry quantity from cart.voidremoveBaggageCartEntry(Integer entryId) Removes baggage product entry quantity from cart.voidremoveSeatEntry(Integer entryNumber) Remove seat entry.voidremoveTravellerFromCart(String travellerId) Remove traveller from the cart.voidupdateAncillaryCartEntry(Integer entryId, Integer quantity) Update ancillary product entry quantity to cart for travel.voidupdateBaggageCartEntry(Integer entryId, Integer quantity) Update ancillary baggage product entry quantity to cart.voidupdateCartEntry(Integer entryId, Integer quantity) Update ancillary product entry quantity to cart.
-
Method Details
-
addSeatEntry
CartModificationData addSeatEntry(String seatUid, String transportOfferingCode, String travellerUid) throws InvalidCabinClassException, SeatNotAvailableException, TransportOfferingNotInCartException, TravellerNotEligibleException, TravellerNotInCartException Add a seat to the current cart.- Parameters:
seatUid- the seat uidtransportOfferingCode- the transport offering codetravellerUid- the traveller uid- Returns:
- the cart modification data
- Throws:
InvalidCabinClassException- the invalid cabin class exceptionSeatNotAvailableException- the seat not available exceptionTransportOfferingNotInCartException- the transport offering not in cart exceptionTravellerNotEligibleException- the traveller not eligible exceptionTravellerNotInCartException- the traveller not in cart exception
-
getSeatCartEntry
Gets seat entry from cart.- Parameters:
entryNumber- the entry number- Returns:
- the seat cart entry
- Throws:
TravelCartEntryException- the travel cart entry exception
-
removeSeatEntry
void removeSeatEntry(Integer entryNumber) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Remove seat entry.- Parameters:
entryNumber- the entry number- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- the commerce cart modification exception
-
isOrderEntryPartOfBundle
Is order entry part of bundle.- Parameters:
entryNumber- the entry number- Returns:
- the boolean
-
isTravellerInEntryEligibleForAmendment
Is traveller in entry eligible for amendment.- Parameters:
entryNumber- the entry number- Returns:
- the boolean
-
updateAncillaryCartEntry
void updateAncillaryCartEntry(Integer entryId, Integer quantity) throws InvalidSessionCartException, ProductNotEligibleException, ProductPartOfBundleException, ProductTravelRestrictionException, ProductStockNotAvailableException, UpdateAncillaryException Update ancillary product entry quantity to cart for travel.- Parameters:
entryId- the entry identifier.quantity- the quantity.- Throws:
InvalidSessionCartException- the cart is not in session.ProductStockNotAvailableException- the product stock not available exception.ProductTravelRestrictionException- the product travel restriction exception.ProductNotEligibleException- the product not eligible exception as not active or not a ancillary product.ProductPartOfBundleException- the product part of bundle exception.UpdateAncillaryException- the exception while updating product quantity.
-
removeAncillaryEntry
void removeAncillaryEntry(Integer entryId) throws InvalidSessionCartException, ProductNotEligibleException, ProductPartOfBundleException, RemoveAncillaryException Removes ancillary product entry quantity from cart.- Parameters:
entryId- the entry identifier.- Throws:
InvalidSessionCartException- the cart is not in session.ProductNotEligibleException- the product not eligible exception as not active or not a ancillary product.ProductPartOfBundleException- the product part of bundle exception.RemoveAncillaryException- the exception while removing product quantity.
-
updateCartEntry
void updateCartEntry(Integer entryId, Integer quantity) throws InvalidSessionCartException, ProductNotEligibleException, ProductPartOfBundleException, ProductTravelRestrictionException, ProductStockNotAvailableException, UpdateAncillaryException Update ancillary product entry quantity to cart.- Parameters:
entryId- the entry identifier.quantity- the quantity.- Throws:
InvalidSessionCartException- the cart is not in session.ProductStockNotAvailableException- the product stock not available exception.ProductTravelRestrictionException- the product travel restriction exception.ProductNotEligibleException- the product not eligible exception as not active or not a ancillary product.ProductPartOfBundleException- the product part of bundle exception.UpdateAncillaryException- the exception while updating product quantity.
-
addTransportBundleToCart
List<CartModificationData> addTransportBundleToCart(AddBundleToCartData addBundleToCartData) throws AddTransportBundleToCartException, InvalidSessionCartException -
addTravellersToCart
void addTravellersToCart(TravellerQuantityListData travellerQuantityListData) throws AddTravellerToCartException, InvalidSessionCartException Adds travellers to the cart.- Parameters:
travellerQuantityListData- the list of travellers to be added to the cart- Throws:
AddTravellerToCartExceptionInvalidSessionCartException
-
removeTravellerFromCart
void removeTravellerFromCart(String travellerId) throws InvalidSessionCartException, InvalidTravellerException, InvalidCartPriceException Remove traveller from the cart.- Parameters:
travellerId- the id of traveller- Throws:
InvalidSessionCartExceptionInvalidTravellerExceptionInvalidCartPriceException
-
removeAncillaryCartEntry
void removeAncillaryCartEntry(Integer entryId) throws InvalidSessionCartException, ProductNotEligibleException, ProductPartOfBundleException, RemoveAncillaryException Removes ancillary product entry quantity from cart for travel.- Parameters:
entryId- the entry identifier.- Throws:
InvalidSessionCartException- the cart is not in session.ProductNotEligibleException- the product not eligible exception as not active or not a ancillary product.ProductPartOfBundleException- the product part of bundle exception.RemoveAncillaryException- the exception while removing product quantity.
-
addAncillaryToCart
CartModificationData addAncillaryToCart(AncillaryEntryRequestData ancillaryEntryRQData) throws ProductStockNotAvailableException, ProductTravelRestrictionException, TravellerNotInCartException, TransportOfferingNotInCartException, TravellerNotEligibleForTransportOfferingInCartException, TravelRouteNotInCartException Add ancillary product to the current cart- Parameters:
ancillaryEntryRQData- the ancillary entry request data- Returns:
- the cart modification data
- Throws:
ProductStockNotAvailableException- the product stock not available exceptionProductTravelRestrictionException- the product travel restriction exceptionTravellerNotInCartException- the traveller not in cart exceptionTransportOfferingNotInCartException- the transport offering not in cart exceptionTravellerNotEligibleForTransportOfferingInCartException- the traveller not eligible for transport offering in cart exceptionTravelRouteNotInCartException
-
getBoundIdForEntryNumber
Get bound id for entry number- Parameters:
entryNumber- entry number to fetch the bound Id for
-
updateBaggageCartEntry
void updateBaggageCartEntry(Integer entryId, Integer quantity) throws InvalidSessionCartException, ProductNotEligibleException, ProductPartOfBundleException, ProductTravelRestrictionException, ProductStockNotAvailableException, UpdateBaggageException Update ancillary baggage product entry quantity to cart.- Parameters:
entryId- the entry identifier.quantity- the quantity.- Throws:
InvalidSessionCartException- the cart is not in session.ProductStockNotAvailableException- the product stock not available exception.ProductTravelRestrictionException- the product travel restriction exception.ProductNotEligibleException- the product not eligible exception as not active or not a ancillary product.ProductPartOfBundleException- the product part of bundle exception.UpdateAncillaryException- the exception while updating product quantity.UpdateBaggageException
-
removeBaggageCartEntry
void removeBaggageCartEntry(Integer entryId) throws TravelCartEntryException, TravelModelNotFoundException Removes baggage product entry quantity from cart.- Parameters:
entryId- the entry id.- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- the exception while removing baggage quantityInvalidSessionCartException- the cart is not in session.TravelCartEntryExceptionTravelModelNotFoundException
-
changeCurrency
Change current currency of active cart- Parameters:
currencyISO- currency ISO.- Throws:
Exception- the exception while updating currency.IllegalArgumentException
-