internal MessageEntityDto BuildPaymentVerificationMessage(PaymentMessageVm payment) { MessageEntityDto message = null; int titleId = 301; EmailContent emailContent = _unitOfWork.EmailContent.Single(c => c.EmailTitleId == titleId); if (emailContent.EmailBody != null) { message = new MessageEntityDto(); message.FromHrRecordId = 1; message.ToMessageDetails = base.BuildToMessageDetails(payment.UserId); message.MessageSubject = string.Format(emailContent.EmailSubject); message.MessageDetails = string.Format(emailContent.EmailBody, payment.DealerName, payment.OrderId); message.SMSText = string.Format(emailContent.Smsbody, payment.DealerName, payment.OrderId); message.NotificationText = string.Format(emailContent.NotifcationBody, payment.OrderId); message.MessagingDate = DateTime.Now; message.ReferenceId = payment.OrderId; message.ReferenceType = 1; message.RedirectLink = ""; message.ReferenceDate = payment.OrderDate; message.EmailTitleId = emailContent.EmailTitleId ?? 0; message.EmailNotificationTypeId = 1; } return(message); }
private PaymentMessageVm GetPaymentVerificationData(PaymentOrder payment) { var paymentMsg = new PaymentMessageVm(); var data = _unitOfWork.Users.Single(c => c.EmployeeId == payment.OrderId); if (data != null) { paymentMsg.DealerName = data.UserName; paymentMsg.OrderId = payment.OrderId ?? 0; paymentMsg.UserId = data.UserId; } return(paymentMsg); }
private PaymentMessageVm GetPaymentConfirmationData(ProductOrder payment) { var paymentMsg = new PaymentMessageVm(); var data = _unitOfWork.DealerInformation.Single(c => c.DealerId == payment.DealerId); if (data != null) { paymentMsg.DealerName = data.DealerName; paymentMsg.OrderId = payment.OrderId; paymentMsg.Soc = payment.Soc ?? ""; } return(paymentMsg); }
public bool SendPaymentVarificationNotificationToDealer(PaymentMessageVm payment) { var message = BuildPaymentVerificationMessage(payment); return(base.SentMessage(message)); }
public bool SendPaymentNotificationToAdmin(PaymentMessageVm payment) { throw new NotImplementedException(); }