示例#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);
     }
 }
示例#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();
        }
示例#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();
        }
示例#4
0
 public void Consume(DepositUnverified message)
 {
     _depositHandlers.Handle(message);
 }
示例#5
0
 public void Handle(DepositUnverified @event)
 {
     AddActivityLog(AdminActivityLogCategory.Deposit, @event);
 }
示例#6
0
 public void Handle(DepositUnverified @event)
 {
     NegateDepositBonusRedemptions(@event.PlayerId, @event.DepositId, "Deposit unverified");
 }