Commits
Marek Vsechovsky committed 91ef40e462c
Session 89, Step 9: Checkout: subscription downgrade step with messaging - AIM-1474 Checkout: subscription downgrade step with messaging - AIM-1475 Checkout: downgrade to free/trial tier — set SubscrCancelAtPeriodEnd - AIM-1476 Checkout: downgrade to lower paid tier — future subscription warning and conditional checkbox - AIM-3480 Pricing: cancel current subscription at period end - AIM-3481 Pricing: restore auto-renewal with confirmation and conditional upgrade guidance Outcome: Implemented AIM-1474 paid downgrade scheduling and pricing state, AIM-1475 latest-paid free-tier cancellation, and AIM-1476 future-paid warning integration. Added issue -4140 period-end cancellation and issue -4141 auto-renewal restoration. Validation: 12 Node tests pass; application build succeeds with existing warnings; JavaScript syntax checks and production bundle generation pass. Browser tests with intercepted API responses verified both renewal dialogs, status transitions, conditional upgrade guidance, scheduled-start labels and the downgrade checkbox. Deployment prerequisite: apply Aisman.Database/Scripts/159_AddScheduledSubscriptionDowngrade.sql before running this build. Database migration execution and actual Paddle sandbox mutations were not performed. The solution build is blocked by the existing Aisman.Docs website/MSBuild incompatibility; the application project builds successfully.