Esempio n. 1
0
        public async Task UpdateLog(TransactionSetup logToBeUpdated, TransactionSetup log)
        {
            logToBeUpdated.AppoitmentId      = log.AppoitmentId;
            logToBeUpdated.BillId            = log.BillId;
            logToBeUpdated.EventRaised       = log.EventRaised;
            logToBeUpdated.TransactionStatus = log.TransactionStatus;

            await _unitOfWork.Save();
        }
Esempio n. 2
0
        public async Task <TransactionSetup> CreateLog(TransactionSetup newLog)
        {
            newLog.Id = Guid.NewGuid();
            await _unitOfWork.LogRepository.AddAsync(newLog);

            await _unitOfWork.Save();

            return(newLog);
        }
        private async Task <TransactionSetup> UpdateLog(TransactionSetup msg)
        {
            var id  = new Guid(msg.AppoitmentId.ToString());
            var log = await _logService.GetLogByAppoitmentId(id);

            await _logService.UpdateLog(log, msg);

            flag = false;
            return(log);
        }
 private async Task <TransactionSetup> SendEvent(TransactionSetup msg)
 {
     if (msg.TransactionStatus == Status.Failed || msg.TransactionStatus == Status.Succes)
     {
         _amqService.SendEvent(msg, COMPLETION);
     }
     else
     {
         if (_amqService.SendEvent(msg, SEND_EMAIL))
         {
             msg.EventRaised = true;
         }
         else
         {
             msg.EventRaised = false;
         }
     }
     return(await UpdateLog(msg));
 }
Esempio n. 5
0
        private void GetTransactionSetup(string redirectUrl)
        {
            transactionSetup = new TransactionSetup();

            transactionSetup.ReturnURL = redirectUrl;
            transactionSetup.TransactionSetupMethod = TransactionSetupMethod.PaymentAccountCreate;
            transactionSetup.Embedded = BooleanType.False;
            transactionSetup.AutoReturn = BooleanType.True;
            transactionSetup.CVVRequired = BooleanType.False;
        }
Esempio n. 6
0
 public Task DeleteLog(TransactionSetup log)
 {
     throw new NotImplementedException();
 }