using Meezi.Core.Enums;

namespace Meezi.Core.Constants;

public static class PlanPricing
{
    /// <summary>Monthly price in Toman (ت).</summary>
    public static decimal MonthlyToman(PlanTier tier) => tier switch
    {
        PlanTier.Pro => 1_490_000m,
        PlanTier.Business => 3_490_000m,
        _ => 0m
    };

    public static bool IsBillableOnline(PlanTier tier) =>
        tier is PlanTier.Pro or PlanTier.Business;

    /// <summary>ZarinPal amounts are in Rials (۱ تومان = ۱۰ ریال).</summary>
    public static long ToRials(decimal toman) => (long)(toman * 10m);
}
