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 Summary
Modifier and TypeMethodDescriptionfindOrderModelByOriginalOrderCode(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.findOrdersByOrderUserMapping(CustomerModel customerModel) Fetches all bookings for the customer where the customer is not an owner but travelingfindOrdersByOrderUserMappingAndStore(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, SearchPageData searchPageData) Returns the orders of the supplied user and from Order-UserAccount Mapping filtering by OrderStatusfindOrderUserMapping(String orderCode, CustomerModel customerModel) Returns a particular Order-UserAccount Mapping for the customerfindSavedSearch(String savedSearchID) Finds search saved by current customer based on search reference ID.Methods inherited from interface de.hybris.platform.commerceservices.customer.dao.CustomerAccountDao
findAddressBookDeliveryEntriesForCustomer, findCreditCardPaymentInfoByCustomer, findCreditCardPaymentInfosByCustomer, findOrderByCodeAndStore, findOrderByCustomerAndCodeAndStore, findOrderByGUIDAndStore, findOrdersByCustomerAndStore, findOrdersByCustomerAndStore, findReturnRequestsByCustomerAndStore
-
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 referencebaseStoreModel- the base store model- Returns:
- order model
-
findOrdersByOrderUserMapping
Fetches all bookings for the customer where the customer is not an owner but traveling- Parameters:
customerModel- the customer model- Returns:
- list
-
findOrderUserMapping
Returns a particular Order-UserAccount Mapping for the customer- Parameters:
orderCode- the order codecustomerModel- the customer model- Returns:
- order user account mapping model
-
findSavedSearch
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 forstore- the current storestatus- One or more OrderStatuses to include in the resultsearchPageData- the searchPageData contains requested pagination and sorting information- Returns:
- the list of orders including order user mapping
-