|
@ -150,6 +150,32 @@ namespace JMETxnPushScheduler.Business |
|
|
Console.Write(JsonConvert.SerializeObject(r1)); |
|
|
Console.Write(JsonConvert.SerializeObject(r1)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(cd.payStatus.ToUpper() == "PAID") |
|
|
|
|
|
{ |
|
|
|
|
|
SendNotificationRequestMobile request = new SendNotificationRequestMobile() |
|
|
|
|
|
{ |
|
|
|
|
|
IsBulkNotification = false, |
|
|
|
|
|
UserName = cd.email, |
|
|
|
|
|
ProcessId = "PaidTxnPushNotification", |
|
|
|
|
|
ProviderId = NotifyTemplate.PAID_TXN.ToString(), |
|
|
|
|
|
NotificationTypeId = NOTIFICATION_TYPE.PUSH_NOTIFICATION.ToString(), |
|
|
|
|
|
Template = NotifyTemplate.PAID_TXN, |
|
|
|
|
|
Recipients = new List<RecipientViewModel>() |
|
|
|
|
|
{ |
|
|
|
|
|
new RecipientViewModel() |
|
|
|
|
|
{ |
|
|
|
|
|
NotificationContent = new NotificationDTO() { |
|
|
|
|
|
Body = JsonConvert.SerializeObject(bodyMappings), |
|
|
|
|
|
//Title will be set by mapping json
|
|
|
|
|
|
}, |
|
|
|
|
|
Address= cd.email |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
var r1 = NotifierV2.SendNotification(request); |
|
|
|
|
|
|
|
|
|
|
|
Console.Write(JsonConvert.SerializeObject(r1)); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|