Interface ShoppingBookingFacade
- All Superinterfaces:
BookingFacade
- All Known Implementing Classes:
DefaultShoppingBookingFacade
The interface Shopping booking facade.
-
Method Summary
Modifier and TypeMethodDescriptionevaluateBookingCancellation(String orderId, String userId) Evaluates if it is possible to cancel the booking for an airline booking.Methods inherited from interface de.hybris.platform.travelfacades.facades.BookingFacade
acceptOrder, addRequestToRoomStayBooking, addSpecialRequestsForRoomStayBooking, amendAddRoom, amendOrder, atleastOneAdultTravellerRemaining, beginPartialOrderCancellation, beginTravellerCancellation, buildAccommodationDetailsQueryFromCart, cancelAccommodationReservation, cancelBookingForCurrentUser, cancelOrder, cancelPartialOrder, cancelTransportReservation, cancelTraveller, cancelTraveller, cancelTraveller, changeDatesForAccommodationBooking, changeDatesForAccommodationOrderEntryGroup, checkBookingJourneyType, createRefundPaymentTransaction, deleteRoomRateEntries, evaluateCancelBooking, evaluateCancelTraveller, getAccommodationDetailsParametersFromCart, getAccommodationOrderEntryGroupFromCart, getAccommodationOrderEntryGroupRefs, getAccommodationOrderEntryGroupStartingDate, getAccommodationReservationDataForGuestDetailsFromCart, getAccommodationRoomNameMapping, getBasicAccommodationBookingFromCart, getBookerEmailID, getBookingByBookingReference, getBookingByBookingReferenceAndAmendingOrder, getBookingTotal, getBookingTotalByOrderEntryType, getBookingTotals, getChangeDatePaymentResults, getChangeDatePaymentResultsMap, getCurrentCustomerAccommodationBookings, getCurrentCustomerBookings, getCurrentCustomerTravelBookings, getCurrentUserUid, getDisruptedReservation, getFullAccommodationBooking, getFullAccommodationBookingForAmendOrder, getGlobalTravelReservationData, getGuestOccupanciesFromCart, getNewAccommodationOrderEntryGroupRefs, getNewReservedRoomStays, getNextScheduledTransportOfferingData, getNotRefundableAmount, getOldAccommodationOrderEntryGroupRefs, getOldReservedRoomStays, getOrderTotalPaid, getOrderTotalPaidForOrderEntryType, getOrderTotalToPayForChangeDates, getOrderTotalToPayForOrderEntryType, getRefundForCancelledTraveller, getRefundTotal, getRefundTotal, getRoomStayRefNumberForOrderEntry, getRoomStaysGuaranteesFromCart, getRoomStaysPenaltiesFromCart, getSpecialRequestsForRoomStayBooking, getTotalToPay, getVisibleCurrentCustomerAccommodationBookings, getVisibleCurrentCustomerTravelBookings, isAdditionalSecurityActive, isAmendment, isCancelPossible, isCurrentCartOfType, isOrderOfType, isRoomStayRefValid, isUserOrderOwner, mapOrderToUserAccount, placeOrder, removeRequestFromRoomStayBooking, removeSpecialRequestsForRoomStayBooking, unlinkBooking, updateAccommodationOrderEntryGroup, updateAccommodationOrderEntryGroup, validateAmendmentAction, validateAndReturnBookerEmailId, validateB2BUser, validateUserForBooking, validateUserForCheckout
-
Method Details
-
evaluateBookingCancellation
EvaluateCancelBookingResponseData evaluateBookingCancellation(String orderId, String userId) throws BookingCancelException, InvalidUserException, OrderNotFoundException Evaluates if it is possible to cancel the booking for an airline booking. Checks if 1) the order exists and the user has the rights to cancel the booking. 2) the action is allowed by validating the booking actions. 3) the cancel booking is possible by verifying the consignments, if the order has been already delivered and if there is some invalid payment.- Parameters:
orderId- the orderIduserId- the userId- Returns:
- The
EvaluateCancelBookingResponseDatacontaining all the breakdowns for the total to refund and penalties for both airline and accommodation reservation. - Throws:
BookingCancelException- if the additional security data is true in the order but the orderId is a orderGuid, or if there are invalid booking actions.InvalidUserException- if the user is not allowed to cancel the bookingOrderNotFoundException- if the order is not found in the system
-