|
|
@ -102,11 +102,14 @@ namespace Repository.Mobile |
|
|
|
|
|
|
|
|
|
|
|
List<string> successCode = new List<string> { "0", "100", "103" }; |
|
|
|
return new JsonRxResponse { ErrorCode = successCode.Contains(_dbRes.ResponseCode) ? "0" : "1", |
|
|
|
return new JsonRxResponse |
|
|
|
{ |
|
|
|
ErrorCode = successCode.Contains(_dbRes.ResponseCode) ? "0" : "1", |
|
|
|
Msg = _dbRes.Msg, |
|
|
|
Extra = _dbRes.Id, |
|
|
|
Extra2 = _dbRes.ResponseCode, |
|
|
|
Extra3 = _dbRes.Extra }; |
|
|
|
Id = _dbRes.Id, |
|
|
|
Extra = _dbRes.Extra, |
|
|
|
Extra2 = _dbRes.Extra2 |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -200,28 +203,19 @@ namespace Repository.Mobile |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
public string GetPaymentMethod() |
|
|
|
public List<KeyValues> GetPaymentMethod() |
|
|
|
{ |
|
|
|
List<KeyValues> lst = new List<KeyValues>(); |
|
|
|
var sql = "EXEC mobile_proc_customerMaster @flag='get-payment-method'"; |
|
|
|
var dt = _dao.ExecuteDataTable(sql); |
|
|
|
|
|
|
|
DataTable dataTable = new DataTable(); |
|
|
|
dataTable.Columns.Add("DetailTitle", typeof(string)); |
|
|
|
dataTable.Columns.Add("DetailDesc", typeof(string)); |
|
|
|
|
|
|
|
foreach (DataRow row in dt.Rows) |
|
|
|
{ |
|
|
|
var detailTitle = row["detailTitle"].ToString(); |
|
|
|
var detailDesc = row["detailDesc"].ToString(); |
|
|
|
|
|
|
|
dataTable.Rows.Add(detailTitle, detailDesc); |
|
|
|
lst.Add(new KeyValues() { Key = row["detailTitle"].ToString(), Value = row["detailDesc"].ToString() }); |
|
|
|
} |
|
|
|
|
|
|
|
string jsonResult = JsonConvert.SerializeObject(dataTable, Formatting.Indented); |
|
|
|
return jsonResult; |
|
|
|
return lst; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public JsonRxResponse SubmitOTP(RequestOTPModel requestOTPModel) |
|
|
|
{ |
|
|
|
var lang = Convert.ToString(CallContext.GetData(Constants.Language)); |
|
|
@ -1019,7 +1013,18 @@ namespace Repository.Mobile |
|
|
|
discountValue = sRow["discountValue"].ToString(), |
|
|
|
discountPercent = sRow["discountPercent"].ToString(), |
|
|
|
tranStatus = sRow["tranStatus"].ToString(), |
|
|
|
rewardPoints = sRow["rewardPoints"].ToString() |
|
|
|
rewardPoints = sRow["rewardPoints"].ToString(), |
|
|
|
SenderFullName = "a", |
|
|
|
PaymentDetails = new PaymentDetails() |
|
|
|
{ |
|
|
|
AccountName = "IME LONDON", |
|
|
|
AccountNo = "00000151", |
|
|
|
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 = "XXX", |
|
|
|
Reference = "asdad", |
|
|
|
SortCode = "asdasdasd" |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
double discountval = 0, discountpercent = 0; |
|
|
@ -1370,6 +1375,7 @@ namespace Repository.Mobile |
|
|
|
UserDetails userDetails = new UserDetails(); |
|
|
|
if (row != null) |
|
|
|
{ |
|
|
|
|
|
|
|
userDetails.FullName = row["fullName"].ToString(); |
|
|
|
userDetails.CustomerId = row["customerid"].ToString(); |
|
|
|
userDetails.MembershipId = row["membershipid"].ToString(); |
|
|
@ -1384,6 +1390,7 @@ namespace Repository.Mobile |
|
|
|
return userDetails; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public JsonRxResponse CustomerInfoAgree(String username, string flag = "agree") |
|
|
|
{ |
|
|
|
var lang = Convert.ToString(CallContext.GetData(Constants.Language)); |
|
|
@ -1591,9 +1598,9 @@ namespace Repository.Mobile |
|
|
|
ResidenceType = Convert.ToString(dataTable.Rows[0]["ResidenceType"]), |
|
|
|
UseNFC = Convert.ToString(dataTable.Rows[0]["UseNFC"]), |
|
|
|
SelfieDocPath = Convert.ToString(dataTable.Rows[0]["SelfieDoc"]).Replace("////", "/"), |
|
|
|
KycVerified=false, |
|
|
|
KycStatus= "Processing", |
|
|
|
KycStatusMsg= "ID Document Submission is in Processing", |
|
|
|
KycVerified = Convert.ToBoolean(dataTable.Rows[0]["KycVerified"]), |
|
|
|
KycStatus = Convert.ToString(dataTable.Rows[0]["KycStatus"]), |
|
|
|
KycStatusMsg = Convert.ToString(dataTable.Rows[0]["KycStatusMsg"]), |
|
|
|
// IsForcedPwdchange = Convert.ToString(dataTable.Rows[0]["IsForcedPwdChange"]),
|
|
|
|
appUpdate = app |
|
|
|
}; |
|
|
@ -2883,6 +2890,7 @@ namespace Repository.Mobile |
|
|
|
idStartDate = Convert.ToString(dt["passportIssueDate"]), |
|
|
|
idExpiryDate = Convert.ToString(dt["passportExpiryDate"]), |
|
|
|
idNumber = Convert.ToString(dt["passportNumber"]) |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
if (type.ToLower().Equals("kycv3-existing")) |
|
|
|