|
@ -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 |
|
|
JsonRxResponse jsonRx = new JsonRxResponse |
|
|
{ |
|
|
{ |
|
@ -2986,7 +2986,7 @@ namespace Business.Mobile |
|
|
else if (type == Common.Model.Config.MappingType.REWARD_POINT) |
|
|
else if (type == Common.Model.Config.MappingType.REWARD_POINT) |
|
|
{ |
|
|
{ |
|
|
var response1 = _requestServices.GetRewardFee(customerId); |
|
|
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) |
|
|
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; |
|
|
List<Option> options; |
|
|
string mappingPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, ConfigurationManager.AppSettings["PaymentConfigFilePath"].ToString()); |
|
|
string mappingPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, ConfigurationManager.AppSettings["PaymentConfigFilePath"].ToString()); |
|
|
using (StreamReader reader = File.OpenText(mappingPath)) |
|
|
using (StreamReader reader = File.OpenText(mappingPath)) |
|
|