Interface ShoppingTravelCartService
- All Superinterfaces:
de.hybris.platform.order.AbstractOrderService<CartModel,,CartEntryModel> de.hybris.platform.order.CartService,TravelCartService
- All Known Implementing Classes:
DefaultPROSTravelCartService,DefaultShoppingTravelCartService
The interface shopping travel cart service
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeFee(CartModel cartModel, TravellerData traveller) Adds a change fee to the cart for a specific traveller.voidaddEvenExchangeFee(CartModel cartModel, TravellerModel traveller) Adds an even exchange fee to the cart.doublecancelSolution(CartModel cartModel, RepricingRequestData repricingRequestData, ShoppingRepricingResponseMessage repricerResponseMessage) This method deletes a specific solution from the cart for all the associated passengers.voidremoveOrderEntriesBySolutionId(Integer solutionId, CartModel cartModel, List<String> passengerIds) Removes the order entries having the specific solution Id or the same transport offering for that solution.voidValidate cart.Methods inherited from interface de.hybris.platform.order.AbstractOrderService
addAllGlobalDiscountValues, addAllTotalTaxValues, addGlobalDiscountValue, addNewEntry, addNewEntry, addNewEntry, addTotalTaxValue, clone, getEntriesForNumber, getEntriesForProduct, getEntryForNumber, getGlobalDiscountValue, removeGlobalDiscountValue, removeTotalTaxValue, saveOrderMethods inherited from interface de.hybris.platform.order.CartService
addToCart, appendToCart, calculateCart, changeCurrentCartUser, changeSessionCartCurrency, createCartFromQuote, getSessionCart, hasCart, hasSessionCart, removeSessionCart, setSessionCart, updateQuantities, updateQuantitiesMethods inherited from interface de.hybris.platform.travelservices.order.TravelCartService
addTravellersToCart, cancelPartialOrder, cancelPartialOrder, cancelTraveller, createCartFromOrder, createCartFromOrder, deleteCurrentCart, generateOrderEntryId, getAvailableStock, getCurrentDestination, getEntriesTotal, getEntryForId, getFareProductEntries, getGlobalDiscountForEntryType, getNextBundleNumberToUse, getPaymentOptions, getPaymentOptions, getTransportTotalByEntries, isAmendmentCart, isNetPricedEntry, removeDeliveryAddress, removeTravellerFromCart, setAdditionalSecurity, updateBundleEntriesWithBundleNumber, validateCart
-
Method Details
-
validateCart
void validateCart() throws de.hybris.platform.order.InvalidCartExceptionValidate cart.- Throws:
de.hybris.platform.order.InvalidCartException- the invalid cart exception
-
cancelSolution
double cancelSolution(CartModel cartModel, RepricingRequestData repricingRequestData, ShoppingRepricingResponseMessage repricerResponseMessage) throws CancelFlightException, de.hybris.platform.order.exceptions.CalculationException This method deletes a specific solution from the cart for all the associated passengers.- Parameters:
cartModel- the cartModelrepricingRequestData- the solution IdrepricerResponseMessage- the repricer response message- Returns:
- the total amount to refund
- Throws:
CancelFlightExceptionde.hybris.platform.order.exceptions.CalculationException
-
addChangeFee
Adds a change fee to the cart for a specific traveller.- Parameters:
cartModel- the cart modeltraveller- the traveller- Throws:
ChangeFlightException- thrown when an error occurs during the addition of the changeFee product in the cart.
-
removeOrderEntriesBySolutionId
void removeOrderEntriesBySolutionId(Integer solutionId, CartModel cartModel, List<String> passengerIds) throws CancelFlightException Removes the order entries having the specific solution Id or the same transport offering for that solution.- Parameters:
solutionId- the solution IdcartModel- the cart modelpassengerIds- the list of passengers- Throws:
CancelFlightException
-
addEvenExchangeFee
Adds an even exchange fee to the cart.- Parameters:
cartModel- the cart modeltraveller- the traveller- Throws:
ChangeFlightException- thrown when an error occurs during the addition of the EvenExchangeFee product in the cart.
-