From b1feaff634fb1b98f4f16b08d1ec8aff1b225cd2 Mon Sep 17 00:00:00 2001 From: Leeza Baidar Date: Wed, 6 Mar 2024 18:08:16 +0545 Subject: [PATCH] #27620 changes in jSonRx for alphanumeric reward points --- Business/Mobile/MobileServices.cs | 6 +----- Business/SendMoney/SendMoneyBusiness.cs | 9 ++++++--- Common/Model/ExRateCalculateRequest.cs | 2 +- Common/Model/MobileRemitRequest.cs | 3 +++ Common/Model/TPSendMoney/TpSendMoney.cs | 3 +++ 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Business/Mobile/MobileServices.cs b/Business/Mobile/MobileServices.cs index d1593b8..67e088d 100644 --- a/Business/Mobile/MobileServices.cs +++ b/Business/Mobile/MobileServices.cs @@ -747,12 +747,8 @@ namespace Business.Mobile } }, Language = Convert.ToString(CallContext.GetData(Constants.Language)) - }; - Language = Convert.ToString(CallContext.GetData(Constants.Language)) }; Log.Debug("RegisterKYC | DB RESPONSE" + JsonConvert.SerializeObject(rep)); - - return rep; } catch (Exception ex) @@ -2134,7 +2130,7 @@ namespace Business.Mobile { ProviderId = "onewaysms", MobileNumber = mobileNo, - SMSBody = s.ToString(), + SMSBody = s.ToString(), ProcessId = ProcessId.Substring(ProcessId.Length - 40, 40), RequestedBy = pwdReset.Username, UserName = pwdReset.Username, diff --git a/Business/SendMoney/SendMoneyBusiness.cs b/Business/SendMoney/SendMoneyBusiness.cs index 34445b4..77e780c 100644 --- a/Business/SendMoney/SendMoneyBusiness.cs +++ b/Business/SendMoney/SendMoneyBusiness.cs @@ -183,7 +183,8 @@ namespace Business.SendMoney SessionId = Guid.NewGuid().ToString(), tPExRate = m.tpExRate, UserName = m.userId, - DiscountedFee = Convert.ToDecimal(string.IsNullOrEmpty(m.discountedFee) ? "0" : m.discountedFee) + //DiscountedFee = Convert.ToDecimal(string.IsNullOrEmpty(m.discountedFee) ? "0" : m.discountedFee) + DiscountedFee = m.discountedFee ?? "0" }; Log.Debug("Calculate | DATA SENT TO TPAPI : " + JsonConvert.SerializeObject(model)); @@ -495,8 +496,10 @@ namespace Business.SendMoney TransferAmt = model.TransferAmt, UserName = model.User, DiscountedFee = model.DiscountedFee, - SiteId = ConfigurationManager.AppSettings["sitereference"].ToString() - + SiteId = ConfigurationManager.AppSettings["sitereference"].ToString(), + isPromoCode = model.isPromoCode, + promoRowId = model.promoRowId, + promoCode = model.promoCode }; diff --git a/Common/Model/ExRateCalculateRequest.cs b/Common/Model/ExRateCalculateRequest.cs index 4982e87..204fdcd 100644 --- a/Common/Model/ExRateCalculateRequest.cs +++ b/Common/Model/ExRateCalculateRequest.cs @@ -90,7 +90,7 @@ namespace Common.Model public bool IsExRateCalcByPartner { get; set; } public string tPExRate { get; set; } public string ProcessFor { get; set; } - public decimal DiscountedFee { get; set; } + public string DiscountedFee { get; set; } public string schemeAppliedMsg { get; set; } public string SchemeId { get; set; } diff --git a/Common/Model/MobileRemitRequest.cs b/Common/Model/MobileRemitRequest.cs index f5a5c37..171f262 100644 --- a/Common/Model/MobileRemitRequest.cs +++ b/Common/Model/MobileRemitRequest.cs @@ -44,5 +44,8 @@ public string PortOfShipment { get; set; } public string DiscountedFee { get; set; } + public string isPromoCode { get; set; } + public string promoRowId { get; set; } + public string promoCode { get; set; } } } \ No newline at end of file diff --git a/Common/Model/TPSendMoney/TpSendMoney.cs b/Common/Model/TPSendMoney/TpSendMoney.cs index e347551..d22653a 100644 --- a/Common/Model/TPSendMoney/TpSendMoney.cs +++ b/Common/Model/TPSendMoney/TpSendMoney.cs @@ -30,6 +30,9 @@ public string ScDiscount { get; set; } public string SchemeId { get; set; } public string DiscountedFee { get; set; } + public string isPromoCode { get; set; } + public string promoRowId { get; set; } + public string promoCode { get; set; } public string SiteId { get; set; } public string Token { get; set; }