[PB-5978]: feat/add suspended state for accounts#41
Merged
Conversation
…updates - Introduced 'state' and 'suspended_at' columns in the mail_accounts table. - Updated MailAccount domain and model to include state management. - Enhanced AccountRepository to handle new state attributes. - Modified test fixtures to initialize mail accounts with state.
aff4d08 to
d150b24
Compare
- Added 'suspendedRetentionDays' configuration for account suspension management. - Enhanced AccountService to compute account deletion date based on suspension status and retention days. - Introduced MailAccountStatus interface and updated related services to return account status. - Updated UserController to expose account status retrieval endpoint. - Added corresponding tests to ensure correct behavior of account status logic.
…unt status handling - Updated UserController tests to verify behavior for active and suspended accounts in getMailAccount method. - Introduced new AccountRepository tests to validate account retrieval, creation, and deletion logic, including handling of addresses and account states.
d150b24 to
7ea20c1
Compare
xabg2
approved these changes
May 12, 2026
9601acd to
de1dfd7
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


GET /users/me/mail-accountendpoint returning account status, suspendedAt, and a computed deletionAt based on SUSPENDED_ACCOUNT_RETENTION_DAYS (default 30).