books/backend/Books.Api/Domain/Companies/Events/CompanyCreatedEvent.cs

28 lines
891 B
C#
Raw Normal View History

using EventFlow.Aggregates;
namespace Books.Api.Domain.Companies.Events;
public class CompanyCreatedEvent(
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;
}