namespace IronLicensing.Client.Models; public class LicenseResult { public bool Success { get; set; } public LicenseInfo? License { get; set; } public string? ErrorCode { get; set; } public string? ErrorMessage { get; set; } public static LicenseResult Ok(LicenseInfo license) => new() { Success = true, License = license }; public static LicenseResult Fail(string code, string message) => new() { Success = false, ErrorCode = code, ErrorMessage = message }; } public class CheckoutResult { public bool Success { get; set; } public string? SessionId { get; set; } public string? CheckoutUrl { get; set; } public DateTime? ExpiresAt { get; set; } public string? ErrorMessage { get; set; } }