Interface TravelCustomerAccountDao

All Superinterfaces:
de.hybris.platform.commerceservices.customer.dao.CustomerAccountDao, de.hybris.platform.servicelayer.internal.dao.Dao
All Known Implementing Classes:
DefaultTravelCustomerAccountDao

public interface TravelCustomerAccountDao extends de.hybris.platform.commerceservices.customer.dao.CustomerAccountDao
Extension of CustomerAccountDao to expose custom APIs to retrieve customer/order specific data.
  • Method Details

    • findOrderModelByOriginalOrderCode

      OrderModel findOrderModelByOriginalOrderCode(String bookingReference, BaseStoreModel baseStoreModel)
      Gets the order where original order code is equal to booking reference, store is equal to baseStoreModel passed as parameter, version if equals Null and status is NOT equal to amendment in progress.
      Parameters:
      bookingReference - the booking reference
      baseStoreModel - the base store model
      Returns:
      order model
    • findOrdersByOrderUserMapping

      List<OrderModel> findOrdersByOrderUserMapping(CustomerModel customerModel)
      Fetches all bookings for the customer where the customer is not an owner but traveling
      Parameters:
      customerModel - the customer model
      Returns:
      list
    • findOrderUserMapping

      OrderUserAccountMappingModel findOrderUserMapping(String orderCode, CustomerModel customerModel)
      Returns a particular Order-UserAccount Mapping for the customer
      Parameters:
      orderCode - the order code
      customerModel - the customer model
      Returns:
      order user account mapping model
    • findSavedSearch

      SavedSearchModel findSavedSearch(String savedSearchID)
      Finds search saved by current customer based on search reference ID.
      Parameters:
      savedSearchID - the saved search id
      Returns:
      savedSearchModel saved search model
    • findOrdersByOrderUserMappingAndStore

      SearchPageData<OrderModel> findOrdersByOrderUserMappingAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, SearchPageData searchPageData)
      Returns the orders of the supplied user and from Order-UserAccount Mapping filtering by OrderStatus
      Parameters:
      customerModel - the user to retrieve orders for
      store - the current store
      status - One or more OrderStatuses to include in the result
      searchPageData - the searchPageData contains requested pagination and sorting information
      Returns:
      the list of orders including order user mapping