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