namespace OFACScraper.Models;

public record OFACRecord
{
    public required DateTime Date { get; init; }
    public required string Name { get; init; }
    public required decimal? PenaltyTotalUsd { get; init; }
    public required string DocumentUrl { get; init; }
    public required string FileName { get; init; }
    public required int Year { get; init; }
    public required string YearPageUrl { get; init; }

    /// <summary>
    /// Stable text identifier derived from PDF filename (without extension).
    /// E.g. "20260317_tradestation" from "20260317_tradestation.pdf"
    /// </summary>
    public string TextId => Path.GetFileNameWithoutExtension(FileName);
}
