Browse Source

#24827 Promotional Rate setup

feature/Redmine-17825-Email_Template
Leeza Baidar 8 months ago
parent
commit
3cead4c873
  1. 2
      Business/Mobile/IMobileServices.cs
  2. 8
      Business/Mobile/MobileServices.cs
  3. 2
      JsonRx/ApiV3/SendTransactionController.cs
  4. 2
      Repository/Mobile/IMobileServicesRepo.cs
  5. 5
      Repository/Mobile/MobileServicesRepo.cs

2
Business/Mobile/IMobileServices.cs

@ -93,7 +93,7 @@ namespace Business.Mobile
JsonRxResponse CheckInfoAgree(string username);
JsonRxResponse GetFieldsByProduct(MappingType type, string customer);
JsonRxResponse GetFieldsByProduct(MappingType type, string customer, string receiverId);
JsonRxResponse ValidateReferralCode(string referralCode);
//JsonRxResponse QueryAddress(string postCode);

8
Business/Mobile/MobileServices.cs

@ -2958,7 +2958,7 @@ namespace Business.Mobile
}
public JsonRxResponse GetFieldsByProduct(Common.Model.Config.MappingType type, string customerId)
public JsonRxResponse GetFieldsByProduct(Common.Model.Config.MappingType type, string customerId, string receiverId)
{
JsonRxResponse jsonRx = new JsonRxResponse
{
@ -2986,7 +2986,7 @@ namespace Business.Mobile
else if (type == Common.Model.Config.MappingType.REWARD_POINT)
{
var response1 = _requestServices.GetRewardFee(customerId);
response1.PaymentOptions = new PaymentOptions() { Options = GetPaymentMethods(), HeaderText = "How do like to pay?" };
response1.PaymentOptions = new PaymentOptions() { Options = GetPaymentMethods(receiverId), HeaderText = "How do like to pay?" };
if (response1 != null)
{
@ -3046,9 +3046,9 @@ namespace Business.Mobile
}
public List<Option> GetPaymentMethods()
public List<Option> GetPaymentMethods(string receiverId)
{
var paymentMethods = _requestServices.GetPaymentMethod();
var paymentMethods = _requestServices.GetPaymentMethod(receiverId);
List<Option> options;
string mappingPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, ConfigurationManager.AppSettings["PaymentConfigFilePath"].ToString());
using (StreamReader reader = File.OpenText(mappingPath))

2
JsonRx/ApiV3/SendTransactionController.cs

@ -114,7 +114,7 @@ namespace JsonRx.ApiV3
if (Enum.IsDefined(typeof(MappingType), type)
|| Enum.IsDefined(typeof(MappingType), mappingTypeInt))
{
res = _requestServices.GetFieldsByProduct(type, customer);
res = _requestServices.GetFieldsByProduct(type, customer, receiverId);
if (type == Common.Model.Config.MappingType.REWARD_POINT)
{

2
Repository/Mobile/IMobileServicesRepo.cs

@ -102,6 +102,6 @@ namespace Repository.Mobile
JsonRxResponse ValidateReferralCode(string referralCode);
UserDetails GetUserDetails(string email);
//ataSet StaticQueryAddress();
List<KeyValues> GetPaymentMethod();
List<KeyValues> GetPaymentMethod(string receiverId);
}
}

5
Repository/Mobile/MobileServicesRepo.cs

@ -204,10 +204,11 @@ namespace Repository.Mobile
};
}
public List<KeyValues> GetPaymentMethod()
public List<KeyValues> GetPaymentMethod(string receiverId)
{
List<KeyValues> lst = new List<KeyValues>();
var sql = "EXEC mobile_proc_customerMaster @flag='get-payment-method'";
var sql = "EXEC proc_countryRateMaster @flag='getListById'";
sql += ", @receiverId = " + _dao.FilterString(receiverId);
var dt = _dao.ExecuteDataTable(sql);
foreach (DataRow row in dt.Rows)

Loading…
Cancel
Save