Browse Source

1. Promo Code

4. Resend TXN Feature
feature/Redmine-17825-Email_Template
shakun 6 months ago
parent
commit
b31fb64bc8
  1. 38
      Business/MobileV2/MobileV2Business.cs
  2. 9
      Business/SendMoney/SendMoneyBusiness.cs
  3. 2
      Common/Model/ExRateCalculateRequest.cs
  4. 3
      Common/Model/MobileRemitRequest.cs
  5. 3
      Common/Model/TPSendMoney/TpSendMoney.cs
  6. 2
      Common/Model/TranHistoryResponse.cs
  7. 2
      JsonRx/Config/ResponseMsg.json
  8. 1
      Repository/MobileV2/MobileV2Repo.cs

38
Business/MobileV2/MobileV2Business.cs

@ -66,43 +66,35 @@ namespace Business.Mobile
dashBoardV2.loginResponse = (LoginResponse)customer.Data;
dashBoardV2.bannerImages = new List<BannerImages>();
//dashBoardV2.bannerImages.Add(new BannerImages()
//{
// fileName = "one.jpg",
// filePath = "https://mobile.imelondon.co.uk:2086/images/banners/1.png",
// fileTitle = "file1",
// Redirect = true,
// RedirectURL = "https://imelondon.co.uk/"
//});
dashBoardV2.bannerImages.Add(new BannerImages()
{
fileName = "one.jpg",
filePath = "https://mobile.imelondon.co.uk:2086/images/banners/1.png",
fileName = "two.jpg",
filePath = "https://mobile.imelondon.co.uk:2086/images/banners/2.png",
fileTitle = "file1",
Redirect = true,
RedirectURL = "https://imelondon.co.uk/"
Redirect = false
});
dashBoardV2.bannerImages.Add(new BannerImages()
{
fileName = "two.jpg",
filePath = "https://mobile.imelondon.co.uk:2086/images/banners/2.png",
fileName = "four.jpg",
filePath = "https://mobile.imelondon.co.uk:2086/images/banners/4.png",
fileTitle = "file1",
Redirect = false
});
dashBoardV2.bannerImages.Add(new BannerImages()
{
fileName = "three.jpg",
filePath = "https://mobile.imelondon.co.uk:2086/images/banners/3.png",
fileName = "five.jpg",
filePath = "https://mobile.imelondon.co.uk:2086/images/banners/5.png",
fileTitle = "file1",
Redirect = false
});
//dashBoardV2.bannerImages.Add(new BannerImages()
//{
// fileName = "JME.png",
// filePath = "https://staging.japanremit.com:1083/images/banners/jme.png",
// fileTitle = "JME LOGO",
// Redirect = true,
// RedirectURL = "https://japanremit.com"
//});
//dashBoardV2.bannerImages.Add(new BannerImages()
//{
// fileName = "image-4.jpg",
// filePath = "https://staging.japanremit.com:1083/images/banners/image-41.jpg",
// fileTitle = "file4",
// Redirect = false
//});
jsonResult.ErrorCode = "0";
jsonResult.Msg = "Success";

9
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
};

2
Common/Model/ExRateCalculateRequest.cs

@ -91,7 +91,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; }

3
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; }
}
}

3
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; }

2
Common/Model/TranHistoryResponse.cs

@ -33,5 +33,7 @@
public string ColorCode { get; set; }
public string TextCode { get; set; }
public string ReceiverId { get; set; }
}
}

2
JsonRx/Config/ResponseMsg.json

@ -1901,7 +1901,7 @@
},
{
"Key": "INVITE_MESSAGE_BODY",
"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.",
"Message": "You and your friend will each be given @rewardAmount £ in bonus credit. There may be minimum send requirements.",
"Lang": "en"
},
{

1
Repository/MobileV2/MobileV2Repo.cs

@ -158,6 +158,7 @@ namespace Repository.MobileV2
ColorIcon = GetColor(dr["payStatus"].ToString()),
ColorCode = GetColorCode(dr["payStatus"].ToString()),
TextCode= GetTextCode(dr["payStatus"].ToString()),
ReceiverId = Convert.ToString(dr["Receiverid"])
// PayoutAgent = Convert.ToString(dr["PayoutAgent"]),
};
myTransferDto.RecentTransactions.Add(tranHistoryResponse);

Loading…
Cancel
Save