using RealCV.Domain.Enums;

namespace RealCV.Domain.Constants;

public static class PlanLimits
{
    public static int GetMonthlyLimit(UserPlan plan) => plan switch
    {
        UserPlan.Free => 3,
        UserPlan.Professional => 30,
        UserPlan.Enterprise => int.MaxValue,
        _ => 0
    };

    public static int GetPricePence(UserPlan plan) => plan switch
    {
        UserPlan.Professional => 4900,
        UserPlan.Enterprise => 19900,
        _ => 0
    };

    public static string GetDisplayPrice(UserPlan plan) => plan switch
    {
        UserPlan.Free => "Free",
        UserPlan.Professional => "£49/month",
        UserPlan.Enterprise => "£199/month",
        _ => "Unknown"
    };

    public static bool IsUnlimited(UserPlan plan) => plan == UserPlan.Enterprise;
}
