Exemplo n.º 1
0
 public void Handle(DepositUnverified @event)
 {
     if (@event.Status == OfflineDepositStatus.Unverified)
     {
         AddActivityLog("Unverify " + @event.DepositType + " Deposit", @event, @event.PlayerId, @event.Remarks);
     }
     else if (@event.Status == OfflineDepositStatus.Rejected)
     {
         AddActivityLog("Reject " + @event.DepositType + " Deposit", @event, @event.PlayerId, @event.Remarks);
     }
 }
Exemplo n.º 2
0
        public void Handle(DepositUnverified cancelledEvent)
        {
            var repository = _container.Resolve <IReportRepository>();
            var record     = repository.DepositRecords.SingleOrDefault(r => r.DepositId == cancelledEvent.DepositId);

            if (record == null)
            {
                throw new RegoException(string.Format(DepositRecordNotFoundMessage, cancelledEvent.DepositId));
            }

            record.Rejected   = cancelledEvent.Unverified;
            record.RejectedBy = cancelledEvent.UnverifiedBy;
            record.Status     = cancelledEvent.Status.ToString();
            repository.SaveChanges();
        }
Exemplo n.º 3
0
        public void Consume(DepositUnverified @event)
        {
            var paymentRepository = _container.Resolve <IPaymentRepository>();

            var record = paymentRepository.Deposits.SingleOrDefault(r => r.Id == @event.DepositId);

            if (record == null)
            {
                throw new RegoException(string.Format(DepositRecordNotFoundMessage, @event.DepositId));
            }

            record.Status         = @event.Status.ToString();
            record.DateUnverified = @event.Unverified;
            record.UnverifiedBy   = @event.UnverifiedBy;
            record.UnverifyReason = @event.UnverifyReason;

            paymentRepository.SaveChanges();
        }
Exemplo n.º 4
0
 public void Consume(DepositUnverified message)
 {
     _depositHandlers.Handle(message);
 }
Exemplo n.º 5
0
 public void Handle(DepositUnverified @event)
 {
     AddActivityLog(AdminActivityLogCategory.Deposit, @event);
 }
Exemplo n.º 6
0
 public void Handle(DepositUnverified @event)
 {
     NegateDepositBonusRedemptions(@event.PlayerId, @event.DepositId, "Deposit unverified");
 }