From 405306bb14ffa179a62c5bddb877f5db9d260ebd Mon Sep 17 00:00:00 2001 From: shakun Date: Wed, 7 Feb 2024 01:50:10 +0545 Subject: [PATCH] #24416 Country Wise Margin Setup #24827 Promotional Rate Feature --- Business/Mobile/IMobileServices.cs | 2 +- Business/Mobile/MobileServices.cs | 34 +++++++++++++++++++---- Business/MobileV2/MobileV2Business.cs | 16 +++++++---- Common/Model/RewardPoints.cs | 3 ++ Common/Model/UserDetails.cs | 5 +++- JsonRx/ApiV3/SendTransactionController.cs | 6 ++-- JsonRx/Config/ResponseMsg.json | 4 +-- JsonRx/Web.config | 7 +++-- Repository/Mobile/IMobileServicesRepo.cs | 2 +- Repository/Mobile/MobileServicesRepo.cs | 20 +++++++++---- 10 files changed, 75 insertions(+), 24 deletions(-) diff --git a/Business/Mobile/IMobileServices.cs b/Business/Mobile/IMobileServices.cs index 25afb7e..0dec43b 100644 --- a/Business/Mobile/IMobileServices.cs +++ b/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); diff --git a/Business/Mobile/MobileServices.cs b/Business/Mobile/MobileServices.cs index 90cd5a4..90b8ebb 100644 --- a/Business/Mobile/MobileServices.cs +++ b/Business/Mobile/MobileServices.cs @@ -350,7 +350,10 @@ namespace Business.Mobile bodyMappings.Add(new Notify.Mapping() { SValue = "MobileNo", SText = userDetails.Mobile }); bodyMappings.Add(new Notify.Mapping() { SValue = "Address", SText = userDetails.Address }); bodyMappings.Add(new Notify.Mapping() { SValue = "EMAIL_ID", SText = userDetails.Email }); - bodyMappings.Add(new Notify.Mapping() { SValue = "RegisteredDate", SText = userDetails.RegisteredDate.ToString("dd/MM/YYYY") }); + bodyMappings.Add(new Notify.Mapping() { SValue = "RegisteredDate", SText = Convert.ToString(userDetails.RegisteredDate) }); + bodyMappings.Add(new Notify.Mapping() { SValue = "rewardPoint", SText = userDetails.TotalPoints }); + bodyMappings.Add(new Notify.Mapping() { SValue = "RegReward", SText = userDetails.RegPoints }); + bodyMappings.Add(new Notify.Mapping() { SValue = "TranReward", SText = userDetails.TranPoints }); SendNotificationRequest request = new SendNotificationRequest() { @@ -724,6 +727,27 @@ namespace Business.Mobile } var rep = _requestServices.RegisterKYC(custKyc); + SendNotificationRequest pushNotificationRequest = new SendNotificationRequest() + { + IsBulkNotification = false, + UserName = custKyc.userId, + ProcessId = Guid.NewGuid().ToString(), + ProviderId = "RegisterKYC", + NotificationTypeId = NOTIFICATION_TYPE.PUSH_NOTIFICATION.ToString(), + Recipients = new List() + { + new RecipientViewModel() + { + NotificationContent = new NotificationDTO() { + Body = "Thank you for signing up with IME London. You can continue to send transactions while your KYC is being processed, even though it is currently in processing.", + Title = "KYC Processing", + }, + Address= rep.Extra2, + DeviceType = rep.Extra3 + } + }, + Language = Convert.ToString(CallContext.GetData(Constants.Language)) + }; Log.Debug("RegisterKYC | DB RESPONSE" + JsonConvert.SerializeObject(rep)); @@ -2935,7 +2959,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 { @@ -2963,7 +2987,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) { @@ -3023,9 +3047,9 @@ namespace Business.Mobile } - public List