Esempio n. 1
0
        /*
         * Verify US ID
         */
        private static BlockScoreResponse VerifyUs(BlockscoreAPI blockscore,
                                                   BlockScoreVerifyDomesticRequest blockScoreVerifyInternationlRequest)
        {
            BlockScoreResponse verifyUsResult = null;

            try
            {
                verifyUsResult = blockscore.VerifyUs(blockScoreVerifyInternationlRequest);
            }
            catch (Exception e)
            {
                throw new Exception("Caught exception: " + e.Message + "\n");
            }
            return(verifyUsResult);
        }
Esempio n. 2
0
        /*
         * Static values for a Domestic ID
         */
        private static BlockScoreVerifyDomesticRequest GetBlockScoreDomesticRequest()
        {
            var blockScoreInternationlRequest = new BlockScoreVerifyDomesticRequest
            {
                FirstName           = "John",
                MiddleName          = "W",
                LastName            = "Smith",
                LastFourDigitsOfSSN = "0000",
                DateOfBirth         = "1980-10-10",
                Street1             = "123 Broadway Ave",
                Street2             = "",
                City       = "New York",
                State      = "NY",
                PostalCode = "10011"
            };

            return(blockScoreInternationlRequest);
        }
Esempio n. 3
0
        /*
         * Ouput Domestic ID Verification Request object to a string
         */
        private string GetblockscoreDomesticRequestoutput(BlockScoreVerifyDomesticRequest blockscorerequest)
        {
            string strreturn = "";

            strreturn += "LastFourDigitsOfSSN = " + blockscorerequest.LastFourDigitsOfSSN;
            strreturn += "<br/>CountryCode = US";
            strreturn += "<br/>CitizenshipType = " + blockscorerequest.CitizenshipType;
            strreturn += "<br/>FirstName = " + blockscorerequest.FirstName;
            strreturn += "<br/>MiddleName = " + blockscorerequest.MiddleName;
            strreturn += "<br/>LastName = " + blockscorerequest.LastName;
            strreturn += "<br/>DateOfBirth = " + blockscorerequest.DateOfBirth;
            strreturn += "<br/>Street1 = " + blockscorerequest.Street1;
            strreturn += "<br/>Street2 = " + blockscorerequest.Street2;
            strreturn += "<br/>City = " + blockscorerequest.City;
            strreturn += "<br/>State = " + blockscorerequest.State;
            strreturn += "<br/>PostalCode = " + blockscorerequest.PostalCode;

            return(strreturn);
        }
Esempio n. 4
0
        public void VerifyUs()
        {
            //Instantiate new BlockscoreAPI object
            BlockscoreAPI blockscore = new BlockscoreAPI();

            //Prepare a request for a Domestic ID.  For this example sample values are entered
            BlockScoreVerifyDomesticRequest blockScoreDomesticRequest = GetBlockScoreDomesticRequest();

            //Call Blockscore /verifications and return results
            BlockScoreResponse verifyUsResult = VerifyUs(blockscore, blockScoreDomesticRequest);

            //Output the request and response values
            lblverificationrequest.Text  = GetblockscoreDomesticRequestoutput(blockScoreDomesticRequest);
            lblverificationresponse.Text = GetblockscoreResponseoutput(verifyUsResult);

            //Display the Questions panel as there are questions for US IDs
            pnlquestions.Visible = true;
            //Display the verifications panel
            pnlverifications.Visible = true;

            // Question Set Retrieval
            HandleQuestionSet(verifyUsResult, blockscore);
        }