Skip to content

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

Draft
jzunigax2 wants to merge 2 commits into
masterfrom
feat/account-suspension
Draft

[PB-5977]: feat: add suspend and reactivate account functionality#69
jzunigax2 wants to merge 2 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

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 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
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant