Class DefaultBookingFacade

java.lang.Object
de.hybris.platform.travelfacades.facades.impl.DefaultBookingFacade
All Implemented Interfaces:
BookingFacade
Direct Known Subclasses:
DefaultShoppingBookingFacade

public class DefaultBookingFacade extends Object implements BookingFacade
Implementation class for managing a booking
  • Constructor Details

    • DefaultBookingFacade

      public DefaultBookingFacade()
  • Method Details

    • getBookingByBookingReference

      public ReservationData getBookingByBookingReference(String bookingReference)
      Description copied from interface: BookingFacade
      Returns ReservationData object for the bookingReference. Extracts the OrderModel using bookingReference and converts to ReservationData.
      Specified by:
      getBookingByBookingReference in interface BookingFacade
      Parameters:
      bookingReference - a String representing bookingReference Number
      Returns:
      ReservationData object.
    • getFullAccommodationBooking

      public AccommodationReservationData getFullAccommodationBooking(String bookingReference)
      Description copied from interface: BookingFacade
      Returns an accommodation reservation data fully populated with room rates per day
      Specified by:
      getFullAccommodationBooking in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      full accommodation booking
    • getGlobalTravelReservationData

      public GlobalTravelReservationData getGlobalTravelReservationData(String bookingReference)
      Description copied from interface: BookingFacade
      Returns an global reservation data fully populated
      Specified by:
      getGlobalTravelReservationData in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      global travel reservation data
    • getBasicAccommodationBookingFromCart

      public AccommodationReservationData getBasicAccommodationBookingFromCart()
      Description copied from interface: BookingFacade
      Returns an accommodation reservation data without room rates per day
      Specified by:
      getBasicAccommodationBookingFromCart in interface BookingFacade
      Returns:
      basic accommodation booking from cart
    • getAccommodationReservationDataForGuestDetailsFromCart

      public AccommodationReservationData getAccommodationReservationDataForGuestDetailsFromCart()
      Description copied from interface: BookingFacade
      Returns an accommodation reservation data specific for Guest Details Page Controller.
      Specified by:
      getAccommodationReservationDataForGuestDetailsFromCart in interface BookingFacade
      Returns:
      accommodation booking from cart.
    • getBasicAccommodationBookingFromCart

      protected AccommodationReservationData getBasicAccommodationBookingFromCart(AccommodationReservationPipelineManager accommodationReservationPipelineManager)
    • getGuestOccupanciesFromCart

      public List<GuestOccupancyData> getGuestOccupanciesFromCart(int roomStayRefNum)
      Description copied from interface: BookingFacade
      Returns guest occupancies from an accommodation or the rate plan if available or returns the minimum of two if both are available using the room stay reference number
      Specified by:
      getGuestOccupanciesFromCart in interface BookingFacade
      Parameters:
      roomStayRefNum - the room stay ref num
      Returns:
      guest occupancies from cart
    • amendAddRoom

      @Deprecated public boolean amendAddRoom(String orderCode)
      Deprecated.
      Deprecated since version 3.0.
      Description copied from interface: BookingFacade
      Creates a cart from order and attaches it to the session to start add room amendment process
      Specified by:
      amendAddRoom in interface BookingFacade
      Parameters:
      orderCode - the order code
      Returns:
    • buildAccommodationDetailsQueryFromCart

      public String buildAccommodationDetailsQueryFromCart()
      Description copied from interface: BookingFacade
      Defines a queryString needed to access accommodation details page based on selections that are currently in the cart.
      Specified by:
      buildAccommodationDetailsQueryFromCart in interface BookingFacade
      Returns:
      string string
    • getAccommodationDetailsParametersFromCart

      public Map<String,String> getAccommodationDetailsParametersFromCart()
      Description copied from interface: BookingFacade
      Retrieves a map of parameters needed to access accommodation details page (accommodation offering, check in date, check out date)
      Specified by:
      getAccommodationDetailsParametersFromCart in interface BookingFacade
      Returns:
      accommodation details parameters
    • getNewReservedRoomStays

      public List<ReservedRoomStayData> getNewReservedRoomStays()
      Description copied from interface: BookingFacade
      Returns only the room stays that have all associated entries with AmendStatus set to NEW
      Specified by:
      getNewReservedRoomStays in interface BookingFacade
      Returns:
      new reserved room stays
    • getOldReservedRoomStays

      public List<ReservedRoomStayData> getOldReservedRoomStays()
      Description copied from interface: BookingFacade
      Returns only the room stays that have all associated ACTIVE entries with AmendStatus set to SAME.
      Specified by:
      getOldReservedRoomStays in interface BookingFacade
      Returns:
      old reserved room stays
    • getAccommodationOrderEntryGroupRefs

      public List<Integer> getAccommodationOrderEntryGroupRefs()
      Description copied from interface: BookingFacade
      Returns List of room stay reference numbers of the added rooms
      Specified by:
      getAccommodationOrderEntryGroupRefs in interface BookingFacade
      Returns:
      accommodation order entry group refs
    • getNewAccommodationOrderEntryGroupRefs

      public List<Integer> getNewAccommodationOrderEntryGroupRefs()
      Description copied from interface: BookingFacade
      Returns List of room stay reference numbers of the newly added rooms
      Specified by:
      getNewAccommodationOrderEntryGroupRefs in interface BookingFacade
      Returns:
      new accommodation order entry group refs
    • getOldAccommodationOrderEntryGroupRefs

      public List<Integer> getOldAccommodationOrderEntryGroupRefs()
      Description copied from interface: BookingFacade
      Returns List of room stay reference numbers of the old added active rooms
      Specified by:
      getOldAccommodationOrderEntryGroupRefs in interface BookingFacade
      Returns:
      old accommodation order entry group refs
    • updateAccommodationOrderEntryGroup

      public Boolean updateAccommodationOrderEntryGroup(int roomStayRefNum, GuestData guestData, List<PassengerTypeQuantityData> passengerTypeQuantityData, List<String> roomPreferenceCodes, String checkInTime)
      Description copied from interface: BookingFacade
      Updates AccommodationOrderEntryGroup with guest details
      Specified by:
      updateAccommodationOrderEntryGroup in interface BookingFacade
      Parameters:
      roomStayRefNum - the room stay ref num
      guestData - the guest data
      passengerTypeQuantityData - the passenger type quantity data
      roomPreferenceCodes - the room preference data
      checkInTime - the check in time
      Returns:
      boolean boolean
    • updateAccommodationOrderEntryGroup

      public Boolean updateAccommodationOrderEntryGroup(int roomStayRefNum, List<String> roomPreferenceCodes)
      Description copied from interface: BookingFacade
      Updates AccommodationOrderEntryGroup with guest room preferences
      Specified by:
      updateAccommodationOrderEntryGroup in interface BookingFacade
      Parameters:
      roomStayRefNum - the room stay ref num
      roomPreferenceCodes - the room preference data
      Returns:
      boolean true if updated
    • validateUserForBooking

      public boolean validateUserForBooking(String bookingReference)
      Description copied from interface: BookingFacade
      For a logged in user, this method validates if the supplied booking reference belongs to one of the reservations made by the customer. For guest users it validates if the given booking reference matches with the booking reference used to login in the Manage My Booking component.
      Specified by:
      validateUserForBooking in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      boolean boolean
    • validateB2BUser

      public boolean validateB2BUser(CustomerModel currentCustomer, OrderModel orderModel)
      Description copied from interface: BookingFacade
      Validate b 2 b user boolean.
      Specified by:
      validateB2BUser in interface BookingFacade
      Parameters:
      currentCustomer - the current customer
      orderModel - the order model
      Returns:
      boolean validate b2b user against order to grant access
    • isUserOrderOwner

      public Boolean isUserOrderOwner(String bookingReference)
      Description copied from interface: BookingFacade
      Check whether the current user is the owner of the booking reference
      Specified by:
      isUserOrderOwner in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      boolean boolean
    • validateUserForCheckout

      public boolean validateUserForCheckout(String bookingReference)
      Description copied from interface: BookingFacade
      This method validates if the supplied booking reference belongs to one of the reservations made by the customer for logged-in users or if booking reference is valid for current guest user during checkout.
      Specified by:
      validateUserForCheckout in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      boolean boolean
    • containsValidPassengerReference

      protected boolean containsValidPassengerReference(OrderModel orderModel)
      Checks if the PASSENGER_REFERENCE is set in session and if its valid for the provided order
      Parameters:
      orderModel - the order model
      Returns:
    • getBookingByBookingReferenceAndAmendingOrder

      public ReservationData getBookingByBookingReferenceAndAmendingOrder(String bookingReference)
      Description copied from interface: BookingFacade
      Gets booking based on booking reference, then checks status of booking, IF status is amendment in progress, (that means this is amend order flow) , to get latest order details, it gets the booking which has original order code equal to booking reference, version id is null and status is NOT amendment in progress, i.e. the clone of original order(new order). ELSE returns booking retrieved based on booking reference
      Specified by:
      getBookingByBookingReferenceAndAmendingOrder in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      booking by booking reference and amending order
    • getFullAccommodationBookingForAmendOrder

      public AccommodationReservationData getFullAccommodationBookingForAmendOrder(String bookingReference)
      Description copied from interface: BookingFacade
      Returns an accommodation reservation data fully populated with room rates per day. IF status is amendment in progress, (that means this is amend order flow) , to get latest order details, it gets the booking which has original order code equal to booking reference, version id is null and status is NOT amendment in progress, i.e. the clone of original order(new order). ELSE returns booking retrieved based on booking reference
      Specified by:
      getFullAccommodationBookingForAmendOrder in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      booking by booking reference and amending order
    • convertOrderModelToReservationData

      protected ReservationData convertOrderModelToReservationData(OrderModel orderModel)
    • validateAndReturnBookerEmailId

      @Deprecated public String validateAndReturnBookerEmailId(String bookingReference, String lastName)
      Description copied from interface: BookingFacade
      Performs a validation on the booking, to check if the user is one of the travellers in the booking(only checks last name) and returns email id of the booker.
      Specified by:
      validateAndReturnBookerEmailId in interface BookingFacade
      Parameters:
      bookingReference - a String representing bookingReference Number
      lastName - a string representing lastName of the user.
      Returns:
      String EmailId.
    • getBookerEmailID

      public String getBookerEmailID(GlobalTravelReservationData globalReservationData, String lastName, String passengerReference)
      Description copied from interface: BookingFacade
      Performs a validation on the booking, to check if the user is one of the travellers in the booking(only checks last name and passengerReference if additional security is enabled) and returns email id of the booker.
      Specified by:
      getBookerEmailID in interface BookingFacade
      Parameters:
      globalReservationData - a GlobalTravelReservationData
      lastName - a string representing lastName of the user.
      passengerReference - a string representing passengerReference.
      Returns:
      booker email id
    • checkTravellerAndReturnUid

      @Deprecated protected String checkTravellerAndReturnUid(String lastName, OrderModel orderModel, TravellerData travellerData)
      Deprecated.
      Check traveller and return uid string.
      Parameters:
      lastName - the last name
      orderModel - the order model
      travellerData - the traveller data
      Returns:
      the string
    • checkGuestAndReturnUid

      @Deprecated protected String checkGuestAndReturnUid(String lastName, OrderModel orderModel, GuestData guestData)
      Deprecated.
      Check guest and return uid string.
      Parameters:
      lastName - the last name
      orderModel - the order model
      guestData - the guest data
      Returns:
      the string
    • getCustomerUid

      @Deprecated protected String getCustomerUid(OrderModel orderModel)
      Deprecated.
      Gets customer uid.
      Parameters:
      orderModel - the order model
      Returns:
      the customer uid
    • getCurrentCustomerBookings

      @Deprecated public List<ReservationData> getCurrentCustomerBookings()
      Deprecated.
      Deprecated since version 3.0.
      Description copied from interface: BookingFacade
      Returns a list of reservation data which corresponds to all the bookings of the current customer in session. In future release this method has been moved to {@link= BookingListFacade}
      Specified by:
      getCurrentCustomerBookings in interface BookingFacade
      Returns:
    • getCurrentCustomerAccommodationBookings

      @Deprecated public List<AccommodationReservationData> getCurrentCustomerAccommodationBookings()
      Deprecated.
      Deprecated since version 3.0.
      Description copied from interface: BookingFacade
      Returns a list of accommodation reservation data which corresponds to all accommodation bookings of the current customer in session In future release this method has been moved to {@link= BookingListFacade}
      Specified by:
      getCurrentCustomerAccommodationBookings in interface BookingFacade
      Returns:
    • getVisibleCurrentCustomerAccommodationBookings

      @Deprecated public List<AccommodationReservationData> getVisibleCurrentCustomerAccommodationBookings()
      Deprecated.
      Deprecated since version 3.0.
      Description copied from interface: BookingFacade
      Returns only the accommodation bookings visible to the current user In future release this method has been moved to {@link= BookingListFacade}
      Specified by:
      getVisibleCurrentCustomerAccommodationBookings in interface BookingFacade
      Returns:
    • getBookingTotal

      public PriceData getBookingTotal(String bookingReference)
      Description copied from interface: BookingFacade
      Retrieves the total price of the booking
      Specified by:
      getBookingTotal in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      booking total
    • getCurrentCustomerTravelBookings

      @Deprecated public List<GlobalTravelReservationData> getCurrentCustomerTravelBookings()
      Deprecated.
      Deprecated since version 3.0.
      Description copied from interface: BookingFacade
      Returns a list of global travel reservation data which corresponds to all travel bookings of the current customer in session In future release this method has been moved to {@link= BookingListFacade}
      Specified by:
      getCurrentCustomerTravelBookings in interface BookingFacade
      Returns:
    • getVisibleCurrentCustomerTravelBookings

      @Deprecated public List<GlobalTravelReservationData> getVisibleCurrentCustomerTravelBookings()
      Deprecated.
      Deprecated since version 3.0.
      Description copied from interface: BookingFacade
      Returns only the bookings visible to the current user In future release this method has been moved to {@link= BookingListFacade}
      Specified by:
      getVisibleCurrentCustomerTravelBookings in interface BookingFacade
      Returns:
    • getCustomerOrders

      protected List<OrderModel> getCustomerOrders()
    • getNextScheduledTransportOfferingData

      public TransportOfferingData getNextScheduledTransportOfferingData()
      Description copied from interface: BookingFacade
      Returns the next scheduled transportOffering data from current customer's active bookings
      Specified by:
      getNextScheduledTransportOfferingData in interface BookingFacade
      Returns:
      current customer's scheduled transportOffering data
    • sortBookings

      @Deprecated protected List<ReservationData> sortBookings(List<ReservationData> myBookings)
      Deprecated.
      Deprecated since version 3.0.
      Sorts users booking by departure time ascending and puts active bookings first In future release this method has been moved to {@link= DefaultBookingListFacade}
      Parameters:
      myBookings -
      Returns:
      sorted bookings list
    • sortAccommodationBookings

      @Deprecated protected List<AccommodationReservationData> sortAccommodationBookings(List<AccommodationReservationData> myBookings)
      Deprecated.
      Deprecated since version 3.0.
      Sorts users booking by departure time ascending In future release this method has been moved to {@link= DefaultBookingListFacade}
      Parameters:
      myBookings -
      Returns:
      sorted bookings list
    • sortTravelBookings

      @Deprecated protected List<GlobalTravelReservationData> sortTravelBookings(List<GlobalTravelReservationData> myBookings)
      Deprecated.
      Deprecated since version 3.0.
      Sorts users booking by departure time ascending In future release this method has been moved to {@link= DefaultBookingListFacade}
      Parameters:
      myBookings -
      Returns:
      sorted bookings list
    • getDateForComparison

      @Deprecated protected Date getDateForComparison(GlobalTravelReservationData globalTravelReservationData)
      Deprecated.
      Deprecated since version 3.0.
      Provides date which is to be used for Sorting bookings for Travel. In future release this method has been moved to {@link= DefaultBookingListFacade}
      Parameters:
      globalTravelReservationData -
      Returns:
      date
    • getOrderNumberForComparison

      @Deprecated protected String getOrderNumberForComparison(GlobalTravelReservationData globalTravelReservationData)
      Deprecated.
      Deprecated since version 3.0.
      Parameters:
      globalTravelReservationData -
      Returns:
    • amendOrder

      public Boolean amendOrder(String orderCode, String guid)
      Description copied from interface: BookingFacade
      Creates a cart from order and attaches it to the session to start amendment process
      Specified by:
      amendOrder in interface BookingFacade
      Parameters:
      orderCode - - code of the order which will be amended
      guid - the guid
      Returns:
      true if there were no errors when starting amendment process
    • changeDatesForAccommodationBooking

      public boolean changeDatesForAccommodationBooking(String checkInDate, String checkOutDate, AccommodationAvailabilityResponseData accommodationAvailabilityResponse, AccommodationReservationData accommodationReservationData)
      Description copied from interface: BookingFacade
      Methods Changes for dates for accommodation Booking in the cart, create and add RoomRateCartData for each AccommodationAddToCartForm details, and link to the original AccommodationOrderEntryGroup
      Specified by:
      changeDatesForAccommodationBooking in interface BookingFacade
      Parameters:
      checkInDate - the check in date
      checkOutDate - the check out date
      accommodationAvailabilityResponse - object of accommodationAvailabilityResponse
      accommodationReservationData - object of accommodationReservationData
      Returns:
      Success /Failure true/false
    • createAccommodationAddToCartForm

      protected List<AccommodationAddToCartForm> createAccommodationAddToCartForm(AccommodationAvailabilityResponseData accommodationAvailabilityResponse)
    • deleteExtraProductsFromCart

      protected boolean deleteExtraProductsFromCart()
    • deleteRoomRateEntries

      public boolean deleteRoomRateEntries()
      Description copied from interface: BookingFacade
      This method updates all the RoomRate cart entries that are currently active to have quantity zero, status CHANGED and active flag to false
      Specified by:
      deleteRoomRateEntries in interface BookingFacade
      Returns:
      boolean to indicate whether update operation was successful
    • changeDatesForAccommodationOrderEntryGroup

      public List<AccommodationOrderEntryGroupModel> changeDatesForAccommodationOrderEntryGroup(String checkInDate, String checkOutDate)
      Description copied from interface: BookingFacade
      Changes dates for AccommodationOrderEntryGroups in the cart and returns list of AccommodationOrderEntryGroups in the Cart.
      Specified by:
      changeDatesForAccommodationOrderEntryGroup in interface BookingFacade
      Parameters:
      checkInDate - the check in date
      checkOutDate - the check out date
      Returns:
      accommodationOrderEntryGroupModels list of AccommodationOrderEntryGroupModel
    • createRefundPaymentTransaction

      public Boolean createRefundPaymentTransaction(PriceData totalToPay)
      Description copied from interface: BookingFacade
      Creates a refund payment transaction based on previous details in cart and current total to pay (which is negative in this case)
      Specified by:
      createRefundPaymentTransaction in interface BookingFacade
      Parameters:
      totalToPay - the total amount to be refunded
      Returns:
      TRUE is refund was successful
    • isCancelPossible

      public boolean isCancelPossible(String orderCode)
      Description copied from interface: BookingFacade
      Check if the cancel order is possible for the order with the given orderCode
      Specified by:
      isCancelPossible in interface BookingFacade
      Parameters:
      orderCode - as the code of the order to be cancelled
      Returns:
      true if the cancellation is possible, false otherwise
    • getRefundTotal

      public PriceData getRefundTotal(String orderCode)
      Description copied from interface: BookingFacade
      Returns the total amount to be refunded
      Specified by:
      getRefundTotal in interface BookingFacade
      Parameters:
      orderCode - as the code of the order to be cancelled
      Returns:
      the PriceData corresponding to the amount to be refunded
    • getRefundForCancelledTraveller

      public PriceData getRefundForCancelledTraveller()
      Description copied from interface: BookingFacade
      Calculates the total to refund for cancelled traveller
      Specified by:
      getRefundForCancelledTraveller in interface BookingFacade
      Returns:
      refund for cancelled traveller
    • getBookingTotals

      public RateData getBookingTotals(String bookingReference)
      Description copied from interface: BookingFacade
      Populate a RateData with all the totals meant to be presented to the user
      Specified by:
      getBookingTotals in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      booking totals
    • getBookingDiscounts

      protected Double getBookingDiscounts(AbstractOrderModel abstractOrder)
      Returns the value of applied global discounts, assuming fixed/percentage discounts on carts are the only occurring discounts
      Parameters:
      abstractOrder -
      Returns:
    • getRefundTotal

      public PriceData getRefundTotal(String orderCode, OrderEntryType orderEntryType)
      Description copied from interface: BookingFacade
      Returns the total amount to refund based on the given OrderEntryType
      Specified by:
      getRefundTotal in interface BookingFacade
      Parameters:
      orderCode - as the code of the order to cancel
      orderEntryType - as the orderEntryType
      Returns:
      the PriceData corresponding to the amount to refund
    • cancelOrder

      public boolean cancelOrder(String orderCode)
      Description copied from interface: BookingFacade
      Performs the cancellation of the order with the given orderCode
      Specified by:
      cancelOrder in interface BookingFacade
      Parameters:
      orderCode - as the code of the order to be cancelled
      Returns:
      true if the cancellation of the order was successful, false otherwise
    • beginTravellerCancellation

      public boolean beginTravellerCancellation(String orderCode, String cancelledTravellerCode, String cancelledTravellerUid, String guid)
      Description copied from interface: BookingFacade
      Creates a cart from order without entries related to traveller
      Specified by:
      beginTravellerCancellation in interface BookingFacade
      Parameters:
      orderCode - the order code
      cancelledTravellerCode - the cancelled traveller code
      cancelledTravellerUid - the cancelled traveller uid
      guid - the guid
      Returns:
      TRUE if cart creation was correct
    • getTotalToPay

      public PriceData getTotalToPay()
      Description copied from interface: BookingFacade
      Converts current cart to retrieve totalToPay value
      Specified by:
      getTotalToPay in interface BookingFacade
      Returns:
      total to pay
    • getOrderTotalPaid

      public PriceData getOrderTotalPaid(String bookingReference)
      Description copied from interface: BookingFacade
      Returns Total Paid for the booking
      Specified by:
      getOrderTotalPaid in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      order total paid
    • getBookingTotalByOrderEntryType

      public PriceData getBookingTotalByOrderEntryType(String bookingReference, OrderEntryType orderEntryType)
      Description copied from interface: BookingFacade
      Calculates the booking total amount for the orderEntryType in the abstract order
      Specified by:
      getBookingTotalByOrderEntryType in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      orderEntryType - the orderEntryType
      Returns:
      totalAmount booking total by order entry type
    • checkBookingJourneyType

      public boolean checkBookingJourneyType(String orderCode, BookingJourneyType bookingJourneyType)
      Description copied from interface: BookingFacade
      Checks if the order corresponding to the given orderCode has the same BookingJourneyType attribute than the given one.
      Specified by:
      checkBookingJourneyType in interface BookingFacade
      Parameters:
      orderCode - as the order code
      bookingJourneyType - as the bookingJourneyType
      Returns:
      true if the order corresponding to the orderCode has the same BookingJourneyType attribute than the given bookingJourneyType, false otherwise.
    • cancelTraveller

      @Deprecated public boolean cancelTraveller(PriceData totalToPay)
      Deprecated.
      Deprecated since version 2.0. Use cancelTraveller(PriceData, TravellerData) instead.
      Description copied from interface: BookingFacade
      Proceeds with placing an order for cart without removed traveller
      Specified by:
      cancelTraveller in interface BookingFacade
      Parameters:
      totalToPay - the total to pay
      Returns:
      true if cancellation is successful and a new order is placed
    • cancelTraveller

      @Deprecated public boolean cancelTraveller(PriceData totalToPay, TravellerData travellerData)
      Deprecated.
      Deprecated since version 4.0. Use cancelTraveller(PriceData, PriceData, TravellerData) instead.
      Description copied from interface: BookingFacade
      Proceeds with placing an order for cart without removed traveller
      Specified by:
      cancelTraveller in interface BookingFacade
      Parameters:
      totalToPay - the total to pay
      travellerData - the travellerData to cancel
      Returns:
      true if cancellation is successful and a new order is placed
    • cancelTraveller

      public boolean cancelTraveller(PriceData totalToPay, PriceData totalToRefund, TravellerData travellerData)
      Description copied from interface: BookingFacade
      Proceeds with placing an order for cart without removed traveller
      Specified by:
      cancelTraveller in interface BookingFacade
      Parameters:
      totalToPay - the total to pay
      totalToRefund - the total to refund
      travellerData - the travellerData to cancel
      Returns:
      true if cancellation is successful and a new order is placed
    • getCurrentUserUid

      public String getCurrentUserUid()
      Description copied from interface: BookingFacade
      Gets current user uid.
      Specified by:
      getCurrentUserUid in interface BookingFacade
      Returns:
      String current user uid
    • atleastOneAdultTravellerRemaining

      public boolean atleastOneAdultTravellerRemaining(String orderCode, String cancelledTravellerCode)
      Description copied from interface: BookingFacade
      Checks if after cancellation of selected traveller, there will still be at least one adult left in the booking
      Specified by:
      atleastOneAdultTravellerRemaining in interface BookingFacade
      Parameters:
      orderCode - the order code
      cancelledTravellerCode - the cancelled traveller code
      Returns:
      true if one adult will be on the booking after cancellation of the traveller
    • isAmendment

      public Boolean isAmendment(String bookingReference)
      Description copied from interface: BookingFacade
      Checks whether the order is a result of an amendment
      Specified by:
      isAmendment in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      true if the order is a result of amendment
    • getDisruptedReservation

      public ReservationData getDisruptedReservation(String bookingReference)
      Description copied from interface: BookingFacade
      Gets disrupted reservation which only has the items that have been disrupted
      Specified by:
      getDisruptedReservation in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      disrupted reservation
    • acceptOrder

      public boolean acceptOrder(String orderCode)
      Description copied from interface: BookingFacade
      Performs the acceptance of the order in case the user accepts the new booking suggested by the system
      Specified by:
      acceptOrder in interface BookingFacade
      Parameters:
      orderCode - the order code
      Returns:
      boolean boolean
    • unlinkBooking

      public boolean unlinkBooking(String orderCode)
      Description copied from interface: BookingFacade
      Flags the booking as not visible to customer account
      Specified by:
      unlinkBooking in interface BookingFacade
      Parameters:
      orderCode - the order code
      Returns:
      boolean boolean
    • getOrderStatusValue

      @Deprecated protected Integer getOrderStatusValue(String orderStatusCode)
      Deprecated.
      Deprecated since version 3.0.
      Parameters:
      orderStatusCode -
      Returns:
    • mapOrderToUserAccount

      public void mapOrderToUserAccount(String bookingReferenceNumber)
      Description copied from interface: BookingFacade
      Maps an order to a user if the user is not an owner and the order hasn't been linked already
      Specified by:
      mapOrderToUserAccount in interface BookingFacade
      Parameters:
      bookingReferenceNumber - the booking reference number
    • isCurrentUserTheOwner

      public boolean isCurrentUserTheOwner(CustomerModel currentCustomer, OrderModel orderModel)
      Parameters:
      currentCustomer -
      orderModel -
      Returns:
      returns true if the current user is the owner
    • addRequestToRoomStayBooking

      public boolean addRequestToRoomStayBooking(String request, int roomStayRefNumber, String bookingReference)
      Description copied from interface: BookingFacade
      Add an user request against a room stay booking
      Specified by:
      addRequestToRoomStayBooking in interface BookingFacade
      Parameters:
      request - the request
      roomStayRefNumber - the room stay ref number
      bookingReference - the booking reference
      Returns:
      true if the operation of adding the request is successfully performed, false otherwise
    • removeRequestFromRoomStayBooking

      public boolean removeRequestFromRoomStayBooking(String requestCode, int roomStayRefNumber, String bookingReference)
      Description copied from interface: BookingFacade
      Remove an user request from a room stay booking
      Specified by:
      removeRequestFromRoomStayBooking in interface BookingFacade
      Parameters:
      requestCode - the request code
      roomStayRefNumber - the room stay ref number
      bookingReference - the booking reference
      Returns:
      true if the operation of removing the request is successfully performed, false otherwise
    • beginPartialOrderCancellation

      public boolean beginPartialOrderCancellation(String bookingReference, OrderEntryType orderEntryType, String guid)
      Description copied from interface: BookingFacade
      Creates a cart from the order without entries of type orderEntryType
      Specified by:
      beginPartialOrderCancellation in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      orderEntryType - the order entry type
      guid - the guid
      Returns:
      true if cart creation was correct
    • cancelPartialOrder

      public boolean cancelPartialOrder(PriceData totalToRefund, OrderEntryType orderEntryType)
      Description copied from interface: BookingFacade
      Proceeds with placing an order for cart after the partialCancelOrder has begun
      Specified by:
      cancelPartialOrder in interface BookingFacade
      Parameters:
      totalToRefund - the total to refund
      orderEntryType - the accommodation
      Returns:
      true if cancellation is successful and a new order is placed
    • isCurrentCartOfType

      public boolean isCurrentCartOfType(String bookingType)
      Description copied from interface: BookingFacade
      Checks if is current cart of type.
      Specified by:
      isCurrentCartOfType in interface BookingFacade
      Parameters:
      bookingType - the booking type
      Returns:
      true, if current cart is of type
    • isOrderOfType

      public boolean isOrderOfType(String bookingReference, String bookingType)
      Description copied from interface: BookingFacade
      Checks if is current cart of type.
      Specified by:
      isOrderOfType in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      bookingType - the booking type
      Returns:
      true, if current cart is of type
    • collectAccommodationOrderEntryGroup

      protected AccommodationOrderEntryGroupModel collectAccommodationOrderEntryGroup(AccommodationAddToCartForm form, List<AccommodationOrderEntryGroupModel> accommodationOrderEntryGroupModels)
      Creates a list of RoomRateCartData respective to AccommodationAddToCartForm
      Parameters:
      form - object of AccommodationAddToCartForm
      accommodationOrderEntryGroupModels - list of AccommodationOrderEntryGroupModel
      Returns:
      accommodationOrderEntryGroupModel object of AccommodationOrderEntryGroupModel
    • getOrderTotalPaidForOrderEntryType

      public BigDecimal getOrderTotalPaidForOrderEntryType(String bookingReference, OrderEntryType orderEntryType)
      Description copied from interface: BookingFacade
      Returns the total amount already paid for the given orderEntryType and the given bookingReference
      Specified by:
      getOrderTotalPaidForOrderEntryType in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      orderEntryType - the order entry type
      Returns:
      order total paid for order entry type
    • placeOrder

      public boolean placeOrder()
      Description copied from interface: BookingFacade
      Place order
      Specified by:
      placeOrder in interface BookingFacade
      Returns:
      orderData representing the order
    • getOrderTotalToPayForOrderEntryType

      public BigDecimal getOrderTotalToPayForOrderEntryType(String bookingReference, OrderEntryType orderEntryType)
      Description copied from interface: BookingFacade
      Returns the total amount to be paid for the given orderEntryType and the given bookingReference
      Specified by:
      getOrderTotalToPayForOrderEntryType in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      orderEntryType - the order entry type
      Returns:
      order total to pay for order entry type
    • getOrderTotalToPayForChangeDates

      public BigDecimal getOrderTotalToPayForChangeDates()
      Description copied from interface: BookingFacade
      Calculates the total to pay for change dates for the order in cart
      Specified by:
      getOrderTotalToPayForChangeDates in interface BookingFacade
      Returns:
      totalAmountToPay order total to pay for change dates
    • getChangeDatePaymentResultsMap

      public Map<String,String> getChangeDatePaymentResultsMap(AccommodationReservationData accommodationReservationData, AccommodationAvailabilityResponseData accommodationAvailabilityResponse)
      Description copied from interface: BookingFacade
      Provides the payment information for The change date functionality. It provides amount paid already paid for order, new amount to be paid/refund(if any) , the payment action required(REFUND,PAYABLE or SAME).
      Specified by:
      getChangeDatePaymentResultsMap in interface BookingFacade
      Parameters:
      accommodationReservationData - the accommodation reservation data
      accommodationAvailabilityResponse - the accommodation availability response
      Returns:
      change date payment results map
    • getChangeDatePaymentResults

      public ChangeDateData getChangeDatePaymentResults(AccommodationReservationData accommodationReservationData, AccommodationAvailabilityResponseData accommodationAvailabilityResponse)
      Specified by:
      getChangeDatePaymentResults in interface BookingFacade
      Parameters:
      accommodationReservationData - the accommodation reservation data
      accommodationAvailabilityResponse - the accommodation availability response
      Returns:
      change date payment Data
    • getNotRefundableAmount

      public PriceData getNotRefundableAmount(String bookingReference)
      Description copied from interface: BookingFacade
      Returns a {@link PriceData) representing the total amount that has been paid but cannot be refunded
      Specified by:
      getNotRefundableAmount in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      the not refundable amount
    • isAdditionalSecurityActive

      public boolean isAdditionalSecurityActive(String bookingReference)
      Description copied from interface: BookingFacade
      Checks whether the order has the additional security flag set to true
      Specified by:
      isAdditionalSecurityActive in interface BookingFacade
      Parameters:
      bookingReference - the booking reference
      Returns:
      true if the order has the additional security flag set to true
    • isRoomStayRefValid

      public Boolean isRoomStayRefValid(int roomStayRefNumber)
      Description copied from interface: BookingFacade
      Is room stay ref valid boolean.
      Specified by:
      isRoomStayRefValid in interface BookingFacade
      Parameters:
      roomStayRefNumber - the room stay ref number
      Returns:
      true if the room stay reference is valid for the given session cart
    • getAccommodationOrderEntryGroupStartingDate

      public Date getAccommodationOrderEntryGroupStartingDate(int roomStayRefNumber)
      Specified by:
      getAccommodationOrderEntryGroupStartingDate in interface BookingFacade
      Parameters:
      roomStayRefNumber - the room stay ref number
      Returns:
      the starting date of AccommodationOrderEntryGroup corresponding to given roomStayRefNumber
    • cancelBookingForCurrentUser

      public void cancelBookingForCurrentUser(String orderId) throws BookingCancelException
      Description copied from interface: BookingFacade
      Performs the cancellation of the order.
      Specified by:
      cancelBookingForCurrentUser in interface BookingFacade
      Parameters:
      orderId - the order id
      Throws:
      BookingCancelException - in case of errors
    • getAccommodationOrderEntryGroupFromCart

      public AccommodationOrderEntryGroupData getAccommodationOrderEntryGroupFromCart(int roomStayRefNum)
      Description copied from interface: BookingFacade
      Gets accommodation order entry group.
      Specified by:
      getAccommodationOrderEntryGroupFromCart in interface BookingFacade
      Parameters:
      roomStayRefNum - the room stay ref num
      Returns:
      the accommodation order entry group
    • getRoomStayRefNumberForOrderEntry

      public Integer getRoomStayRefNumberForOrderEntry(Integer entryNumber)
      Description copied from interface: BookingFacade
      Gets room stay ref number for order entry.
      Specified by:
      getRoomStayRefNumberForOrderEntry in interface BookingFacade
      Parameters:
      entryNumber - the entry number
      Returns:
      the room stay ref number for order entry
    • getRoomStaysGuaranteesFromCart

      public List<GuaranteeData> getRoomStaysGuaranteesFromCart(int roomStayRefNum)
      Description copied from interface: BookingFacade
      Gets guarantees applied to the given room stays in the cart.
      Specified by:
      getRoomStaysGuaranteesFromCart in interface BookingFacade
      Parameters:
      roomStayRefNum - the room stay ref num
      Returns:
      the list of guarantees
    • getRoomStaysPenaltiesFromCart

      public List<CancelPenaltyData> getRoomStaysPenaltiesFromCart(int roomStayRefNum)
      Description copied from interface: BookingFacade
      Gets cancel penalties applied to the given room stays in the cart.
      Specified by:
      getRoomStaysPenaltiesFromCart in interface BookingFacade
      Parameters:
      roomStayRefNum - the room stay ref num
      Returns:
      the list of cancel penalties
    • evaluateCancelBooking

      public EvaluateCancelBookingData evaluateCancelBooking(String orderCode) throws BookingCancelException
      Description copied from interface: BookingFacade
      Evaluates if it is possible to cancel the 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.
      Specified by:
      evaluateCancelBooking in interface BookingFacade
      Parameters:
      orderCode - the orderCode
      Returns:
      The EvaluateCancelBookingData containing all the breakdowns for the total to refund and penalties for both transport 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.
    • validateAmendmentAction

      public void validateAmendmentAction(String orderId, ActionTypeOption transportAmendmentAction, ActionTypeOption accommodationAmendmentAction, ActionTypeOption globalAmendmentAction, String travellerUId) throws OrderNotFoundException, TravelOrderValidationException
      Description copied from interface: BookingFacade
      Returns the valid actions for the given booking reference and global reservation data for the given user
      Specified by:
      validateAmendmentAction in interface BookingFacade
      Parameters:
      orderId - the order id
      transportAmendmentAction - the transport amendment action
      accommodationAmendmentAction - the accommodation amendment action
      globalAmendmentAction - the global amendment action
      travellerUId - the uid for the specific traveller to be validated
      Throws:
      OrderNotFoundException - the order not found exception
      TravelOrderValidationException - the travel order validation exception
    • createBookingActionRequest

      protected BookingActionRequestData createBookingActionRequest(String bookingReference, String userId, ActionTypeOption actionType)
      Builds the global booking action request
      Parameters:
      bookingReference - the booking reference
      userId - the user id
      actionType - the action type
      Returns:
      booking action request data
    • checkBookingActionEnabled

      protected void checkBookingActionEnabled(BookingActionResponseData bookingActionResponseData, String travellerUid) throws TravelOrderValidationException
      This method checks if the booking actions are enabled.
      Parameters:
      bookingActionResponseData - the booking action response data
      Throws:
      TravelOrderValidationException - the travel order validation exception
    • getTotalCancelPenaltiesByEntryType

      protected PriceData getTotalCancelPenaltiesByEntryType(OrderModel orderModel, OrderEntryType orderEntryType)
      Gets the total amount of cancel penalties in the order by entry type.
      Parameters:
      orderModel - the order id
      Returns:
      the total cancel penalties price data
    • cancelTransportReservation

      public void cancelTransportReservation(String orderId) throws BookingCancelException
      Description copied from interface: BookingFacade
      Cancel transport part of the order.
      Specified by:
      cancelTransportReservation in interface BookingFacade
      Parameters:
      orderId - the order id
      Throws:
      BookingCancelException - in case of errors
    • cancelAccommodationReservation

      public void cancelAccommodationReservation(String orderId) throws BookingCancelException
      Description copied from interface: BookingFacade
      Cancel accommodation part of the order.
      Specified by:
      cancelAccommodationReservation in interface BookingFacade
      Parameters:
      orderId - the order id
      Throws:
      BookingCancelException - in case of errors
    • cancelPartialOrder

      protected void cancelPartialOrder(OrderModel order, OrderEntryType orderEntryType) throws BookingCancelException
      Partial cancel of the order.
      Parameters:
      order - the order
      orderEntryType - the order entry type
      Throws:
      BookingCancelException - in case of errors
    • checkIfPartialCancelPossible

      protected void checkIfPartialCancelPossible(String orderId, OrderModel order, OrderEntryType orderEntryType) throws BookingCancelException
      Checks if the transport cancellation possible.
      Parameters:
      orderId - the order id
      order - the order
      orderEntryType - the order entry type
      Throws:
      BookingCancelException - in case of errors
    • placeOrder

      protected void placeOrder(CartModel cart) throws BookingCancelException
      Place order.
      Parameters:
      cart - the cart
      Throws:
      BookingCancelException - in case of errors
    • evaluateCancelTraveller

      public EvaluateCancelPriceInfoData evaluateCancelTraveller(String orderCode, String travellerId) throws RemoveTravellerException
      Description copied from interface: BookingFacade
      Evaluates if it is possible to remove a traveller from an order with transport entries. 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.
      Specified by:
      evaluateCancelTraveller in interface BookingFacade
      Parameters:
      orderCode - the orderCode
      Returns:
      The EvaluateCancelPriceInfoData containing all the breakdowns for the total to refund and penalties for transport reservation section.
      Throws:
      RemoveTravellerException - if the additional security data is true in the order but the orderId is a orderGuid, or if the operation is not allowed due to some validations.
    • getSpecialRequestsForRoomStayBooking

      public SpecialRequestDetailData getSpecialRequestsForRoomStayBooking(int roomStayRefNumber, String orderCode) throws SpecialRequestException
      Description copied from interface: BookingFacade
      Get an user request against a room stay booking
      Specified by:
      getSpecialRequestsForRoomStayBooking in interface BookingFacade
      Parameters:
      roomStayRefNumber - the room stay ref number
      orderCode - the booking reference
      Returns:
      true if the operation of adding the request is successfully performed, false otherwise
      Throws:
      SpecialRequestException
    • removeSpecialRequestsForRoomStayBooking

      public void removeSpecialRequestsForRoomStayBooking(String requestCode, int roomStayRefNumber, String orderCode) throws SpecialRequestException
      Description copied from interface: BookingFacade
      Remove an user request from a room stay booking
      Specified by:
      removeSpecialRequestsForRoomStayBooking in interface BookingFacade
      Parameters:
      requestCode - the request code
      roomStayRefNumber - the room stay ref number
      orderCode - the booking reference
      Throws:
      SpecialRequestException
    • addSpecialRequestsForRoomStayBooking

      public void addSpecialRequestsForRoomStayBooking(String requestCode, int roomStayRefNumber, String orderCode) throws SpecialRequestException
      Description copied from interface: BookingFacade
      Remove an user request from a room stay booking
      Specified by:
      addSpecialRequestsForRoomStayBooking in interface BookingFacade
      Parameters:
      requestCode - the request code
      roomStayRefNumber - the room stay ref number
      orderCode - the booking reference
      Throws:
      SpecialRequestException
    • getAccommodationRoomNameMapping

      public Map<String,Map<String,Integer>> getAccommodationRoomNameMapping(List<AccommodationReservationData> accommodationReservationDatas)
      Description copied from interface: BookingFacade
      Gets accommodation room name mapping.
      Specified by:
      getAccommodationRoomNameMapping in interface BookingFacade
      Parameters:
      accommodationReservationDatas - the accommodation reservation datas
      Returns:
      the accommodation room name mapping
    • validateRoomStayRefNumber

      protected void validateRoomStayRefNumber(int roomStayRefNumber, OrderModel orderModel)
      Validate if max number of requests exceeds
      Parameters:
      roomStayRefNumber -
      orderModel -
      Throws:
      SpecialRequestException
    • validateServiceRequestCode

      protected void validateServiceRequestCode(String requestCode, int roomStayRefNumber, OrderModel orderModel)
      Validate if max number of requests exceeds
      Parameters:
      requestCode -
      roomStayRefNumber -
      orderModel -
      Throws:
      SpecialRequestException
    • validateMaxNumberOfSpecialRequest

      protected void validateMaxNumberOfSpecialRequest(int roomStayRefNumber, OrderModel orderModel) throws SpecialRequestException
      Validate if max number of requests exceeds
      Parameters:
      roomStayRefNumber -
      orderModel -
      Throws:
      SpecialRequestException
    • getBaseStoreService

      protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()
      Returns:
      the baseStoreService
    • setBaseStoreService

      public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService)
      Parameters:
      baseStoreService - the baseStoreService to set
    • getReservationFacade

      protected ReservationFacade getReservationFacade()
      Returns:
      the reservationFacade
    • setReservationFacade

      public void setReservationFacade(ReservationFacade reservationFacade)
      Parameters:
      reservationFacade - the reservationFacade to set
    • getUserService

      protected de.hybris.platform.servicelayer.user.UserService getUserService()
      Returns:
      UserService
    • setUserService

      public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)
      Parameters:
      userService -
    • getTravelCartService

      protected TravelCartService getTravelCartService()
      Returns:
      the travelCartService
    • setTravelCartService

      public void setTravelCartService(TravelCartService travelCartService)
      Parameters:
      travelCartService - the travelCartService to set
    • getBookingService

      protected BookingService getBookingService()
      Returns:
      the bookingService
    • setBookingService

      public void setBookingService(BookingService bookingService)
      Parameters:
      bookingService - the bookingService to set
    • getSessionService

      protected de.hybris.platform.servicelayer.session.SessionService getSessionService()
      Returns:
      the sessionService
    • setSessionService

      public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
      Parameters:
      sessionService - the sessionService to set
    • getCheckoutFacade

      protected de.hybris.platform.commercefacades.order.CheckoutFacade getCheckoutFacade()
      Returns:
      the checkoutFacade
    • setCheckoutFacade

      public void setCheckoutFacade(de.hybris.platform.commercefacades.order.CheckoutFacade checkoutFacade)
      Parameters:
      checkoutFacade - the checkoutFacade to set
    • getAccommodationCartFacade

      protected AccommodationCartFacade getAccommodationCartFacade()
      Returns:
      the accommodationCartFacade
    • setAccommodationCartFacade

      public void setAccommodationCartFacade(AccommodationCartFacade accommodationCartFacade)
      Parameters:
      accommodationCartFacade - the accommodationCartFacade to set
    • getPriceDataFactory

      @Deprecated protected de.hybris.platform.commercefacades.product.PriceDataFactory getPriceDataFactory()
      Deprecated.
      Deprecated since version 3.0.
      Returns:
      the priceDataFactory
    • setPriceDataFactory

      @Deprecated public void setPriceDataFactory(de.hybris.platform.commercefacades.product.PriceDataFactory priceDataFactory)
      Deprecated.
      Deprecated since version 3.0.
      Parameters:
      priceDataFactory - the priceDataFactory to set
    • getTravelCheckoutCustomerStrategy

      protected TravelCheckoutCustomerStrategy getTravelCheckoutCustomerStrategy()
      Gets travel checkout customer strategy.
      Returns:
      the travel checkout customer strategy
    • setTravelCheckoutCustomerStrategy

      public void setTravelCheckoutCustomerStrategy(TravelCheckoutCustomerStrategy travelCheckoutCustomerStrategy)
      Sets travel checkout customer strategy.
      Parameters:
      travelCheckoutCustomerStrategy - the travel checkout customer strategy
    • getOrderStatusValueMap

      @Deprecated protected Map<String,Integer> getOrderStatusValueMap()
      Deprecated.
      Deprecated since version 3.0.
      Gets order status value map.
      Returns:
      the order status value map
    • setOrderStatusValueMap

      public void setOrderStatusValueMap(Map<String,Integer> orderStatusValueMap)
      Sets order status value map.
      Parameters:
      orderStatusValueMap - the order status value map
    • getModelService

      protected de.hybris.platform.servicelayer.model.ModelService getModelService()
      Gets model service.
      Returns:
      the model service
    • setModelService

      public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
      Sets model service.
      Parameters:
      modelService - the model service
    • getCustomerAccountService

      protected TravelCustomerAccountService getCustomerAccountService()
      Gets customer account service.
      Returns:
      the customer account service
    • setCustomerAccountService

      public void setCustomerAccountService(TravelCustomerAccountService customerAccountService)
      Sets customer account service.
      Parameters:
      customerAccountService - the customer account service
    • getBasicAccommodationReservationPipelineManager

      protected AccommodationReservationPipelineManager getBasicAccommodationReservationPipelineManager()
      Gets basic accommodation reservation pipeline manager.
      Returns:
      the basic accommodation reservation pipeline manager
    • setBasicAccommodationReservationPipelineManager

      public void setBasicAccommodationReservationPipelineManager(AccommodationReservationPipelineManager basicAccommodationReservationPipelineManager)
      Sets basic accommodation reservation pipeline manager.
      Parameters:
      basicAccommodationReservationPipelineManager - the basic accommodation reservation pipeline manager
    • getFullAccommodationReservationPipelineManager

      protected AccommodationReservationPipelineManager getFullAccommodationReservationPipelineManager()
      Gets full accommodation reservation pipeline manager.
      Returns:
      the full accommodation reservation pipeline manager
    • setFullAccommodationReservationPipelineManager

      public void setFullAccommodationReservationPipelineManager(AccommodationReservationPipelineManager fullAccommodationReservationPipelineManager)
      Sets full accommodation reservation pipeline manager.
      Parameters:
      fullAccommodationReservationPipelineManager - the full accommodation reservation pipeline manager
    • getGuestCountReverseConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<PassengerTypeQuantityData,GuestCountModel> getGuestCountReverseConverter()
      Returns:
      the guestCountReverseConverter
    • setGuestCountReverseConverter

      public void setGuestCountReverseConverter(de.hybris.platform.servicelayer.dto.converter.Converter<PassengerTypeQuantityData,GuestCountModel> guestCountReverseConverter)
      Parameters:
      guestCountReverseConverter - the guestCountReverseConverter to set
    • getGuestOccupancyConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<GuestOccupancyModel,GuestOccupancyData> getGuestOccupancyConverter()
      Returns:
      the guestOccupancyConverter
    • setGuestOccupancyConverter

      public void setGuestOccupancyConverter(de.hybris.platform.servicelayer.dto.converter.Converter<GuestOccupancyModel,GuestOccupancyData> guestOccupancyConverter)
      Parameters:
      guestOccupancyConverter - the guestOccupancyConverter to set
    • getRoomPreferenceService

      protected RoomPreferenceService getRoomPreferenceService()
      Returns:
      the roomPreferenceService
    • setRoomPreferenceService

      public void setRoomPreferenceService(RoomPreferenceService roomPreferenceService)
      Parameters:
      roomPreferenceService - the roomPreferenceService to set
    • getCommonI18NService

      protected de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()
      Returns:
      the commonI18NService
    • setCommonI18NService

      public void setCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)
      Parameters:
      commonI18NService - the commonI18NService to set
    • getEnumerationService

      protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()
      Gets the enumeration service.
      Returns:
      the enumeration service
    • setEnumerationService

      public void setEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService)
      Sets the enumeration service.
      Parameters:
      enumerationService - the new enumeration service
    • getTimeService

      protected de.hybris.platform.servicelayer.time.TimeService getTimeService()
      Gets time service.
      Returns:
      the time service
    • setTimeService

      public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService)
      Sets time service.
      Parameters:
      timeService - the time service
    • getCalculatePaymentTypeForChangeDatesStrategy

      protected CalculatePaymentTypeForChangeDatesStrategy getCalculatePaymentTypeForChangeDatesStrategy()
      Returns:
      the calculatePaymentTypeForChangeDatesStrategy
    • setCalculatePaymentTypeForChangeDatesStrategy

      public void setCalculatePaymentTypeForChangeDatesStrategy(CalculatePaymentTypeForChangeDatesStrategy calculatePaymentTypeForChangeDatesStrategy)
      Parameters:
      calculatePaymentTypeForChangeDatesStrategy - the calculatePaymentTypeForChangeDatesStrategy to set
    • getNotAllowedStatuses

      protected List<OrderStatus> getNotAllowedStatuses()
      Returns:
      notAllowedStatuses
    • setNotAllowedStatuses

      public void setNotAllowedStatuses(List<OrderStatus> notAllowedStatuses)
      Parameters:
      notAllowedStatuses - the notAllowedStatuses to set
    • getTravelOfferingStatusSearchPipelineManager

      protected GlobalTravelReservationPipelineManager getTravelOfferingStatusSearchPipelineManager()
      Returns:
      the travelOfferingStatusSearchPipelineManager
    • setTravelOfferingStatusSearchPipelineManager

      public void setTravelOfferingStatusSearchPipelineManager(GlobalTravelReservationPipelineManager travelOfferingStatusSearchPipelineManager)
      Parameters:
      travelOfferingStatusSearchPipelineManager - the travelOfferingStatusSearchPipelineManager to set
    • getGuestDetailsAccommodationReservationPipelineManager

      protected AccommodationReservationPipelineManager getGuestDetailsAccommodationReservationPipelineManager()
      Returns:
      the guestDetailsAccommodationReservationPipelineManager
    • setGuestDetailsAccommodationReservationPipelineManager

      public void setGuestDetailsAccommodationReservationPipelineManager(AccommodationReservationPipelineManager guestDetailsAccommodationReservationPipelineManager)
      Parameters:
      guestDetailsAccommodationReservationPipelineManager - the guestDetailsAccommodationReservationPipelineManager to set
    • getBasicGlobalTravelReservationPipelineManager

      @Deprecated protected GlobalTravelReservationPipelineManager getBasicGlobalTravelReservationPipelineManager()
      Deprecated.
      Deprecated since version 3.0.
      Returns:
      the basicGlobalTravelReservationPipelineManager
    • setBasicGlobalTravelReservationPipelineManager

      @Deprecated public void setBasicGlobalTravelReservationPipelineManager(GlobalTravelReservationPipelineManager basicGlobalTravelReservationPipelineManager)
      Deprecated.
      Deprecated since version 3.0.
      Parameters:
      basicGlobalTravelReservationPipelineManager - the basicGlobalTravelReservationPipelineManager to set
    • getReservationItemPipelineManager

      @Deprecated protected ReservationPipelineManager getReservationItemPipelineManager()
      Deprecated.
      Deprecated since version 3.0.
      Returns:
      Converter
    • setReservationItemPipelineManager

      @Deprecated public void setReservationItemPipelineManager(ReservationPipelineManager reservationItemPipelineManager)
      Deprecated.
      Deprecated since version 3.0.
      Parameters:
      reservationItemPipelineManager - the reservationItemPipelineManager to set
    • getBookingListFacade

      protected BookingListFacade getBookingListFacade()
      Returns:
      the bookingListFacade
    • setBookingListFacade

      public void setBookingListFacade(BookingListFacade bookingListFacade)
      Parameters:
      bookingListFacade - the bookingListFacade to set
    • getGuestCountService

      protected GuestCountService getGuestCountService()
      Returns:
      the guestCountService
    • setGuestCountService

      public void setGuestCountService(GuestCountService guestCountService)
      Parameters:
      guestCountService - the guestCountService to set
    • getTravelCommercePriceFacade

      protected TravelCommercePriceFacade getTravelCommercePriceFacade()
      Returns:
      the travelCommercePriceFacade
    • setTravelCommercePriceFacade

      public void setTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade)
      Parameters:
      travelCommercePriceFacade - the travelCommercePriceFacade to set
    • getAccommodationBookingFacade

      protected AccommodationBookingFacade getAccommodationBookingFacade()
      Gets accommodation booking facade.
      Returns:
      the accommodation booking facade
    • setAccommodationBookingFacade

      public void setAccommodationBookingFacade(AccommodationBookingFacade accommodationBookingFacade)
      Sets accommodation booking facade.
      Parameters:
      accommodationBookingFacade - the accommodation booking facade
    • getAccommodationOrderEntryGroupConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<AccommodationOrderEntryGroupModel,AccommodationOrderEntryGroupData> getAccommodationOrderEntryGroupConverter()
      Gets accommodation order entry group converter.
      Returns:
      the accommodation order entry group converter
    • setAccommodationOrderEntryGroupConverter

      public void setAccommodationOrderEntryGroupConverter(de.hybris.platform.servicelayer.dto.converter.Converter<AccommodationOrderEntryGroupModel,AccommodationOrderEntryGroupData> accommodationOrderEntryGroupConverter)
      Sets accommodation order entry group converter.
      Parameters:
      accommodationOrderEntryGroupConverter - the accommodation order entry group converter
    • getGuaranteeConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<GuaranteeModel,GuaranteeData> getGuaranteeConverter()
      Returns:
      the guaranteeConverter
    • setGuaranteeConverter

      public void setGuaranteeConverter(de.hybris.platform.servicelayer.dto.converter.Converter<GuaranteeModel,GuaranteeData> guaranteeConverter)
      Parameters:
      guaranteeConverter - the guaranteeConverter to set
    • getCancelPenaltyConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<CancelPenaltyModel,CancelPenaltyData> getCancelPenaltyConverter()
      Returns:
      the cancelPenaltyConverter
    • setCancelPenaltyConverter

      public void setCancelPenaltyConverter(de.hybris.platform.servicelayer.dto.converter.Converter<CancelPenaltyModel,CancelPenaltyData> cancelPenaltyConverter)
      Parameters:
      cancelPenaltyConverter - the cancelPenaltyConverter to set
    • getCancelPenaltiesDescriptionCreationStrategy

      protected CancelPenaltiesDescriptionCreationStrategy getCancelPenaltiesDescriptionCreationStrategy()
      Returns:
      the cancelPenaltiesDescriptionCreationStrategy
    • setCancelPenaltiesDescriptionCreationStrategy

      public void setCancelPenaltiesDescriptionCreationStrategy(CancelPenaltiesDescriptionCreationStrategy cancelPenaltiesDescriptionCreationStrategy)
      Parameters:
      cancelPenaltiesDescriptionCreationStrategy - the cancelPenaltiesDescriptionCreationStrategy to set
    • getTransactionCalculationStrategy

      protected TransactionCalculationStrategy getTransactionCalculationStrategy()
      Gets transaction calculation strategy.
      Returns:
      the transaction calculation strategy
    • setTransactionCalculationStrategy

      public void setTransactionCalculationStrategy(TransactionCalculationStrategy transactionCalculationStrategy)
      Sets transaction calculation strategy.
      Parameters:
      transactionCalculationStrategy - the transaction calculation strategy
    • getCancelPenaltiesCalculationService

      protected CancelPenaltiesCalculationService getCancelPenaltiesCalculationService()
      Gets cancel penalties calculation service.
      Returns:
      the cancel penalties calculation service
    • setCancelPenaltiesCalculationService

      public void setCancelPenaltiesCalculationService(CancelPenaltiesCalculationService cancelPenaltiesCalculationService)
      Sets cancel penalties calculation service.
      Parameters:
      cancelPenaltiesCalculationService - the cancel penalties calculation service
    • getActionFacade

      protected ActionFacade getActionFacade()
      Gets action facade.
      Returns:
      the action facade
    • setActionFacade

      public void setActionFacade(ActionFacade actionFacade)
      Sets action facade.
      Parameters:
      actionFacade - the action facade
    • getTravelCartFacade

      protected TravelCartFacade getTravelCartFacade()
      Gets travel cart facade.
      Returns:
      the travel cart facade
    • setTravelCartFacade

      public void setTravelCartFacade(TravelCartFacade travelCartFacade)
      Sets travel cart facade.
      Parameters:
      travelCartFacade - the travel cart facade
    • getTravelOrderCodeIdentificationStrategy

      protected TravelOrderCodeIdentificationStrategy getTravelOrderCodeIdentificationStrategy()
      Gets travel order code identification strategy.
      Returns:
      the travel order code identification strategy
    • setTravelOrderCodeIdentificationStrategy

      public void setTravelOrderCodeIdentificationStrategy(TravelOrderCodeIdentificationStrategy travelOrderCodeIdentificationStrategy)
      Sets travel order code identification strategy.
      Parameters:
      travelOrderCodeIdentificationStrategy - the travel order code identification strategy
    • getCommerceCheckoutService

      protected TravelCommerceCheckoutService getCommerceCheckoutService()
      Gets commerce checkout service.
      Returns:
      the commerce checkout service
    • setCommerceCheckoutService

      public void setCommerceCheckoutService(TravelCommerceCheckoutService commerceCheckoutService)
      Sets commerce checkout service.
      Parameters:
      commerceCheckoutService - the commerce checkout service
    • getSpecialRequestDetailsConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<SpecialRequestDetailModel,SpecialRequestDetailData> getSpecialRequestDetailsConverter()
      Gets special request details converter.
      Returns:
      the specialRequestDetailsConverter
    • setSpecialRequestDetailsConverter

      public void setSpecialRequestDetailsConverter(de.hybris.platform.servicelayer.dto.converter.Converter<SpecialRequestDetailModel,SpecialRequestDetailData> specialRequestDetailsConverter)
      Sets special request details converter.
      Parameters:
      specialRequestDetailsConverter - the specialRequestDetailsConverter to set
    • getConfigurationService

      protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Gets configuration service.
      Returns:
      the configurationService
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Sets configuration service.
      Parameters:
      configurationService - the configurationService to set