Skip to content

[PB-5977]: feat: add suspend and reactivate account functionality#69

Merged
jzunigax2 merged 4 commits into
masterfrom
feat/account-suspension
Jul 3, 2026
Merged

[PB-5977]: feat: add suspend and reactivate account functionality#69
jzunigax2 merged 4 commits into
masterfrom
feat/account-suspension

Conversation

@jzunigax2

@jzunigax2 jzunigax2 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Implements account suspension. Suspension is reversible and read only; a suspended account rejects incoming mail and is blocked from sending. Exposes the gateway endpoints that payments-server calls on subscription lifecycle changes.

Gateway endpoints

  • POST /gateway/accounts/:uuid/suspend
  • POST /gateway/accounts/:uuid/reactivate

@jzunigax2 jzunigax2 added the enhancement New feature or request label Jun 19, 2026
@jzunigax2 jzunigax2 requested a review from xabg2 June 19, 2026 21:26
@jzunigax2 jzunigax2 self-assigned this Jun 19, 2026
@jzunigax2 jzunigax2 changed the title [_]: feat: add suspend and reactivate account functionality [PB-5977]: feat: add suspend and reactivate account functionality Jun 22, 2026
@xabg2 xabg2 marked this pull request as ready for review June 30, 2026 13:40
jzunigax2 and others added 3 commits July 2, 2026 09:50
Implement suspendAccount and reactivateAccount methods in AccountService, along with corresponding methods in AccountProvider and StalwartAccountProvider. Add tests for these functionalities in account.service.spec.ts, account.repository.spec.ts, and stalwart.service.spec.ts. Update GatewayController to handle suspend and reactivate requests.
@jzunigax2 jzunigax2 force-pushed the feat/account-suspension branch from e47a539 to ca3d4eb Compare July 2, 2026 15:50
@sonarqubecloud

sonarqubecloud Bot commented Jul 3, 2026

Copy link
Copy Markdown

@jzunigax2 jzunigax2 merged commit 013daa2 into master Jul 3, 2026
5 checks passed
@jzunigax2 jzunigax2 deleted the feat/account-suspension branch July 3, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants