Skip to content

HDPI-3495-rent-arrears-section-backend#1490

Open
AlexBuzea wants to merge 24 commits intomasterfrom
HDPI-3495-rent-arrears-section-backend
Open

HDPI-3495-rent-arrears-section-backend#1490
AlexBuzea wants to merge 24 commits intomasterfrom
HDPI-3495-rent-arrears-section-backend

Conversation

@AlexBuzea
Copy link
Copy Markdown
Contributor

@AlexBuzea AlexBuzea commented Mar 9, 2026

Jira link

https://tools.hmcts.net/jira/browse/HDPI-3495

Change description

Domain & Entity:

  • Added rentArrearsAmountConfirmation field (YesNoNotSure) - whether defendant confirms the arrears amount
  • Added rentArrearsAmount field (BigDecimal) - the actual rent arrears amount
  • Added min/max validation (£1 to £1,000,000,000) with @ccd annotations
  • Updated DefendantResponseEntity to persist both fields

Database:
- Migration V063__add_rent_arrears_response.sql:
- Added rent_arrears_amount_confirmation column (YES_NO_NOT_SURE)
- Added rent_arrears_amount column (NUMERIC(12, 2))

Service:

  • Updated DefendantResponseService to map and save new fields to database

Tests Added

  • Valid amount persistence tests
  • Min/max validation boundary tests
  • Field mapping verification
  • SubmitEventHandlerTest - Updated for field rename
  • RespondToPossessionDraftSavePageTest - Updated test data

Testing done

Tested locally linking Front End with Backend .

Security Vulnerability Assessment

CVE Suppression: Are there any CVEs present in the codebase (either newly introduced or pre-existing) that are being intentionally suppressed or ignored by this commit?

  • Yes
  • No

Checklist

  • commit messages are meaningful and follow good commit message guidelines
  • README and other documentation has been updated / added (if needed)
  • tests have been updated / new tests has been added (if needed)
  • Does this PR introduce a breaking change

@github-actions

This comment was marked as off-topic.

@arun-hmcts arun-hmcts marked this pull request as ready for review March 13, 2026 08:36
@arun-hmcts arun-hmcts requested a review from a team as a code owner March 13, 2026 08:36
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z bot requested a deployment to preview March 13, 2026 20:54 Abandoned
@hmcts-jenkins-j-to-z
Copy link
Copy Markdown
Contributor

Plan Result (aat)

No changes. Your infrastructure matches the configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants