This commit includes all previously untracked backend files: Domain: - Accounts, Attachments, BankConnections, Customers - FiscalYears, Invoices, JournalEntryDrafts - Orders, Products, UserAccess Commands & Handlers: - Full CQRS command structure for all domains Repositories: - PostgreSQL repositories for all read models - Bank transaction and ledger repositories GraphQL: - Input types, scalars, and types for all entities - Mutations and queries Infrastructure: - Banking integration (Enable Banking client) - File storage, Invoicing, Reporting, SAF-T export - Database migrations (003-029) Tests: - Integration tests for GraphQL endpoints - Domain tests - Invoicing and reporting tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
22 lines
726 B
C#
22 lines
726 B
C#
namespace Books.Api.AiBookkeeper;
|
|
|
|
/// <summary>
|
|
/// Stub implementation of IAiBookkeeperClient used when the API key is not configured.
|
|
/// Returns an error message indicating the service is unavailable.
|
|
/// </summary>
|
|
public class StubAiBookkeeperClient : IAiBookkeeperClient
|
|
{
|
|
public Task<AiBookkeeperResponse> ProcessDocumentAsync(
|
|
Stream document,
|
|
string fileName,
|
|
string contentType,
|
|
ChartOfAccountsDto chartOfAccounts,
|
|
CancellationToken cancellationToken = default)
|
|
{
|
|
return Task.FromResult(new AiBookkeeperResponse
|
|
{
|
|
Success = false,
|
|
ErrorMessage = "AI Bookkeeper er ikke konfigureret. Kontakt administrator."
|
|
});
|
|
}
|
|
}
|