Interface ChineseCustomerAccountService
- All Superinterfaces:
CustomerAccountService
- All Known Implementing Classes:
DefaultChineseCustomerAccountService
Extended to support more function.
-
Method Summary
Modifier and TypeMethodDescriptionfindExpiredVerificationCode(Date expiredDate) Gets all expired verification codes.Generates a verification code.getCustomerForMobileNumber(String mobileNumber) Finds a customer by using mobile number.Gets the default email language.getMobileNumberVerificationCode(String mobileNumber) Gets mobile number verification code.Gets verification code expired date.booleanChecks whether the verification code is expired.voidSends verification code.voidsendVerificationCode(String mobileNumber, String verificationCode) Sends verification code.voidupdateMobileNumber(CustomerModel customerModel) Updates customer's mobile number.Methods inherited from interface de.hybris.platform.commerceservices.customer.CustomerAccountService
changePassword, changeUid, clearDefaultAddressEntry, closeAccount, convertGuestToCustomer, createPaymentSubscription, 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
-
Method Details
-
generateVerificationCode
String generateVerificationCode()Generates a verification code.- Returns:
- Verification Code
-
sendVerificationCode
Sends verification code.- Parameters:
data- the data that contains sending info.
-
sendVerificationCode
Sends verification code.- Parameters:
mobileNumber- the mobile number to send the verification codeverificationCode- the verification code for the mobile number
-
updateMobileNumber
Updates customer's mobile number.- Parameters:
customerModel- customer to be updated
-
getCustomerForMobileNumber
Finds a customer by using mobile number.- Parameters:
mobileNumber- the number to query- Returns:
- an Optional containing the customer, or an empty Optional if no customer is found.
-
getMobileNumberVerificationCode
Gets mobile number verification code.- Parameters:
mobileNumber- the number to query- Returns:
- an Optional containing the mobile number and verification code.
-
isVerificationCodeExpired
Checks whether the verification code is expired.- Parameters:
date- the verification code generate time- Returns:
- true if the verification code is expired
-
findExpiredVerificationCode
Gets all expired verification codes.- Parameters:
expiredDate- expired date- Returns:
- all expired verification codes
-
getVerificationCodeExpiredDate
Date getVerificationCodeExpiredDate()Gets verification code expired date.- Returns:
- verification code expired date
-
getDefaultEmailLanguage
String getDefaultEmailLanguage()Gets the default email language.- Returns:
- default email language
-