Browse Source

#24417 referral amount changes

feature/Redmine-17825-Email_Template
Leeza Baidar 8 months ago
parent
commit
77bc29d12d
  1. 3
      Common/Model/RewardPoints.cs
  2. 4
      JsonRx/Config/ResponseMsg.json
  3. 10
      Repository/Mobile/MobileServicesRepo.cs

3
Common/Model/RewardPoints.cs

@ -15,6 +15,9 @@ namespace Common.Model
public string InviteMessageBody { get; set; }
public string SourceCustomerId { get; set; }
public string ShowShareBtn { get; set; }
public string RewardPts { get; set; }
public string RegReward { get; set; }
public string TranReward { get; set; }
//public string MembershipId { get; set; }
public List<RewardDetails> Details { get; set; }
}

4
JsonRx/Config/ResponseMsg.json

@ -1871,7 +1871,7 @@
},
{
"Key": "INVITE_MESSAGE_TITLE",
"Message": "Receive a FREE 5£ bonus credit as Reward amount",
"Message": "Receive a FREE @rewardPoint £ bonus credit as Reward amount",
"Lang": "en"
},
{
@ -1901,7 +1901,7 @@
},
{
"Key": "INVITE_MESSAGE_BODY",
"Message": "You and your friend will each be given £5.00 in bonus credit. Get £1 after they successfully register, and £4 after their first transaction. There may be minimum send requirements. Terms and Conditions.",
"Message": "You and your friend will each be given £ @rewardAmount in bonus credit. Get £ @RegReward after they successfully register, and £ @TranReward after their first transaction. There may be minimum send requirements. Terms and Conditions.",
"Lang": "en"
},
{

10
Repository/Mobile/MobileServicesRepo.cs

@ -3118,10 +3118,16 @@ namespace Repository.Mobile
r.InviteCode = dt.Rows[0]["inviteCode"].ToString();
r.TotalReferral = dt.Rows[0]["totalReferral"].ToString();
r.RewardMoney = string.Format("{0:0.##}", dt.Rows[0]["rewardMoney"].ToString());
r.InviteMessageTitle = Utilities.GetLanguageMapping("INVITE_MESSAGE_TITLE", lang).Message;
r.InviteMessageBody = Utilities.GetLanguageMapping("INVITE_MESSAGE_BODY", lang).Message;
r.InviteMessageTitle = Utilities.GetLanguageMapping("INVITE_MESSAGE_TITLE", lang).Message.Replace("@rewardPoint", dt.Rows[0]["totalPoints"].ToString());
r.InviteMessageBody = Utilities.GetLanguageMapping("INVITE_MESSAGE_BODY", lang).Message
.Replace("@rewardAmount", dt.Rows[0]["totalPoints"].ToString())
.Replace("@RegReward", dt.Rows[0]["regPoints"].ToString())
.Replace("@TranReward", dt.Rows[0]["tranPoints"].ToString());
r.SourceCustomerId = dt.Rows[0]["sourceCustomerId"].ToString();
r.ShowShareBtn = ConfigurationManager.AppSettings["ShowShareBtn"].ToString();
r.RewardPts = dt.Rows[0]["totalPoints"].ToString();
r.RegReward = dt.Rows[0]["regPoints"].ToString();
r.TranReward = dt.Rows[0]["tranPoints"].ToString();
var rewardDetails = new List<RewardDetails>();
foreach (DataRow row1 in ds.Tables[1].Rows)

Loading…
Cancel
Save