From 7d0f7c70b3f4e0ac81aa34e9993a870c1e7e3cdf Mon Sep 17 00:00:00 2001 From: Leeza Baidar Date: Wed, 6 Mar 2024 18:07:17 +0545 Subject: [PATCH] #27620 changes in jSonRx for alphanumeric reward points --- Common/Models/ExchangeRate/ExRateResponse.cs | 3 +++ Common/Models/SendTransaction/SendTransactionMobile.cs | 3 +++ Repository/DAO/ThirdParty/ThirdPartyRepo.cs | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/Common/Models/ExchangeRate/ExRateResponse.cs b/Common/Models/ExchangeRate/ExRateResponse.cs index 9fb2b23..0a274f1 100644 --- a/Common/Models/ExchangeRate/ExRateResponse.cs +++ b/Common/Models/ExchangeRate/ExRateResponse.cs @@ -47,5 +47,8 @@ public string ModeOfPaymentName { get; set; } public bool isSCExcluded { 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/Models/SendTransaction/SendTransactionMobile.cs b/Common/Models/SendTransaction/SendTransactionMobile.cs index 8bc2cb6..1e460b4 100644 --- a/Common/Models/SendTransaction/SendTransactionMobile.cs +++ b/Common/Models/SendTransaction/SendTransactionMobile.cs @@ -37,6 +37,9 @@ namespace Common.Models.SendTransactionMobile 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 class ReceiverInfo diff --git a/Repository/DAO/ThirdParty/ThirdPartyRepo.cs b/Repository/DAO/ThirdParty/ThirdPartyRepo.cs index 2ce9778..08d98e7 100644 --- a/Repository/DAO/ThirdParty/ThirdPartyRepo.cs +++ b/Repository/DAO/ThirdParty/ThirdPartyRepo.cs @@ -72,6 +72,9 @@ namespace Repository.DAO.ThirdParty sql.AppendLine(", @portOfShipment = " + FilterString(txn.CDDI.PortOfShipment)); sql.AppendLine(", @discountedFee = " + FilterString(txn.DiscountedFee)); sql.AppendLine(", @requestedBy = " + FilterString(txn.RequestedBy)); + sql.AppendLine(", @isPromoCode = " + FilterString(txn.isPromoCode)); + sql.AppendLine(", @promoRowId = " + FilterString(txn.promoRowId)); + sql.AppendLine(", @promoCode = " + FilterString(txn.promoCode)); _log.Debug("OnlineOrMobileSendTransaction | SQL: " + sql.ToString()); TPResponse res = ParseDbResult(sql); _log.Debug("OnlineOrMobileSendTransaction | DB Response: " + JsonConvert.SerializeObject(res)); @@ -666,6 +669,9 @@ namespace Repository.DAO.ThirdParty exRateResponse.tpPCurr = Convert.ToString(dt.Rows[0]["tpPCurr"]); exRateResponse.ForexSessionId = Convert.ToString(dt.Rows[0]["ForexSessionId"]); exRateResponse.discountedFee = Convert.ToString(dt.Rows[0]["discountedFee"]); + exRateResponse.isPromoCode = Convert.ToString(dt.Rows[0]["isPromoCode"]); + exRateResponse.promoRowId = Convert.ToString(dt.Rows[0]["promoRowId"]); + exRateResponse.promoCode = Convert.ToString(dt.Rows[0]["promoCode"]); exRateResponse.isSCExcluded = false; var countriesList = model.SCExcludedCountries.Split(',');