using EventFlow.Aggregates;

namespace Books.Api.Domain.Customers.Events;

public class CustomerUpdatedEvent(
    string name,
    string? cvr,
    string? address,
    string? postalCode,
    string? city,
    string country,
    string? email,
    string? phone,
    int paymentTermsDays,
    string? defaultRevenueAccountId) : AggregateEvent<CustomerAggregate, CustomerId>
{
    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 string? Email { get; } = email;
    public string? Phone { get; } = phone;
    public int PaymentTermsDays { get; } = paymentTermsDays;
    public string? DefaultRevenueAccountId { get; } = defaultRevenueAccountId;
}
