public ServiceResult <int> GetCountByIdentityDocNo(FiiiPosIdentityDocNo form) { MerchantProfileDAC dac = new MerchantProfileDAC(); int result = dac.GetCountByIdentityDocNo(form.IdentityDocNo); return(ResultHelper.OKResult(result)); }
public ServiceResult <bool> UpdateMerchantLicense(UpdateMerchantLicenseIM profile) { MerchantProfileDAC dac = new MerchantProfileDAC(); bool result = dac.UpdateMerchantLicense(profile.MerchantId, profile.CompanyName, profile.LicenseNo, profile.BusinessLicense); return(ResultHelper.OKResult(result)); }
public ServiceResult <bool> ModifyAddress2(MerchantProfile profile) { bool result = false; MerchantProfileDAC dac = new MerchantProfileDAC(); result = dac.ModifyAddress2(profile); return(ResultHelper.OKResult(result)); }
public ServiceResult <bool> CommitIdentityImage(MerchantProfile profile) { bool result = false; MerchantProfileDAC dac = new MerchantProfileDAC(); result = dac.CommitIdentityImage(profile); return(ResultHelper.OKResult(result)); }
public ServiceResult <bool> UpdateCellphone(MerchantProfile profile) { bool result = false; MerchantProfileDAC dac = new MerchantProfileDAC(); result = dac.ModifyCellphone(profile); return(ResultHelper.OKResult(result)); }
public ServiceResult <bool> CommitBusinessLicense(MerchantProfile profile) { bool result = false; MerchantProfileDAC dac = new MerchantProfileDAC(); result = dac.CommitBusinessLicense(profile); return(ResultHelper.OKResult(result)); }
public ServiceResult <bool> UpdateAddress(Address address) { MerchantProfileDAC merchantProfileDAC = new MerchantProfileDAC(); bool result = merchantProfileDAC.UpdateAddress(address.Id, address.PostCode, address.State, address.City, address.Address1, address.Address2); return(ResultHelper.OKResult(result)); }
public ServiceResult <GetMerchnatVerifyListOM> GetMerchantVerifyListL2(GetMerchnatVerifyListIM input) { int totalCount = 0; MerchantProfileDAC dac = new MerchantProfileDAC(); GetMerchnatVerifyListOM output = new GetMerchnatVerifyListOM(); output.ResultSet = dac.GetMerchantVerifyListL2(input.cellphone, input.countryId, input.status, input.orderByFiled, input.isDesc, input.pageSize, input.index, out totalCount); output.TotalCount = totalCount; return(ResultHelper.OKResult(output)); }
/// <summary> /// 商家Web版修改认证信息 /// </summary> /// <param name="merchantId"></param> /// <param name="companyName"></param> /// <param name="licenseNo"></param> /// <param name="businessLicense"></param> /// <returns></returns> public bool UpdateMerchantLicense(Guid merchantId, string companyName, string licenseNo, Guid businessLicense) { MerchantAccountDAC accountDAC = new MerchantAccountDAC(); var account = accountDAC.GetById(merchantId); if (account == null) { return(false); } var server = ProfileFactory.GetByCountryId(account.CountryId); if (server == null) { MerchantProfileDAC dac = new MerchantProfileDAC(); return(dac.UpdateMerchantLicense(merchantId, companyName, licenseNo, businessLicense)); } else { MerchantProfileRPC dac = new MerchantProfileRPC(server); return(dac.UpdateMerchantLicense(merchantId, companyName, licenseNo, businessLicense)); } }
/// <summary> /// 获得MerchantProfile+Account信息体 /// </summary> /// <param name="id"></param> /// <returns></returns> public MerchantProfileSet GetMerchantProfileSet(Guid id) { MerchantProfileSet profileSet = new MerchantProfileSet(); //使用Id查询本库的基本信息 MerchantAccountDAC merchantAccountDAC = new MerchantAccountDAC(); var merchantAccount = merchantAccountDAC.GetById(id); if (merchantAccount == null) { return(null);//查无此人 } //赋值 profileSet.Id = merchantAccount.Id; profileSet.Cellphone = merchantAccount.Cellphone; profileSet.Username = merchantAccount.Username; profileSet.MerchantName = merchantAccount.MerchantName; //profileSet.IsVerified = merchantAccount.IsVerified; profileSet.POSId = merchantAccount.POSId; //profileSet.BeaconId = merchantAccount.BeaconId; profileSet.Email = merchantAccount.Email; profileSet.IsVerifiedEmail = merchantAccount.IsVerifiedEmail; profileSet.CountryId = merchantAccount.CountryId; profileSet.RegistrationDate = merchantAccount.RegistrationDate; profileSet.Photo = merchantAccount.Photo; profileSet.PIN = merchantAccount.PIN; profileSet.SecretKey = merchantAccount.SecretKey; profileSet.IsAllowWithdrawal = merchantAccount.IsAllowWithdrawal; profileSet.IsAllowAcceptPayment = merchantAccount.IsAllowAcceptPayment; profileSet.FiatCurrency = merchantAccount.FiatCurrency; profileSet.AuthSecretKey = merchantAccount.AuthSecretKey; profileSet.ValidationFlag = merchantAccount.ValidationFlag; //使用基本信息中的国别匹配kyc服务器的位置 if (merchantAccount.POSId.HasValue) { POS pos = new POSDAC().GetById(merchantAccount.POSId.Value); if (pos != null) { profileSet.SN = pos.Sn; } } var server = ProfileFactory.GetByCountryId(merchantAccount.CountryId); MerchantProfile merchantProfile = null; if (server == null) { //查询HK数据库 MerchantProfileDAC merchantProfileDAC = new MerchantProfileDAC(); //赋值 merchantProfile = merchantProfileDAC.GetById(id); } else { MerchantProfileRPC merchantProfileDAC = new MerchantProfileRPC(server); //赋值 merchantProfile = merchantProfileDAC.GetById(id); } if (merchantProfile != null) { profileSet.Address1 = merchantProfile.Address1; profileSet.Address2 = merchantProfile.Address2; profileSet.City = merchantProfile.City; profileSet.L1VerifyStatus = merchantProfile.L1VerifyStatus; profileSet.L2VerifyStatus = merchantProfile.L2VerifyStatus; profileSet.Postcode = merchantProfile.Postcode; profileSet.Country = merchantProfile.Country; profileSet.BusinessLicenseImage = merchantProfile.BusinessLicenseImage; profileSet.LicenseNo = merchantProfile.LicenseNo; profileSet.CompanyName = merchantProfile.CompanyName; profileSet.IdentityDocNo = merchantProfile.IdentityDocNo; profileSet.IdentityDocType = merchantProfile.IdentityDocType; profileSet.FirstName = merchantProfile.FirstName; profileSet.LastName = merchantProfile.LastName; profileSet.BackIdentityImage = merchantProfile.BackIdentityImage; profileSet.FrontIdentityImage = merchantProfile.FrontIdentityImage; profileSet.HandHoldWithCard = merchantProfile.HandHoldWithCard; } return(profileSet); }
public ServiceResult <List <MerchantProfile> > GetListByIds(GuidsIM form) { MerchantProfileDAC dac = new MerchantProfileDAC(); return(ResultHelper.OKResult(dac.GetListByIds(form.Guids))); }
public ServiceResult <MerchantProfile> GetById(MerchantLicenseInfo form) { MerchantProfileDAC dac = new MerchantProfileDAC(); return(ResultHelper.OKResult(dac.GetById(form.Id))); }
public ServiceResult <bool> UpdateLicenseInfo(MerchantLicenseInfo form) { MerchantProfileDAC dac = new MerchantProfileDAC(); return(ResultHelper.OKResult(dac.UpdateLicenseInfo(form))); }
public ServiceResult <bool> UpdateL1VerifyStatus(UpdateVerifyStatusIM im) { MerchantProfileDAC dac = new MerchantProfileDAC(); return(ResultHelper.OKResult(dac.UpdateL1VerifyStatus(im.Id, im.VerifyStatus, im.Remark))); }
public ServiceResult <bool> RemoveMerchant(MerchantProfile profile) { MerchantProfileDAC dac = new MerchantProfileDAC(); return(ResultHelper.OKResult(dac.Delete(profile.MerchantId))); }
public ServiceResult <bool> AddMerchant(MerchantProfile profile) { MerchantProfileDAC dac = new MerchantProfileDAC(); return(ResultHelper.OKResult(dac.Insert(profile))); }