|
@ -398,7 +398,7 @@ namespace Business.Mobile |
|
|
CAmount = Convert.ToDecimal(m.cAmount == "" ? "0" : m.cAmount), |
|
|
CAmount = Convert.ToDecimal(m.cAmount == "" ? "0" : m.cAmount), |
|
|
CardOnline = "", |
|
|
CardOnline = "", |
|
|
CollCurrency = m.sCurrency, |
|
|
CollCurrency = m.sCurrency, |
|
|
CouponCode = "", |
|
|
|
|
|
|
|
|
CouponCode = m.DeviceType, |
|
|
CustomerId = 0, |
|
|
CustomerId = 0, |
|
|
IsExRateCalcByPartner = false, |
|
|
IsExRateCalcByPartner = false, |
|
|
IsManualSc = false, |
|
|
IsManualSc = false, |
|
@ -719,7 +719,7 @@ namespace Business.Mobile |
|
|
if (!jsonRx.ErrorCode.Equals("0")) |
|
|
if (!jsonRx.ErrorCode.Equals("0")) |
|
|
{ |
|
|
{ |
|
|
Log.Debug("RegisterKYC | Validate form failed : " + JsonConvert.SerializeObject(jsonRx)); |
|
|
Log.Debug("RegisterKYC | Validate form failed : " + JsonConvert.SerializeObject(jsonRx)); |
|
|
jsonRx.SetResponse("1", jsonRx.Msg); |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("100", jsonRx.Msg); |
|
|
return jsonRx; |
|
|
return jsonRx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1028,7 +1028,7 @@ namespace Business.Mobile |
|
|
{ |
|
|
{ |
|
|
enumString = RESPONSE_MSG.VALIDATE_FORM_2.ToString(); |
|
|
enumString = RESPONSE_MSG.VALIDATE_FORM_2.ToString(); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
jsonRx.SetResponse("1", map.Message); |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("100", map.Message); |
|
|
|
|
|
|
|
|
return jsonRx; |
|
|
return jsonRx; |
|
|
} |
|
|
} |
|
@ -1038,7 +1038,7 @@ namespace Business.Mobile |
|
|
{ |
|
|
{ |
|
|
enumString = RESPONSE_MSG.VALIDATE_FORM_9.ToString(); |
|
|
enumString = RESPONSE_MSG.VALIDATE_FORM_9.ToString(); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
jsonRx.SetResponse("1", map.Message); |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("100", map.Message); |
|
|
|
|
|
|
|
|
return jsonRx; |
|
|
return jsonRx; |
|
|
} |
|
|
} |
|
@ -1047,19 +1047,19 @@ namespace Business.Mobile |
|
|
if (string.IsNullOrEmpty(kyc.idExpiryDate)) |
|
|
if (string.IsNullOrEmpty(kyc.idExpiryDate)) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("1", "IdExpiryDate is required"); |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("100", "IdExpiryDate is required"); |
|
|
return jsonRx; |
|
|
return jsonRx; |
|
|
} |
|
|
} |
|
|
if (string.IsNullOrEmpty(kyc.idStartDate)) |
|
|
if (string.IsNullOrEmpty(kyc.idStartDate)) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("1", "Idissue Date is required"); |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("100", "Idissue Date is required"); |
|
|
return jsonRx; |
|
|
return jsonRx; |
|
|
} |
|
|
} |
|
|
if (string.IsNullOrEmpty(kyc.idIssuingCountry)) |
|
|
if (string.IsNullOrEmpty(kyc.idIssuingCountry)) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("1", "idIssuingCountry is required"); |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("100", "idIssuingCountry is required"); |
|
|
return jsonRx; |
|
|
return jsonRx; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -1117,7 +1117,7 @@ namespace Business.Mobile |
|
|
{ |
|
|
{ |
|
|
enumString = RESPONSE_MSG.VALIDATE_FORM_1.ToString(); |
|
|
enumString = RESPONSE_MSG.VALIDATE_FORM_1.ToString(); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
jsonRx.SetResponse("1", map.Message); |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("100", map.Message); |
|
|
return jsonRx; |
|
|
return jsonRx; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -1125,7 +1125,7 @@ namespace Business.Mobile |
|
|
{ |
|
|
{ |
|
|
enumString = RESPONSE_MSG.VALIDATE_FORM_10.ToString(); |
|
|
enumString = RESPONSE_MSG.VALIDATE_FORM_10.ToString(); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
jsonRx.SetResponse("1", map.Message); |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("100", map.Message); |
|
|
return jsonRx; |
|
|
return jsonRx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1133,14 +1133,14 @@ namespace Business.Mobile |
|
|
{ |
|
|
{ |
|
|
if (isBackRequired == "1" && additionalIdBackUrl == null) |
|
|
if (isBackRequired == "1" && additionalIdBackUrl == null) |
|
|
{ |
|
|
{ |
|
|
jsonRx.SetResponse("1", "Additional ID Back is required!"); |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("100", "Additional ID Back is required!"); |
|
|
return jsonRx; |
|
|
return jsonRx; |
|
|
} |
|
|
} |
|
|
if (string.IsNullOrEmpty(kyc.additionalIdType)) |
|
|
if (string.IsNullOrEmpty(kyc.additionalIdType)) |
|
|
{ |
|
|
{ |
|
|
enumString = RESPONSE_MSG.VALIDATE_FORM_8.ToString(); |
|
|
enumString = RESPONSE_MSG.VALIDATE_FORM_8.ToString(); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
jsonRx.SetResponse("1", map.Message); |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("100", map.Message); |
|
|
return jsonRx; |
|
|
return jsonRx; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -1149,7 +1149,7 @@ namespace Business.Mobile |
|
|
if (!IsValidImage(ref kyc, idFrontUrl, idBackUrl, idSideUrl, additionalIdUrl, facePictureUrl, additionalIdBackUrl)) |
|
|
if (!IsValidImage(ref kyc, idFrontUrl, idBackUrl, idSideUrl, additionalIdUrl, facePictureUrl, additionalIdBackUrl)) |
|
|
{ |
|
|
{ |
|
|
Log.Debug("IsValidatedForm | Validate Image : Failed"); |
|
|
Log.Debug("IsValidatedForm | Validate Image : Failed"); |
|
|
jsonRx.SetResponse("1", "Invalid image file."); |
|
|
|
|
|
|
|
|
jsonRx.SetResponse("100", "Invalid image file."); |
|
|
|
|
|
|
|
|
return jsonRx; |
|
|
return jsonRx; |
|
|
} |
|
|
} |
|
@ -1709,12 +1709,12 @@ namespace Business.Mobile |
|
|
JsonRxResponse _resp = new JsonRxResponse() { ErrorCode = "0", Msg = "Success" }; |
|
|
JsonRxResponse _resp = new JsonRxResponse() { ErrorCode = "0", Msg = "Success" }; |
|
|
if (string.IsNullOrEmpty(confirmpwd)) |
|
|
if (string.IsNullOrEmpty(confirmpwd)) |
|
|
{ |
|
|
{ |
|
|
_resp.SetResponse("1", "Password can not be empty!"); |
|
|
|
|
|
|
|
|
_resp.SetResponse("100", "Password can not be empty!"); |
|
|
return _resp; |
|
|
return _resp; |
|
|
} |
|
|
} |
|
|
if (confirmpwd.Length < 6) |
|
|
if (confirmpwd.Length < 6) |
|
|
{ |
|
|
{ |
|
|
_resp.SetResponse("1", "Password must be of atleast 6 digits!"); |
|
|
|
|
|
|
|
|
_resp.SetResponse("100", "Password must be of atleast 6 digits!"); |
|
|
return _resp; |
|
|
return _resp; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1754,7 +1754,7 @@ namespace Business.Mobile |
|
|
{ |
|
|
{ |
|
|
enumString = RESPONSE_MSG.NEW_USER_REGISTER_FAIL_4.ToString(); |
|
|
enumString = RESPONSE_MSG.NEW_USER_REGISTER_FAIL_4.ToString(); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
res.SetResponse("1", map.Message); |
|
|
|
|
|
|
|
|
res.SetResponse("100", map.Message); |
|
|
|
|
|
|
|
|
return res; |
|
|
return res; |
|
|
} |
|
|
} |
|
@ -1763,7 +1763,7 @@ namespace Business.Mobile |
|
|
{ |
|
|
{ |
|
|
enumString = RESPONSE_MSG.NEW_USER_REGISTER_FAIL_6.ToString(); |
|
|
enumString = RESPONSE_MSG.NEW_USER_REGISTER_FAIL_6.ToString(); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
res.SetResponse("1", map.Message); |
|
|
|
|
|
|
|
|
res.SetResponse("100", map.Message); |
|
|
|
|
|
|
|
|
return res; |
|
|
return res; |
|
|
} |
|
|
} |
|
@ -1772,7 +1772,7 @@ namespace Business.Mobile |
|
|
{ |
|
|
{ |
|
|
enumString = RESPONSE_MSG.NEW_USER_REGISTER_FAIL_5.ToString(); |
|
|
enumString = RESPONSE_MSG.NEW_USER_REGISTER_FAIL_5.ToString(); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
var map = Utilities.GetLanguageMapping(enumString, lang); |
|
|
res.SetResponse("1", map.Message); |
|
|
|
|
|
|
|
|
res.SetResponse("100", map.Message); |
|
|
|
|
|
|
|
|
return res; |
|
|
return res; |
|
|
} |
|
|
} |
|
@ -2180,7 +2180,7 @@ namespace Business.Mobile |
|
|
if (liWalletStmtResponse == null) |
|
|
if (liWalletStmtResponse == null) |
|
|
{ |
|
|
{ |
|
|
jsonRx.ErrorCode = "1"; |
|
|
jsonRx.ErrorCode = "1"; |
|
|
jsonRx.Msg = "No wallet statement found."; |
|
|
|
|
|
|
|
|
jsonRx.Msg = "No Record(s) Found!"; |
|
|
jsonRx.Data = new System.Collections.ArrayList(); |
|
|
jsonRx.Data = new System.Collections.ArrayList(); |
|
|
Log.Debug("GetWalletStatement | Returning null while fetching the list of wallet statements."); |
|
|
Log.Debug("GetWalletStatement | Returning null while fetching the list of wallet statements."); |
|
|
return jsonRx; |
|
|
return jsonRx; |
|
@ -2414,7 +2414,7 @@ namespace Business.Mobile |
|
|
if (requiredList.Count > 0) |
|
|
if (requiredList.Count > 0) |
|
|
{ |
|
|
{ |
|
|
// string.Format("Required Fields:-" , string.Join(", ", requiredList.Select(x => x.Key).ToList()));
|
|
|
// string.Format("Required Fields:-" , string.Join(", ", requiredList.Select(x => x.Key).ToList()));
|
|
|
jsonResult.SetResponse("1", string.Format("Required Fields:-\r\n {0}", string.Join("\r\n", requiredList.Select(x => findMapKeyValue(x.Key)).ToList()))); |
|
|
|
|
|
|
|
|
jsonResult.SetResponse("100", string.Format("Required Fields:-\r\n{0}", string.Join("\r\n", requiredList.Select(x => findMapKeyValue(x.Key)).ToList()))); |
|
|
return jsonResult; |
|
|
return jsonResult; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|