using Books.Api.Domain.FiscalYears;
using GraphQL.Types;

namespace Books.Api.GraphQL.Types;

public class FiscalYearStatusEnumType : EnumerationGraphType<FiscalYearStatus>
{
    public FiscalYearStatusEnumType()
    {
        Name = "FiscalYearStatus";
        Description = "Status of a fiscal year";

        Add("OPEN", FiscalYearStatus.Open, "Fiscal year is open for transactions");
        Add("CLOSED", FiscalYearStatus.Closed, "Fiscal year is closed (can be reopened)");
        Add("LOCKED", FiscalYearStatus.Locked, "Fiscal year is permanently locked");
    }
}
