using EventFlow.Aggregates;

namespace Books.Api.Domain.Companies.Events;

public class CompanyUpdatedEvent(
    string name,
    string? cvr,
    string? address,
    string? postalCode,
    string? city,
    string country,
    int fiscalYearStartMonth,
    string currency,
    bool vatRegistered,
    string? vatPeriodFrequency) : AggregateEvent<CompanyAggregate, CompanyId>
{
    public string Name { get; } = name;
    public string? Cvr { get; } = cvr;
    public string? Address { get; } = address;
    public string? PostalCode { get; } = postalCode;
    public string? City { get; } = city;
    public string Country { get; } = country;
    public int FiscalYearStartMonth { get; } = fiscalYearStartMonth;
    public string Currency { get; } = currency;
    public bool VatRegistered { get; } = vatRegistered;
    public string? VatPeriodFrequency { get; } = vatPeriodFrequency;
}
