Interface ShoppingTravelCartFacade
- All Superinterfaces:
de.hybris.platform.commercefacades.order.CartFacade,TravelCartFacade
- All Known Implementing Classes:
DefaultPROSTravelCartFacade,DefaultShoppingTravelCartFacade
The interface Shopping travel cart facade.
-
Method Summary
Modifier and TypeMethodDescriptionaddSolutionToCart(AddSolutionRequestData addSolutionRequestData) Add a solution to the cart.Method for adding a product to cart.voidcancelSolution(Integer solutionId) This method deletes a specific solution from the current cart for all the associated entries.voidcancelSolution(String orderId, RepricingRequestData repricingRequestData) This method deletes a specific solution from the order for all the associated passengers.voidchangeFlightItinerary(RepricingRequestData repricingRequestData) Change a flight in the cart.doEvaluateSolutionCancel(List<AbstractOrderEntryModel> solutionEntries, OrderModel orderModel, RepricingRequestData repricingRequestData) Do evaluate solution cancel evaluate cancel solution response data.evaluateFlightChange(RepricingRequestData repricingRequestData) Evaluates if a change flight operation on the cart is possible, by calling the repricing service.evaluateRemovePassenger(String orderId, RepricingRequestData repricingRequestData) Evaluates the request for a cancellation for the given solution, returning penalties and refunded amounts when possible, an error otherwiseevaluateSolutionCancel(String orderId, RepricingRequestData repricingRequestData) Evaluates the request for a cancellation for the given solution, returning penalties and refunded amounts when possible, an error otherwiseReturn the booking journey associated to the current session cart to be used to drive journey specific logics at facade levelvoidremovePassengers(String orderId, RepricingRequestData repricingRequestData) Remove all entries associated to the list of passengers.shoppingAddBundleToCart(List<AddBundleToCartRequestData> addBundleToCartRequestDataList, SearchResponseWrapper searchResponseWrapper) shopping add bundle to cart list.Methods inherited from interface de.hybris.platform.commercefacades.order.CartFacade
addToCart, addToCart, addToCart, estimateExternalTaxes, getCartsForCurrentUser, getDeliveryCountries, getMiniCart, getMostRecentCartGuidForUser, getSessionCart, getSessionCartGuid, getSessionCartWithEntryOrdering, hasEntries, hasSessionCart, removeEntryGroup, removeSessionCart, removeStaleCarts, restoreAnonymousCartAndMerge, restoreAnonymousCartAndTakeOwnership, restoreCartAndMerge, restoreSavedCart, updateCartEntry, updateCartEntry, updateCartEntry, updateCartMetadata, validateCartDataMethods inherited from interface de.hybris.platform.travelfacades.order.TravelCartFacade
addBundleToCart, addPropertiesToCartEntry, addPropertiesToCartEntry, addSelectedAccommodationToCart, applyVoucher, assignAnonymousCartToCurrentUser, cleanUpCartForMinOriginDestinationRefNumber, createCartFromOrder, createCartFromOrderGuid, deleteCurrentCart, evaluateCart, getBookingDueAmount, getBookingTotal, getCartCode, getCartEntry, getCartTotal, getCurrentCartCode, getGlobalDiscountForEntryType, getNextBundleNumberToUse, getOrderEntry, getOrderEntry, getOriginalOrderCode, getPartialPaymentAmount, getPaymentOptionList, getPaymentOptions, getPaymentOptions, getTotalsForReservation, getTotalToPayPrice, getTotalToPayPriceAfterChangeDates, hasCartBeenAmended, isAdditionalSecurityActive, isAmendmentCart, isAnonymousUserCart, isCurrentCartValid, isNetPrice, isProductAvailable, isValidPaymentOption, recalculateCart, removeBoundFromCart, removeCart, removeDeliveryAddress, removeEntriesForOriginDestinationRefNumber, removeSelectedAccommodationFromCart, removeVoucher, setAdditionalSecurity, setOrderEntryType, updateBundleEntriesWithBundleNumber, validateCart, validateCart, validateOrderForAmendment, validateOriginDestinationRefNumbersInCart, validateSeatSelection
-
Method Details
-
shoppingAddBundleToCart
List<CartModificationData> shoppingAddBundleToCart(List<AddBundleToCartRequestData> addBundleToCartRequestDataList, SearchResponseWrapper searchResponseWrapper) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException shopping add bundle to cart list.- Parameters:
addBundleToCartRequestDataList- the add bundle to cart request data listsearchResponseWrapper- the search response wrapper- Returns:
- the list
- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- the commerce cart modification exception
-
getBookingJourneyTypeFromSessionCart
BookingJourneyType getBookingJourneyTypeFromSessionCart()Return the booking journey associated to the current session cart to be used to drive journey specific logics at facade level- Returns:
- the
BookingJourneyType
-
addSolutionToCart
List<CartModificationData> addSolutionToCart(AddSolutionRequestData addSolutionRequestData) throws FarePriceException, InvalidSessionCartException, de.hybris.platform.commerceservices.order.CommerceCartModificationException, InternalErrorException, CartNotEmptyException Add a solution to the cart.- Parameters:
addSolutionRequestData- the addSolutionRequestData- Returns:
- the list of cart modification data
- Throws:
FarePriceException- to be thrown either when an error occurs during the creation of the farePriceMessage or when an error response is retrieved from the fare price response.InvalidSessionCartException- to be thrown if there is no cart in the session.de.hybris.platform.commerceservices.order.CommerceCartModificationException- the commerce cart modification exceptionInternalErrorException- to be thrown when an error occurs during the add solution to cart.CartNotEmptyException- to be thrown when a cart is not empty.
-
addToCart
CartModificationData addToCart(String code, long quantity, List<String> flights, List<String> passengers) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Method for adding a product to cart.- Parameters:
code- code of product to addquantity- the quantity of the productflights- the flightspassengers- the passengers- Returns:
- the cart modification data that includes a statusCode and the actual quantity added to the cart
- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- if the cart cannot be modified
-
evaluateSolutionCancel
EvaluateCancelSolutionResponseData evaluateSolutionCancel(String orderId, RepricingRequestData repricingRequestData) throws SolutionCancelException Evaluates the request for a cancellation for the given solution, returning penalties and refunded amounts when possible, an error otherwise- Parameters:
orderId- the orderIdrepricingRequestData- the repricing request data- Returns:
- the evaluate cancel solution response data
- Throws:
SolutionCancelException- when solution cancel is not possible
-
doEvaluateSolutionCancel
EvaluateCancelSolutionResponseData doEvaluateSolutionCancel(List<AbstractOrderEntryModel> solutionEntries, OrderModel orderModel, RepricingRequestData repricingRequestData) throws SolutionCancelException Do evaluate solution cancel evaluate cancel solution response data.- Parameters:
solutionEntries- the solution entriesorderModel- the order modelrepricingRequestData- the repricing request data- Returns:
- the evaluate cancel solution response data
- Throws:
SolutionCancelException- the solution cancel exception
-
cancelSolution
void cancelSolution(String orderId, RepricingRequestData repricingRequestData) throws CancelFlightException, de.hybris.platform.order.exceptions.CalculationException, InternalErrorException, SolutionCancelException This method deletes a specific solution from the order for all the associated passengers.- Parameters:
orderId- the orderIdrepricingRequestData- the repricing request data- Throws:
CancelFlightException- when the reprice response does not allow the operation on the orderde.hybris.platform.order.exceptions.CalculationException- the calculation exceptionInternalErrorException- the internal error exceptionSolutionCancelException
-
evaluateFlightChange
EvaluateChangeSolutionResponseData evaluateFlightChange(RepricingRequestData repricingRequestData) throws RepricingException, ChangeFlightException Evaluates if a change flight operation on the cart is possible, by calling the repricing service.- Parameters:
repricingRequestData- the repricingRequestData- Returns:
- the repricing response
- Throws:
RepricingException- thrown when an error response is retrieved from the repricing serviceChangeFlightException
-
changeFlightItinerary
void changeFlightItinerary(RepricingRequestData repricingRequestData) throws ChangeFlightException, RepricingException, InvalidSessionCartException Change a flight in the cart.- Parameters:
repricingRequestData- the repricingRequestData- Throws:
ChangeFlightException- the change flight exceptionRepricingException- the repricing exceptionInvalidSessionCartException- the invalid session cart exception
-
removePassengers
void removePassengers(String orderId, RepricingRequestData repricingRequestData) throws RemovePassengerException, InternalErrorException Remove all entries associated to the list of passengers.- Parameters:
orderId- the order idrepricingRequestData- the repricing request data- Throws:
RemovePassengerExceptionInternalErrorException
-
cancelSolution
void cancelSolution(Integer solutionId) throws SolutionCancelException, de.hybris.platform.order.exceptions.CalculationException This method deletes a specific solution from the current cart for all the associated entries.- Parameters:
solutionId- the solutionId- Throws:
SolutionCancelExceptionde.hybris.platform.order.exceptions.CalculationException
-
evaluateRemovePassenger
EvaluateCancelSolutionResponseData evaluateRemovePassenger(String orderId, RepricingRequestData repricingRequestData) Evaluates the request for a cancellation for the given solution, returning penalties and refunded amounts when possible, an error otherwise- Parameters:
orderId- the orderIdrepricingRequestData- the repricing request data- Returns:
- the evaluate cancel solution response data
- Throws:
SolutionCancelException- when solution cancel is not possible
-