Skip to content

feat(membership): freeze, resume and extend memberships (phase 2 step 2, MB-06) - #12

Merged
aikmamali merged 1 commit into
mainfrom
claude/wizardly-wright-7438ad
Nov 28, 2026
Merged

aikmamali merged 1 commit into
mainfrom
claude/wizardly-wright-7438ad

Conversation

@aikmamali

Copy link
Copy Markdown
Owner

Summary

MB-06, freezing and extending memberships:

  • FreezeMembership: pauses an active membership from today until a date. The end date moves later by the paused days at once.
  • Frozen memberships do not pay: FEFO picks active memberships only. Bookings made before the freeze stay as they are.
  • ResumeMembership: an early resume gives back the unused paused days.
  • ResumeFrozenMembershipsJob: runs daily at 00:05 Athens time and resumes freezes on their frozen_until day.
  • ExtendMembership: adds days to an active or frozen membership with a reason. Expired memberships are refused because their credits were already written off.
  • Every change goes to activity_log with the old and new end dates and the reason.
  • Admin: Freeze, Resume and Extend table actions on memberships, plus the "paused until" date on the view page.
  • Customer: "paused until" on the membership screen.
  • ADR 0010.

Test plan

  • Pest: 523 tests pass, including 12 new freeze and extend tests and the schedule entry
  • Pint, PHPStan level 8 and Rector are clean

Generated by Claude Code

… 2, MB-06)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu8GU7kYVfnEPoyNsqCAT3
@aikmamali
aikmamali merged commit 91b3fef into main Nov 28, 2026
2 checks passed

This branch was previously deployed

1 inactive deployment
production — db039145 Deployed Nov 28, 2026 by aikmamali via deploy #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants