Browse Source

IME London mobile api

Mobile-pdf
shakun 10 months ago
parent
commit
339af003d9
  1. 178
      Business/Mobile/MobileServices.cs
  2. 29
      Business/SendMoney/SendMoneyBusiness.cs
  3. 6
      Business/TPApi/ThirdPartyAPI.cs
  4. 47
      Common/Helper/Utilities.cs
  5. 5
      Common/Model/CustomerRegister/NewUserRegisterModel.cs
  6. 3
      Common/Model/Enum/Notifications.cs
  7. 3
      Common/Model/RequestOTP/RequestOTPModel.cs
  8. 2
      JsonRx/Api/AuthController.cs
  9. 4
      JsonRx/Api/MobileController.cs
  10. 2
      JsonRx/Helper/Util.cs
  11. 8
      JsonRx/Web.config
  12. 27
      Repository/Mobile/MobileServicesRepo.cs

178
Business/Mobile/MobileServices.cs

@ -155,7 +155,7 @@ namespace Business.Mobile
{
bool emailSent = false;
bool smsSent = false;
if (requestOTPModel.userId.IsValidEmail())
if (requestOTPModel.userId.IsValidEmail() & (jsonRx.Extra3.Equals("0") | jsonRx.Extra3.Equals("100")))
{
if (!string.IsNullOrEmpty(jsonRx.ErrorCode) && jsonRx.ErrorCode.Equals("0"))
@ -201,7 +201,6 @@ namespace Business.Mobile
try
{
string ProcessId = Guid.NewGuid().ToString().Replace("-", "") + ":sendSms";
string mobileNum = jsonRx.Extra2;
var mobNum = getSenderFormattedNumber(mobileNum);
@ -214,10 +213,10 @@ namespace Business.Mobile
SMSRequestModel _req = new SMSRequestModel
{
ProviderId = "onewaysms",
ProviderId = "ProcessId",
MobileNumber = mobileNum,
SMSBody = s.ToString(),
ProcessId = ProcessId.Substring(ProcessId.Length - 40, 40),
ProcessId = requestOTPModel.ProcessId,
RequestedBy = requestOTPModel.userId,
UserName = requestOTPModel.userId,
method = "send",
@ -248,9 +247,15 @@ namespace Business.Mobile
}
else
{
if (jsonRx.Extra3 != null & jsonRx.Extra3.Equals("103"))
{
return new JsonRxResponse { ErrorCode = "0", Msg = "OTP Already Sent" };
}
jsonRx.ErrorCode = "1";
var map = Utilities.GetLanguageMapping(RESPONSE_MSG.OLD_USER_REGISTER_FAIL_11.ToString(), lang);
return new JsonRxResponse { ErrorCode = jsonRx.ErrorCode, Msg = map.Message };
// var map = Utilities.GetLanguageMapping(RESPONSE_MSG.OLD_USER_REGISTER_FAIL_11.ToString(), lang);
return new JsonRxResponse { ErrorCode = jsonRx.ErrorCode, Msg = jsonRx.Msg };
}
}
@ -265,7 +270,7 @@ namespace Business.Mobile
return jsonRx;
}
}
private string getSenderFormattedNumber(string number)
public string getSenderFormattedNumber(string number)
{
string finalNo = number;
if (!number.Contains("+44"))
@ -297,7 +302,10 @@ namespace Business.Mobile
}
}
if (!finalNo.Substring(0, 1).Contains("+"))
{
finalNo = $"+{finalNo}";
}
return finalNo;
}
@ -696,7 +704,7 @@ namespace Business.Mobile
// }
//}
Log.Debug($"RegisterKYC | httpRequest : {httpRequest.Params}");
//Log.Debug($"RegisterKYC | httpRequest : {httpRequest.Params}");
Log.Debug($"RegisterKYC | REQUEST : { JsonConvert.SerializeObject(custKyc)} | Files: { httpRequest.Files.Count}");
@ -1014,7 +1022,7 @@ namespace Business.Mobile
// kyc.mobile = jsonRxMobile.Extra;
//}
if(kyc.type.Equals("0"))
if (kyc.type.Equals("0"))
{
if (string.IsNullOrEmpty(kyc.otherOccupation) && string.IsNullOrEmpty(kyc.occupation))
{
@ -1035,6 +1043,25 @@ namespace Business.Mobile
return jsonRx;
}
}
if (string.IsNullOrEmpty(kyc.idExpiryDate))
{
jsonRx.SetResponse("1", "IdExpiryDate is required");
return jsonRx;
}
if (string.IsNullOrEmpty(kyc.idStartDate))
{
jsonRx.SetResponse("1", "Idissue Date is required");
return jsonRx;
}
if (string.IsNullOrEmpty(kyc.idIssuingCountry))
{
jsonRx.SetResponse("1", "idIssuingCountry is required");
return jsonRx;
}
}
@ -1046,24 +1073,7 @@ namespace Business.Mobile
//}
//if (string.IsNullOrEmpty(kyc.idExpiryDate))
//{
// jsonRx.SetResponse("1", "IdExpiryDate is required");
// return jsonRx;
//}
//if (string.IsNullOrEmpty(kyc.idStartDate))
//{
// jsonRx.SetResponse("1", "Idissue Date is required");
// return jsonRx;
//}
//if (string.IsNullOrEmpty(kyc.idIssuingCountry))
//{
// jsonRx.SetResponse("1", "idIssuingCountry is required");
// return jsonRx;
//}
//if (string.IsNullOrEmpty(kyc.additionalAddress))
//{
@ -1702,28 +1712,28 @@ namespace Business.Mobile
_resp.SetResponse("1", "Password can not be empty!");
return _resp;
}
if (confirmpwd.Length < 8)
if (confirmpwd.Length < 6)
{
_resp.SetResponse("1", "Password must be of atleast 8 digits!");
_resp.SetResponse("1", "Password must be of atleast 6 digits!");
return _resp;
}
if (!Regex.Match(confirmpwd, @"\d+").Success)
{
_resp.SetResponse("1", "Password must contain 1 number!");
return _resp;
}
//if (!Regex.Match(confirmpwd, @"\d+").Success)
//{
// _resp.SetResponse("1", "Password must contain 1 number!");
// return _resp;
//}
if (!Regex.Match(confirmpwd, @"[A-Z]").Success)
{
_resp.SetResponse("1", "Password must contain atleaset one capital letter!");
return _resp;
}
if (!Regex.Match(confirmpwd, @"[!@#$%&*_+\-]").Success)
{
_resp.SetResponse("1", "Password must contain atleaset one special character!");
return _resp;
}
//if (!Regex.Match(confirmpwd, @"[A-Z]").Success)
//{
// _resp.SetResponse("1", "Password must contain atleaset one capital letter!");
// return _resp;
//}
//if (!Regex.Match(confirmpwd, @"[!@#$%&*_+\-]").Success)
//{
// _resp.SetResponse("1", "Password must contain atleaset one special character!");
// return _resp;
//}
return _resp;
}
@ -1775,6 +1785,8 @@ namespace Business.Mobile
return verifyPwdResp;
}
newUserRegister.MobileNumber = newUserRegister.MobileNumber.getUKFormattedNumber();
res = _requestServices.NewUserRegister(newUserRegister);
Log.Debug("NewUserRegister | completed with db response. " + "ErrorCode: " + res.ErrorCode + " Msg: " + res.Msg);
@ -2015,6 +2027,15 @@ namespace Business.Mobile
return res;
}
DateTime dateTime;
if (DateTime.TryParseExact(pwdReset.Dob, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None, out dateTime))
{
pwdReset.Dob = dateTime.ToString("yyyy-MM-dd");
}
if (!pwdReset.Username.IsValidEmail())
{
var map = Utilities.GetLanguageMapping(RESPONSE_MSG.INVALID_EMAIL_FOR_RESETPASSWORD.ToString(), lang);
@ -2022,7 +2043,9 @@ namespace Business.Mobile
return res;
};
var randomPassword = PasswordGenerator.GenerateRandomPassword();
// var randomPassword = PasswordGenerator.GenerateRandomPassword();
var randomPassword = Utilities.GenerateRandomPin();
pwdReset.RandomPassword = randomPassword;
res = _requestServices.ResetPassword(pwdReset);
@ -2030,6 +2053,8 @@ namespace Business.Mobile
if (res.ErrorCode == "0")
{
bool emailSent = false;
bool smsSent = false;
try
{
@ -2059,28 +2084,55 @@ namespace Business.Mobile
}
};
Log.Debug("SendNotification.EMAIL | REQUEST : " + JsonConvert.SerializeObject(request));
var resEmail = NotifierV2.SendNotification(request, NOTIFICATION_TYPE.EMAIL);
Log.Debug("SendNotification.EMAIL | RESPONSE : " + JsonConvert.SerializeObject(resEmail));
emailSent = true;
string ProcessId = Guid.NewGuid().ToString().Replace("-", "") + ":sendSms";
SendSMSApiService _sendAPI = new SendSMSApiService();
SMSRequestModel _req = new SMSRequestModel
var mobileNo = "";
if (!string.IsNullOrEmpty(res.Extra3))
{
ProviderId = "onewaysms",
MobileNumber = pwdReset.mobileNo,
SMSBody = Common.Model.Enum.NotifyTemplate.RESET_PASSWORD_EMAIL.ToString(),
ProcessId = ProcessId.Substring(ProcessId.Length - 40, 40),
RequestedBy = pwdReset.Username,
UserName = pwdReset.Username,
method = "send",
ControlNo = "", // GetControlNo()
};
APIJsonResponse _resp = _sendAPI.SMSTPApi(_req);
res = NotifierV2.SendNotification(request, NOTIFICATION_TYPE.EMAIL);
mobileNo = getSenderFormattedNumber(res.Extra3);
SendSMSApiService _sendAPI = new SendSMSApiService();
StringBuilder s = new StringBuilder();
s.AppendLine($"Dear { res.Extra2}");
s.AppendLine($"We received your password reset request and your new credentials are");
s.AppendLine($"Login ID: { pwdReset.Username}");
s.AppendLine($"Password: { pwdReset.RandomPassword}");
s.AppendLine("Regards, IME London");
SMSRequestModel _req = new SMSRequestModel
{
ProviderId = "onewaysms",
MobileNumber = mobileNo,
SMSBody = s.ToString(),
ProcessId = ProcessId.Substring(ProcessId.Length - 40, 40),
RequestedBy = pwdReset.Username,
UserName = pwdReset.Username,
method = "send",
ControlNo = "", // GetControlNo()
};
Log.Debug("SendNotification.SMS | REQUEST : " + JsonConvert.SerializeObject(_req));
APIJsonResponse _resp = _sendAPI.SMSTPApi(_req);
Log.Debug("SendNotification.SMS | RESPONSE : " + JsonConvert.SerializeObject(_resp));
smsSent = true;
}
}
catch (Exception ex)
{
Log.Error("ResetPassword.SendNotification", ex);
}
if (emailSent || smsSent)
{
res.ErrorCode = "0";
res.SetResponse("0", "Reset password email/sms has been sent.");
return res;
}
var map = Utilities.GetLanguageMapping(RESPONSE_MSG.SEND_EMAIL_FOR_RESETPASSWORD_SUCCESS.ToString(), lang);
return new JsonRxResponse { ErrorCode = "0", Msg = map.Message };
// return res;
@ -2134,7 +2186,7 @@ namespace Business.Mobile
return jsonRx;
}
jsonRx.ErrorCode ="0";
jsonRx.ErrorCode = "0";
jsonRx.Data = liWalletStmtResponse;
@ -2353,11 +2405,11 @@ namespace Business.Mobile
var requiredList = props.Where(x => list.Any(z => x.Key.ToLower() == z.Field.ToLower()))
.Where(y => string.IsNullOrEmpty(y.Value)).ToList(); // case when Field Value empty
var pLength = props.SingleOrDefault(p => p.Key.ToLower().Equals("mobile")).Value.Length;
var rLength = list.SingleOrDefault(p => p.Field.ToLower().Equals("mobile")).MinLength;
//var pLength = props.SingleOrDefault(p => p.Key.ToLower().Equals("mobile")).Value.Length;
//var rLength = list.SingleOrDefault(p => p.Field.ToLower().Equals("mobile")).MinLength;
if (pLength < rLength)
requiredList.Add(new KeyValuePair() { Key = "mobile" });
//if (pLength < rLength)
// requiredList.Add(new KeyValuePair() { Key = "mobile" });
if (requiredList.Count > 0)
{

29
Business/SendMoney/SendMoneyBusiness.cs

@ -544,18 +544,20 @@ namespace Business.SendMoney
try
{
UserDetails userDetails = _requestServices.GetUserDetails(email);
List<Notify.Mapping> bodyMappings = new List<Notify.Mapping>();
bodyMappings.Add(new Notify.Mapping() { SValue = "CustomerName", SText = userDetails.FullName });
SendNotificationRequest request = new SendNotificationRequest()
if (!result.Extra3.Equals("Y"))
{
IsBulkNotification = false,
UserName = userDetails.Email,
ProviderId = "BankTransferTxnPendingStatus",
NotificationTypeId = NOTIFICATION_TYPE.EMAIL.ToString(),
Template = Common.Model.Enum.NotifyTemplate.BANK_TRANSFER_TXN_PENDING,
Recipients = new List<RecipientViewModel>()
UserDetails userDetails = _requestServices.GetUserDetails(email);
List<Notify.Mapping> bodyMappings = new List<Notify.Mapping>();
bodyMappings.Add(new Notify.Mapping() { SValue = "CustomerName", SText = userDetails.FullName });
bodyMappings.Add(new Notify.Mapping() { SValue = "CollectAmt", SText = GetStatic.ShowDecimal(model.CollAmt) });
SendNotificationRequest request = new SendNotificationRequest()
{
IsBulkNotification = false,
UserName = userDetails.Email,
ProviderId = "BankTransferTxnPendingStatus",
NotificationTypeId = NOTIFICATION_TYPE.EMAIL.ToString(),
Template = Common.Model.Enum.NotifyTemplate.BANK_TRANSFER_TXN_PENDING,
Recipients = new List<RecipientViewModel>()
{
new RecipientViewModel()
{
@ -566,8 +568,9 @@ namespace Business.SendMoney
Address= userDetails.Email
}
}
};
NotifierV2.SendNotification(request, NOTIFICATION_TYPE.EMAIL);
};
NotifierV2.SendNotification(request, NOTIFICATION_TYPE.EMAIL);
}
}
catch (Exception ex)

6
Business/TPApi/ThirdPartyAPI.cs

@ -62,7 +62,11 @@ namespace Business.TPApi
Msg = jsonResponseData.Msg,
Data = data,
Extra = jsonResponseData.Extra,
Extra1 = jsonResponseData.Extra1
Extra1 = jsonResponseData.Extra1,
Extra2 = jsonResponseData.Extra2,
Extra3 = jsonResponseData.Extra3,
Extra4 = jsonResponseData.Extra4
};
}
}

47
Common/Helper/Utilities.cs

@ -282,7 +282,7 @@ namespace Common.Helper
{
string[] strChar = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };
string otpChar = strChar[Random.Next(0, 9)] + strChar[Random.Next(0, 9)] + strChar[Random.Next(0, 9)] + strChar[Random.Next(0, 9)];
string otpChar = strChar[Random.Next(0, 9)] + strChar[Random.Next(0, 9)] + strChar[Random.Next(0, 9)] + strChar[Random.Next(0, 9)] + strChar[Random.Next(0, 9)] + strChar[Random.Next(0, 9)];
return otpChar;
}
@ -648,8 +648,8 @@ namespace Common.Helper
return true;
}
DateTime dt = Convert.ToDateTime(param);
string[] formats = { "yyyy-MM-dd", "yyyy/MM/dd", "MM/dd/yyyy", "MM-dd-yyyy" };
DateTime dt;
string[] formats = { "yyyy-MM-dd", "yyyy/MM/dd", "MM/dd/yyyy", "MM-dd-yyyy", "dd/MM/yyyy" };
if (DateTime.TryParseExact(param, formats, System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None, out dt))
{
return true;
@ -659,7 +659,7 @@ namespace Common.Helper
return false;
}
}
catch (Exception)
catch (Exception ex)
{
return false;
}
@ -975,5 +975,44 @@ namespace Common.Helper
fullName = string.Format("{0} {1}", (!string.IsNullOrEmpty(mname)) ? fname + " " + mname : fname, lname);
return fullName;
}
public static string getUKFormattedNumber(this string number)
{
string finalNo = number;
if (!number.Contains("+44"))
{
string mobileFirst = number.Substring(0, 1);
if (mobileFirst == "0")
{
if (number.Length == 11)
{
finalNo = "+44" + number.Substring(1, number.Length - 1);
return finalNo;
}
else if (number.Length < 11)
{
finalNo = $"+44{number}";
}
}
else if (number.Substring(0, 1) != "0" && number.Length == 10)
{
finalNo = $"+44{number}";
}
}
else if (number.Contains("+44"))
{
string MobN = number.Substring(4, 1);
if (MobN == "0" && number.Length > 14)
{
finalNo = number.Remove(4, 1);
}
}
if (!finalNo.Substring(0, 1).Contains("+"))
{
finalNo = $"+{finalNo}";
}
return finalNo;
}
}
}

5
Common/Model/CustomerRegister/NewUserRegisterModel.cs

@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
namespace Common.Model.CustomerRegister
{
@ -37,5 +38,7 @@ namespace Common.Model.CustomerRegister
public string Nationality { get; set; }
[Required]
public string Gender { get; set; }
}
}

3
Common/Model/Enum/Notifications.cs

@ -51,7 +51,8 @@ namespace Common.Model.Enum
TRANSACTION_SUCCESS = 15,
TF_NO_BALANCE = 16
TF_NO_BALANCE = 16,
NEW_REGISTER_WELCOME = 17,
}
}

3
Common/Model/RequestOTP/RequestOTPModel.cs

@ -20,5 +20,8 @@ namespace Common.Model.RequestOTP
[JsonIgnore]
public string Lang { get; set; }
[JsonIgnore]
public string ProcessId { get; set; }
}
}

2
JsonRx/Api/AuthController.cs

@ -115,7 +115,7 @@ namespace JsonRx.Api
/// <param name="pwdReset"></param>
/// <returns></returns>
[HttpPost]
[ApplicationLevelAuthentication]
// [ApplicationLevelAuthentication]
[Route("mobile/passwordReset")]
public IHttpActionResult ResetPassword(PasswordReset pwdReset)
{

4
JsonRx/Api/MobileController.cs

@ -155,13 +155,15 @@ namespace JsonRx.Api
[Route("mobile/requestOTP")]
public IHttpActionResult RequestOTP(RequestOTPModel requestOTPModel)
{
LogicalThreadContext.Properties[LoggerProperty.PROCESSID] = Guid.NewGuid();
var ProcessId = Guid.NewGuid().ToString();
LogicalThreadContext.Properties[LoggerProperty.PROCESSID] = ProcessId;
LogicalThreadContext.Properties[LoggerProperty.METHODNAME] = "RequestOTP";
LogicalThreadContext.Properties[LoggerProperty.CREATEDBY] = requestOTPModel.userId;
LogicalThreadContext.Properties[LoggerProperty.IPADDRESS] = Request.GetClientIpAddress();
requestOTPModel.DeviceType = Util.GetDeviceType(Request);
requestOTPModel.ProcessId = ProcessId;
Log.Debug("RequestOTP | REQUEST : " + JsonConvert.SerializeObject(requestOTPModel));
var staticDataResponse = _requestServices.RequestOTP(requestOTPModel);
return Ok(staticDataResponse);

2
JsonRx/Helper/Util.cs

@ -246,6 +246,8 @@ namespace JsonRx.Helper
fullName = string.Format("{0} {1}", (!string.IsNullOrEmpty(mname)) ? fname + " " + mname : fname, lname);
return fullName;
}
}

8
JsonRx/Web.config

@ -11,15 +11,17 @@
</configSections>
<connectionStrings>
<!--<add name="LogDB" connectionString="server=localhost;Database=LogDb; Trusted_Connection = true" providerName="system.data.sqlclient" /> -->
<add name="LogDB" connectionString="server=77.68.15.91\MSSQLSERVER01,1434;Database=LogDb;uid=sa;pwd=DbAmin123;" providerName="system.data.sqlclient" />
<add name="RemittanceDB" connectionString="server=77.68.15.91\MSSQLSERVER01,1434;Database=FastMoneyPro_Remit;uid=sa;pwd=DbAmin123; Max Pool Size=1000;" providerName="system.data.sqlclient" />
<!--<add name="LogDB" connectionString="server=77.68.15.91\MSSQLSERVER01,1434;Database=LogDb;uid=sa;pwd=DbAmin123;" providerName="system.data.sqlclient" />
<add name="RemittanceDB" connectionString="server=77.68.15.91\MSSQLSERVER01,1434;Database=FastMoneyPro_Remit;uid=sa;pwd=DbAmin123; Max Pool Size=1000;" providerName="system.data.sqlclient" />-->
<add name="LogDB" connectionString="server=77.68.90.58,1433;Database=LogDb;uid=sa;pwd=zUge=i-W[8;" providerName="system.data.sqlclient" />
<add name="RemittanceDB" connectionString="server=77.68.90.58,1433;Database=FastMoneyPro_Remit;uid=sa;pwd=zUge=i-W[8; Max Pool Size=1000;" providerName="system.data.sqlclient" />
<!--<add name="LogDB" connectionString="server=34.92.161.102;Database=logdb;uid=remituserjme;pwd=r3M!tU5Er@jM3r3Mit#?; Max Pool Size=1000;" providerName="system.data.sqlclient" />
<add name="RemittanceDB" connectionString="server=34.92.161.102;Database=FastMoneyPro_Remit;uid=remituserjme;pwd=r3M!tU5Er@jM3r3Mit#?; Max Pool Size=1000;" providerName="system.data.sqlclient" />-->
</connectionStrings>
<appSettings>
<!--Third Party Details -->
<add key="ThirdParty_Base_Url" value="http://77.68.15.91:1083/api/v1/" />
<add key="ThirdParty_Base_Url" value="http://77.68.26.191:2082/api/v1/" />
<add key="apiAccessKey" value="KPb1ttRs3CJnORpVU8SmAKUs7a42vtvjzQ47gU0b4u0vxAEI0PgZref6puzkVhLTX2PRNMGCbnb2TglupsjV5AGhYvw8a8POTcUcFSrEdHmTkhkIGNvUvxSpKjUOXGFQWaGU1bxoqqUSaFOmNE5zGojVmwPoMy38CNLwnpQKjdsIuxCKGCApa2gWHJl9gebmIpUODv9jAZgmMEaXqyR4CLg4iSksfTyYNjdqxEE88P5THYt5GuNk8Ti6K2RxIKfPWY49hBOpiYnXcApgSDiKFYqQG9WuZ7cvDGJIWg5WgWKjGle8Y3OydhONXVkN5OMPXDA4VZkK4c5nM363Zkg4w4qdzWuwhsEoAwU4rej6sMRZue3L0BowBJja1OK0iPoTX70EexX8rviMLOZPUDwhxzkL3eODS69VEEbjHb8WSjhho5h3KnCE4tcqCWihwSZ8Yuyhw1rzIMNw2C8pN1GEJyXc6goIFkf7dmK9ynJSxu52D9GjOkKqoD7dFNFulOFVfgeCuhPDYG2A2c2RSvGHv24VDXvmGVaAMLiPtsTz5oD8f0na7fX1xGg0Qveh0KgQL5THnrMK6gm5Ky7O8nbecIxY" />

27
Repository/Mobile/MobileServicesRepo.cs

@ -108,18 +108,19 @@ namespace Repository.Mobile
Msg = _dbRes.Msg,
Id = _dbRes.Id,
Extra = _dbRes.Extra,
Extra2 = _dbRes.Extra2
Extra2 = _dbRes.Extra2,
Extra3 = _dbRes.ResponseCode,
};
//return new JsonRxResponse
//{
// ErrorCode = _dbRes.ResponseCode,
//Msg = _dbRes.Msg,
//Extra = _dbRes.Id
//};
}
//return new JsonRxResponse
//{
// ErrorCode = _dbRes.ResponseCode,
//Msg = _dbRes.Msg,
//Extra = _dbRes.Id
//};
}
public JsonRxResponse GetNotifyInfo(string customerId)
{
var lang = Convert.ToString(CallContext.GetData(Constants.Language));
@ -428,7 +429,7 @@ namespace Repository.Mobile
sql += ", @monthlyIncome = " + _dao.FilterString(kyc.monthlyIncome);
sql += ", @businessType = " + _dao.FilterString(kyc.businessType);
sql += ", @mobile = " + _dao.FilterString(kyc.mobile);
sql += ", @additionalAddress = N" + _dao.FilterString(kyc.additionalAddress);
//sql += ", @additionalAddress = N" + _dao.FilterString(kyc.additionalAddress);
sql += ", @idType = " + _dao.FilterString(kyc.idType);
sql += ", @idTypeNumber = " + _dao.FilterString(kyc.idNumber);
sql += ", @idStartDate = " + _dao.FilterString(kyc.idStartDate);
@ -1019,12 +1020,12 @@ namespace Repository.Mobile
PaymentDetails = new PaymentDetails()
{
AccountName = "IME LONDON",
AccountNo = "00000151",
AccountNo = "00000042",
BankName = "Clear bank",
Instruction = "Payment Reference Should be your name . Should you require any assitance, IME team is happy to help. You can track from Home ",
TotalToPay = GetStatic.ShowDecimal(sRow["cAmt"].ToString()) + " " + sRow["collCurr"].ToString(),
Reference = sRow["senderName"].ToString(),
SortCode = " 04-06-93"
SortCode = " 04-08-42"
}
};
@ -1317,7 +1318,7 @@ namespace Repository.Mobile
var lang = Convert.ToString(CallContext.GetData(Constants.Language));
var sql = "EXEC JsonRx_Proc_UserRegistration_V2 @flag='sign-up-v2-new-cust' ";
sql += ", @idNumber = " + _dao.FilterString(newUserRegister.ResidenceCardNumber);
sql += ", @idNumber = " + _dao.FilterString("");
sql += ", @nativeCountry = " + _dao.FilterString(newUserRegister.Nationality);
sql += ", @referralCode = " + _dao.FilterString(newUserRegister.ReferralCode);
sql += ", @username = " + _dao.FilterString(newUserRegister.UserId);
@ -3004,7 +3005,7 @@ namespace Repository.Mobile
additionalIdName = item["fileName"].ToString();
else if (item["fileDescription"].ToString() == "additionalIdBackCustUpload")
additionalIdBackName = item["fileName"].ToString();
else if (item["fileDescription"].ToString() == "facePictureCustUpload")
else if (item["fileDescription"].ToString() == "SelfieCustUpload") //facePictureCustUpload
facePictureName = item["fileName"].ToString();
registerDate = item["REGISTERED_DATE"].ToString();

Loading…
Cancel
Save