Example #1
0
        }         // CanUsePrevAddress

        private bool GetConsumerInfoAndSave(AddressCurrency oAddressCurrency)
        {
            InputLocationDetailsMultiLineLocation location = this.addressLines.GetLocation(oAddressCurrency);

            var ukAddress = new Models.CustomerAddressModel {
                Line1    = location.LocationLine1,
                Line2    = location.LocationLine2,
                Line3    = location.LocationLine3,
                PostCode = location.LocationLine6,
                City     = location.LocationLine4
            };

            ukAddress.FillDetails();

            InputLocationDetailsUKLocation ukLokation = new InputLocationDetailsUKLocation {
                Postcode    = ukAddress.PostCode,
                HouseName   = ukAddress.HouseName,
                HouseNumber = ukAddress.HouseNumber,
                Flat        = ukAddress.FlatOrApartmentNumber,
                PostTown    = ukAddress.City,
                Street      = ukAddress.Address1,
                Street2     = ukAddress.Address2,
                POBox       = ukAddress.POBox
            };
            var consumerService = new ConsumerService();

            Result = consumerService.GetConsumerInfo(
                this.personalData.FirstName,
                this.personalData.Surname,
                this.personalData.Gender,
                this.personalData.DateOfBirth,
                ukLokation,
                location,
                "PL", this.customerId, this.directorId,
                false, this.directorId != null, this.forceCheck
                );

            if (Result != null && !Result.HasExperianError)
            {
                Score = Result.BureauScore.HasValue ? Result.BureauScore.Value : 0;
            }

            return(Result == null || !Result.HasExperianError);
        }         // GetConsumerInfoAndSave