Interface AddressVerificationResultHandler
-
- All Known Implementing Classes:
DefaultAddressVerificationResultHandler
public interface AddressVerificationResultHandlerStrategy for handling anAddressVerificationResultreturned by some address verification service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandleResult(AddressVerificationResult verificationResult, AddressData newAddress, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, org.springframework.validation.Errors bindingResult, boolean customerBypass, java.lang.String successMsg)Given the result returned by an address verification service, determine if the address is valid or requires corrections from the user.
-
-
-
Method Detail
-
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, java.lang.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.
-
-