namespace LendWise.Web.Models;
public class Product
{
public required string Slug { get; init; }
public required string Name { get; init; }
/// Unsecured, Secured or Other.
public required string Category { get; init; }
public required string Icon { get; init; }
public required string Tagline { get; init; }
public required string Summary { get; init; }
public required string Audience { get; init; }
public string[] Highlights { get; init; } = [];
public string[] Eligibility { get; init; } = [];
public string[] Documents { get; init; } = [];
/// Null when an EMI calculator does not make sense (equity or revenue-based funding).
public EmiConfig? Emi { get; init; }
}
public class EmiConfig
{
public string ProductSlug { get; set; } = "";
public string Title { get; set; } = "Estimate your EMI";
public int MinAmount { get; set; }
public int MaxAmount { get; set; }
public int StepAmount { get; set; }
public int DefaultAmount { get; set; }
public double Rate { get; set; }
public int Months { get; set; }
public int MaxMonths { get; set; }
}
public class Guide
{
public required string Slug { get; init; }
public required string Title { get; init; }
public required string Topic { get; init; }
public required int Minutes { get; init; }
public required string Excerpt { get; init; }
public required string[] Paragraphs { get; init; }
}