Class DefaultTravelCustomerAccountService
java.lang.Object
de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService
de.hybris.platform.travelservices.customer.impl.DefaultTravelCustomerAccountService
- All Implemented Interfaces:
de.hybris.platform.commerceservices.customer.CustomerAccountService,TravelCustomerAccountService
public class DefaultTravelCustomerAccountService
extends de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService
implements TravelCustomerAccountService
Default implementation of
TravelCustomerAccountService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePaymentSubscription(CustomerModel customerModel, CardInfo cardInfo, BillingInfo billingInfo, String titleCode, String paymentProvider, boolean saveInAccount) findSavedSearch(String savedSearchID) Finds search saved by current customer based on search reference ID.getAllOrdersList(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, SearchPageData searchPageData) Returns the orders of the supplied user and from Order-UserAccount Mapping filtering by OrderStatusgetOrderModelByOriginalOrderCode(String bookingReference, BaseStoreModel baseStoreModel) Gets booking based on booking reference and base store by calling respective Dao methodgetOrdersFromOrderUserMapping(CustomerModel customerModel) Fetches all bookings for the customer where the customer is not an owner but travelinggetOrderUserMapping(String orderCode, CustomerModel customerModel) Returns a particular Order-UserAccount Mapping for the customerMethods inherited from class de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService
addPaymentInfo, adjustPassword, changePassword, checkUidUniqueness, clearDefaultAddressEntry, closeAccount, convertGuestToCustomer, deleteAddressEntry, deleteCCPaymentInfo, fillValuesForCustomerInfo, forgottenPassword, generateCustomerId, getAddressBookDeliveryEntries, getAddressBookEntries, getAddressForCode, getAllAddressEntries, getBaseSiteService, getBaseStoreService, getCommerceCommonI18NService, getCommerceConsentService, getCommonI18NService, getConfigurationService, getCreditCardPaymentInfoForCode, getCreditCardPaymentInfos, getCurrency, getCustomerAccountDao, getCustomerEmailResolutionService, getCustomerNameStrategy, getDefaultAddress, getDelayTime, getEventService, getFlexibleSearchService, getGuestOrderForGUID, getI18nService, getMaskedCardNumber, getModelService, getMonthsForOrderExpiry, getOrderDetailsForGUID, getOrderForCode, getOrderForCode, getOrderList, getOrderList, getPasswordEncoderService, getPasswordEncoding, getPaymentService, getReturnRequestsByCustomerAndStore, getSecureTokenService, getSessionService, getTimeService, getTitles, getTokenValiditySeconds, getTypeService, getUserService, initializeEvent, internalSaveCustomer, populateAndGetSessionConsentsToRegisteredUser, register, registerCustomer, registerGuestForAnonymousCheckout, saveAddressEntry, setBaseSiteService, setBaseStoreService, setCommerceCommonI18NService, setCommerceConsentService, setCommonI18NService, setConfigurationService, setCustomerAccountDao, setCustomerEmailResolutionService, setCustomerNameStrategy, setDefaultAddressEntry, setDefaultPaymentInfo, setEventService, setFlexibleSearchService, setI18nService, setModelService, setMonthsForOrderExpiry, setPasswordEncoderService, setPasswordEncoding, setPaymentService, setPopulatingConsentsInSessionEnabled, setSecureTokenService, setSessionService, setTimeService, setTokenValiditySeconds, setTypeService, setUserService, unlinkCCPaymentInfo, updatePassword, updateProfileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.commerceservices.customer.CustomerAccountService
changePassword, clearDefaultAddressEntry, closeAccount, convertGuestToCustomer, deleteAddressEntry, deleteCCPaymentInfo, forgottenPassword, getAddressBookDeliveryEntries, getAddressBookEntries, getAddressForCode, getAllAddressEntries, getCreditCardPaymentInfoForCode, getCreditCardPaymentInfos, getDefaultAddress, getGuestOrderForGUID, getOrderDetailsForGUID, getOrderForCode, getOrderForCode, getOrderList, getOrderList, getReturnRequestsByCustomerAndStore, getTitles, register, registerGuestForAnonymousCheckout, saveAddressEntry, setDefaultAddressEntry, setDefaultPaymentInfo, setPopulatingConsentsInSessionEnabled, unlinkCCPaymentInfo, updatePassword, updateProfile
-
Constructor Details
-
DefaultTravelCustomerAccountService
public DefaultTravelCustomerAccountService()
-
-
Method Details
-
getOrderModelByOriginalOrderCode
public OrderModel getOrderModelByOriginalOrderCode(String bookingReference, BaseStoreModel baseStoreModel) Description copied from interface:TravelCustomerAccountServiceGets booking based on booking reference and base store by calling respective Dao method- Specified by:
getOrderModelByOriginalOrderCodein interfaceTravelCustomerAccountService- Parameters:
bookingReference- the booking referencebaseStoreModel- the base store model- Returns:
- order model by original order code
-
getOrdersFromOrderUserMapping
Description copied from interface:TravelCustomerAccountServiceFetches all bookings for the customer where the customer is not an owner but traveling- Specified by:
getOrdersFromOrderUserMappingin interfaceTravelCustomerAccountService- Parameters:
customerModel- the customer model- Returns:
- orders from order user mapping
-
getOrderUserMapping
public OrderUserAccountMappingModel getOrderUserMapping(String orderCode, CustomerModel customerModel) Description copied from interface:TravelCustomerAccountServiceReturns a particular Order-UserAccount Mapping for the customer- Specified by:
getOrderUserMappingin interfaceTravelCustomerAccountService- Parameters:
orderCode- the order codecustomerModel- the customer model- Returns:
- order user mapping
-
findSavedSearch
Description copied from interface:TravelCustomerAccountServiceFinds search saved by current customer based on search reference ID.- Specified by:
findSavedSearchin interfaceTravelCustomerAccountService- Parameters:
savedSearchID- the saved search id- Returns:
- savedSearchModel saved search model
-
changeUid
public void changeUid(String newUid, String currentPassword) throws de.hybris.platform.commerceservices.customer.DuplicateUidException, de.hybris.platform.commerceservices.customer.PasswordMismatchException - Specified by:
changeUidin interfacede.hybris.platform.commerceservices.customer.CustomerAccountService- Overrides:
changeUidin classde.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService- Throws:
de.hybris.platform.commerceservices.customer.DuplicateUidExceptionde.hybris.platform.commerceservices.customer.PasswordMismatchException
-
getAllOrdersList
public SearchPageData<OrderModel> getAllOrdersList(CustomerModel customerModel, BaseStoreModel store, OrderStatus[] status, SearchPageData searchPageData) Description copied from interface:TravelCustomerAccountServiceReturns the orders of the supplied user and from Order-UserAccount Mapping filtering by OrderStatus- Specified by:
getAllOrdersListin interfaceTravelCustomerAccountService- 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
-
createPaymentSubscription
public CreditCardPaymentInfoModel createPaymentSubscription(CustomerModel customerModel, CardInfo cardInfo, BillingInfo billingInfo, String titleCode, String paymentProvider, boolean saveInAccount) - Specified by:
createPaymentSubscriptionin interfacede.hybris.platform.commerceservices.customer.CustomerAccountService- Overrides:
createPaymentSubscriptionin classde.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService
-