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
,DefaultCisAddressVerificationService
,MockAddressVerificationService
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isCustomerAllowedToIgnoreSuggestions()
Used to determine if the customer is allowed to ignore the address suggestions of this AddressVerificationService and proceed with checkout.AddressVerificationResultData<DECISION,FIELD_ERROR>
verifyAddress(AddressModel addressModel)
This method takes in an AddressModel, verifies it using the chosen implementation and returns an AddressVerificationResultData.
-
-
-
Method Detail
-
verifyAddress
AddressVerificationResultData<DECISION,FIELD_ERROR> verifyAddress(AddressModel addressModel)
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.
-
-