Interface AddressVerificationResultHandler
- All Known Implementing Classes:
DefaultAddressVerificationResultHandler
public interface AddressVerificationResultHandler
Strategy for handling an
AddressVerificationResult returned by some
address verification service.-
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleResult(AddressVerificationResult verificationResult, AddressData newAddress, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, org.springframework.validation.Errors bindingResult, boolean customerBypass, String successMsg) Given the result returned by an address verification service, determine if the address is valid or requires corrections from the user.
-
Method Details
-
handleResult
boolean handleResult(AddressVerificationResult verificationResult, AddressData newAddress, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, org.springframework.validation.Errors bindingResult, boolean customerBypass, String successMsg) Given the result returned by an address verification service, determine if the address is valid or requires corrections from the user.- Returns:
- true if the result has errors or suggested addresses, false if it is valid.
-