Exemple #1
0
        public string Create()
        {
            BCifAcctNoOpenRequest request = new BCifAcctNoOpenRequest();

            request.Head.ReqJnlNo = GuidHelper.GenUniqueId();

            request.Body.CifAddr           = "广东 深圳 南山区 科技园";
            request.Body.CifClientId       = "460031198806150000";
            request.Body.CifEnName         = "Liaoyz";
            request.Body.CifIdExpiredDate  = "2028-01-01";
            request.Body.CifName           = "廖源洲";
            request.Body.CifPhoneCode      = "13800138000";
            request.Body.CifPostCode       = "510000";
            request.Body.IdNo              = "460031198806150013";
            request.Body.IdType            = "P00";
            request.Body.OperateType       = "5";
            request.Body.ProvinceCode      = "xxxx";
            request.Body.CityCode          = "xxxx";
            request.Body.NetCheckFlag      = "0";
            request.Body.BankCardPhoneCode = "13800138000";
            request.Body.BankCardType      = "1";
            request.Body.BankAcNo          = "6216731111111111123";
            request.Body.BankName          = "中国银行";
            request.Body.SubBranchName     = "光大银行深圳分行";
            request.Body.OpenChannel       = "1";

            var result = guangDaExec.Exec(request) as BCifAcctNoOpenResponse;

            return("OK");
        }
Exemple #2
0
        ///// <summary>
        ///// 2.36.	电子账户开户及支付签约(监管)
        ///// </summary>
        ///// <param name="member"></param>
        ///// <param name="bankCard"></param>
        ///// <returns></returns>
        //public BCifAcctNoOpenResponse CreateAccount(Member member, BankCard bankCard)
        //{
        //    BCifAcctNoOpenRequest request = new BCifAcctNoOpenRequest();

        //    request.Head.ReqJnlNo = GuidHelper.GenUniqueId();
        //    request.Body.CifAddr = member.Address;
        //    request.Body.CifClientId = member.ClientId;
        //    request.Body.CifEnName = member.EnName;
        //    request.Body.CifIdExpiredDate = member.IdExpiredDate.ToDateTime().ToString("yyyyMMdd");
        //    request.Body.CifName = member.Name;
        //    request.Body.CifPhoneCode = member.Mobile;
        //    request.Body.CifPostCode = member.PostCode;
        //    request.Body.IdNo = member.IDNumber;
        //    request.Body.IdType = "P00";
        //    request.Body.OperateType = "0";
        //    request.Body.ProvinceCode = member.ProvinceCode;
        //    request.Body.CityCode = member.CityCode;
        //    request.Body.NetCheckFlag = "1";
        //    request.Body.BankCardPhoneCode = member.Mobile;
        //    request.Body.BankCardType = "1";
        //    request.Body.BankAcNo = bankCard.BankCardNumber;
        //    request.Body.BankName = bankCard.BankName;
        //    request.Body.SubBranchName = bankCard.BankName;
        //    request.Body.OpenChannel = "1";

        //    var result = guangDaExec.Exec(request) as BCifAcctNoOpenResponse;

        //    return result;
        //}

        /// <summary>
        /// 2.59.	鉴权开户接口
        /// </summary>
        /// <param name="member"></param>
        /// <param name="bankCard"></param>
        /// <returns></returns>
        public AuthenticationToOpenAccountResponse CreateAccount(Member member, BankCard bankCard)
        {
            AuthenticationToOpenAccountRequest request = new AuthenticationToOpenAccountRequest();

            request.Head.ReqJnlNo = GuidHelper.GenUniqueId();

            request.Body.CoPatrnerJnlNo    = member.AccountGuangDa.CoPatrnerJnlNo;
            request.Body.CifName           = member.Name;
            request.Body.CifClientId       = member.ClientId;
            request.Body.IdType            = "P00";
            request.Body.IdNo              = member.IDNumber;
            request.Body.BankCardPhoneCode = member.AccountGuangDa.Mobile;
            request.Body.CifPhoneCode      = member.AccountGuangDa.Mobile;
            request.Body.CifIdExpiredDate  = member.AccountGuangDa.IdExpiredDate.ToDateTime().ToString("yyyyMMdd");
            request.Body.CifAddr           = member.AccountGuangDa.Address;
            request.Body.CifPostCode       = member.AccountGuangDa.PostCode;
            request.Body.CifEnName         = member.AccountGuangDa.EnName;
            request.Body.CifENFName        = member.AccountGuangDa.EnName;
            request.Body.OperateType       = "0";
            request.Body.NetCheckFlag      = "1";
            request.Body.BankCardType      = "1";
            request.Body.BankAcNo          = bankCard.BankCardNumber;
            request.Body.BankName          = bankCard.BankName;
            request.Body.SubBranchName     = bankCard.BankName;
            request.Body.OpenChannel       = "1";
            request.Body.BookDate          = member.AccountGuangDa.BookDate.ToDateTime().ToString("yyyyMMdd");
            request.Body.Reserve1          = member.AccountGuangDa.Occupation;
            request.Body.Reserve2          = member.AccountGuangDa.GuangDaArea.Code;

            var result = guangDaExec.Exec(request) as AuthenticationToOpenAccountResponse;

            return(result);
        }