Skip to content

HDPI-5498: caseworker respond to claim - #2464

Open
gmmagruder wants to merge 20 commits into
masterfrom
HDPI-5498-caseworker-respond-to-claim
Open

HDPI-5498: caseworker respond to claim#2464
gmmagruder wants to merge 20 commits into
masterfrom
HDPI-5498-caseworker-respond-to-claim

Conversation

@gmmagruder

Copy link
Copy Markdown
Contributor

Jira link

See HDPI-5498

Change description

  • Add caseworker event to allow caseworker to enter in defendant paper response

Testing done

Manual testing locally and unit tests

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

PCS checklist

  • New functional test classes carry the gating annotations (@EnabledIfEnvironmentVariable(named = "CCD_ENABLED", ...) + shutter guard) unless they must run on unlabelled PRs (HDPI-8084)
  • Infrastructure / chart / suppression changes have a second pair of eyes from the service admins (HDPI-8153)

@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown

CCD diff summary

👉 Full report: https://github.com/hmcts/pcs-api/actions/runs/32945019496?check_suite_focus=true

CaseField.json

MinRegularExpressionMaxSearchableHintTextFieldTypeParameterLabelIDFieldType
+
+
+
+
+
+
+---
+contactPreferences-lineSeparator
+Label
+
+
+
+
+
+
+---
+contactPreferences-lineSeparator-bottom
+Label
+
+
+
+
+
+
+---
+contactPreferences-lineSeparator-phone
+Label
+
+
+
+
+
+
+<span class="form-label">2.2 If we need to contact the defendant with notifications
or urgent updates about their case, what is their phone number? (Optional)</span>
+contactPreferences-phoneNumber
+Label
+
+
+
+
+
+
+---
+defendantDetails-lineSeparator
+Label
+
+
+
+
+
+
+---
+defendantDetails-lineSeparator-address
+Label
+
+
+
+
+
+
+---
+defendantDetails-lineSeparator-bottom
+Label
+
+
+
+
+
+
+---
+defendantDetails-lineSeparator-dob
+Label
+
+
+
+
+
+
+    <span class="form-label">1.1 What is the defendant’s name? (Optional)</span>
+defendantDetails-name
+Label
+
+
+
+
+
+
+Which defendant submitted this response?
+defendantRadioList
+DynamicRadioList
+
+
+
+
+
+
+---
+disputingOtherParts-lineSeparator
+Label
+
+
+
+
+
+
+---
+disputingOtherParts-lineSeparator-bottom
+Label
+
+
+
+
+
+
+---
+freeLegalAdvice-lineSeparator
+Label
+
+
+
+
+
+
+---
+freeLegalAdvice-lineSeparator-bottom
+Label
+
+
+
+
+
+
+1.3 What is the defendant’s address for service?
+paperResponse_Address
+AddressUK
+
+
+
+
+
+ContactPreferencesSelection
+2.1 How does the defendant want to receive updates about their case?
+paperResponse_ContactPreferences
+MultiSelectList
+
+
+
+
+
+
+1.2 What is the defendant’s date of birth?
+paperResponse_DateOfBirth
+Date
+
+
+
+
+
+
+Defendant’s email address
+paperResponse_EmailAddress
+Email
+
+
+100
+
+
+
+First name(s)
+paperResponse_FirstName
+Text
+
+
+
+
+
+YesNoPreferNotToSay
+Has the defendant had any free legal advice?
+paperResponse_FreeLegalAdvice
+FixedRadioList
+
+
+
+
+
+VerticalYesNo
+15.1 Has the defendant made a counterclaim against the claimant?
+paperResponse_HasMadeCounterClaim
+FixedRadioList
+
+
+100
+
+
+
+Last name
+paperResponse_LastName
+Text
+
+^\s*0\d{10}\s*$
+60
+
+
+
+The defendant’s phone number is
+paperResponse_PhoneNumber
+Text
+
+
+
+
+
+
+---
+selectDefendant-lineSeparator
+Label
+
+
+
+
+
+
+---
+selectDefendant-lineSeparator-bottom
+Label

AuthorisationCaseEvent/AuthorisationCaseEvent.json

UserRoleCaseEventIDCRUD
+circuit-judge
+defendantPaperResponse
+R
+ctsc
+defendantPaperResponse
+R
+ctsc-team-leader
+defendantPaperResponse
+R
+fee-paid-judge
+defendantPaperResponse
+R
+hearing-centre-admin
+defendantPaperResponse
+CRU
+hearing-centre-team-leader
+defendantPaperResponse
+CRU
+judge
+defendantPaperResponse
+R
+leadership-judge
+defendantPaperResponse
+R
+wlu-admin
+defendantPaperResponse
+R
+wlu-team-leader
+defendantPaperResponse
+R

AuthorisationCaseField/wlu-team-leader.json

UserRoleCaseFieldIDCRUD
+wlu-team-leader
+contactPreferences-lineSeparator
+CR
+wlu-team-leader
+contactPreferences-lineSeparator-bottom
+CR
+wlu-team-leader
+contactPreferences-lineSeparator-phone
+CR
+wlu-team-leader
+contactPreferences-phoneNumber
+CR
+wlu-team-leader
+defendantDetails-lineSeparator
+CR
+wlu-team-leader
+defendantDetails-lineSeparator-address
+CR
+wlu-team-leader
+defendantDetails-lineSeparator-bottom
+CR
+wlu-team-leader
+defendantDetails-lineSeparator-dob
+CR
+wlu-team-leader
+defendantDetails-name
+CR
+wlu-team-leader
+defendantRadioList
+R
+wlu-team-leader
+disputingOtherParts-lineSeparator
+CR
+wlu-team-leader
+disputingOtherParts-lineSeparator-bottom
+CR
+wlu-team-leader
+freeLegalAdvice-lineSeparator
+CR
+wlu-team-leader
+freeLegalAdvice-lineSeparator-bottom
+CR
+wlu-team-leader
+paperResponse_Address
+R
+wlu-team-leader
+paperResponse_ContactPreferences
+R
+wlu-team-leader
+paperResponse_DateOfBirth
+R
+wlu-team-leader
+paperResponse_EmailAddress
+R
+wlu-team-leader
+paperResponse_FirstName
+R
+wlu-team-leader
+paperResponse_FreeLegalAdvice
+R
+wlu-team-leader
+paperResponse_HasMadeCounterClaim
+R
+wlu-team-leader
+paperResponse_LastName
+R
+wlu-team-leader
+paperResponse_PhoneNumber
+R
+wlu-team-leader
+selectDefendant-lineSeparator
+CR
+wlu-team-leader
+selectDefendant-lineSeparator-bottom
+CR

AuthorisationCaseField/wlu-admin.json

UserRoleCaseFieldIDCRUD
+wlu-admin
+contactPreferences-lineSeparator
+CR
+wlu-admin
+contactPreferences-lineSeparator-bottom
+CR
+wlu-admin
+contactPreferences-lineSeparator-phone
+CR
+wlu-admin
+contactPreferences-phoneNumber
+CR
+wlu-admin
+defendantDetails-lineSeparator
+CR
+wlu-admin
+defendantDetails-lineSeparator-address
+CR
+wlu-admin
+defendantDetails-lineSeparator-bottom
+CR
+wlu-admin
+defendantDetails-lineSeparator-dob
+CR
+wlu-admin
+defendantDetails-name
+CR
+wlu-admin
+defendantRadioList
+R
+wlu-admin
+disputingOtherParts-lineSeparator
+CR
+wlu-admin
+disputingOtherParts-lineSeparator-bottom
+CR
+wlu-admin
+freeLegalAdvice-lineSeparator
+CR
+wlu-admin
+freeLegalAdvice-lineSeparator-bottom
+CR
+wlu-admin
+paperResponse_Address
+R
+wlu-admin
+paperResponse_ContactPreferences
+R
+wlu-admin
+paperResponse_DateOfBirth
+R
+wlu-admin
+paperResponse_EmailAddress
+R
+wlu-admin
+paperResponse_FirstName
+R
+wlu-admin
+paperResponse_FreeLegalAdvice
+R
+wlu-admin
+paperResponse_HasMadeCounterClaim
+R
+wlu-admin
+paperResponse_LastName
+R
+wlu-admin
+paperResponse_PhoneNumber
+R
+wlu-admin
+selectDefendant-lineSeparator
+CR
+wlu-admin
+selectDefendant-lineSeparator-bottom
+CR

AuthorisationCaseField/leadership-judge.json

UserRoleCaseFieldIDCRUD
+leadership-judge
+contactPreferences-lineSeparator
+CR
+leadership-judge
+contactPreferences-lineSeparator-bottom
+CR
+leadership-judge
+contactPreferences-lineSeparator-phone
+CR
+leadership-judge
+contactPreferences-phoneNumber
+CR
+leadership-judge
+defendantDetails-lineSeparator
+CR
+leadership-judge
+defendantDetails-lineSeparator-address
+CR
+leadership-judge
+defendantDetails-lineSeparator-bottom
+CR
+leadership-judge
+defendantDetails-lineSeparator-dob
+CR
+leadership-judge
+defendantDetails-name
+CR
+leadership-judge
+defendantRadioList
+R
+leadership-judge
+disputingOtherParts-lineSeparator
+CR
+leadership-judge
+disputingOtherParts-lineSeparator-bottom
+CR
+leadership-judge
+freeLegalAdvice-lineSeparator
+CR
+leadership-judge
+freeLegalAdvice-lineSeparator-bottom
+CR
+leadership-judge
+paperResponse_Address
+R
+leadership-judge
+paperResponse_ContactPreferences
+R
+leadership-judge
+paperResponse_DateOfBirth
+R
+leadership-judge
+paperResponse_EmailAddress
+R
+leadership-judge
+paperResponse_FirstName
+R
+leadership-judge
+paperResponse_FreeLegalAdvice
+R
+leadership-judge
+paperResponse_HasMadeCounterClaim
+R
+leadership-judge
+paperResponse_LastName
+R
+leadership-judge
+paperResponse_PhoneNumber
+R
+leadership-judge
+selectDefendant-lineSeparator
+CR
+leadership-judge
+selectDefendant-lineSeparator-bottom
+CR

AuthorisationCaseField/judge.json

UserRoleCaseFieldIDCRUD
+judge
+contactPreferences-lineSeparator
+CR
+judge
+contactPreferences-lineSeparator-bottom
+CR
+judge
+contactPreferences-lineSeparator-phone
+CR
+judge
+contactPreferences-phoneNumber
+CR
+judge
+defendantDetails-lineSeparator
+CR
+judge
+defendantDetails-lineSeparator-address
+CR
+judge
+defendantDetails-lineSeparator-bottom
+CR
+judge
+defendantDetails-lineSeparator-dob
+CR
+judge
+defendantDetails-name
+CR
+judge
+defendantRadioList
+R
+judge
+disputingOtherParts-lineSeparator
+CR
+judge
+disputingOtherParts-lineSeparator-bottom
+CR
+judge
+freeLegalAdvice-lineSeparator
+CR
+judge
+freeLegalAdvice-lineSeparator-bottom
+CR
+judge
+paperResponse_Address
+R
+judge
+paperResponse_ContactPreferences
+R
+judge
+paperResponse_DateOfBirth
+R
+judge
+paperResponse_EmailAddress
+R
+judge
+paperResponse_FirstName
+R
+judge
+paperResponse_FreeLegalAdvice
+R
+judge
+paperResponse_HasMadeCounterClaim
+R
+judge
+paperResponse_LastName
+R
+judge
+paperResponse_PhoneNumber
+R
+judge
+selectDefendant-lineSeparator
+CR
+judge
+selectDefendant-lineSeparator-bottom
+CR

AuthorisationCaseField/hearing-centre-team-leader.json

UserRoleCaseFieldIDCRUD
+hearing-centre-team-leader
+contactPreferences-lineSeparator
+CR
+hearing-centre-team-leader
+contactPreferences-lineSeparator-bottom
+CR
+hearing-centre-team-leader
+contactPreferences-lineSeparator-phone
+CR
+hearing-centre-team-leader
+contactPreferences-phoneNumber
+CR
+hearing-centre-team-leader
+defendantDetails-lineSeparator
+CR
+hearing-centre-team-leader
+defendantDetails-lineSeparator-address
+CR
+hearing-centre-team-leader
+defendantDetails-lineSeparator-bottom
+CR
+hearing-centre-team-leader
+defendantDetails-lineSeparator-dob
+CR
+hearing-centre-team-leader
+defendantDetails-name
+CR
+hearing-centre-team-leader
+defendantRadioList
+CRU
+hearing-centre-team-leader
+disputingOtherParts-lineSeparator
+CR
+hearing-centre-team-leader
+disputingOtherParts-lineSeparator-bottom
+CR
+hearing-centre-team-leader
+freeLegalAdvice-lineSeparator
+CR
+hearing-centre-team-leader
+freeLegalAdvice-lineSeparator-bottom
+CR
+hearing-centre-team-leader
+paperResponse_Address
+CRU
+hearing-centre-team-leader
+paperResponse_ContactPreferences
+CRU
+hearing-centre-team-leader
+paperResponse_DateOfBirth
+CRU
+hearing-centre-team-leader
+paperResponse_EmailAddress
+CRU
+hearing-centre-team-leader
+paperResponse_FirstName
+CRU
+hearing-centre-team-leader
+paperResponse_FreeLegalAdvice
+CRU
+hearing-centre-team-leader
+paperResponse_HasMadeCounterClaim
+CRU
+hearing-centre-team-leader
+paperResponse_LastName
+CRU
+hearing-centre-team-leader
+paperResponse_PhoneNumber
+CRU
+hearing-centre-team-leader
+selectDefendant-lineSeparator
+CR
+hearing-centre-team-leader
+selectDefendant-lineSeparator-bottom
+CR

AuthorisationCaseField/hearing-centre-admin.json

UserRoleCaseFieldIDCRUD
+hearing-centre-admin
+contactPreferences-lineSeparator
+CR
+hearing-centre-admin
+contactPreferences-lineSeparator-bottom
+CR
+hearing-centre-admin
+contactPreferences-lineSeparator-phone
+CR
+hearing-centre-admin
+contactPreferences-phoneNumber
+CR
+hearing-centre-admin
+defendantDetails-lineSeparator
+CR
+hearing-centre-admin
+defendantDetails-lineSeparator-address
+CR
+hearing-centre-admin
+defendantDetails-lineSeparator-bottom
+CR
+hearing-centre-admin
+defendantDetails-lineSeparator-dob
+CR
+hearing-centre-admin
+defendantDetails-name
+CR
+hearing-centre-admin
+defendantRadioList
+CRU
+hearing-centre-admin
+disputingOtherParts-lineSeparator
+CR
+hearing-centre-admin
+disputingOtherParts-lineSeparator-bottom
+CR
+hearing-centre-admin
+freeLegalAdvice-lineSeparator
+CR
+hearing-centre-admin
+freeLegalAdvice-lineSeparator-bottom
+CR
+hearing-centre-admin
+paperResponse_Address
+CRU
+hearing-centre-admin
+paperResponse_ContactPreferences
+CRU
+hearing-centre-admin
+paperResponse_DateOfBirth
+CRU
+hearing-centre-admin
+paperResponse_EmailAddress
+CRU
+hearing-centre-admin
+paperResponse_FirstName
+CRU
+hearing-centre-admin
+paperResponse_FreeLegalAdvice
+CRU
+hearing-centre-admin
+paperResponse_HasMadeCounterClaim
+CRU
+hearing-centre-admin
+paperResponse_LastName
+CRU
+hearing-centre-admin
+paperResponse_PhoneNumber
+CRU
+hearing-centre-admin
+selectDefendant-lineSeparator
+CR
+hearing-centre-admin
+selectDefendant-lineSeparator-bottom
+CR

AuthorisationCaseField/fee-paid-judge.json

UserRoleCaseFieldIDCRUD
+fee-paid-judge
+contactPreferences-lineSeparator
+CR
+fee-paid-judge
+contactPreferences-lineSeparator-bottom
+CR
+fee-paid-judge
+contactPreferences-lineSeparator-phone
+CR
+fee-paid-judge
+contactPreferences-phoneNumber
+CR
+fee-paid-judge
+defendantDetails-lineSeparator
+CR
+fee-paid-judge
+defendantDetails-lineSeparator-address
+CR
+fee-paid-judge
+defendantDetails-lineSeparator-bottom
+CR
+fee-paid-judge
+defendantDetails-lineSeparator-dob
+CR
+fee-paid-judge
+defendantDetails-name
+CR
+fee-paid-judge
+defendantRadioList
+R
+fee-paid-judge
+disputingOtherParts-lineSeparator
+CR
+fee-paid-judge
+disputingOtherParts-lineSeparator-bottom
+CR
+fee-paid-judge
+freeLegalAdvice-lineSeparator
+CR
+fee-paid-judge
+freeLegalAdvice-lineSeparator-bottom
+CR
+fee-paid-judge
+paperResponse_Address
+R
+fee-paid-judge
+paperResponse_ContactPreferences
+R
+fee-paid-judge
+paperResponse_DateOfBirth
+R
+fee-paid-judge
+paperResponse_EmailAddress
+R
+fee-paid-judge
+paperResponse_FirstName
+R
+fee-paid-judge
+paperResponse_FreeLegalAdvice
+R
+fee-paid-judge
+paperResponse_HasMadeCounterClaim
+R
+fee-paid-judge
+paperResponse_LastName
+R
+fee-paid-judge
+paperResponse_PhoneNumber
+R
+fee-paid-judge
+selectDefendant-lineSeparator
+CR
+fee-paid-judge
+selectDefendant-lineSeparator-bottom
+CR

AuthorisationCaseField/ctsc.json

UserRoleCaseFieldIDCRUD
+ctsc
+contactPreferences-lineSeparator
+CR
+ctsc
+contactPreferences-lineSeparator-bottom
+CR
+ctsc
+contactPreferences-lineSeparator-phone
+CR
+ctsc
+contactPreferences-phoneNumber
+CR
+ctsc
+defendantDetails-lineSeparator
+CR
+ctsc
+defendantDetails-lineSeparator-address
+CR
+ctsc
+defendantDetails-lineSeparator-bottom
+CR
+ctsc
+defendantDetails-lineSeparator-dob
+CR
+ctsc
+defendantDetails-name
+CR
+ctsc
+defendantRadioList
+R
+ctsc
+disputingOtherParts-lineSeparator
+CR
+ctsc
+disputingOtherParts-lineSeparator-bottom
+CR
+ctsc
+freeLegalAdvice-lineSeparator
+CR
+ctsc
+freeLegalAdvice-lineSeparator-bottom
+CR
+ctsc
+paperResponse_Address
+R
+ctsc
+paperResponse_ContactPreferences
+R
+ctsc
+paperResponse_DateOfBirth
+R
+ctsc
+paperResponse_EmailAddress
+R
+ctsc
+paperResponse_FirstName
+R
+ctsc
+paperResponse_FreeLegalAdvice
+R
+ctsc
+paperResponse_HasMadeCounterClaim
+R
+ctsc
+paperResponse_LastName
+R
+ctsc
+paperResponse_PhoneNumber
+R
+ctsc
+selectDefendant-lineSeparator
+CR
+ctsc
+selectDefendant-lineSeparator-bottom
+CR

AuthorisationCaseField/ctsc-team-leader.json

UserRoleCaseFieldIDCRUD
+ctsc-team-leader
+contactPreferences-lineSeparator
+CR
+ctsc-team-leader
+contactPreferences-lineSeparator-bottom
+CR
+ctsc-team-leader
+contactPreferences-lineSeparator-phone
+CR
+ctsc-team-leader
+contactPreferences-phoneNumber
+CR
+ctsc-team-leader
+defendantDetails-lineSeparator
+CR
+ctsc-team-leader
+defendantDetails-lineSeparator-address
+CR
+ctsc-team-leader
+defendantDetails-lineSeparator-bottom
+CR
+ctsc-team-leader
+defendantDetails-lineSeparator-dob
+CR
+ctsc-team-leader
+defendantDetails-name
+CR
+ctsc-team-leader
+defendantRadioList
+R
+ctsc-team-leader
+disputingOtherParts-lineSeparator
+CR
+ctsc-team-leader
+disputingOtherParts-lineSeparator-bottom
+CR
+ctsc-team-leader
+freeLegalAdvice-lineSeparator
+CR
+ctsc-team-leader
+freeLegalAdvice-lineSeparator-bottom
+CR
+ctsc-team-leader
+paperResponse_Address
+R
+ctsc-team-leader
+paperResponse_ContactPreferences
+R
+ctsc-team-leader
+paperResponse_DateOfBirth
+R
+ctsc-team-leader
+paperResponse_EmailAddress
+R
+ctsc-team-leader
+paperResponse_FirstName
+R
+ctsc-team-leader
+paperResponse_FreeLegalAdvice
+R
+ctsc-team-leader
+paperResponse_HasMadeCounterClaim
+R
+ctsc-team-leader
+paperResponse_LastName
+R
+ctsc-team-leader
+paperResponse_PhoneNumber
+R
+ctsc-team-leader
+selectDefendant-lineSeparator
+CR
+ctsc-team-leader
+selectDefendant-lineSeparator-bottom
+CR

AuthorisationCaseField/circuit-judge.json

UserRoleCaseFieldIDCRUD
+circuit-judge
+contactPreferences-lineSeparator
+CR
+circuit-judge
+contactPreferences-lineSeparator-bottom
+CR
+circuit-judge
+contactPreferences-lineSeparator-phone
+CR
+circuit-judge
+contactPreferences-phoneNumber
+CR
+circuit-judge
+defendantDetails-lineSeparator
+CR
+circuit-judge
+defendantDetails-lineSeparator-address
+CR
+circuit-judge
+defendantDetails-lineSeparator-bottom
+CR
+circuit-judge
+defendantDetails-lineSeparator-dob
+CR
+circuit-judge
+defendantDetails-name
+CR
+circuit-judge
+defendantRadioList
+R
+circuit-judge
+disputingOtherParts-lineSeparator
+CR
+circuit-judge
+disputingOtherParts-lineSeparator-bottom
+CR
+circuit-judge
+freeLegalAdvice-lineSeparator
+CR
+circuit-judge
+freeLegalAdvice-lineSeparator-bottom
+CR
+circuit-judge
+paperResponse_Address
+R
+circuit-judge
+paperResponse_ContactPreferences
+R
+circuit-judge
+paperResponse_DateOfBirth
+R
+circuit-judge
+paperResponse_EmailAddress
+R
+circuit-judge
+paperResponse_FirstName
+R
+circuit-judge
+paperResponse_FreeLegalAdvice
+R
+circuit-judge
+paperResponse_HasMadeCounterClaim
+R
+circuit-judge
+paperResponse_LastName
+R
+circuit-judge
+paperResponse_PhoneNumber
+R
+circuit-judge
+selectDefendant-lineSeparator
+CR
+circuit-judge
+selectDefendant-lineSeparator-bottom
+CR

CaseEvent/defendantPaperResponse.json

CallBackURLAboutToStartEventDescriptionEndButtonLabelEventEnablingConditionIDNamePostConditionStatePreConditionState(s)PublishShowEventNotesShowSummary
+http://localhost:3206/callbacks/about-to-start?eventId=defendantPaperResponse
+Paper response - Defence
+Submit response
+featureFlags.release1dot3Enabled="YES" AND featureFlags.caseWorkerEventsEnabled="YES"
+defendantPaperResponse
+Paper response - Defence
+*
+ALL_FINAL_ORDERS_ISSUED;BREATHING_SPACE;CASE_ISSUED;CASE_PROGRESSION;CASE_STAYED;CLOSED;DECISION_OUTCOME;HEARING_READINESS;JUDICIAL_REFERRAL;PREPARE_FOR_HEARING_CONDUCT_HEARING
+N
+N
+Y

CaseEventToFields/defendantPaperResponse.json

CaseEventIDCaseFieldIDDisplayContextPageColumnNumberPageDisplayOrderPageFieldDisplayOrderPageIDPageLabel
+defendantPaperResponse
+contactPreferences-lineSeparator
+READONLY
+1
+4
+1
+contactPreferences
+2. Contact Preferences
+defendantPaperResponse
+contactPreferences-lineSeparator-bottom
+READONLY
+1
+4
+7
+contactPreferences
+2. Contact Preferences
+defendantPaperResponse
+contactPreferences-lineSeparator-phone
+READONLY
+1
+4
+4
+contactPreferences
+2. Contact Preferences
+defendantPaperResponse
+contactPreferences-phoneNumber
+READONLY
+1
+4
+5
+contactPreferences
+2. Contact Preferences
+defendantPaperResponse
+defendantDetails-lineSeparator
+READONLY
+1
+3
+1
+defendantDetails
+1. Defendant’s details
+defendantPaperResponse
+defendantDetails-lineSeparator-address
+READONLY
+1
+3
+7
+defendantDetails
+1. Defendant’s details
+defendantPaperResponse
+defendantDetails-lineSeparator-bottom
+READONLY
+1
+3
+9
+defendantDetails
+1. Defendant’s details
+defendantPaperResponse
+defendantDetails-lineSeparator-dob
+READONLY
+1
+3
+5
+defendantDetails
+1. Defendant’s details
+defendantPaperResponse
+defendantDetails-name
+READONLY
+1
+3
+2
+defendantDetails
+1. Defendant’s details
+defendantPaperResponse
+defendantRadioList
+MANDATORY
+1
+1
+2
+selectDefendant
+Select defendant
+Y
+defendantPaperResponse
+disputingOtherParts-lineSeparator
+READONLY
+1
+5
+1
+disputingOtherParts
+15. Disputing other parts of the claim
+defendantPaperResponse
+disputingOtherParts-lineSeparator-bottom
+READONLY
+1
+5
+3
+disputingOtherParts
+15. Disputing other parts of the claim
+defendantPaperResponse
+freeLegalAdvice-lineSeparator
+READONLY
+1
+2
+1
+freeLegalAdvice
+Free legal advice
+defendantPaperResponse
+freeLegalAdvice-lineSeparator-bottom
+READONLY
+1
+2
+3
+freeLegalAdvice
+Free legal advice
+defendantPaperResponse
+paperResponse_Address
+COMPLEX
+1
+3
+8
+defendantDetails
+1. Defendant’s details
+Y
+defendantPaperResponse
+paperResponse_ContactPreferences
+OPTIONAL
+1
+4
+2
+contactPreferences
+2. Contact Preferences
+Y
+defendantPaperResponse
+paperResponse_DateOfBirth
+OPTIONAL
+1
+3
+6
+defendantDetails
+1. Defendant’s details
+Y
+defendantPaperResponse
+paperResponse_EmailAddress
+OPTIONAL
+paperResponse_ContactPreferencesCONTAINS"BY_EMAIL"
+1
+4
+3
+contactPreferences
+2. Contact Preferences
+Y
+defendantPaperResponse
+paperResponse_FirstName
+OPTIONAL
+1
+3
+3
+defendantDetails
+1. Defendant’s details
+Y
+defendantPaperResponse
+paperResponse_FreeLegalAdvice
+OPTIONAL
+1
+2
+2
+freeLegalAdvice
+Free legal advice
+Y
+defendantPaperResponse
+paperResponse_HasMadeCounterClaim
+OPTIONAL
+1
+5
+2
+disputingOtherParts
+15. Disputing other parts of the claim
+Y
+defendantPaperResponse
+paperResponse_LastName
+OPTIONAL
+1
+3
+4
+defendantDetails
+1. Defendant’s details
+Y
+defendantPaperResponse
+paperResponse_PhoneNumber
+OPTIONAL
+1
+4
+6
+contactPreferences
+2. Contact Preferences
+Y
+http://localhost:3206/callbacks/mid-event?page=selectDefendant&eventId=defendantPaperResponse
+defendantPaperResponse
+selectDefendant-lineSeparator
+READONLY
+1
+1
+1
+selectDefendant
+Select defendant
+defendantPaperResponse
+selectDefendant-lineSeparator-bottom
+READONLY
+1
+1
+3
+selectDefendant
+Select defendant

FixedLists/ContactPreferencesSelection.json

IDListElementListElementCode
+ContactPreferencesSelection
+By email
+BY_EMAIL
+ContactPreferencesSelection
+By post
+BY_POST

…nt, ui inconsistencies and add validation for defendant submitted
# Conflicts:
#	src/main/java/uk/gov/hmcts/reform/pcs/ccd/event/EventId.java
}

private VerticalYesNo isNameConfirmed(String firstName, String lastName, PartyEntity partyEntity) {
if (StringUtils.isBlank(firstName) & StringUtils.isBlank(lastName)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think you mean &&

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed


private final DefendantResponseRepository defendantResponseRepository;
private static final String ERROR_MESSAGE = "This defendant has already submitted a response."
+ " If the have filed a further response please use the upload document function.";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the have ... should be "If they have..."?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed typo

return defendantResponseRepository.existsByClaimPcsCaseCaseReferenceAndPartyIdamId(caseReference, userId);
}

private ClaimEntity getClaimEntity(long caseReference) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nothing seems to call this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed redundant code

}

public static State[] paperResponseDefendant() {
return new State[] {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should just call createFlags() for now

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed


private final DefendantResponseRepository defendantResponseRepository;
private static final String ERROR_MESSAGE = "This defendant has already submitted a response."
+ " If the have filed a further response please use the upload document function.";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: "If the have filed" -> "If they have filed".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed typo

private String buildPartyDisplayName(PartyEntity partyEntity) {
if (partyEntity.getNameKnown() == VerticalYesNo.NO) {
return "Person unknown";
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor partyService.getPartyName(partyEntity) already has this check.

(I can update this PR and check it)

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants