books/backend/Books.Api/Domain/Accounts/Events/AccountCreatedEvent.cs
Nicolaj Hartmann 1f75c5d791 Add all backend domain, commands, repositories, and tests
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>
2026-01-30 22:19:42 +01:00

28 lines
995 B
C#

using EventFlow.Aggregates;
namespace Books.Api.Domain.Accounts.Events;
public class AccountCreatedEvent(
string companyId,
string accountNumber,
string name,
AccountType accountType,
string? parentId,
string? description,
string? vatCodeId,
bool isSystemAccount,
string? standardAccountNumber = null) : AggregateEvent<AccountAggregate, AccountId>
{
public string CompanyId { get; } = companyId;
public string AccountNumber { get; } = accountNumber;
public string Name { get; } = name;
public AccountType AccountType { get; } = accountType;
public string? ParentId { get; } = parentId;
public string? Description { get; } = description;
public string? VatCodeId { get; } = vatCodeId;
public bool IsSystemAccount { get; } = isSystemAccount;
/// <summary>
/// Erhvervsstyrelsens standardkontonummer for SAF-T rapportering.
/// </summary>
public string? StandardAccountNumber { get; } = standardAccountNumber;
}