Class DefaultAddressVerificationService
- java.lang.Object
-
- de.hybris.platform.commerceservices.address.impl.DefaultAddressVerificationService
-
- All Implemented Interfaces:
AddressVerificationService<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>>
public class DefaultAddressVerificationService extends java.lang.Object implements AddressVerificationService<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>>
Default implementation ofAddressVerificationService.
-
-
Constructor Summary
Constructors Constructor Description DefaultAddressVerificationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCustomerAllowedToIgnoreSuggestions()Used to determine if the customer is allowed to ignore the address suggestions of this AddressVerificationService and proceed with checkout.AddressVerificationResultData<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>>verifyAddress(AddressModel addressModel)This method takes in an AddressModel, verifies it using the chosen implementation and returns an AddressVerificationResultData.
-
-
-
Method Detail
-
verifyAddress
public AddressVerificationResultData<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>> verifyAddress(AddressModel addressModel)
Description copied from interface:AddressVerificationServiceThis method takes in an AddressModel, verifies it using the chosen implementation and returns an AddressVerificationResultData.- Specified by:
verifyAddressin interfaceAddressVerificationService<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>>- Parameters:
addressModel- the address to be verified.- Returns:
- an AddressVerificationResultData that holds the verification data.
-
isCustomerAllowedToIgnoreSuggestions
public boolean isCustomerAllowedToIgnoreSuggestions()
Description copied from interface:AddressVerificationServiceUsed to determine if the customer is allowed to ignore the address suggestions of this AddressVerificationService and proceed with checkout.- Specified by:
isCustomerAllowedToIgnoreSuggestionsin interfaceAddressVerificationService<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>>- Returns:
- true if the user can bypass address suggestions, false if not.
-
-