using EventFlow.Aggregates;

namespace Books.Api.Domain.Products.Events;

public class ProductCreatedEvent(
    string companyId,
    string? productNumber,
    string name,
    string? description,
    decimal unitPrice,
    string vatCode,
    string? unit,
    string? defaultAccountId,
    string? ean,
    string? manufacturer) : AggregateEvent<ProductAggregate, ProductId>
{
    public string CompanyId { get; } = companyId;
    public string? ProductNumber { get; } = productNumber;
    public string Name { get; } = name;
    public string? Description { get; } = description;
    public decimal UnitPrice { get; } = unitPrice;
    public string VatCode { get; } = vatCode;
    public string? Unit { get; } = unit;
    public string? DefaultAccountId { get; } = defaultAccountId;
    public string? Ean { get; } = ean;
    public string? Manufacturer { get; } = manufacturer;
}
