Class DefaultAddressVerificationFacade
- java.lang.Object
-
- de.hybris.platform.commercefacades.address.impl.DefaultAddressVerificationFacade
-
- All Implemented Interfaces:
AddressVerificationFacade
public class DefaultAddressVerificationFacade extends java.lang.Object implements AddressVerificationFacade
Default implementation of AddressVerificationFacade.
-
-
Constructor Summary
Constructors Constructor Description DefaultAddressVerificationFacade()
-
Method Summary
-
-
-
Method Detail
-
verifyAddressData
public AddressVerificationResult<AddressVerificationDecision> verifyAddressData(AddressData addressData)
Description copied from interface:AddressVerificationFacadeCalls the configurable AddressVerificationService to verify the incoming address. If the address is invalid the service will provide a list of possible addresses for the customer to choose from.- Specified by:
verifyAddressDatain interfaceAddressVerificationFacade- Parameters:
addressData- the address data to be verified.- Returns:
- a POJO containing the set of suggested addresses as well as any field errors.
-
isCustomerAllowedToIgnoreAddressSuggestions
public boolean isCustomerAllowedToIgnoreAddressSuggestions()
Description copied from interface:AddressVerificationFacadeChecks the AddressVerificationService to see if the customer can ignore the suggestions that were provided.- Specified by:
isCustomerAllowedToIgnoreAddressSuggestionsin interfaceAddressVerificationFacade- Returns:
- true if the customer can ignore suggestions, false if not.
-
generateVerificationResultErrorMap
protected java.util.Map<java.lang.String,AddressVerificationErrorField> generateVerificationResultErrorMap(AddressVerificationResultData<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>> result)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getAddressVerificationService
protected AddressVerificationService<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>> getAddressVerificationService()
-
setAddressVerificationService
public void setAddressVerificationService(AddressVerificationService<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>> addressVerificationService)
-
getAddressConverter
protected Converter<AddressModel,AddressData> getAddressConverter()
-
setAddressConverter
public void setAddressConverter(Converter<AddressModel,AddressData> addressConverter)
-
getAddressReverseConverter
protected Converter<AddressData,AddressModel> getAddressReverseConverter()
-
setAddressReverseConverter
public void setAddressReverseConverter(Converter<AddressData,AddressModel> addressReverseConverter)
-
-