feat(billing): add trial eligibility logic and update billing overview

This commit is contained in:
Yusuf İpek
2026-04-11 12:53:02 +03:00
parent faa902a604
commit e18d5219f5
3 changed files with 21 additions and 1 deletions
+1
View File
@@ -27,6 +27,7 @@ export async function GET() {
hasActiveSubscription: billing.subscription.hasActiveSubscription,
hasActiveTrial: billing.subscription.hasActiveTrial,
hasBillingAccess: billing.subscription.hasBillingAccess,
isTrialEligible: billing.subscription.isTrialEligible,
priceId: billing.subscription.stripePriceId,
currentPeriodEnd: billing.subscription.currentPeriodEnd?.toISOString() ?? null,
cancelAtPeriodEnd: billing.subscription.cancelAtPeriodEnd ?? false,