private bool GetBwa(string line1, string line2, string line3, string line4, string line6) { AccountVerificationResults accountVerificationResults = idHubService.AccountVerification( firstName, null, surname, gender, dateOfBirth, line1, line2, line3, line4, null, line6, sortCode, accountNumber, customerId); return(CreateBwaResultFromAccountVerificationResults(accountVerificationResults)); }
private bool GetBwaDataCustom() { Log.Info("Starting custom bwa check with params: FirstName={0} Surname={1} Gender={2} DateOfBirth={3} idhubHouseNumber={4} idhubHouseName={5} idhubStreet={6} idhubDistrict={7} idhubTown={8} idhubCounty={9} idhubPostCode={10} idhubBranchCode={11} idhubAccountNumber={12}", firstName, surname, gender, dateOfBirth, idhubHouseNumber, idhubHouseName, idhubStreet, idhubDistrict, idhubTown, idhubCounty, idhubPostCode, idhubBranchCode, idhubAccountNumber); AccountVerificationResults accountVerificationResults = idHubService.AccountVerificationForcedWithCustomAddress( firstName, null, surname, gender, dateOfBirth, idhubHouseNumber, idhubHouseName, idhubStreet, idhubDistrict, idhubTown, idhubCounty, idhubPostCode, idhubBranchCode, idhubAccountNumber, customerId); return(CreateBwaResultFromAccountVerificationResults(accountVerificationResults)); }
private bool CreateBwaResultFromAccountVerificationResults(AccountVerificationResults results) { if (!results.HasError) { Log.Info("account status: {0}, name score: {1}, address score: {2}", results.AccountStatus, results.NameScore, results.AddressScore); experianBwaAccountStatus = results.AccountStatus; experianBwaNameScore = results.NameScore; experianBwaAddressScore = results.AddressScore; return(false); } return(true); } // CreateBwaResultFromAccountVerificationResults