Interface AddressVerificationService<DECISION,FIELD_ERROR>
- Type Parameters:
DECISION- the address verification decision data typeFIELD_ERROR- the address field error data type
- All Known Implementing Classes:
DefaultAddressVerificationService
public interface AddressVerificationService<DECISION,FIELD_ERROR>
Interface for verifying an Address with an external verification service. Each class that implements this interface
will work with a different service.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanUsed to determine if the customer is allowed to ignore the address suggestions of this AddressVerificationService and proceed with checkout.verifyAddress(AddressModel addressModel) This method takes in an AddressModel, verifies it using the chosen implementation and returns an AddressVerificationResultData.
-
Method Details
-
verifyAddress
This method takes in an AddressModel, verifies it using the chosen implementation and returns an AddressVerificationResultData.- Parameters:
addressModel- the address to be verified.- Returns:
- an AddressVerificationResultData that holds the verification data.
-
isCustomerAllowedToIgnoreSuggestions
boolean isCustomerAllowedToIgnoreSuggestions()Used to determine if the customer is allowed to ignore the address suggestions of this AddressVerificationService and proceed with checkout.- Returns:
- true if the user can bypass address suggestions, false if not.
-