Skip to content

HDPI-7307: Email following successful cc payment - #2334

Open
nicole-samuels wants to merge 21 commits into
HDPI-6643_counterclaim_lr_paymentfrom
HDPI-7307-Email-following-successful-CC-payment
Open

HDPI-7307: Email following successful cc payment#2334
nicole-samuels wants to merge 21 commits into
HDPI-6643_counterclaim_lr_paymentfrom
HDPI-7307-Email-following-successful-CC-payment

Conversation

@nicole-samuels

@nicole-samuels nicole-samuels commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Jira link

See HDPI-7307

Change description

Added a base personalisation for a legal representative and introduced counterclaim success notification for the legal representative.

Testing done

Manual testing in progress

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

@nicole-samuels nicole-samuels self-assigned this Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

CCD diff summary

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

No change

@nicole-samuels
nicole-samuels changed the base branch from master to HDPI-5794_Update_LR_contact_details August 6, 2026 11:27
…il-following-successful-CC-payment

# Conflicts:
#	src/main/java/uk/gov/hmcts/reform/pcs/ccd/event/respondpossessionclaim/strategy/LegalRepSubmissionEventStrategy.java
#	src/test/java/uk/gov/hmcts/reform/pcs/ccd/event/RespondPossessionClaimTest.java
#	src/test/java/uk/gov/hmcts/reform/pcs/ccd/event/respondpossessionclaim/strategy/LegalRepSubmissionEventStrategyTest.java
@hmcts-jenkins-j-to-z
hmcts-jenkins-j-to-z Bot requested a deployment to preview August 7, 2026 08:41 Abandoned
@nicole-samuels
nicole-samuels marked this pull request as ready for review August 7, 2026 10:04
@nicole-samuels
nicole-samuels requested review from a team as code owners August 7, 2026 10:04
@nicole-samuels
nicole-samuels requested review from linusnorton and removed request for a team August 7, 2026 10:04
@nicole-samuels
nicole-samuels requested review from jonathanditcher-solirius and sk-karimi1 and removed request for a team August 7, 2026 10:04
}

return submitResponse;
}

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 - what was the reason for splitting this out into a separate local variable?

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.

I've reverted it back to an inline return

Comment thread src/main/java/uk/gov/hmcts/reform/pcs/notify/model/NotificationRecipient.java Outdated
: formatNameUpperForNotification(primaryClaimant.getFirstName(), primaryClaimant.getLastName());

String primaryDefendantName = getDefendantName(
primaryDefendant.getNameKnown() != null && primaryDefendant.getNameKnown().toBoolean(),

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 - you could use YesOrNoConverter.toBoolean() for this, which is null safe.

@RequestHeader(value = "ServiceAuthorization") String serviceAuthorization,
@RequestParam Integer defendantResponseId) {

// legalRepSubmissionEventStrategy.process(null);

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.

Can this be removed?

Comment thread src/main/resources/application.yaml Outdated
api-url: ${NOTIFY_URL:http://localhost:8083}
api-key: ${PCS_NOTIFY_API_KEY:AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA}
# PLEASE DON'T CHECK IN
api-key: lucastestkey-d83dc897-57d7-4093-891e-2367b79f22a9-cf2f5419-2568-4e2d-8510-bf207c90810b

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 shouldn't have been checked in. You can set the PCS_NOTIFY_API_KEY environment variable instead in your run configuration

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.

Noted, this has been removed

…aced email template for legal rep, removed unused imports
@nicole-samuels
nicole-samuels changed the base branch from HDPI-5794_Update_LR_contact_details to HDPI-6643_counterclaim_lr_payment August 12, 2026 13:09
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.

3 participants