Ejemplo n.º 1
0
        public async Task Ryxxbs_ReturnsAcceptId(string sdyf)
        {
            var taxSetting   = XiaoAiGlobal.GlobalConfig.DefaultXiaoAiTaxSettings;
            var requestModel = new PersonnelInfoSubmissionRequestModel()
            {
                NashuirenShibiehao = taxSetting.ShuiHao,
                AreaId             = taxSetting.Administrative,
                SuodeYuefen        = sdyf,
                DengjiXuhaoId      = taxSetting.DengjiXuhao,
                ShenbaoMima        = taxSetting.ShenbaoMima,
                Taxpayers          = new List <TaxpayerDetail>()
                {
                    new TaxpayerDetail
                    {
                        LicenseType     = Enums.LicenseType.居民身份证,
                        LicenseNumber   = "330421199712050024",
                        FullName        = "赵静文",
                        Nationality     = "中国",
                        Gender          = "女",
                        BirthDate       = "1997-12-05",
                        Status          = "正常",
                        Mobile          = "18868332178",
                        EmploymentType  = Enums.EmploymentType.雇员,
                        EmployementDate = "2020-04-07"
                    },
                    new TaxpayerDetail
                    {
                        LicenseType     = Enums.LicenseType.居民身份证,
                        LicenseNumber   = "330402199107030931",
                        FullName        = "傅岑超坚",
                        Nationality     = "中国",
                        Gender          = "男",
                        BirthDate       = "1991-07-03",
                        Status          = "正常",
                        Mobile          = "13738269102",
                        EmploymentType  = Enums.EmploymentType.雇员,
                        EmployementDate = "2019-01-01"
                    },
                    new TaxpayerDetail
                    {
                        LicenseType     = Enums.LicenseType.居民身份证,
                        LicenseNumber   = "520201198412270425",
                        FullName        = "张莉莎",
                        Nationality     = "中国",
                        Gender          = "女",
                        BirthDate       = "1984-12-27",
                        Status          = "正常",
                        Mobile          = "15068205522",
                        EmploymentType  = Enums.EmploymentType.雇员,
                        EmployementDate = "2019-01-01"
                    },
                    new TaxpayerDetail
                    {
                        LicenseType     = Enums.LicenseType.居民身份证,
                        LicenseNumber   = "330424199801113823",
                        FullName        = "徐鑫婷",
                        Nationality     = "中国",
                        Gender          = "女",
                        BirthDate       = "1998-01-11",
                        Status          = "正常",
                        Mobile          = "18368387477",
                        EmploymentType  = Enums.EmploymentType.雇员,
                        EmployementDate = "2019-03-18"
                    },
                    new TaxpayerDetail
                    {
                        LicenseType     = Enums.LicenseType.居民身份证,
                        LicenseNumber   = "330482199601192727",
                        FullName        = "胡雪婷",
                        Nationality     = "中国",
                        Gender          = "女",
                        BirthDate       = "1996-01-19",
                        Status          = "正常",
                        Mobile          = "18368387477",
                        EmploymentType  = Enums.EmploymentType.雇员,
                        EmployementDate = "2019-07-24"
                    },
                    new TaxpayerDetail
                    {
                        LicenseType     = Enums.LicenseType.居民身份证,
                        LicenseNumber   = "341126199710206345",
                        FullName        = "张颖",
                        Nationality     = "中国",
                        Gender          = "女",
                        BirthDate       = "1997-10-20",
                        Status          = "正常",
                        Mobile          = "13511392241",
                        EmploymentType  = Enums.EmploymentType.雇员,
                        EmployementDate = "2019-03-18"
                    }
                }
            };

            requestModel.ZongRenshu = requestModel.Taxpayers.Count;

            Response <BusinessAcceptedModel> result = await ApiFactory.CreateTaxClient().PersonnelSubmission(TokenSettings.AccessToken, requestModel);

            Assert.NotNull(result);
            Assert.True(result.ExistsBusinessResponseContent);
            Assert.NotEmpty(result.BusinessResponseContent.AcceptId);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 人员报送服务 <see cref="ITaxContract.PersonnelSubmission"/>
 /// </summary>
 /// <param name="bearerToken"></param>
 /// <param name="requestModel"></param>
 /// <param name="timeout"></param>
 /// <param name="cancellationToken"></param>
 /// <returns></returns>
 public ITask <Response <BusinessAcceptedModel> > PersonnelSubmission(
     string bearerToken, PersonnelInfoSubmissionRequestModel requestModel,
     TimeSpan?timeout = null, CancellationToken cancellationToken = default)
 {
     return(TaxContract.PersonnelSubmission(bearerToken, requestModel, timeout, cancellationToken));
 }