From 570fcd9c5a82ff837dd27fcf904427031825b67e Mon Sep 17 00:00:00 2001 From: German-A-Amoros <152271535+German-A-Amoros@users.noreply.github.com> Date: Wed, 12 Jun 2024 18:49:34 +0200 Subject: [PATCH] CIV-14025 Caseworker screen: Settle this claim (#4474) * Add new event and permissions * Remove case worker permission * revert changes * Add new event * CIV-14025 Added new fields * CIV-14025 Added submit event * CIV-14025 Fix comments * CIV-14025 Renamed JO files --------- Co-authored-by: ShwetaTandel-hmcts Co-authored-by: ShwetaTandel-hmcts <130586258+ShwetaTandel-hmcts@users.noreply.github.com> Co-authored-by: Azam <106387766+Azam-Hmcts@users.noreply.github.com> --- ...onCaseField-SettleDiscontinue-nonprod.json | 28 +++++++++++++++++++ .../UserEvents-SettleDiscontinue-nonprod.json | 2 ++ ...SettleClaim-SettleDiscontinue-nonprod.json | 25 +++++++++++++++++ .../CaseField-SettleDiscontinue-nonprod.json | 19 +++++++++++++ ...ettleReason-SettleDiscontinue-nonprod.json | 14 ++++++++++ 5 files changed, 88 insertions(+) create mode 100644 ccd-definition/AuthorisationCaseField/AuthorisationCaseField-SettleDiscontinue-nonprod.json create mode 100644 ccd-definition/CaseEventToFields/SettleClaim-SettleDiscontinue-nonprod.json create mode 100644 ccd-definition/CaseField/CaseField-SettleDiscontinue-nonprod.json create mode 100644 ccd-definition/FixedLists/JudgmentOnline/SettleReason-SettleDiscontinue-nonprod.json diff --git a/ccd-definition/AuthorisationCaseField/AuthorisationCaseField-SettleDiscontinue-nonprod.json b/ccd-definition/AuthorisationCaseField/AuthorisationCaseField-SettleDiscontinue-nonprod.json new file mode 100644 index 0000000000..7d7e8f1940 --- /dev/null +++ b/ccd-definition/AuthorisationCaseField/AuthorisationCaseField-SettleDiscontinue-nonprod.json @@ -0,0 +1,28 @@ +[ + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "partiesNames", + "AccessControl": [ + { + "UserRoles": [ + "caseworker-civil-admin", + "caseworker-civil-staff" + ], + "CRUD": "CRU" + } + ] + }, + { + "CaseTypeID": "CIVIL", + "CaseFieldID": "settleReason", + "AccessControl": [ + { + "UserRoles": [ + "caseworker-civil-admin", + "caseworker-civil-staff" + ], + "CRUD": "CRU" + } + ] + } +] diff --git a/ccd-definition/CaseEvent/User/UserEvents-SettleDiscontinue-nonprod.json b/ccd-definition/CaseEvent/User/UserEvents-SettleDiscontinue-nonprod.json index db9e9aa307..f7036c1a9f 100644 --- a/ccd-definition/CaseEvent/User/UserEvents-SettleDiscontinue-nonprod.json +++ b/ccd-definition/CaseEvent/User/UserEvents-SettleDiscontinue-nonprod.json @@ -13,6 +13,8 @@ "ShowEventNotes": "N", "EndButtonLabel": "Settle claim", "CallBackURLAboutToStartEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-start", + "CallBackURLAboutToSubmitEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-submit", + "CallBackURLSubmittedEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/submitted", "RetriesTimeoutAboutToStartEvent": 0 }, { diff --git a/ccd-definition/CaseEventToFields/SettleClaim-SettleDiscontinue-nonprod.json b/ccd-definition/CaseEventToFields/SettleClaim-SettleDiscontinue-nonprod.json new file mode 100644 index 0000000000..f24c824eef --- /dev/null +++ b/ccd-definition/CaseEventToFields/SettleClaim-SettleDiscontinue-nonprod.json @@ -0,0 +1,25 @@ +[ + { + "CaseTypeID": "CIVIL", + "CaseEventID": "SETTLE_CLAIM", + "CaseFieldID": "partiesNames", + "PageID": "SettleClaim", + "PageLabel": "Reason for settlement", + "PageDisplayOrder": 1, + "PageFieldDisplayOrder": 1, + "PageColumnNumber": 1, + "DisplayContext": "READONLY", + "ShowSummaryChangeOption": "N" + }, + { + "CaseTypeID": "CIVIL", + "CaseEventID": "SETTLE_CLAIM", + "CaseFieldID": "settleReason", + "PageFieldDisplayOrder": 2, + "DisplayContext": "MANDATORY", + "PageID": "SettleClaim", + "PageDisplayOrder": 1, + "PageColumnNumber": 1, + "ShowSummaryChangeOption": "N" + } +] diff --git a/ccd-definition/CaseField/CaseField-SettleDiscontinue-nonprod.json b/ccd-definition/CaseField/CaseField-SettleDiscontinue-nonprod.json new file mode 100644 index 0000000000..da98daab37 --- /dev/null +++ b/ccd-definition/CaseField/CaseField-SettleDiscontinue-nonprod.json @@ -0,0 +1,19 @@ +[ + { + "CaseTypeID": "CIVIL", + "ID": "partiesNames", + "Label": "**${caseNameHmctsInternal}**", + "FieldType": "Label", + "SecurityClassification": "Public", + "Searchable": "N" + }, + { + "CaseTypeID": "CIVIL", + "ID": "settleReason", + "Label": "How has the claim been settled?", + "FieldType": "FixedRadioList", + "FieldTypeParameter": "SettleReason", + "SecurityClassification": "Public", + "Searchable": "N" + } +] diff --git a/ccd-definition/FixedLists/JudgmentOnline/SettleReason-SettleDiscontinue-nonprod.json b/ccd-definition/FixedLists/JudgmentOnline/SettleReason-SettleDiscontinue-nonprod.json new file mode 100644 index 0000000000..7adb895ef8 --- /dev/null +++ b/ccd-definition/FixedLists/JudgmentOnline/SettleReason-SettleDiscontinue-nonprod.json @@ -0,0 +1,14 @@ +[ + { + "ID": "SettleReason", + "ListElementCode": "JUDGE_ORDER", + "ListElement": "Settled following judge's order", + "DisplayOrder": 1 + }, + { + "ID": "SettleReason", + "ListElementCode": "CONSENT_ORDER", + "ListElement": "Consent order approved", + "DisplayOrder": 2 + } +]