Ejemplo n.º 1
0
        /// <summary>
        /// Осуществить проверку ИП
        /// </summary>
        /// <param name="managementName"></param>
        /// <param name="inn"></param>
        /// <param name="customerType"></param>
        /// <param name="terroristCheckInfo"></param>
        public List <ContractorCheckResult> CheckEntrepreneur(IndividualParams entrepeneurParams)
        {
            var checkResults = new List <ContractorCheckResult>();

            checkResults.AddRange(CheckInBankService(entrepeneurParams.Inn, entrepeneurParams.DateBirthDay, entrepeneurParams.ExternalSystemCode,
                                                     entrepeneurParams.LastName, entrepeneurParams.FirstName, entrepeneurParams.MiddleName, "IP"));
            checkResults.Add(CheckInFedsfm(entrepeneurParams.FirstName, entrepeneurParams.MiddleName, entrepeneurParams.LastName));
            return(checkResults);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Осуществить проверку Физ лица
        /// </summary>
        /// <param name="individualParams"></param>
        /// <returns></returns>
        public List <ContractorCheckResult> CheckIndividual(IndividualParams individualParams)
        {
            var checkResults = new List <ContractorCheckResult>();

            checkResults.AddRange(CheckInBankService(individualParams.Inn, individualParams.DateBirthDay, individualParams.ExternalSystemCode,
                                                     individualParams.LastName, individualParams.FirstName, individualParams.MiddleName, "FL"));
            checkResults.Add(CheckInFedsfm(individualParams.FirstName, individualParams.MiddleName, individualParams.LastName));
            return(checkResults);
        }
Ejemplo n.º 3
0
        public virtual IActionResult CheckIndividual([FromBody] IndividualParams body)
        {
            if (body == null)
            {
                return(this.BadRequest());
            }
            var result = _bankCheckService.CheckIndividual(body);

            return(StatusCode(200, result));
        }
Ejemplo n.º 4
0
        public virtual IActionResult CheckEntrepreneur([FromBody] IndividualParams body)
        {
            if (body == null)
            {
                return(this.BadRequest());
            }
            var result = _bankCheckService.CheckEntrepreneur(body);

            return(StatusCode(200, new ObjectResult(result)));
        }