public DisperseFundsService( IUnitOfWorkAsync unitOfWork, IServiceProvider serviceProvider, ILogger <PayoutService> logger, FundsDispersalEventHandlers fundsEventHandlers, InvoicesEventHandlers handlers, TransferService transferService) : base(serviceProvider) { _logger = logger; _transferService = transferService; _individualPayoutIntents = unitOfWork.RepositoryAsync <IndividualPayoutIntent>(); _organizationPayoutIntents = unitOfWork.RepositoryAsync <OrganizationPayoutIntent>(); _transfers = unitOfWork.RepositoryAsync <StripeTransfer>(); AddEventHandler(handlers, fundsEventHandlers); }
public ProjectInvoiceService( IServiceProvider serviceProvider, StripeInvoiceService invoiceService, InvoiceItemService invoiceItemService, ILogger <ProjectInvoiceService> logger, InvoicesEventHandlers events, IProjectService projectService, IBuyerAccountService buyerAccountService) : base(serviceProvider) { _invoiceService = invoiceService; _invoiceItemService = invoiceItemService; _logger = logger; _projectService = projectService; _buyerAccountService = buyerAccountService; _invoices = UnitOfWork.RepositoryAsync <StripeInvoice>(); _timeEntries = UnitOfWork.RepositoryAsync <TimeEntry>(); _items = UnitOfWork.RepositoryAsync <StripeInvoiceItem>(); _contracts = UnitOfWork.RepositoryAsync <Contract>(); AddEventHandler(events); }