PO-3667 handle nullable collection order date on defendant account update#1682
Merged
jonathanDuffy merged 3 commits intomasterfrom Apr 8, 2026
Conversation
f3baa23 to
bbe5363
Compare
Contributor
|
Approved from frontend perspective. Everything looks good for courts and collection order Requests |
DeclanClarkeCGI
approved these changes
Apr 8, 2026
bbe5363 to
14fc689
Compare
jonathanDuffy
approved these changes
Apr 8, 2026
…updated collection_order_date handling to auto-set when the flag is true and clear when false.
14fc689 to
6b26b21
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.
JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/PO-3667
Change description
•Update updateDefendantAccount collection order handling in Opal mode so collection_order_date defaults to today when collection_order_flag is true and the date is missing.
•Update Legacy-mode request mapping so the same collection order rules are applied before sending the gateway request.
•Clear collection_order_date whenever collection_order_flag is false, regardless of any supplied date.
•Relax the PATCH request contract so collection_order_date is no longer required for collection order updates.
•Add unit and integration coverage for the new collection order behaviour.
•Manually verified:
◦collection_order_flag=true with no date returns 200 and populates today’s date.
◦collection_order_flag=false with a supplied date returns 200 and clears the date to null.
•Align enforcement_court PATCH request contract with existing court ID usage by changing court_id to int64, so large court IDs no longer fail during request parsing.
Does this PR introduce a breaking change? (check one with "x")