- Created ComplianceNFs.Core project with domain entities and ports - Implemented BuyingRecord, EnergyInvoice, ParsedInvoice entities - Defined domain interfaces for mail listening, XML and PDF parsing, and repository access - Established ComplianceNFs.Infrastructure project with file archiving, mail listening, and data access implementations - Developed PDF and XML parsers for invoice data extraction - Set up AccessDbRepository and AttachmentRepository for data retrieval and storage - Created ComplianceNFs.Service project for background processing and service orchestration - Implemented Worker service for periodic tasks - Established ComplianceNFs.Monitor project with WPF UI for monitoring invoice statuses - Added ViewModel for UI data binding and command handling - Configured project files for .NET 9.0 and necessary package references - Created initial appsettings.json for configuration management - Added TODOs and roadmap for future development
45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using ComplianceNFs.Core.Entities;
|
|
|
|
namespace ComplianceNFs.Core.Application
|
|
{
|
|
// Handles ingestion of invoices from mail attachments
|
|
public interface IInvoiceIngestionService
|
|
{
|
|
Task IngestAsync();
|
|
}
|
|
|
|
// Handles matching logic for invoices
|
|
public interface IMatchingService
|
|
{
|
|
Task MatchAsync(EnergyInvoice invoice);
|
|
}
|
|
|
|
// Handles compliance validation
|
|
public interface IComplianceService
|
|
{
|
|
Task ValidateAsync(EnergyInvoice invoice);
|
|
}
|
|
|
|
// Handles notifications for mismatches
|
|
public interface INotificationService
|
|
{
|
|
Task NotifyAsync(EnergyInvoice invoice, string message);
|
|
}
|
|
|
|
// Handles archiving of files
|
|
public interface IArchivingService
|
|
{
|
|
Task ArchiveAsync(EnergyInvoice invoice, byte[] rawFile);
|
|
}
|
|
|
|
// For streaming invoice status updates (for Monitor)
|
|
public interface IInvoiceStatusStream
|
|
{
|
|
event Action<EnergyInvoice> StatusUpdated;
|
|
IEnumerable<EnergyInvoice> GetRecent(int count = 100);
|
|
}
|
|
}
|