Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RIA-7331 Internal appellant ftpa decided - partially granted document #676

Conversation

Ryan-Nesbitt
Copy link
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/RIA-7331

Change description

  • New template for partially granted scenario (Appellant FTPA decided)
  • Generator logic updated

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[X] No

@colmlynch60 colmlynch60 merged commit c6f3893 into ia-case-documents-api-naba Sep 1, 2023
4 checks passed
@colmlynch60 colmlynch60 deleted the RIA-7331_appellant_ftpa_decided_partially_granted branch September 1, 2023 13:52
colmlynch60 added a commit that referenced this pull request Apr 24, 2024
* RIA-6455: Added new Hearing centre - Harmondsworth (#518)

* RIA-6455: Added new Hearing centre - Harmondsworth

* Fix vulnerabilities

* Added Location (#519)

* Added Location

* Suppressions

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6491: Give admin officer access to edit appeal post submission (#521)

* RIA-6491: Give admin officer access to edit appeal post submission

* RIA-6491: Address dependency vulnerabilities

* RIA-6529: Generate Hearing Notice after listing for ADA cases (#522)

* RIA-6529: Generate Hearing Notice after listing for ADA cases

* Suppress vulnerabilities

* Added Yarls Wood as hearing centre and also its address (#524)

* Ria 6424 appeal submission summary (#527)

* Added some defs to extract case data
Added some puts to copy case data to field values which docmosis can use to generate the appeal submission summary

* Modified tests

* Formatted for sonar scan

* Final changes

* Refactored AppealSubmissionTemplate and added logic for displaying removal order date and time

* Added tests for detained fields and removal order date

* Formatted import and method line seperations for serenity checks

* Added CVE suppression

* Changed where appelantInDetention defaults to YesOrNo.NO

* Moved the parsing of complex asylum case fields (nomsNumber, dateCustodialSentence & otherDetentionFacilityName, to a dedicated method. Modified tests to cover more scenarios and make the tests more robust by checking all other relevant fields in the same flow.

* Added assertion to check size of templateFieldValues

* Bundled common fields together and setting Mockito strictness to lenient

* Added suppressions

* RIA-6424: Fix the TypeReference class for the field - 'hasPendingBailApplications' (#528)

- Changed from YesOrNo type to BailApplicationStatus type.
- update relevant unit tests.

* Added guards in event nomsNumber, releaseDate & removalOrderDate are empty strings (#530)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Ria 6424 (#531)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Ria 6564 hearing notice edited ada (#532)

* RIA-6564 - Adding hearing notice document generation for ADA cases

* RIA-6564 - Checkstyle

* RIA-6564 - Adding suppression

* Ria 6685 date decision letter (#545)

* RIA-6685 Added logic for Date decision letter to appear in Appeal template

* Formatting changes and tests

* Fixed tests

* added decisionLetterReceivedDate test

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6685-fixed-test (#546)

Co-authored-by: Jamie <jamiemurphy@version1.com>

* Ria 6605 ada suitability document api (#547)

* Saving work

* Saving changes

* Saving work before a forced update

* Latest changes

* latest changes

* Added new template

* Rebased

* Added ADASuitabilityReviewDecision entity. Added suitability review, reason and judge to AsylumCaseDefinition. Added AdaSuitability document tag. Added suitability review event. Created pre-submit handler to generate ada suitability document. Added AdaSuitability to bundleOrder. Created new AdaSuitabilityTemplate. Added Adasuitability bean to DocumentCreatorConfiguration. Added AdaSuitabilityDocument metadata to application.yml. Created AdaSuitabilityTemplateTest.

* Resolved comments in PR specifically regarding extra line seperations and variable name formatting

* Added functional test for ADA suitability document generation

* Adding system credentials and appropriate method to generate headers for pipeline build failures.

* Fix for failing functional test: RIA-5778-end-appeal-automatically-notice-document.json

* RIA-6612: Update Bundling events to include Ada suitability review do… (#549)

* RIA-6612: Update Bundling events to include Ada suitability review document

- new document added under section of Tribunal Documents.
- added functional and unit tests.

* Update owasp.dependencyCheck

* Updated 'after' method call in Jenkinfile*

* RIA-6694-Admin-Submit-Appeal (#551)

* RIA-6694-Admin-Submit-Appeal

* fixed state test

---------

Co-authored-by: Jamie <jamiemurphy@version1.com>
Co-authored-by: Dbarnes-v1 <99024336+Dbarnes-v1@users.noreply.github.com>

* RIA-6700 - Allowing access to editAppeal for Admin users (#552)

* RIA-6721 Added isAdmin field to templateFieldValues in appeal submission summary template. (#554)

Added isAdmin field to AsylumCaseDefinition.
Updated unit tests.

* RIA-6702 - Internal case creation adding access to the following even… (#553)

* RIA-6702 - Internal case creation adding access to the following events for Admins:

	1. makeAnApplication
	2. draftHearingRequirements
	3. buildCase
	4. submitCase
	5. uploadAdditionalEvidence
	6. applyForFTPAAppellant
	7. requestFeeRemission

* RIA-6702 - Updating unit test

* RIA-6702 - Suppression

* RIA-6873 appeal summary changes (#555)

* RIA-6873_appeal_summary_changes

* Charts java version upgraded

* Adding new suppression

* Change HAS_OTHER_APPEALS field type with new object class

* Ria 6844 Add date to ADA suitability document (#556)

* RIA-6844 Added date to ADA suitability document. Updated unit test.

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-6560 - Functional tests improvements (#568)

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Suppress CVE-2023-20863 (#570)

* Rebase from Master (#571)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. DocumentManagementUploader is updated but this class is not used or ex
tended by any other class

* update scanbase packages

* update gradle for test

* suppressing org.yaml:snakeyaml:1.26

* update tvtStringProvider

* update tvtStringProvider

* fix build failures

* fix build failures

* fix build failures

* Updates to fix build failures

* Updates to fix secure doc store client

* Bumping chart version/ fixing aliases

* Updates to fix build failures

* Updates to fix build failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to suppress cves to allow build to happen

* fix for failing gradle build

* RIA-5804: reload jenkins build

* Bumping chart version/ fixing aliases

* RIA-5804: fixed vulnerabilities

* RIA-5804: upgraded java chart version

---------

Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>

* Update suppressions.xml (#557)

* To update azurerm version for terraform (#558)

* Update state.tf

* Update .terraform-version

* Update variables.tf

* Update main.tf

* Update main.tf

* Revert "To update azurerm version for terraform (#558)" (#559)

This reverts commit a90efa41ddaa7b71f143c038f2355c4100e8a152.

* Revert "Update suppressions.xml (#557)" (#560)

This reverts commit 247256adf152dd85bd2f0dc3b3eb216478ff77a5.

* Revert "fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)" (#561)

This reverts commit 52eab14c22caa2398868bf623ffef1c9de6540bc.

* To revert cdam changes from production (#562)

* Update .terraform-version

* Update main.tf

* Update state.tf

* Update variables.tf

* Update suppressions.xml

* Update Chart.yaml

* Update suppressions.xml

* Bumping chart version/ fixing aliases

* Update Chart.yaml

* Update suppressions.xml

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update Dockerfile (#565)

* Update Dockerfile

* Update Dockerfile

* Update suppressions.xml

* Updated suppressions

---------

Co-authored-by: addison-jephtah <108927648+addison-jephtah@users.noreply.github.com>
Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>
Co-authored-by: mokainos <72137340+mokainos@users.noreply.github.com>

* Updated dependencies to remove suppressed CVEs (#564) (#573)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>
Co-authored-by: mcareyma <matthew.carey@version1.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7043 add NOTICE_OF_DECISION_UT_TRANSFER document tag (#576)

* RIA-7043
* Added NOTICE_OF_DECISION_UT_TRANSFER enum to DocumentTag.java

* RIA-7043
* Updated DocumentTagTest.java

* RIA-7043
* Updated document bundle configs

* Supressed CVE-2023-28709 (#580)

* Added new line character to kick off new build on pipeline (#582)

* RIA-7158 request case building notification attachment letter (#583)

* * Added powermock to build.gradle which is used in testing
* Added template for internal cases for FTs
* Added requestCaseBuilding event to enums
* Added NOTIFICATION_ATTACHMENT_DOCUMENTS to asylumCase to store new AIP notification attachment docs
* Added AdaListCase direction tag to fix bug where the direction cannot be parsed as it's not in the list of DirectionTag enums
* Added requestCaseBuilding Doc tag
* Updated bundleOrder with the new DocTag
* Added holidaydates service
* Added DueDateService
* Added new handler/docGenerator for requestCaseBuilding event for internal ADA cases
* Created new template for the new handler/docGenerator
* Added asylumcaseutils
* Added internalAdaBuildCase bean to DocumentCreatorConfiguration for the above new handler/template
* Updated CustomerServicesProvider with new email/telephone for internal ADA cases
* Added internalAdaBuildCaseDocument metadata to application.yml. Also gave CO permission for requestCaseBuilding event and added internal ADA contact details
* Added unit tests for above
* Added FT for LO requestCaseBuilding to verify doc generated

* RIA-7158
* Moved the deconstruction of directions to AsylumCaseUtils to make it generalised for future use
* Added utility class to format dates
* Updated tests
* Added comment as per PR review feedback

* Added suppression to make CI/CD pipeline pass (#584)

* RIA-7158 (#585)

* Formatted date

* Update suppressions.xml

force build

* Update minimal-aip-appeal-submitted.json

* Update minimal-appeal-submitted.json

* Update suppressions.xml

* Update suppressions.xml

* RIA-7175 Internal ADA suitability document - unsuitable (#593)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Suppress CVE-2023-35116 and CVE-2023-2976

* Revert "RIA-7175 Internal ADA suitability document - unsuitable (#593)" (#594)

This reverts commit 8d9236e8d0b9c89ac23bee6c4279d4d07b9c8c96.

* RIA-7174 ADA suitability document - suitable (#596)

* RIA-7174 ADA suitability notification doc for suitable decision

* RIA-7174 Suppressing CVE-2023-35116

* RIA-7174 Changes from code review, some refactoring work also

* RIA-7174
* Removed common method and put it back into the template as a private method.

* RIA-7174 Added empty line at end of functional test

---------

Co-authored-by: FarukH <hussain.faruk@hmcts.net>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7175 internal ada suitability unsuitable document (#595)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Fixed formatting issues after rebase branch

* RIA-7172: Generate letter when 'HO Request Review' event is triggered (#597)

* RIA-7172: Generate letter when 'HO Request Review' ebent is triggered

- add the new letter in the Notification_letter collection.
- new tag added.

* RIA-7172: Fix Functional test

* RIA-7172: Trigger letter generation only for ADA

* RIA-7212 Internal ADA Appeal decided, allowed document generation (#598)

* RIA-7212 Internal ADA Appeal decided, allowed document generation

* RIA-7212 Fixed unit tests after rebase

* RIA-7212 Tidying up code using common methods

* RIA-7212 Refactor packages

* Ria 7540 dynamic internal email/tel (#599)

* RIA-7540 Updated customer service provider to return internal case dynamic email/tel

* RIA-7540 updated HoReviewEvidenceLetterTemplate to get fetch dynamic email and tel

* RIA-7540 updated InternalAdaDecisionsAndReasonsAllowedLetterTemplate to get fetch dynamic email and tel

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7174 Refactor package location (#600)

* RIA-7175 Refactor of package (#601)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appea… (#605)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appeal Response' event

- added new user for functional test - HomeOfficeLart
- added new entity - AppealReviewOutcome.

* RIA-7198: Fix customer services contact info methods

* RIA-7198: Fix unit tests

* RIA-7198: Fix functional test for 'end appeal automatically' event

* RIA-7198: Added system env variable to secret mapping for the lart user credentials

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismisse… (#604)

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismissed - ADA (Letter) template generation, tests

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Fixed code styles

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsReasonsLetterAllowedGenerator(and Dismissed) refactored into one generic class with conditions, tests fixed as well

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsAndReasonsDismissedLetterTemplate refactored dueDate code lines

* RIA-7200 (#602)

* Added new template for hearing bundle ready letter
* Added new handlers and functionality to generate this letter AFTER generate hearing bundle event when async stitching bundle event is implicitly called and is successful
* Added unit/functional tests

* RIA-7174 Adding new template vars to template (#607)

* RIA-7174 Adding new template vars to template

* RIA-7174 Functional test reworked to add directions

* RIA-7174 Another functional test rework

* RIA-7538 Updated config and handler to handle internal case detained non ADA document generation (#610)

* RIA-7606_change_customer_service_mail (#611)

* RIA-7606_change_customer_service_mail: Fix customer service mail in application.yml

* RIA-7606_change_customer_service_mail: Fix customer service mail in InternalDetGenerateHearingBundleTemplateTest

* RIA-7215 Updated template to handle detained non-ada letter (#612)

* RIA-7200 Fix hearing centre name (#613)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7218 Allow document generation for all detained cases (#615)

* RIA-7218 Allow document generation for all detained cases

* RIA-7218 Functional test fixed

* RIA-7159 Request case building detained letter generation (#616)

* RIA-7159: WIP

- Used one generator for for both detained and non-detained letter
  generations

* RIA-7159 Final changes. tests and checkstyle changes

* RIA-7159 Removing redundant unit tests

---------

Co-authored-by: Neha Aggarwal <neha.aggarwal@version1.com>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7159 Rework of Non-ADA template to reduce duplication (#619)

* RIA-7548_internal_appeal_submission_non_ada (#618)

* RIA-7548_internal_appeal_submission_non_ada: Add appeal submission template for internal, non ada, detained only cases

* RIA-7548_internal_appeal_submission_non_ada: styles fix

* RIA-7548_internal_appeal_submission_non_ada: Add document tag, fix tests for this tag

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Fix condition AsylumCase definition in AppealSubmissionCreator

* RIA-7548_internal_appeal_submission_non_ada: Bundle sort tests fix

* RIA-7216 Added appeal decided dismissed detained non ADA document templates (#622)

* Update suppressions.xml

* Update suppressions.xml

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record ou… (#623)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed (#624)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7552 appeal can proceed (#626)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7554 directed to upload bundle (#628)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* Ria 7554 directed to upload bundle (#629)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#630)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#631)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-TASK Merged master changes to Naba - documents-api (#614)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* Fixed tests

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7582 non_payment_end_appeal (#637)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7582_non_payment_end_appeal: Add template, generator, configuration, Asylum definitions for remission type, tests

* RIA-7582_non_payment_end_appeal: Add RemissionType test

* RIA-7582_non_payment_end_appeal: Fix application properties document fileName and functional test 7582

* RIA-7580 (#638)

* Added new handler, template and bean config for internal detained non-ada appeal fee letter with no remissions
* Imported AppealType class from case-api
* Updated existing unit tests (State, BundleOrder & DocumentTag)
* Added unit tests and FT

* RIA-7581 Added internal detained mark as paid letter (#639)

* RIA-7618 document remission partially approved rejected (#641)

* RIA-7618 Initial document changes before rebase

* RIA-7618 Final refactored changes after rebasing

* RIA-7618 Utils method change

* RIA-7618 Adding unit test for RemissionDecision class

* RIA-7618 checkstyle test fix

* RIA-7556 internal det ho review maintained (#640)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7556 init commit

* RIA-7556_internal_det_ho_review_maintaned: Add tests unit/functional, update application.yml for new event and fix document extension in application.yml

* RIA-7556_internal_det_ho_review_maintaned: Add tests for new event

* RIA-7556_internal_det_ho_review_maintaned: Fix on dueDate in template and test for this template

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Adding detenction

---------

Co-authored-by: ThomasKKC <thomas.cheong@version1.com>

* RIA-7559 DET letter case listing detained (#642)

* RIA-7559 Generator and template for doc generation

* RIA-7559 internal detained list case letter generation

* RIA-7559 document creator values updated to correct document

* RIA-7559 functional test added

* RIA-7559 append document to notifications attachments group

* RIA-7559 functional test fix

* RIA-7559 Checkstyle and unit test fixes for pipeline

* RIA-7557 Internal detained review HO response decision withdrawn letter generation (#643)

* RIA-7557
* Added functionality for new letter generation when LO requests AIP to review HO response
* Added new doc tag for the new letter
* Refactored RIA-7556
* Added/updated unit/FTs

* Rebasing

* RIA-7557
* Updated FT

* RIA-7561 - Added handler to generate letter when 'Request Hearing Requ… (#644)

* RIA-7561: Added handler to generate letter when 'Request Hearing Requirements' Event is triggered

* RIA-7561: Remove local testing code.

* RIA-7561: Remove unused import.

* RIA-7561: Fix BundleOrderTest after rebase.

* RIA-7561: Fix PMD violations.

* Update suppressions.xml

* RIA-7556/RIA-7557 (#648)

* Renamed document file names for home office response review decision maintained and withdrawn

* RIA-7372 appeal_ended_aip_journey (#647)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended_aip_journey: Add Document tag for internal cases, generator, template, configuration, application.yml links and tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7561: Allow LF for Request Hearing Requirements Feature (#649)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7281 Added internal detained edit case listing letter (#650)

* RIA-7281 Added internal detained edit case listing letter

* RIA-7281 Added extra unit tests for thrown exceptions

* RIA-7374 mark_appeal_as_ada (#651)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7374_mark_appeal_as_ada: Add for internal journey mark as ada, configuration, template, document Tag, event, Bundler order tag. Populate application props with link to letter, add functional tests

* RIA-7374_mark_appeal_as_ada: Fix merge conflicts

* RIA-7374_mark_appeal_as_ada: Remove condition check if appeal is Ada, as well remove from tests functional and junit

* RIA-7364 internal decideAnApplication letter generation (#653)

* RIA-7364
* Added functionality for decideAnApplication letter generation for internal cases
* Copied across makeAnApplication logic and its parsing/extraction from case data
* Added new doc tag
* Added/updated unit and FTs

* RIA-7364
* Updated FTs

* RIA-7364 Made some changes for sonar cloud failures (#655)

* Added isPresent() check
* Updated assertion for default case in enhanced switch statement

* Update suppressions.xml

* RIA-7328 ho_ftpa_submitted (#657)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7328_ho_ftpa_submitted: Add DocumentTag, Populate BundlerOrder, DocumentCreatorConfiguration for APPLY_FOR_FTPA_RESPONDENT. Add roles, junit/functional tests for APPLY_FOR_FTPA_RESPONDENT

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7365 (#660)

* Added new template for internal decide an application where decision is refused
* Refactored 7364 so granted+refused use a single handler with independent DocumentCreatorConfiguration beans and seperate templates.
* Added/updated unit/FTs.

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7701 Added transfer out of ADA letter (#661)

* RIA-7326 (#663)

* Added functionality to generate letter when admin officer applies for ftpa for internal cases
* Added/updated tests

* RIA-7326 (#665)

* Updated doc tag

* RIA-7330 Internal appellant FTPA decided granted document (#670)

* RIA-7330 Internal appellant FTPA decided granted document

* RIA-7330 Checkstyle and unit test fixes

* Update suppressions.xml

* Update suppressions.xml

* RIA-7360 ho_ftpa_decided_granted (#671)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7360_ho_ftpa_decided_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided granted. Add Tests and functional test, Document.tag, Definitions.

* RIA-7361 ho_ftpa_decided_partially_granted (#672)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7361_ho_ftpa_decided_partially_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided partially granted. Add Tests and functional test

* RIA-7326 (#673)

* Give LR permission for applyForFTPAAppellant event doc generation

* RIA-7362 ho_ftpa_decided_refused (#675)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7362_ho_ftpa_decided_refused: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided refused. Add Tests and functional test

* RIA-7362_ho_ftpa_decided_refused: Fix typo

* RIA-7331 Internal appellant ftpa decided - partially granted document (#676)

* RIA-7331 Internal appellant ftpa decided - partially granted document

* RIA-7331 Corrected deadline date values for ada and non-ada

* RIA-7332 Document for Appellant ftp decided - refused (#677)

* RIA-7332 Document for Appellant ftp decided - refused

* RIA-7332 Suppressing CVE-2023-41080

* RIA-7332 Split functional test into ADA and non-ADA scenarios

* RIA-7332 Functional test file rename

* RIA-7331 Further changes to ADA working days scenario (#678)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios (#679)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios

* RIA-7330 rename FT title for non-ADA FT

* RIA-TASK - Merged Master changes to NABA case-documents (#669)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Update suppressions.xml

* Merged Master changes to NABA

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>

* RIA-7844 (#682)

* Added content for application type - reinstate to InternalDecideAnApplicationDecisionGrantedLetterTemplate.getWhatHappensNextContent()
* Added reinstate content test
* Added FTs for reinstate application type when decided

* RIA-7844 (#684)

* Adding full stop to String

* RIA-7322 Internal hearing requirements updated letter generation (#686)

* RIA-7367 (#685)

* Refactored internal appellant application decided (refused+granted)
* Updated internalApplicationDecided handler to pick correct DocumentCreatorCongif bean based on granted/refused and appellant/respondent application
* Added new bean for HO decide application
* Added/updated unit tests
* Refactored 7364 FTs to include Admin Officer as application applicant
* Added new FTs

* RIA-7368 (#690)

* Addedn functionality to generate letter when HO application decided
* Refactored RIA-7365
* Added/updated unit/FTs

* RIA-7372 appeal_ended (#688)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended: change decisionMaker to fetch from END_APPEAL_APPROVER_TYPE, fix endAppealDate fortmat, fix tests

* RIA-7372_appeal_ended: remove unused import

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7322 hearingDate removed from template (#691)

* RIA-7561: Fix the deadline date in the 'Request Hearing Requirements' letter (#687)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7378 unlink_appeal (#693)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Add new Document letter generation for Maintain Case Link event.

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: remove unused import

* RIA-7378 unlink case (#694)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7427 Internal upload additional evidence doc generation (#695)

* RIA-7427 Internal upload additional evidence doc generation

* RIA-7427 Test and checkstyle fixes

* RIA-7378 unlink_case (#696)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378 unlink_case (#697)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#698)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#699)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7895 bug_fix_rule3235 (#700)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7895_bug_fix_rule3235: Populate FtpaDecisionOutcomeType with values of 23 and 35 rules

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7279 (#705)

* Added handler and template for generating letter when LO requests HO to amend appeal response
* Imported isValidUserDirection from notifications-api.
* Added/updated unit and FTs

* RIA-7376 link_case (#704)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_case_det: Add Event create case link. Template, configurations, tests

* RIA-7376_link_case_det: Fix unit test

* RIA-7376_link_case_det: Fix intends

* RIA-7376_link_case_det: populate FT with more values, AsylumCase object mapper populated with dateTime module

* RIA-7376_link_case_det: merge conflicts

* RIA-7437 internal non standard direction letter (#706)

* RIA-7437 Non standard direction to appellant - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, second time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, Fourth time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests, try two - ADA & NonADA (Letter)

* RIA-7437 - Renamed bean

* RIA-7437 - fixed functional tests

* RIA-7437 Non standard direction to appellant, resolving comments (Letter)

* RIA-7437 Non standard direction to appellant, fixing checkstyle error (Letter)

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>
Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7376 link_cases (#711)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_cases: fix dates serialization mechanism

* RIA-7376_link_cases: fix styles

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'S… (#714)

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'Send Direction' event

* Update renovate.json

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7433 Generate letter when LO changes hearing centre for detained… (#702)

* RIA-7433: Generate letter when LO changes hearing centre for detained internal appeals

* RIA-7433 updated functional test description

* RIA-7433: Added FT for non-ADA appeal

* Fix checkstyle errors

* RIA-7418 Appeal edited - ADA & Non ADA (Letter) (#717)

* RIA-7418: added new edit template letter and logic behind

* RIA-7418: fixed BundleOrderTest.java

* RIA-7432: Fix template to reflect old and new hearing centres (#721)

* RIA-7370 (#719)

* Refactored implementation of RIA-7427 to make InternalUploadAdditionalEvidenceGenerator generic for all users
* Imported HasDocument interface and made current implementation of DocumentWithMetadata implement it
* Imported events from case-api
* Added 2 new doc tags (LO additional evidence upload and HO additional evidence upload)
* Created 2 new templates for HO and LO additional evidence upload
* Added new methods in AsylumCaseUtils to extract addendum evidence documents and to fetch most recent addendum evidence added
* Created 2 new beans in DocumentCreatorConfiguration (LO/HO additional evidence upload)
* 2 new application.yaml entries for document templates
* Updated existing tests and added new unit/FTs

* RIA-7370 Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice (#725)

* RIA-7370
* Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice

* RIA-7370
* Fixed sonar check. Performing isEmpty() check on optional var before a .get()

* RIA-7370 (#727)

* Added a null check on addendum metadata

* Suppress CVE (#728)

* RIA-7471 letter generation direction due date changed (#715)

* RIA-7471 Letter generation when 'Change Direction due date' is triggered

- for ADA and non ADA internal cases
- when recipient party is either APPELLANT or APPELLANT AND RESPONDENT.

* Fix naming of a variable

* RIA-7471 - fixed unit test

* RIA-7471 Fix functional tests

* Fix unit test

* Fix template personalisations

* Fix name for template env variable

---------

Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7435 Home_office_non-Standard_direction_letter (#730)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-7439 ho_change_direction_due_date (#729)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439 ho_change_direction_due_date (#731)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439 ho_change_direction_due_date (#735)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7429 Letter generation for Internal Reinstate Appeal (#722)

* RIA-7435 Rename the letter generator class and corresponding unit tests (#737)

* RIA-7435 Rename the letter generator class and corresponding unit tests

* Fix checkstyle error

* Fix functional tests

* Fixing functional test

* RIA-7911 Update hearing adjustments (#739)

* RIA-7911_Update_hearing_adjustments

* RIA-7911 Update hearing adjustments functional tests

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* Update suppressions.xml

* Update suppressions.xml

* RIA-7537 EJP Adding new roles for legal officer (#746)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-8888 Upgraded chart version (#751)

* RIA-8888 Upgraded chart version

* RIA-8888 revert version because it is auto bumped

* RIA-8888 added suppressions

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7411 Removing OOC feature flag fields (#743) (#754)

* RIA-7411 Removing OOC feature flag fields

* RIA-7411 Suppressing CVE-2023-42794, CVE-2023-42795, CVE-2023-45648

Co-authored-by: Ryan-Nesbitt <95298094+Ryan-Nesbitt@users.noreply.github.com>

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#760)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Jake Cohen <101183561+JakeCohenSol@users.noreply.github.com>
Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* Removed print line that causes issues on windows (#762)

* RIA-7950 upgrade_fix (#767)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7950_upgrade_fix: trigger rebuild

* RIA-2023 rebuild_pipelines (#775)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-20231212_rebuild_pipelines: Restart pipelines

* RIA-20231212_rebuild_pipelines: Add supressions

* Update suppressions.xml

* RIA-7324 Hearing adjourned without a date - ADA & Non ADA (Letter) (#788)

* RIA-7324: added adjourn hearing without date letter template

* RIA-7324: small fix on DocumentTag applied

* RIA-8214 Add a new screen to Bails start application - UT appeal pending (#791)

* RIA-8214: bail application submission template fixed with new fields

* RIA-8214: small refactor name on definitions

* Revert "RIA-8214 Add a new screen to Bails start application - UT appeal pending" (#793)

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#792)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

* DIAC-66 getting all functionals to run (#747)

* DIAC-66 getting all functionals to run

* DIAC-66 dependency update

* DIAC-66 dependency update

* DIAC-70 adding integration, smoke and unit testing and report to nightly runs

* DIAC-70 removing integration

* DIAC-70 adding secrets

* DIAC-70 adding mutation test reporting

* DIAC-70 adding mutation test reporting

* DIAC-66 integration tests

* DIAC-66 dependency upgrade

* DIAC-66 checkstyle fix

* DIAC-66 java chart upgrade

* DIAC-00 Revert pact dependency upgrade (#759)

* DIAC-84 Disable Decision and reasons document PDF conversion (#752)

* DIAC-84 Disable Decision and reasons document PDF conversion

* Remove PDF conversion

* upgrade java helm chart

* Delete Decision and reasons document PDF conversion files

* suppress CVE-2023-35116

* Update test names and add test for document null check

* fix test

* Update final decision and document name

* rename pdf service to file rename service

* update ia-case-api url

* Fix functional tests

* test

* Bumping chart version/ fixing aliases

* cleanup

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update all non-major dependencies (#740)

* Update all non-major dependencies

* renovate dependency fix

* functional flakiness workaround

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: nilay <nilay.patel@hmcts.net>

* Update all non-major dependencies (#768)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 suppressions update 04/12/23 (#771)

* Update all non-major dependencies (#769)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 dependency 07/12/23 (#773)

* DIAC-002 updating renovate JSON to exclude certain packages (#776)

* DIAC-78 - Remove logs containing case data (#766)

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* Update all non-major dependencies (#774)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-002 reverting terraform updates as requires more work (#777)

* DIAC-184 build fix 18-12-23 (#783)

* Update all non-major dependencies (#779)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#784)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#785)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#786)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-110 turning on fortify (#787)

* Update Terraform azurerm to ~> 3.87.0 (#790)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Merge master changes to NABA

* Merge master changes to NABA

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Jake Cohen <101183561+JakeCohenSol@users.noreply.github.com>
Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>
Co-authored-by: alivenichoppa <97441560+alivenichoppa@users.noreply.github.com>
Co-authored-by: nilay <nilay.patel@hmcts.net>
Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8023 QA Fix: generate appeal summary for internal detained non-ADA appeals (#814)

* RIA-7957 Adding event authorisation for Upload Appeal Response for respondent user (#829)

* Update suppressions.xml

* RIA-TASK - Fix for missing document tags when end appeal for EJP non DE case (#869)

* Fix for missing document tags when end appeal for EJP non DE case

* Remove unused import

* Update bundle order and test

* RIA-8609 - Cherry picked from commit 1e61307a 18/01/2024 to bc61a18b 23/02/2024 (#836)

* RIA-8609 - Cherry picked from commit 1e61307a 18/01/2024 to bc61a18b 23/02/2024

* Cherry picked the commits from 401580ae 29/02/24 to c19c3e9b 29/03/24

* Temporarily disable FTs

* Add double quotes as required

* Fix failed functional tests (#870)

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-8609 - Cherry picked from 11/04/2024 a9dc2e9b to 16/04/2024 1be1d489 (#876)

* Cherry picked from 11/04/2024 a9dc2e9b to 16/04/2024 1be1d489

* Fix test

* RIA-TASK - Resolve conflicts (#878)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

* DIAC-66 getting all functionals to run (#747)

* DIAC-66 getting all functionals to run

* DIAC-66 dependency update

* DIAC-66 dependency update

* DIAC-70 adding integration, smoke and unit testing and report to nightly runs

* DIAC-70 removing integration

* DIAC-70 adding secrets

* DIAC-70 adding mutation test reporting

* DIAC-70 adding mutation test reporting

* DIAC-66 integration tests

* DIAC-66 dependency upgrade

* DIAC-66 checkstyle fix

* DIAC-66 java chart upgrade

* DIAC-00 Revert pact dependency upgrade (#759)

* DIAC-84 Disable Decision and reasons document PDF conversion (#752)

* DIAC-84 Disable Decision and reasons document PDF conversion

* Remove PDF conversion

* upgrade java helm chart

* Delete Decision and reasons document PDF conversion files

* suppress CVE-2023-35116

* Update test names and add test for document null check

* fix test

* Update final decision and document name

* rename pdf service to file rename service

* update ia-case-api url

* Fix functional tests

* test

* Bumping chart version/ fixing aliases

* cleanup

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update all non-major dependencies (#740)

* Update all non-major dependencies

* renovate dependency fix

* functional flakiness workaround

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: nilay <nilay.patel@hmcts.net>

* Update all non-major dependencies (#768)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 suppressions update 04/12/23 (#771)

* Update all non-major dependencies (#769)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 dependency 07/12/23 (#773)

* DIAC-002 updating renovate JSON to exclude certain packages (#776)

* DIAC-78 - Remove logs containing case data (#766)

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* Update all non-major dependencies (#774)

Co-authored-by…
colmlynch60 added a commit that referenced this pull request Apr 26, 2024
* DIAC-281 fixing CcdScenarioRunnerTest (#846)

* DIAC-281 fixing CcdScenarioRunnerTest

* Revert "DIAC-281 fixing CcdScenarioRunnerTest"

This reverts commit 3f8f88cda75244a1edd571965c488d0c3b63ddfe.

* DIAC-281 fixing CcdScenarioRunnerTest

* Update all non-major dependencies (#847)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* VUL-5809 Upgrade serenity, restAssured, remove springHystrix reference (#848)

* Update all non-major dependencies (#851)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#853)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#854)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* VUL-5808 Remove passoword from docker-compose.yml (#850)

* Update plugin org.owasp.dependencycheck to v9.0.10 (#855)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies to v4.1.4 (#856)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.projectlombok:lombok to v1.18.32 (#859)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#860)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#863)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies to v4.6.8 (#864)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency commons-io:commons-io to v2.16.0 (#865)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 cdam download change fix (#806)

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123

* DIAC-123 removing logging

---------

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8726 - Merge SNL (BAILS) - > Master (DO NOT MERGE) (#841)

* RIA-7973
* RIA-7973 Updated Bail application details template

* RIA-7973 Added Bail FT scenarios pattern

* RIA-7973 Fixed Ft

* RIA-8119
* RIA-8119 Bail application document changes with added interpreter fields

* RIA-8364
* RIA-8364 Bail template change 01134 -> 01144

* RIA-8489
* RIA-8489 Refactored interpreter language

* RIA-8410 RIA-8409 Generate and store hearing notice on case (initial listing and relisting)

* RIA-8410: Generate hearing documents

- Create Handler, Template and configuration classes to generate notice of hearing for case relisting

* RIA-8409: Generate hearing documents

- Create handler, template and configuration classes to generate notice of hearing for initial listing event

* RIA-8410: Some code refactoring

* RIA-8508
* RIA-8508 Fix appeals refactored interpreter language

* RIA-8507
* RIA-8507 Fix the field type for fcs_has_passport in BailCaseFieldDefinition

* RIA-8554
* RIA-8554 Fix detention location on hearing-notice template

* RIA-8554
* RIA-8554 Using enums for Field definition comparison

* Update BailSubmissionTemplateProvider.java

* RIA-8738: IMA - Rebasing docmosis template (#845)

* Updates to fix build failure

* RIA-8773: Add missing hearing centres in the hearing location to hearing address mapping document (#858)

* RIA-8773 Fix rebasing of CcdScenarioRunnerTest

* RIA-8774 Add logging (#862)

* RIA-8774 Add logging

* RIA-8770 Run functional tests on pipeline

* RIA-8774 Enable logging on functional tests

* RIA-8774 Enable logging on functional tests

* Update DocumentTagTest.java

---------

Co-authored-by: Marcellofabbri <marcello.fabbri@hmcts.net>
Co-authored-by: Augustine Onubeze <ikechukwu.onubeze@gmail.com>
Co-authored-by: Marcello Fabbri <56549133+Marcellofabbri@users.noreply.github.com>

* RIA-TASK NABA -> Master : DO NOT MERGE (#520)

* RIA-6455: Added new Hearing centre - Harmondsworth (#518)

* RIA-6455: Added new Hearing centre - Harmondsworth

* Fix vulnerabilities

* Added Location (#519)

* Added Location

* Suppressions

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6491: Give admin officer access to edit appeal post submission (#521)

* RIA-6491: Give admin officer access to edit appeal post submission

* RIA-6491: Address dependency vulnerabilities

* RIA-6529: Generate Hearing Notice after listing for ADA cases (#522)

* RIA-6529: Generate Hearing Notice after listing for ADA cases

* Suppress vulnerabilities

* Added Yarls Wood as hearing centre and also its address (#524)

* Ria 6424 appeal submission summary (#527)

* Added some defs to extract case data
Added some puts to copy case data to field values which docmosis can use to generate the appeal submission summary

* Modified tests

* Formatted for sonar scan

* Final changes

* Refactored AppealSubmissionTemplate and added logic for displaying removal order date and time

* Added tests for detained fields and removal order date

* Formatted import and method line seperations for serenity checks

* Added CVE suppression

* Changed where appelantInDetention defaults to YesOrNo.NO

* Moved the parsing of complex asylum case fields (nomsNumber, dateCustodialSentence & otherDetentionFacilityName, to a dedicated method. Modified tests to cover more scenarios and make the tests more robust by checking all other relevant fields in the same flow.

* Added assertion to check size of templateFieldValues

* Bundled common fields together and setting Mockito strictness to lenient

* Added suppressions

* RIA-6424: Fix the TypeReference class for the field - 'hasPendingBailApplications' (#528)

- Changed from YesOrNo type to BailApplicationStatus type.
- update relevant unit tests.

* Added guards in event nomsNumber, releaseDate & removalOrderDate are empty strings (#530)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Ria 6424 (#531)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Ria 6564 hearing notice edited ada (#532)

* RIA-6564 - Adding hearing notice document generation for ADA cases

* RIA-6564 - Checkstyle

* RIA-6564 - Adding suppression

* Ria 6685 date decision letter (#545)

* RIA-6685 Added logic for Date decision letter to appear in Appeal template

* Formatting changes and tests

* Fixed tests

* added decisionLetterReceivedDate test

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6685-fixed-test (#546)

Co-authored-by: Jamie <jamiemurphy@version1.com>

* Ria 6605 ada suitability document api (#547)

* Saving work

* Saving changes

* Saving work before a forced update

* Latest changes

* latest changes

* Added new template

* Rebased

* Added ADASuitabilityReviewDecision entity. Added suitability review, reason and judge to AsylumCaseDefinition. Added AdaSuitability document tag. Added suitability review event. Created pre-submit handler to generate ada suitability document. Added AdaSuitability to bundleOrder. Created new AdaSuitabilityTemplate. Added Adasuitability bean to DocumentCreatorConfiguration. Added AdaSuitabilityDocument metadata to application.yml. Created AdaSuitabilityTemplateTest.

* Resolved comments in PR specifically regarding extra line seperations and variable name formatting

* Added functional test for ADA suitability document generation

* Adding system credentials and appropriate method to generate headers for pipeline build failures.

* Fix for failing functional test: RIA-5778-end-appeal-automatically-notice-document.json

* RIA-6612: Update Bundling events to include Ada suitability review do… (#549)

* RIA-6612: Update Bundling events to include Ada suitability review document

- new document added under section of Tribunal Documents.
- added functional and unit tests.

* Update owasp.dependencyCheck

* Updated 'after' method call in Jenkinfile*

* RIA-6694-Admin-Submit-Appeal (#551)

* RIA-6694-Admin-Submit-Appeal

* fixed state test

---------

Co-authored-by: Jamie <jamiemurphy@version1.com>
Co-authored-by: Dbarnes-v1 <99024336+Dbarnes-v1@users.noreply.github.com>

* RIA-6700 - Allowing access to editAppeal for Admin users (#552)

* RIA-6721 Added isAdmin field to templateFieldValues in appeal submission summary template. (#554)

Added isAdmin field to AsylumCaseDefinition.
Updated unit tests.

* RIA-6702 - Internal case creation adding access to the following even… (#553)

* RIA-6702 - Internal case creation adding access to the following events for Admins:

	1. makeAnApplication
	2. draftHearingRequirements
	3. buildCase
	4. submitCase
	5. uploadAdditionalEvidence
	6. applyForFTPAAppellant
	7. requestFeeRemission

* RIA-6702 - Updating unit test

* RIA-6702 - Suppression

* RIA-6873 appeal summary changes (#555)

* RIA-6873_appeal_summary_changes

* Charts java version upgraded

* Adding new suppression

* Change HAS_OTHER_APPEALS field type with new object class

* Ria 6844 Add date to ADA suitability document (#556)

* RIA-6844 Added date to ADA suitability document. Updated unit test.

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-6560 - Functional tests improvements (#568)

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Suppress CVE-2023-20863 (#570)

* Rebase from Master (#571)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. DocumentManagementUploader is updated but this class is not used or ex
tended by any other class

* update scanbase packages

* update gradle for test

* suppressing org.yaml:snakeyaml:1.26

* update tvtStringProvider

* update tvtStringProvider

* fix build failures

* fix build failures

* fix build failures

* Updates to fix build failures

* Updates to fix secure doc store client

* Bumping chart version/ fixing aliases

* Updates to fix build failures

* Updates to fix build failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to suppress cves to allow build to happen

* fix for failing gradle build

* RIA-5804: reload jenkins build

* Bumping chart version/ fixing aliases

* RIA-5804: fixed vulnerabilities

* RIA-5804: upgraded java chart version

---------

Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>

* Update suppressions.xml (#557)

* To update azurerm version for terraform (#558)

* Update state.tf

* Update .terraform-version

* Update variables.tf

* Update main.tf

* Update main.tf

* Revert "To update azurerm version for terraform (#558)" (#559)

This reverts commit a90efa41ddaa7b71f143c038f2355c4100e8a152.

* Revert "Update suppressions.xml (#557)" (#560)

This reverts commit 247256adf152dd85bd2f0dc3b3eb216478ff77a5.

* Revert "fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)" (#561)

This reverts commit 52eab14c22caa2398868bf623ffef1c9de6540bc.

* To revert cdam changes from production (#562)

* Update .terraform-version

* Update main.tf

* Update state.tf

* Update variables.tf

* Update suppressions.xml

* Update Chart.yaml

* Update suppressions.xml

* Bumping chart version/ fixing aliases

* Update Chart.yaml

* Update suppressions.xml

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update Dockerfile (#565)

* Update Dockerfile

* Update Dockerfile

* Update suppressions.xml

* Updated suppressions

---------

Co-authored-by: addison-jephtah <108927648+addison-jephtah@users.noreply.github.com>
Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>
Co-authored-by: mokainos <72137340+mokainos@users.noreply.github.com>

* Updated dependencies to remove suppressed CVEs (#564) (#573)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>
Co-authored-by: mcareyma <matthew.carey@version1.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7043 add NOTICE_OF_DECISION_UT_TRANSFER document tag (#576)

* RIA-7043
* Added NOTICE_OF_DECISION_UT_TRANSFER enum to DocumentTag.java

* RIA-7043
* Updated DocumentTagTest.java

* RIA-7043
* Updated document bundle configs

* Supressed CVE-2023-28709 (#580)

* Added new line character to kick off new build on pipeline (#582)

* RIA-7158 request case building notification attachment letter (#583)

* * Added powermock to build.gradle which is used in testing
* Added template for internal cases for FTs
* Added requestCaseBuilding event to enums
* Added NOTIFICATION_ATTACHMENT_DOCUMENTS to asylumCase to store new AIP notification attachment docs
* Added AdaListCase direction tag to fix bug where the direction cannot be parsed as it's not in the list of DirectionTag enums
* Added requestCaseBuilding Doc tag
* Updated bundleOrder with the new DocTag
* Added holidaydates service
* Added DueDateService
* Added new handler/docGenerator for requestCaseBuilding event for internal ADA cases
* Created new template for the new handler/docGenerator
* Added asylumcaseutils
* Added internalAdaBuildCase bean to DocumentCreatorConfiguration for the above new handler/template
* Updated CustomerServicesProvider with new email/telephone for internal ADA cases
* Added internalAdaBuildCaseDocument metadata to application.yml. Also gave CO permission for requestCaseBuilding event and added internal ADA contact details
* Added unit tests for above
* Added FT for LO requestCaseBuilding to verify doc generated

* RIA-7158
* Moved the deconstruction of directions to AsylumCaseUtils to make it generalised for future use
* Added utility class to format dates
* Updated tests
* Added comment as per PR review feedback

* Added suppression to make CI/CD pipeline pass (#584)

* RIA-7158 (#585)

* Formatted date

* Update suppressions.xml

force build

* Update minimal-aip-appeal-submitted.json

* Update minimal-appeal-submitted.json

* Update suppressions.xml

* Update suppressions.xml

* RIA-7175 Internal ADA suitability document - unsuitable (#593)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Suppress CVE-2023-35116 and CVE-2023-2976

* Revert "RIA-7175 Internal ADA suitability document - unsuitable (#593)" (#594)

This reverts commit 8d9236e8d0b9c89ac23bee6c4279d4d07b9c8c96.

* RIA-7174 ADA suitability document - suitable (#596)

* RIA-7174 ADA suitability notification doc for suitable decision

* RIA-7174 Suppressing CVE-2023-35116

* RIA-7174 Changes from code review, some refactoring work also

* RIA-7174
* Removed common method and put it back into the template as a private method.

* RIA-7174 Added empty line at end of functional test

---------

Co-authored-by: FarukH <hussain.faruk@hmcts.net>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7175 internal ada suitability unsuitable document (#595)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Fixed formatting issues after rebase branch

* RIA-7172: Generate letter when 'HO Request Review' event is triggered (#597)

* RIA-7172: Generate letter when 'HO Request Review' ebent is triggered

- add the new letter in the Notification_letter collection.
- new tag added.

* RIA-7172: Fix Functional test

* RIA-7172: Trigger letter generation only for ADA

* RIA-7212 Internal ADA Appeal decided, allowed document generation (#598)

* RIA-7212 Internal ADA Appeal decided, allowed document generation

* RIA-7212 Fixed unit tests after rebase

* RIA-7212 Tidying up code using common methods

* RIA-7212 Refactor packages

* Ria 7540 dynamic internal email/tel (#599)

* RIA-7540 Updated customer service provider to return internal case dynamic email/tel

* RIA-7540 updated HoReviewEvidenceLetterTemplate to get fetch dynamic email and tel

* RIA-7540 updated InternalAdaDecisionsAndReasonsAllowedLetterTemplate to get fetch dynamic email and tel

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7174 Refactor package location (#600)

* RIA-7175 Refactor of package (#601)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appea… (#605)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appeal Response' event

- added new user for functional test - HomeOfficeLart
- added new entity - AppealReviewOutcome.

* RIA-7198: Fix customer services contact info methods

* RIA-7198: Fix unit tests

* RIA-7198: Fix functional test for 'end appeal automatically' event

* RIA-7198: Added system env variable to secret mapping for the lart user credentials

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismisse… (#604)

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismissed - ADA (Letter) template generation, tests

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Fixed code styles

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsReasonsLetterAllowedGenerator(and Dismissed) refactored into one generic class with conditions, tests fixed as well

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsAndReasonsDismissedLetterTemplate refactored dueDate code lines

* RIA-7200 (#602)

* Added new template for hearing bundle ready letter
* Added new handlers and functionality to generate this letter AFTER generate hearing bundle event when async stitching bundle event is implicitly called and is successful
* Added unit/functional tests

* RIA-7174 Adding new template vars to template (#607)

* RIA-7174 Adding new template vars to template

* RIA-7174 Functional test reworked to add directions

* RIA-7174 Another functional test rework

* RIA-7538 Updated config and handler to handle internal case detained non ADA document generation (#610)

* RIA-7606_change_customer_service_mail (#611)

* RIA-7606_change_customer_service_mail: Fix customer service mail in application.yml

* RIA-7606_change_customer_service_mail: Fix customer service mail in InternalDetGenerateHearingBundleTemplateTest

* RIA-7215 Updated template to handle detained non-ada letter (#612)

* RIA-7200 Fix hearing centre name (#613)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7218 Allow document generation for all detained cases (#615)

* RIA-7218 Allow document generation for all detained cases

* RIA-7218 Functional test fixed

* RIA-7159 Request case building detained letter generation (#616)

* RIA-7159: WIP

- Used one generator for for both detained and non-detained letter
  generations

* RIA-7159 Final changes. tests and checkstyle changes

* RIA-7159 Removing redundant unit tests

---------

Co-authored-by: Neha Aggarwal <neha.aggarwal@version1.com>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7159 Rework of Non-ADA template to reduce duplication (#619)

* RIA-7548_internal_appeal_submission_non_ada (#618)

* RIA-7548_internal_appeal_submission_non_ada: Add appeal submission template for internal, non ada, detained only cases

* RIA-7548_internal_appeal_submission_non_ada: styles fix

* RIA-7548_internal_appeal_submission_non_ada: Add document tag, fix tests for this tag

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Fix condition AsylumCase definition in AppealSubmissionCreator

* RIA-7548_internal_appeal_submission_non_ada: Bundle sort tests fix

* RIA-7216 Added appeal decided dismissed detained non ADA document templates (#622)

* Update suppressions.xml

* Update suppressions.xml

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record ou… (#623)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed (#624)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7552 appeal can proceed (#626)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7554 directed to upload bundle (#628)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* Ria 7554 directed to upload bundle (#629)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#630)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#631)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-TASK Merged master changes to Naba - documents-api (#614)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* Fixed tests

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7582 non_payment_end_appeal (#637)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7582_non_payment_end_appeal: Add template, generator, configuration, Asylum definitions for remission type, tests

* RIA-7582_non_payment_end_appeal: Add RemissionType test

* RIA-7582_non_payment_end_appeal: Fix application properties document fileName and functional test 7582

* RIA-7580 (#638)

* Added new handler, template and bean config for internal detained non-ada appeal fee letter with no remissions
* Imported AppealType class from case-api
* Updated existing unit tests (State, BundleOrder & DocumentTag)
* Added unit tests and FT

* RIA-7581 Added internal detained mark as paid letter (#639)

* RIA-7618 document remission partially approved rejected (#641)

* RIA-7618 Initial document changes before rebase

* RIA-7618 Final refactored changes after rebasing

* RIA-7618 Utils method change

* RIA-7618 Adding unit test for RemissionDecision class

* RIA-7618 checkstyle test fix

* RIA-7556 internal det ho review maintained (#640)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7556 init commit

* RIA-7556_internal_det_ho_review_maintaned: Add tests unit/functional, update application.yml for new event and fix document extension in application.yml

* RIA-7556_internal_det_ho_review_maintaned: Add tests for new event

* RIA-7556_internal_det_ho_review_maintaned: Fix on dueDate in template and test for this template

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Adding detenction

---------

Co-authored-by: ThomasKKC <thomas.cheong@version1.com>

* RIA-7559 DET letter case listing detained (#642)

* RIA-7559 Generator and template for doc generation

* RIA-7559 internal detained list case letter generation

* RIA-7559 document creator values updated to correct document

* RIA-7559 functional test added

* RIA-7559 append document to notifications attachments group

* RIA-7559 functional test fix

* RIA-7559 Checkstyle and unit test fixes for pipeline

* RIA-7557 Internal detained review HO response decision withdrawn letter generation (#643)

* RIA-7557
* Added functionality for new letter generation when LO requests AIP to review HO response
* Added new doc tag for the new letter
* Refactored RIA-7556
* Added/updated unit/FTs

* Rebasing

* RIA-7557
* Updated FT

* RIA-7561 - Added handler to generate letter when 'Request Hearing Requ… (#644)

* RIA-7561: Added handler to generate letter when 'Request Hearing Requirements' Event is triggered

* RIA-7561: Remove local testing code.

* RIA-7561: Remove unused import.

* RIA-7561: Fix BundleOrderTest after rebase.

* RIA-7561: Fix PMD violations.

* Update suppressions.xml

* RIA-7556/RIA-7557 (#648)

* Renamed document file names for home office response review decision maintained and withdrawn

* RIA-7372 appeal_ended_aip_journey (#647)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended_aip_journey: Add Document tag for internal cases, generator, template, configuration, application.yml links and tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7561: Allow LF for Request Hearing Requirements Feature (#649)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7281 Added internal detained edit case listing letter (#650)

* RIA-7281 Added internal detained edit case listing letter

* RIA-7281 Added extra unit tests for thrown exceptions

* RIA-7374 mark_appeal_as_ada (#651)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7374_mark_appeal_as_ada: Add for internal journey mark as ada, configuration, template, document Tag, event, Bundler order tag. Populate application props with link to letter, add functional tests

* RIA-7374_mark_appeal_as_ada: Fix merge conflicts

* RIA-7374_mark_appeal_as_ada: Remove condition check if appeal is Ada, as well remove from tests functional and junit

* RIA-7364 internal decideAnApplication letter generation (#653)

* RIA-7364
* Added functionality for decideAnApplication letter generation for internal cases
* Copied across makeAnApplication logic and its parsing/extraction from case data
* Added new doc tag
* Added/updated unit and FTs

* RIA-7364
* Updated FTs

* RIA-7364 Made some changes for sonar cloud failures (#655)

* Added isPresent() check
* Updated assertion for default case in enhanced switch statement

* Update suppressions.xml

* RIA-7328 ho_ftpa_submitted (#657)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7328_ho_ftpa_submitted: Add DocumentTag, Populate BundlerOrder, DocumentCreatorConfiguration for APPLY_FOR_FTPA_RESPONDENT. Add roles, junit/functional tests for APPLY_FOR_FTPA_RESPONDENT

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7365 (#660)

* Added new template for internal decide an application where decision is refused
* Refactored 7364 so granted+refused use a single handler with independent DocumentCreatorConfiguration beans and seperate templates.
* Added/updated unit/FTs.

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7701 Added transfer out of ADA letter (#661)

* RIA-7326 (#663)

* Added functionality to generate letter when admin officer applies for ftpa for internal cases
* Added/updated tests

* RIA-7326 (#665)

* Updated doc tag

* RIA-7330 Internal appellant FTPA decided granted document (#670)

* RIA-7330 Internal appellant FTPA decided granted document

* RIA-7330 Checkstyle and unit test fixes

* Update suppressions.xml

* Update suppressions.xml

* RIA-7360 ho_ftpa_decided_granted (#671)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7360_ho_ftpa_decided_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided granted. Add Tests and functional test, Document.tag, Definitions.

* RIA-7361 ho_ftpa_decided_partially_granted (#672)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7361_ho_ftpa_decided_partially_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided partially granted. Add Tests and functional test

* RIA-7326 (#673)

* Give LR permission for applyForFTPAAppellant event doc generation

* RIA-7362 ho_ftpa_decided_refused (#675)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7362_ho_ftpa_decided_refused: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided refused. Add Tests and functional test

* RIA-7362_ho_ftpa_decided_refused: Fix typo

* RIA-7331 Internal appellant ftpa decided - partially granted document (#676)

* RIA-7331 Internal appellant ftpa decided - partially granted document

* RIA-7331 Corrected deadline date values for ada and non-ada

* RIA-7332 Document for Appellant ftp decided - refused (#677)

* RIA-7332 Document for Appellant ftp decided - refused

* RIA-7332 Suppressing CVE-2023-41080

* RIA-7332 Split functional test into ADA and non-ADA scenarios

* RIA-7332 Functional test file rename

* RIA-7331 Further changes to ADA working days scenario (#678)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios (#679)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios

* RIA-7330 rename FT title for non-ADA FT

* RIA-TASK - Merged Master changes to NABA case-documents (#669)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Update suppressions.xml

* Merged Master changes to NABA

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>

* RIA-7844 (#682)

* Added content for application type - reinstate to InternalDecideAnApplicationDecisionGrantedLetterTemplate.getWhatHappensNextContent()
* Added reinstate content test
* Added FTs for reinstate application type when decided

* RIA-7844 (#684)

* Adding full stop to String

* RIA-7322 Internal hearing requirements updated letter generation (#686)

* RIA-7367 (#685)

* Refactored internal appellant application decided (refused+granted)
* Updated internalApplicationDecided handler to pick correct DocumentCreatorCongif bean based on granted/refused and appellant/respondent application
* Added new bean for HO decide application
* Added/updated unit tests
* Refactored 7364 FTs to include Admin Officer as application applicant
* Added new FTs

* RIA-7368 (#690)

* Addedn functionality to generate letter when HO application decided
* Refactored RIA-7365
* Added/updated unit/FTs

* RIA-7372 appeal_ended (#688)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended: change decisionMaker to fetch from END_APPEAL_APPROVER_TYPE, fix endAppealDate fortmat, fix tests

* RIA-7372_appeal_ended: remove unused import

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7322 hearingDate removed from template (#691)

* RIA-7561: Fix the deadline date in the 'Request Hearing Requirements' letter (#687)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7378 unlink_appeal (#693)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Add new Document letter generation for Maintain Case Link event.

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: remove unused import

* RIA-7378 unlink case (#694)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7427 Internal upload additional evidence doc generation (#695)

* RIA-7427 Internal upload additional evidence doc generation

* RIA-7427 Test and checkstyle fixes

* RIA-7378 unlink_case (#696)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378 unlink_case (#697)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#698)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#699)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7895 bug_fix_rule3235 (#700)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7895_bug_fix_rule3235: Populate FtpaDecisionOutcomeType with values of 23 and 35 rules

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7279 (#705)

* Added handler and template for generating letter when LO requests HO to amend appeal response
* Imported isValidUserDirection from notifications-api.
* Added/updated unit and FTs

* RIA-7376 link_case (#704)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_case_det: Add Event create case link. Template, configurations, tests

* RIA-7376_link_case_det: Fix unit test

* RIA-7376_link_case_det: Fix intends

* RIA-7376_link_case_det: populate FT with more values, AsylumCase object mapper populated with dateTime module

* RIA-7376_link_case_det: merge conflicts

* RIA-7437 internal non standard direction letter (#706)

* RIA-7437 Non standard direction to appellant - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, second time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, Fourth time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests, try two - ADA & NonADA (Letter)

* RIA-7437 - Renamed bean

* RIA-7437 - fixed functional tests

* RIA-7437 Non standard direction to appellant, resolving comments (Letter)

* RIA-7437 Non standard direction to appellant, fixing checkstyle error (Letter)

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>
Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7376 link_cases (#711)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_cases: fix dates serialization mechanism

* RIA-7376_link_cases: fix styles

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'S… (#714)

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'Send Direction' event

* Update renovate.json

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7433 Generate letter when LO changes hearing centre for detained… (#702)

* RIA-7433: Generate letter when LO changes hearing centre for detained internal appeals

* RIA-7433 updated functional test description

* RIA-7433: Added FT for non-ADA appeal

* Fix checkstyle errors

* RIA-7418 Appeal edited - ADA & Non ADA (Letter) (#717)

* RIA-7418: added new edit template letter and logic behind

* RIA-7418: fixed BundleOrderTest.java

* RIA-7432: Fix template to reflect old and new hearing centres (#721)

* RIA-7370 (#719)

* Refactored implementation of RIA-7427 to make InternalUploadAdditionalEvidenceGenerator generic for all users
* Imported HasDocument interface and made current implementation of DocumentWithMetadata implement it
* Imported events from case-api
* Added 2 new doc tags (LO additional evidence upload and HO additional evidence upload)
* Created 2 new templates for HO and LO additional evidence upload
* Added new methods in AsylumCaseUtils to extract addendum evidence documents and to fetch most recent addendum evidence added
* Created 2 new beans in DocumentCreatorConfiguration (LO/HO additional evidence upload)
* 2 new application.yaml entries for document templates
* Updated existing tests and added new unit/FTs

* RIA-7370 Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice (#725)

* RIA-7370
* Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice

* RIA-7370
* Fixed sonar check. Performing isEmpty() check on optional var before a .get()

* RIA-7370 (#727)

* Added a null check on addendum metadata

* Suppress CVE (#728)

* RIA-7471 letter generation direction due date changed (#715)

* RIA-7471 Letter generation when 'Change Direction due date' is triggered

- for ADA and non ADA internal cases
- when recipient party is either APPELLANT or APPELLANT AND RESPONDENT.

* Fix naming of a variable

* RIA-7471 - fixed unit test

* RIA-7471 Fix functional tests

* Fix unit test

* Fix template personalisations

* Fix name for template env variable

---------

Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7435 Home_office_non-Standard_direction_letter (#730)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-7439 ho_change_direction_due_date (#729)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439 ho_change_direction_due_date (#731)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439 ho_change_direction_due_date (#735)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7429 Letter generation for Internal Reinstate Appeal (#722)

* RIA-7435 Rename the letter generator class and corresponding unit tests (#737)

* RIA-7435 Rename the letter generator class and corresponding unit tests

* Fix checkstyle error

* Fix functional tests

* Fixing functional test

* RIA-7911 Update hearing adjustments (#739)

* RIA-7911_Update_hearing_adjustments

* RIA-7911 Update hearing adjustments functional tests

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* Update suppressions.xml

* Update suppressions.xml

* RIA-7537 EJP Adding new roles for legal officer (#746)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-8888 Upgraded chart version (#751)

* RIA-8888 Upgraded chart version

* RIA-8888 revert version because it is auto bumped

* RIA-8888 added suppressions

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7411 Removing OOC feature flag fields (#743) (#754)

* RIA-7411 Removing OOC feature flag fields

* RIA-7411 Suppressing CVE-2023-42794, CVE-2023-42795, CVE-2023-45648

Co-authored-by: Ryan-Nesbitt <95298094+Ryan-Nesbitt@users.noreply.github.com>

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#760)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Jake Cohen <101183561+JakeCohenSol@users.noreply.github.com>
Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* Removed print line that causes issues on windows (#762)

* RIA-7950 upgrade_fix (#767)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7950_upgrade_fix: trigger rebuild

* RIA-2023 rebuild_pipelines (#775)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-20231212_rebuild_pipelines: Restart pipelines

* RIA-20231212_rebuild_pipelines: Add supressions

* Update suppressions.xml

* RIA-7324 Hearing adjourned without a date - ADA & Non ADA (Letter) (#788)

* RIA-7324: added adjourn hearing without date letter template

* RIA-7324: small fix on DocumentTag applied

* RIA-8214 Add a new screen to Bails start application - UT appeal pending (#791)

* RIA-8214: bail application submission template fixed with new fields

* RIA-8214: small refactor name on definitions

* Revert "RIA-8214 Add a new screen to Bails start application - UT appeal pending" (#793)

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#792)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

* DIAC-66 getting all functionals to run (#747)

* DIAC-66 getting all functionals to run

* DIAC-66 dependency update

* DIAC-66 dependency update

* DIAC-70 adding integration, smoke and unit testing and report to nightly runs

* DIAC-70 removing integration

* DIAC-70 adding secrets

* DIAC-70 adding mutation test reporting

* DIAC-70 adding mutation test reporting

* DIAC-66 integration tests

* DIAC-66 dependency upgrade

* DIAC-66 checkstyle fix

* DIAC-66 java chart upgrade

* DIAC-00 Revert pact dependency upgrade (#759)

* DIAC-84 Disable Decision and reasons document PDF conversion (#752)

* DIAC-84 Disable Decision and reasons document PDF conversion

* Remove PDF conversion

* upgrade java helm chart

* Delete Decision and reasons document PDF conversion files

* suppress CVE-2023-35116

* Update test names and add test for document null check

* fix test

* Update final decision and document name

* rename pdf service to file rename service

* update ia-case-api url

* Fix functional tests

* test

* Bumping chart version/ fixing aliases

* cleanup

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update all non-major dependencies (#740)

* Update all non-major dependencies

* renovate dependency fix

* functional flakiness workaround

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: nilay <nilay.patel@hmcts.net>

* Update all non-major dependencies (#768)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 suppressions update 04/12/23 (#771)

* Update all non-major dependencies (#769)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 dependency 07/12/23 (#773)

* DIAC-002 updating renovate JSON to exclude certain packages (#776)

* DIAC-78 - Remove logs containing case data (#766)

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* Update all non-major dependencies (#774)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-002 reverting terraform updates as requires more work (#777)

* DIAC-184 build fix 18-12-23 (#783)

* Update all non-major dependencies (#779)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#784)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#785)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#786)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-110 turning on fortify (#787)

* Update Terraform azurerm to ~> 3.87.0 (#790)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Merge master changes to NABA

* Merge master changes to NABA

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Jake Cohen <101183561+JakeCohenSol@users.noreply.github.com>
Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>
Co-authored-by: alivenichoppa <97441560+alivenichoppa@users.noreply.github.com>
Co-authored-by: nilay <nilay.patel@hmcts.net>
Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8023 QA Fix: generate appeal summary for internal detained non-ADA appeals (#814)

* RIA-7957 Adding event authorisation for Upload Appeal Response for respondent user (#829)

* Update suppressions.xml

* RIA-TASK - Fix for missing document tags when end appeal for EJP non DE case (#869)

* Fix for missing document tags when end appeal for EJP non DE case

* Remove unused import

* Update bundle order and test

* RIA-8609 - Cherry picked from commit 1e61307a 18/01/2024 to bc61a18b 23/02/2024 (#836)

* RIA-8609 - Cherry picked from commit 1e61307a 18/01/2024 to bc61a18b 23/02/2024

* Cherry picked the commits from 401580ae 29/02/24 to c19c3e9b 29/03/24

* Temporarily disable FTs

* Add double quotes as required

* Fix failed functional tests (#870)

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-8609 - Cherry picked from 11/04/2024 a9dc2e9b to 16/04/2024 1be1d489 (#876)

* Cherry picked from 11/04/2024 a9dc2e9b to 16/04/2024 1be1d489

* Fix test

* RIA-TASK - Resolve conflicts (#878)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 …
colmlynch60 added a commit that referenced this pull request May 10, 2024
* base branch for dlrm

* Update suppressions.xml

* Update suppressions.xml

* RIA-8721 Added AMENDED cover letter for updateTribunalDecision event (#837)

* RIA-8721 Added AMENDED cover letter for updateTribunalDecision event

* RIA-8721 Added unit test

* RIA-8721 Fix checkstyle

* RIA-8211 update tribunal decision rule 31 aip timeline (#843)

* RIA-8211 update tribunal decision rule 31 AIP timeline

* update the unit test for new document tag

* RIA-8211 fix the code smell problem of sonarCloud (#844)

* RIA-8211 fix the duplicated code problem on sonarCloud

* update the logic for code review feedback

* update the unit test for UpdatedTribunalDecisionAndReasonsCoverLetterTemplateTest

* RIA-8239 Added unit tests and updated functional tests (#842)

* RIA-8239 Added unit tests and updated functional tests

* RIA-8239 Added unit test for data not present

* RIA-8721 Fixed HMCTS logo for AIP cover letter AMENDED (#849)

* RIA-8210 update tribunal decision docuement tab r31 (#857)

* RIA-8210 - Updating Document Tag post update tribunal event

* RIA-8210 - Updating Document Tag post update tribunal event

* RIA-8210 - Updating Document Tag post update tribunal event - fixing tests

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-8758: fix func tests patch (#852)

* RIA-8888 update suppressions.xml (#871)

* RIA-8828 Merge from master (#875)

* DIAC-281 fixing CcdScenarioRunnerTest (#846)

* DIAC-281 fixing CcdScenarioRunnerTest

* Revert "DIAC-281 fixing CcdScenarioRunnerTest"

This reverts commit 3f8f88cda75244a1edd571965c488d0c3b63ddfe.

* DIAC-281 fixing CcdScenarioRunnerTest

* Update all non-major dependencies (#847)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* VUL-5809 Upgrade serenity, restAssured, remove springHystrix reference (#848)

* Update all non-major dependencies (#851)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#853)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#854)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* VUL-5808 Remove passoword from docker-compose.yml (#850)

* Update plugin org.owasp.dependencycheck to v9.0.10 (#855)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies to v4.1.4 (#856)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.projectlombok:lombok to v1.18.32 (#859)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#860)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#863)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies to v4.6.8 (#864)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency commons-io:commons-io to v2.16.0 (#865)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 cdam download change fix (#806)

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123

* DIAC-123 removing logging

---------

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8726 - Merge SNL (BAILS) - > Master (DO NOT MERGE) (#841)

* RIA-7973
* RIA-7973 Updated Bail application details template

* RIA-7973 Added Bail FT scenarios pattern

* RIA-7973 Fixed Ft

* RIA-8119
* RIA-8119 Bail application document changes with added interpreter fields

* RIA-8364
* RIA-8364 Bail template change 01134 -> 01144

* RIA-8489
* RIA-8489 Refactored interpreter language

* RIA-8410 RIA-8409 Generate and store hearing notice on case (initial listing and relisting)

* RIA-8410: Generate hearing documents

- Create Handler, Template and configuration classes to generate notice of hearing for case relisting

* RIA-8409: Generate hearing documents

- Create handler, template and configuration classes to generate notice of hearing for initial listing event

* RIA-8410: Some code refactoring

* RIA-8508
* RIA-8508 Fix appeals refactored interpreter language

* RIA-8507
* RIA-8507 Fix the field type for fcs_has_passport in BailCaseFieldDefinition

* RIA-8554
* RIA-8554 Fix detention location on hearing-notice template

* RIA-8554
* RIA-8554 Using enums for Field definition comparison

* Update BailSubmissionTemplateProvider.java

* RIA-8738: IMA - Rebasing docmosis template (#845)

* Updates to fix build failure

* RIA-8773: Add missing hearing centres in the hearing location to hearing address mapping document (#858)

* RIA-8773 Fix rebasing of CcdScenarioRunnerTest

* RIA-8774 Add logging (#862)

* RIA-8774 Add logging

* RIA-8770 Run functional tests on pipeline

* RIA-8774 Enable logging on functional tests

* RIA-8774 Enable logging on functional tests

* Update DocumentTagTest.java

---------

Co-authored-by: Marcellofabbri <marcello.fabbri@hmcts.net>
Co-authored-by: Augustine Onubeze <ikechukwu.onubeze@gmail.com>
Co-authored-by: Marcello Fabbri <56549133+Marcellofabbri@users.noreply.github.com>

* Fix unit test

---------

Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marcello Fabbri <56549133+Marcellofabbri@users.noreply.github.com>
Co-authored-by: KleoG <KleoG@users.noreply.github.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Marcellofabbri <marcello.fabbri@hmcts.net>
Co-authored-by: Augustine Onubeze <ikechukwu.onubeze@gmail.com>

* RIA-8860 merge with master (#881)

* DIAC-281 fixing CcdScenarioRunnerTest (#846)

* DIAC-281 fixing CcdScenarioRunnerTest

* Revert "DIAC-281 fixing CcdScenarioRunnerTest"

This reverts commit 3f8f88cda75244a1edd571965c488d0c3b63ddfe.

* DIAC-281 fixing CcdScenarioRunnerTest

* Update all non-major dependencies (#847)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* VUL-5809 Upgrade serenity, restAssured, remove springHystrix reference (#848)

* Update all non-major dependencies (#851)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#853)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#854)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* VUL-5808 Remove passoword from docker-compose.yml (#850)

* Update plugin org.owasp.dependencycheck to v9.0.10 (#855)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies to v4.1.4 (#856)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.projectlombok:lombok to v1.18.32 (#859)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#860)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#863)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies to v4.6.8 (#864)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency commons-io:commons-io to v2.16.0 (#865)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 cdam download change fix (#806)

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123

* DIAC-123 removing logging

---------

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8726 - Merge SNL (BAILS) - > Master (DO NOT MERGE) (#841)

* RIA-7973
* RIA-7973 Updated Bail application details template

* RIA-7973 Added Bail FT scenarios pattern

* RIA-7973 Fixed Ft

* RIA-8119
* RIA-8119 Bail application document changes with added interpreter fields

* RIA-8364
* RIA-8364 Bail template change 01134 -> 01144

* RIA-8489
* RIA-8489 Refactored interpreter language

* RIA-8410 RIA-8409 Generate and store hearing notice on case (initial listing and relisting)

* RIA-8410: Generate hearing documents

- Create Handler, Template and configuration classes to generate notice of hearing for case relisting

* RIA-8409: Generate hearing documents

- Create handler, template and configuration classes to generate notice of hearing for initial listing event

* RIA-8410: Some code refactoring

* RIA-8508
* RIA-8508 Fix appeals refactored interpreter language

* RIA-8507
* RIA-8507 Fix the field type for fcs_has_passport in BailCaseFieldDefinition

* RIA-8554
* RIA-8554 Fix detention location on hearing-notice template

* RIA-8554
* RIA-8554 Using enums for Field definition comparison

* Update BailSubmissionTemplateProvider.java

* RIA-8738: IMA - Rebasing docmosis template (#845)

* Updates to fix build failure

* RIA-8773: Add missing hearing centres in the hearing location to hearing address mapping document (#858)

* RIA-8773 Fix rebasing of CcdScenarioRunnerTest

* RIA-8774 Add logging (#862)

* RIA-8774 Add logging

* RIA-8770 Run functional tests on pipeline

* RIA-8774 Enable logging on functional tests

* RIA-8774 Enable logging on functional tests

* Update DocumentTagTest.java

---------

Co-authored-by: Marcellofabbri <marcello.fabbri@hmcts.net>
Co-authored-by: Augustine Onubeze <ikechukwu.onubeze@gmail.com>
Co-authored-by: Marcello Fabbri <56549133+Marcellofabbri@users.noreply.github.com>

* RIA-TASK NABA -> Master : DO NOT MERGE (#520)

* RIA-6455: Added new Hearing centre - Harmondsworth (#518)

* RIA-6455: Added new Hearing centre - Harmondsworth

* Fix vulnerabilities

* Added Location (#519)

* Added Location

* Suppressions

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6491: Give admin officer access to edit appeal post submission (#521)

* RIA-6491: Give admin officer access to edit appeal post submission

* RIA-6491: Address dependency vulnerabilities

* RIA-6529: Generate Hearing Notice after listing for ADA cases (#522)

* RIA-6529: Generate Hearing Notice after listing for ADA cases

* Suppress vulnerabilities

* Added Yarls Wood as hearing centre and also its address (#524)

* Ria 6424 appeal submission summary (#527)

* Added some defs to extract case data
Added some puts to copy case data to field values which docmosis can use to generate the appeal submission summary

* Modified tests

* Formatted for sonar scan

* Final changes

* Refactored AppealSubmissionTemplate and added logic for displaying removal order date and time

* Added tests for detained fields and removal order date

* Formatted import and method line seperations for serenity checks

* Added CVE suppression

* Changed where appelantInDetention defaults to YesOrNo.NO

* Moved the parsing of complex asylum case fields (nomsNumber, dateCustodialSentence & otherDetentionFacilityName, to a dedicated method. Modified tests to cover more scenarios and make the tests more robust by checking all other relevant fields in the same flow.

* Added assertion to check size of templateFieldValues

* Bundled common fields together and setting Mockito strictness to lenient

* Added suppressions

* RIA-6424: Fix the TypeReference class for the field - 'hasPendingBailApplications' (#528)

- Changed from YesOrNo type to BailApplicationStatus type.
- update relevant unit tests.

* Added guards in event nomsNumber, releaseDate & removalOrderDate are empty strings (#530)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Ria 6424 (#531)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Ria 6564 hearing notice edited ada (#532)

* RIA-6564 - Adding hearing notice document generation for ADA cases

* RIA-6564 - Checkstyle

* RIA-6564 - Adding suppression

* Ria 6685 date decision letter (#545)

* RIA-6685 Added logic for Date decision letter to appear in Appeal template

* Formatting changes and tests

* Fixed tests

* added decisionLetterReceivedDate test

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6685-fixed-test (#546)

Co-authored-by: Jamie <jamiemurphy@version1.com>

* Ria 6605 ada suitability document api (#547)

* Saving work

* Saving changes

* Saving work before a forced update

* Latest changes

* latest changes

* Added new template

* Rebased

* Added ADASuitabilityReviewDecision entity. Added suitability review, reason and judge to AsylumCaseDefinition. Added AdaSuitability document tag. Added suitability review event. Created pre-submit handler to generate ada suitability document. Added AdaSuitability to bundleOrder. Created new AdaSuitabilityTemplate. Added Adasuitability bean to DocumentCreatorConfiguration. Added AdaSuitabilityDocument metadata to application.yml. Created AdaSuitabilityTemplateTest.

* Resolved comments in PR specifically regarding extra line seperations and variable name formatting

* Added functional test for ADA suitability document generation

* Adding system credentials and appropriate method to generate headers for pipeline build failures.

* Fix for failing functional test: RIA-5778-end-appeal-automatically-notice-document.json

* RIA-6612: Update Bundling events to include Ada suitability review do… (#549)

* RIA-6612: Update Bundling events to include Ada suitability review document

- new document added under section of Tribunal Documents.
- added functional and unit tests.

* Update owasp.dependencyCheck

* Updated 'after' method call in Jenkinfile*

* RIA-6694-Admin-Submit-Appeal (#551)

* RIA-6694-Admin-Submit-Appeal

* fixed state test

---------

Co-authored-by: Jamie <jamiemurphy@version1.com>
Co-authored-by: Dbarnes-v1 <99024336+Dbarnes-v1@users.noreply.github.com>

* RIA-6700 - Allowing access to editAppeal for Admin users (#552)

* RIA-6721 Added isAdmin field to templateFieldValues in appeal submission summary template. (#554)

Added isAdmin field to AsylumCaseDefinition.
Updated unit tests.

* RIA-6702 - Internal case creation adding access to the following even… (#553)

* RIA-6702 - Internal case creation adding access to the following events for Admins:

	1. makeAnApplication
	2. draftHearingRequirements
	3. buildCase
	4. submitCase
	5. uploadAdditionalEvidence
	6. applyForFTPAAppellant
	7. requestFeeRemission

* RIA-6702 - Updating unit test

* RIA-6702 - Suppression

* RIA-6873 appeal summary changes (#555)

* RIA-6873_appeal_summary_changes

* Charts java version upgraded

* Adding new suppression

* Change HAS_OTHER_APPEALS field type with new object class

* Ria 6844 Add date to ADA suitability document (#556)

* RIA-6844 Added date to ADA suitability document. Updated unit test.

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-6560 - Functional tests improvements (#568)

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Suppress CVE-2023-20863 (#570)

* Rebase from Master (#571)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. DocumentManagementUploader is updated but this class is not used or ex
tended by any other class

* update scanbase packages

* update gradle for test

* suppressing org.yaml:snakeyaml:1.26

* update tvtStringProvider

* update tvtStringProvider

* fix build failures

* fix build failures

* fix build failures

* Updates to fix build failures

* Updates to fix secure doc store client

* Bumping chart version/ fixing aliases

* Updates to fix build failures

* Updates to fix build failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to suppress cves to allow build to happen

* fix for failing gradle build

* RIA-5804: reload jenkins build

* Bumping chart version/ fixing aliases

* RIA-5804: fixed vulnerabilities

* RIA-5804: upgraded java chart version

---------

Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>

* Update suppressions.xml (#557)

* To update azurerm version for terraform (#558)

* Update state.tf

* Update .terraform-version

* Update variables.tf

* Update main.tf

* Update main.tf

* Revert "To update azurerm version for terraform (#558)" (#559)

This reverts commit a90efa41ddaa7b71f143c038f2355c4100e8a152.

* Revert "Update suppressions.xml (#557)" (#560)

This reverts commit 247256adf152dd85bd2f0dc3b3eb216478ff77a5.

* Revert "fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)" (#561)

This reverts commit 52eab14c22caa2398868bf623ffef1c9de6540bc.

* To revert cdam changes from production (#562)

* Update .terraform-version

* Update main.tf

* Update state.tf

* Update variables.tf

* Update suppressions.xml

* Update Chart.yaml

* Update suppressions.xml

* Bumping chart version/ fixing aliases

* Update Chart.yaml

* Update suppressions.xml

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update Dockerfile (#565)

* Update Dockerfile

* Update Dockerfile

* Update suppressions.xml

* Updated suppressions

---------

Co-authored-by: addison-jephtah <108927648+addison-jephtah@users.noreply.github.com>
Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>
Co-authored-by: mokainos <72137340+mokainos@users.noreply.github.com>

* Updated dependencies to remove suppressed CVEs (#564) (#573)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>
Co-authored-by: mcareyma <matthew.carey@version1.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7043 add NOTICE_OF_DECISION_UT_TRANSFER document tag (#576)

* RIA-7043
* Added NOTICE_OF_DECISION_UT_TRANSFER enum to DocumentTag.java

* RIA-7043
* Updated DocumentTagTest.java

* RIA-7043
* Updated document bundle configs

* Supressed CVE-2023-28709 (#580)

* Added new line character to kick off new build on pipeline (#582)

* RIA-7158 request case building notification attachment letter (#583)

* * Added powermock to build.gradle which is used in testing
* Added template for internal cases for FTs
* Added requestCaseBuilding event to enums
* Added NOTIFICATION_ATTACHMENT_DOCUMENTS to asylumCase to store new AIP notification attachment docs
* Added AdaListCase direction tag to fix bug where the direction cannot be parsed as it's not in the list of DirectionTag enums
* Added requestCaseBuilding Doc tag
* Updated bundleOrder with the new DocTag
* Added holidaydates service
* Added DueDateService
* Added new handler/docGenerator for requestCaseBuilding event for internal ADA cases
* Created new template for the new handler/docGenerator
* Added asylumcaseutils
* Added internalAdaBuildCase bean to DocumentCreatorConfiguration for the above new handler/template
* Updated CustomerServicesProvider with new email/telephone for internal ADA cases
* Added internalAdaBuildCaseDocument metadata to application.yml. Also gave CO permission for requestCaseBuilding event and added internal ADA contact details
* Added unit tests for above
* Added FT for LO requestCaseBuilding to verify doc generated

* RIA-7158
* Moved the deconstruction of directions to AsylumCaseUtils to make it generalised for future use
* Added utility class to format dates
* Updated tests
* Added comment as per PR review feedback

* Added suppression to make CI/CD pipeline pass (#584)

* RIA-7158 (#585)

* Formatted date

* Update suppressions.xml

force build

* Update minimal-aip-appeal-submitted.json

* Update minimal-appeal-submitted.json

* Update suppressions.xml

* Update suppressions.xml

* RIA-7175 Internal ADA suitability document - unsuitable (#593)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Suppress CVE-2023-35116 and CVE-2023-2976

* Revert "RIA-7175 Internal ADA suitability document - unsuitable (#593)" (#594)

This reverts commit 8d9236e8d0b9c89ac23bee6c4279d4d07b9c8c96.

* RIA-7174 ADA suitability document - suitable (#596)

* RIA-7174 ADA suitability notification doc for suitable decision

* RIA-7174 Suppressing CVE-2023-35116

* RIA-7174 Changes from code review, some refactoring work also

* RIA-7174
* Removed common method and put it back into the template as a private method.

* RIA-7174 Added empty line at end of functional test

---------

Co-authored-by: FarukH <hussain.faruk@hmcts.net>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7175 internal ada suitability unsuitable document (#595)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Fixed formatting issues after rebase branch

* RIA-7172: Generate letter when 'HO Request Review' event is triggered (#597)

* RIA-7172: Generate letter when 'HO Request Review' ebent is triggered

- add the new letter in the Notification_letter collection.
- new tag added.

* RIA-7172: Fix Functional test

* RIA-7172: Trigger letter generation only for ADA

* RIA-7212 Internal ADA Appeal decided, allowed document generation (#598)

* RIA-7212 Internal ADA Appeal decided, allowed document generation

* RIA-7212 Fixed unit tests after rebase

* RIA-7212 Tidying up code using common methods

* RIA-7212 Refactor packages

* Ria 7540 dynamic internal email/tel (#599)

* RIA-7540 Updated customer service provider to return internal case dynamic email/tel

* RIA-7540 updated HoReviewEvidenceLetterTemplate to get fetch dynamic email and tel

* RIA-7540 updated InternalAdaDecisionsAndReasonsAllowedLetterTemplate to get fetch dynamic email and tel

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7174 Refactor package location (#600)

* RIA-7175 Refactor of package (#601)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appea… (#605)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appeal Response' event

- added new user for functional test - HomeOfficeLart
- added new entity - AppealReviewOutcome.

* RIA-7198: Fix customer services contact info methods

* RIA-7198: Fix unit tests

* RIA-7198: Fix functional test for 'end appeal automatically' event

* RIA-7198: Added system env variable to secret mapping for the lart user credentials

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismisse… (#604)

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismissed - ADA (Letter) template generation, tests

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Fixed code styles

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsReasonsLetterAllowedGenerator(and Dismissed) refactored into one generic class with conditions, tests fixed as well

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsAndReasonsDismissedLetterTemplate refactored dueDate code lines

* RIA-7200 (#602)

* Added new template for hearing bundle ready letter
* Added new handlers and functionality to generate this letter AFTER generate hearing bundle event when async stitching bundle event is implicitly called and is successful
* Added unit/functional tests

* RIA-7174 Adding new template vars to template (#607)

* RIA-7174 Adding new template vars to template

* RIA-7174 Functional test reworked to add directions

* RIA-7174 Another functional test rework

* RIA-7538 Updated config and handler to handle internal case detained non ADA document generation (#610)

* RIA-7606_change_customer_service_mail (#611)

* RIA-7606_change_customer_service_mail: Fix customer service mail in application.yml

* RIA-7606_change_customer_service_mail: Fix customer service mail in InternalDetGenerateHearingBundleTemplateTest

* RIA-7215 Updated template to handle detained non-ada letter (#612)

* RIA-7200 Fix hearing centre name (#613)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7218 Allow document generation for all detained cases (#615)

* RIA-7218 Allow document generation for all detained cases

* RIA-7218 Functional test fixed

* RIA-7159 Request case building detained letter generation (#616)

* RIA-7159: WIP

- Used one generator for for both detained and non-detained letter
  generations

* RIA-7159 Final changes. tests and checkstyle changes

* RIA-7159 Removing redundant unit tests

---------

Co-authored-by: Neha Aggarwal <neha.aggarwal@version1.com>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7159 Rework of Non-ADA template to reduce duplication (#619)

* RIA-7548_internal_appeal_submission_non_ada (#618)

* RIA-7548_internal_appeal_submission_non_ada: Add appeal submission template for internal, non ada, detained only cases

* RIA-7548_internal_appeal_submission_non_ada: styles fix

* RIA-7548_internal_appeal_submission_non_ada: Add document tag, fix tests for this tag

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Fix condition AsylumCase definition in AppealSubmissionCreator

* RIA-7548_internal_appeal_submission_non_ada: Bundle sort tests fix

* RIA-7216 Added appeal decided dismissed detained non ADA document templates (#622)

* Update suppressions.xml

* Update suppressions.xml

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record ou… (#623)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed (#624)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7552 appeal can proceed (#626)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7554 directed to upload bundle (#628)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* Ria 7554 directed to upload bundle (#629)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#630)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#631)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-TASK Merged master changes to Naba - documents-api (#614)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* Fixed tests

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7582 non_payment_end_appeal (#637)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7582_non_payment_end_appeal: Add template, generator, configuration, Asylum definitions for remission type, tests

* RIA-7582_non_payment_end_appeal: Add RemissionType test

* RIA-7582_non_payment_end_appeal: Fix application properties document fileName and functional test 7582

* RIA-7580 (#638)

* Added new handler, template and bean config for internal detained non-ada appeal fee letter with no remissions
* Imported AppealType class from case-api
* Updated existing unit tests (State, BundleOrder & DocumentTag)
* Added unit tests and FT

* RIA-7581 Added internal detained mark as paid letter (#639)

* RIA-7618 document remission partially approved rejected (#641)

* RIA-7618 Initial document changes before rebase

* RIA-7618 Final refactored changes after rebasing

* RIA-7618 Utils method change

* RIA-7618 Adding unit test for RemissionDecision class

* RIA-7618 checkstyle test fix

* RIA-7556 internal det ho review maintained (#640)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7556 init commit

* RIA-7556_internal_det_ho_review_maintaned: Add tests unit/functional, update application.yml for new event and fix document extension in application.yml

* RIA-7556_internal_det_ho_review_maintaned: Add tests for new event

* RIA-7556_internal_det_ho_review_maintaned: Fix on dueDate in template and test for this template

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Adding detenction

---------

Co-authored-by: ThomasKKC <thomas.cheong@version1.com>

* RIA-7559 DET letter case listing detained (#642)

* RIA-7559 Generator and template for doc generation

* RIA-7559 internal detained list case letter generation

* RIA-7559 document creator values updated to correct document

* RIA-7559 functional test added

* RIA-7559 append document to notifications attachments group

* RIA-7559 functional test fix

* RIA-7559 Checkstyle and unit test fixes for pipeline

* RIA-7557 Internal detained review HO response decision withdrawn letter generation (#643)

* RIA-7557
* Added functionality for new letter generation when LO requests AIP to review HO response
* Added new doc tag for the new letter
* Refactored RIA-7556
* Added/updated unit/FTs

* Rebasing

* RIA-7557
* Updated FT

* RIA-7561 - Added handler to generate letter when 'Request Hearing Requ… (#644)

* RIA-7561: Added handler to generate letter when 'Request Hearing Requirements' Event is triggered

* RIA-7561: Remove local testing code.

* RIA-7561: Remove unused import.

* RIA-7561: Fix BundleOrderTest after rebase.

* RIA-7561: Fix PMD violations.

* Update suppressions.xml

* RIA-7556/RIA-7557 (#648)

* Renamed document file names for home office response review decision maintained and withdrawn

* RIA-7372 appeal_ended_aip_journey (#647)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended_aip_journey: Add Document tag for internal cases, generator, template, configuration, application.yml links and tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7561: Allow LF for Request Hearing Requirements Feature (#649)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7281 Added internal detained edit case listing letter (#650)

* RIA-7281 Added internal detained edit case listing letter

* RIA-7281 Added extra unit tests for thrown exceptions

* RIA-7374 mark_appeal_as_ada (#651)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7374_mark_appeal_as_ada: Add for internal journey mark as ada, configuration, template, document Tag, event, Bundler order tag. Populate application props with link to letter, add functional tests

* RIA-7374_mark_appeal_as_ada: Fix merge conflicts

* RIA-7374_mark_appeal_as_ada: Remove condition check if appeal is Ada, as well remove from tests functional and junit

* RIA-7364 internal decideAnApplication letter generation (#653)

* RIA-7364
* Added functionality for decideAnApplication letter generation for internal cases
* Copied across makeAnApplication logic and its parsing/extraction from case data
* Added new doc tag
* Added/updated unit and FTs

* RIA-7364
* Updated FTs

* RIA-7364 Made some changes for sonar cloud failures (#655)

* Added isPresent() check
* Updated assertion for default case in enhanced switch statement

* Update suppressions.xml

* RIA-7328 ho_ftpa_submitted (#657)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7328_ho_ftpa_submitted: Add DocumentTag, Populate BundlerOrder, DocumentCreatorConfiguration for APPLY_FOR_FTPA_RESPONDENT. Add roles, junit/functional tests for APPLY_FOR_FTPA_RESPONDENT

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7365 (#660)

* Added new template for internal decide an application where decision is refused
* Refactored 7364 so granted+refused use a single handler with independent DocumentCreatorConfiguration beans and seperate templates.
* Added/updated unit/FTs.

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7701 Added transfer out of ADA letter (#661)

* RIA-7326 (#663)

* Added functionality to generate letter when admin officer applies for ftpa for internal cases
* Added/updated tests

* RIA-7326 (#665)

* Updated doc tag

* RIA-7330 Internal appellant FTPA decided granted document (#670)

* RIA-7330 Internal appellant FTPA decided granted document

* RIA-7330 Checkstyle and unit test fixes

* Update suppressions.xml

* Update suppressions.xml

* RIA-7360 ho_ftpa_decided_granted (#671)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7360_ho_ftpa_decided_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided granted. Add Tests and functional test, Document.tag, Definitions.

* RIA-7361 ho_ftpa_decided_partially_granted (#672)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7361_ho_ftpa_decided_partially_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided partially granted. Add Tests and functional test

* RIA-7326 (#673)

* Give LR permission for applyForFTPAAppellant event doc generation

* RIA-7362 ho_ftpa_decided_refused (#675)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7362_ho_ftpa_decided_refused: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided refused. Add Tests and functional test

* RIA-7362_ho_ftpa_decided_refused: Fix typo

* RIA-7331 Internal appellant ftpa decided - partially granted document (#676)

* RIA-7331 Internal appellant ftpa decided - partially granted document

* RIA-7331 Corrected deadline date values for ada and non-ada

* RIA-7332 Document for Appellant ftp decided - refused (#677)

* RIA-7332 Document for Appellant ftp decided - refused

* RIA-7332 Suppressing CVE-2023-41080

* RIA-7332 Split functional test into ADA and non-ADA scenarios

* RIA-7332 Functional test file rename

* RIA-7331 Further changes to ADA working days scenario (#678)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios (#679)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios

* RIA-7330 rename FT title for non-ADA FT

* RIA-TASK - Merged Master changes to NABA case-documents (#669)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Update suppressions.xml

* Merged Master changes to NABA

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>

* RIA-7844 (#682)

* Added content for application type - reinstate to InternalDecideAnApplicationDecisionGrantedLetterTemplate.getWhatHappensNextContent()
* Added reinstate content test
* Added FTs for reinstate application type when decided

* RIA-7844 (#684)

* Adding full stop to String

* RIA-7322 Internal hearing requirements updated letter generation (#686)

* RIA-7367 (#685)

* Refactored internal appellant application decided (refused+granted)
* Updated internalApplicationDecided handler to pick correct DocumentCreatorCongif bean based on granted/refused and appellant/respondent application
* Added new bean for HO decide application
* Added/updated unit tests
* Refactored 7364 FTs to include Admin Officer as application applicant
* Added new FTs

* RIA-7368 (#690)

* Addedn functionality to generate letter when HO application decided
* Refactored RIA-7365
* Added/updated unit/FTs

* RIA-7372 appeal_ended (#688)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended: change decisionMaker to fetch from END_APPEAL_APPROVER_TYPE, fix endAppealDate fortmat, fix tests

* RIA-7372_appeal_ended: remove unused import

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7322 hearingDate removed from template (#691)

* RIA-7561: Fix the deadline date in the 'Request Hearing Requirements' letter (#687)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7378 unlink_appeal (#693)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Add new Document letter generation for Maintain Case Link event.

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: remove unused import

* RIA-7378 unlink case (#694)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7427 Internal upload additional evidence doc generation (#695)

* RIA-7427 Internal upload additional evidence doc generation

* RIA-7427 Test and checkstyle fixes

* RIA-7378 unlink_case (#696)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378 unlink_case (#697)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#698)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#699)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7895 bug_fix_rule3235 (#700)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7895_bug_fix_rule3235: Populate FtpaDecisionOutcomeType with values of 23 and 35 rules

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7279 (#705)

* Added handler and template for generating letter when LO requests HO to amend appeal response
* Imported isValidUserDirection from notifications-api.
* Added/updated unit and FTs

* RIA-7376 link_case (#704)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_case_det: Add Event create case link. Template, configurations, tests

* RIA-7376_link_case_det: Fix unit test

* RIA-7376_link_case_det: Fix intends

* RIA-7376_link_case_det: populate FT with more values, AsylumCase object mapper populated with dateTime module

* RIA-7376_link_case_det: merge conflicts

* RIA-7437 internal non standard direction letter (#706)

* RIA-7437 Non standard direction to appellant - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, second time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, Fourth time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests, try two - ADA & NonADA (Letter)

* RIA-7437 - Renamed bean

* RIA-7437 - fixed functional tests

* RIA-7437 Non standard direction to appellant, resolving comments (Letter)

* RIA-7437 Non standard direction to appellant, fixing checkstyle error (Letter)

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>
Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7376 link_cases (#711)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_cases: fix dates serialization mechanism

* RIA-7376_link_cases: fix styles

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'S… (#714)

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'Send Direction' event

* Update renovate.json

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7433 Generate letter when LO changes hearing centre for detained… (#702)

* RIA-7433: Generate letter when LO changes hearing centre for detained internal appeals

* RIA-7433 updated functional test description

* RIA-7433: Added FT for non-ADA appeal

* Fix checkstyle errors

* RIA-7418 Appeal edited - ADA & Non ADA (Letter) (#717)

* RIA-7418: added new edit template letter and logic behind

* RIA-7418: fixed BundleOrderTest.java

* RIA-7432: Fix template to reflect old and new hearing centres (#721)

* RIA-7370 (#719)

* Refactored implementation of RIA-7427 to make InternalUploadAdditionalEvidenceGenerator generic for all users
* Imported HasDocument interface and made current implementation of DocumentWithMetadata implement it
* Imported events from case-api
* Added 2 new doc tags (LO additional evidence upload and HO additional evidence upload)
* Created 2 new templates for HO and LO additional evidence upload
* Added new methods in AsylumCaseUtils to extract addendum evidence documents and to fetch most recent addendum evidence added
* Created 2 new beans in DocumentCreatorConfiguration (LO/HO additional evidence upload)
* 2 new application.yaml entries for document templates
* Updated existing tests and added new unit/FTs

* RIA-7370 Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice (#725)

* RIA-7370
* Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice

* RIA-7370
* Fixed sonar check. Performing isEmpty() check on optional var before a .get()

* RIA-7370 (#727)

* Added a null check on addendum metadata

* Suppress CVE (#728)

* RIA-7471 letter generation direction due date changed (#715)

* RIA-7471 Letter generation when 'Change Direction due date' is triggered

- for ADA and non ADA internal cases
- when recipient party is either APPELLANT or APPELLANT AND RESPONDENT.

* Fix naming of a variable

* RIA-7471 - fixed unit test

* RIA-7471 Fix functional tests

* Fix unit test

* Fix template personalisations

* Fix name for template env variable

---------

Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7435 Home_office_non-Standard_direction_letter (#730)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-7439 ho_change_direction_due_date (#729)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439 ho_change_direction_due_date (#731)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439 ho_change_direction_due_date (#735)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7429 Letter generation for Internal Reinstate Appeal (#722)

* RIA-7435 Rename the letter generator class and corresponding unit tests (#737)

* RIA-7435 Rename the letter generator class and corresponding unit tests

* Fix checkstyle error

* Fix functional tests

* Fixing functional test

* RIA-7911 Update hearing adjustments (#739)

* RIA-7911_Update_hearing_adjustments

* RIA-7911 Update hearing adjustments functional tests

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* Update suppressions.xml

* Update suppressions.xml

* RIA-7537 EJP Adding new roles for legal officer (#746)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-8888 Upgraded chart version (#751)

* RIA-8888 Upgraded chart version

* RIA-8888 revert version because it is auto bumped

* RIA-8888 added suppressions

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7411 Removing OOC feature flag fields (#743) (#754)

* RIA-7411 Removing OOC feature flag fields

* RIA-7411 Suppressing CVE-2023-42794, CVE-2023-42795, CVE-2023-45648

Co-authored-by: Ryan-Nesbitt <95298094+Ryan-Nesbitt@users.noreply.github.com>

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#760)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Jake Cohen <101183561+JakeCohenSol@users.noreply.github.com>
Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* Removed print line that causes issues on windows (#762)

* RIA-7950 upgrade_fix (#767)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7950_upgrade_fix: trigger rebuild

* RIA-2023 rebuild_pipelines (#775)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-20231212_rebuild_pipelines: Restart pipelines

* RIA-20231212_rebuild_pipelines: Add supressions

* Update suppressions.xml

* RIA-7324 Hearing adjourned without a date - ADA & Non ADA (Letter) (#788)

* RIA-7324: added adjourn hearing without date letter template

* RIA-7324: small fix on DocumentTag applied

* RIA-8214 Add a new screen to Bails start application - UT appeal pending (#791)

* RIA-8214: bail application submission template fixed with new fields

* RIA-8214: small refactor name on definitions

* Revert "RIA-8214 Add a new screen to Bails start application - UT appeal pending" (#793)

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#792)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

…
colmlynch60 added a commit that referenced this pull request May 20, 2024
* base branch for dlrm

* Update suppressions.xml

* Update suppressions.xml

* RIA-8721 Added AMENDED cover letter for updateTribunalDecision event (#837)

* RIA-8721 Added AMENDED cover letter for updateTribunalDecision event

* RIA-8721 Added unit test

* RIA-8721 Fix checkstyle

* RIA-8211 update tribunal decision rule 31 aip timeline (#843)

* RIA-8211 update tribunal decision rule 31 AIP timeline

* update the unit test for new document tag

* RIA-8211 fix the code smell problem of sonarCloud (#844)

* RIA-8211 fix the duplicated code problem on sonarCloud

* update the logic for code review feedback

* update the unit test for UpdatedTribunalDecisionAndReasonsCoverLetterTemplateTest

* RIA-8239 Added unit tests and updated functional tests (#842)

* RIA-8239 Added unit tests and updated functional tests

* RIA-8239 Added unit test for data not present

* RIA-8721 Fixed HMCTS logo for AIP cover letter AMENDED (#849)

* RIA-8210 update tribunal decision docuement tab r31 (#857)

* RIA-8210 - Updating Document Tag post update tribunal event

* RIA-8210 - Updating Document Tag post update tribunal event

* RIA-8210 - Updating Document Tag post update tribunal event - fixing tests

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-8758: fix func tests patch (#852)

* RIA-8772 Updated suppressions.xml

* RIA-8772 Added remitted reheard document complex collections (#867)

* RIA-8888 update suppressions.xml (#871)

* RIA-8256 added reheard decision docs complex collection (#872)

* RIA-8828 Merge from master (#875)

* DIAC-281 fixing CcdScenarioRunnerTest (#846)

* DIAC-281 fixing CcdScenarioRunnerTest

* Revert "DIAC-281 fixing CcdScenarioRunnerTest"

This reverts commit 3f8f88cda75244a1edd571965c488d0c3b63ddfe.

* DIAC-281 fixing CcdScenarioRunnerTest

* Update all non-major dependencies (#847)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* VUL-5809 Upgrade serenity, restAssured, remove springHystrix reference (#848)

* Update all non-major dependencies (#851)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#853)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#854)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* VUL-5808 Remove passoword from docker-compose.yml (#850)

* Update plugin org.owasp.dependencycheck to v9.0.10 (#855)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies to v4.1.4 (#856)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.projectlombok:lombok to v1.18.32 (#859)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#860)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#863)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies to v4.6.8 (#864)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency commons-io:commons-io to v2.16.0 (#865)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 cdam download change fix (#806)

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123

* DIAC-123 removing logging

---------

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8726 - Merge SNL (BAILS) - > Master (DO NOT MERGE) (#841)

* RIA-7973
* RIA-7973 Updated Bail application details template

* RIA-7973 Added Bail FT scenarios pattern

* RIA-7973 Fixed Ft

* RIA-8119
* RIA-8119 Bail application document changes with added interpreter fields

* RIA-8364
* RIA-8364 Bail template change 01134 -> 01144

* RIA-8489
* RIA-8489 Refactored interpreter language

* RIA-8410 RIA-8409 Generate and store hearing notice on case (initial listing and relisting)

* RIA-8410: Generate hearing documents

- Create Handler, Template and configuration classes to generate notice of hearing for case relisting

* RIA-8409: Generate hearing documents

- Create handler, template and configuration classes to generate notice of hearing for initial listing event

* RIA-8410: Some code refactoring

* RIA-8508
* RIA-8508 Fix appeals refactored interpreter language

* RIA-8507
* RIA-8507 Fix the field type for fcs_has_passport in BailCaseFieldDefinition

* RIA-8554
* RIA-8554 Fix detention location on hearing-notice template

* RIA-8554
* RIA-8554 Using enums for Field definition comparison

* Update BailSubmissionTemplateProvider.java

* RIA-8738: IMA - Rebasing docmosis template (#845)

* Updates to fix build failure

* RIA-8773: Add missing hearing centres in the hearing location to hearing address mapping document (#858)

* RIA-8773 Fix rebasing of CcdScenarioRunnerTest

* RIA-8774 Add logging (#862)

* RIA-8774 Add logging

* RIA-8770 Run functional tests on pipeline

* RIA-8774 Enable logging on functional tests

* RIA-8774 Enable logging on functional tests

* Update DocumentTagTest.java

---------

Co-authored-by: Marcellofabbri <marcello.fabbri@hmcts.net>
Co-authored-by: Augustine Onubeze <ikechukwu.onubeze@gmail.com>
Co-authored-by: Marcello Fabbri <56549133+Marcellofabbri@users.noreply.github.com>

* Fix unit test

---------

Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marcello Fabbri <56549133+Marcellofabbri@users.noreply.github.com>
Co-authored-by: KleoG <KleoG@users.noreply.github.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Marcellofabbri <marcello.fabbri@hmcts.net>
Co-authored-by: Augustine Onubeze <ikechukwu.onubeze@gmail.com>

* RIA-8291 Added new bundle config for Remitted case (#877)

* RIA-8860 merge with master (#881)

* DIAC-281 fixing CcdScenarioRunnerTest (#846)

* DIAC-281 fixing CcdScenarioRunnerTest

* Revert "DIAC-281 fixing CcdScenarioRunnerTest"

This reverts commit 3f8f88cda75244a1edd571965c488d0c3b63ddfe.

* DIAC-281 fixing CcdScenarioRunnerTest

* Update all non-major dependencies (#847)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* VUL-5809 Upgrade serenity, restAssured, remove springHystrix reference (#848)

* Update all non-major dependencies (#851)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#853)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#854)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* VUL-5808 Remove passoword from docker-compose.yml (#850)

* Update plugin org.owasp.dependencycheck to v9.0.10 (#855)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies to v4.1.4 (#856)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.projectlombok:lombok to v1.18.32 (#859)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#860)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#863)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies to v4.6.8 (#864)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency commons-io:commons-io to v2.16.0 (#865)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 cdam download change fix (#806)

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123

* DIAC-123 removing logging

---------

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8726 - Merge SNL (BAILS) - > Master (DO NOT MERGE) (#841)

* RIA-7973
* RIA-7973 Updated Bail application details template

* RIA-7973 Added Bail FT scenarios pattern

* RIA-7973 Fixed Ft

* RIA-8119
* RIA-8119 Bail application document changes with added interpreter fields

* RIA-8364
* RIA-8364 Bail template change 01134 -> 01144

* RIA-8489
* RIA-8489 Refactored interpreter language

* RIA-8410 RIA-8409 Generate and store hearing notice on case (initial listing and relisting)

* RIA-8410: Generate hearing documents

- Create Handler, Template and configuration classes to generate notice of hearing for case relisting

* RIA-8409: Generate hearing documents

- Create handler, template and configuration classes to generate notice of hearing for initial listing event

* RIA-8410: Some code refactoring

* RIA-8508
* RIA-8508 Fix appeals refactored interpreter language

* RIA-8507
* RIA-8507 Fix the field type for fcs_has_passport in BailCaseFieldDefinition

* RIA-8554
* RIA-8554 Fix detention location on hearing-notice template

* RIA-8554
* RIA-8554 Using enums for Field definition comparison

* Update BailSubmissionTemplateProvider.java

* RIA-8738: IMA - Rebasing docmosis template (#845)

* Updates to fix build failure

* RIA-8773: Add missing hearing centres in the hearing location to hearing address mapping document (#858)

* RIA-8773 Fix rebasing of CcdScenarioRunnerTest

* RIA-8774 Add logging (#862)

* RIA-8774 Add logging

* RIA-8770 Run functional tests on pipeline

* RIA-8774 Enable logging on functional tests

* RIA-8774 Enable logging on functional tests

* Update DocumentTagTest.java

---------

Co-authored-by: Marcellofabbri <marcello.fabbri@hmcts.net>
Co-authored-by: Augustine Onubeze <ikechukwu.onubeze@gmail.com>
Co-authored-by: Marcello Fabbri <56549133+Marcellofabbri@users.noreply.github.com>

* RIA-TASK NABA -> Master : DO NOT MERGE (#520)

* RIA-6455: Added new Hearing centre - Harmondsworth (#518)

* RIA-6455: Added new Hearing centre - Harmondsworth

* Fix vulnerabilities

* Added Location (#519)

* Added Location

* Suppressions

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6491: Give admin officer access to edit appeal post submission (#521)

* RIA-6491: Give admin officer access to edit appeal post submission

* RIA-6491: Address dependency vulnerabilities

* RIA-6529: Generate Hearing Notice after listing for ADA cases (#522)

* RIA-6529: Generate Hearing Notice after listing for ADA cases

* Suppress vulnerabilities

* Added Yarls Wood as hearing centre and also its address (#524)

* Ria 6424 appeal submission summary (#527)

* Added some defs to extract case data
Added some puts to copy case data to field values which docmosis can use to generate the appeal submission summary

* Modified tests

* Formatted for sonar scan

* Final changes

* Refactored AppealSubmissionTemplate and added logic for displaying removal order date and time

* Added tests for detained fields and removal order date

* Formatted import and method line seperations for serenity checks

* Added CVE suppression

* Changed where appelantInDetention defaults to YesOrNo.NO

* Moved the parsing of complex asylum case fields (nomsNumber, dateCustodialSentence & otherDetentionFacilityName, to a dedicated method. Modified tests to cover more scenarios and make the tests more robust by checking all other relevant fields in the same flow.

* Added assertion to check size of templateFieldValues

* Bundled common fields together and setting Mockito strictness to lenient

* Added suppressions

* RIA-6424: Fix the TypeReference class for the field - 'hasPendingBailApplications' (#528)

- Changed from YesOrNo type to BailApplicationStatus type.
- update relevant unit tests.

* Added guards in event nomsNumber, releaseDate & removalOrderDate are empty strings (#530)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Ria 6424 (#531)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Ria 6564 hearing notice edited ada (#532)

* RIA-6564 - Adding hearing notice document generation for ADA cases

* RIA-6564 - Checkstyle

* RIA-6564 - Adding suppression

* Ria 6685 date decision letter (#545)

* RIA-6685 Added logic for Date decision letter to appear in Appeal template

* Formatting changes and tests

* Fixed tests

* added decisionLetterReceivedDate test

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6685-fixed-test (#546)

Co-authored-by: Jamie <jamiemurphy@version1.com>

* Ria 6605 ada suitability document api (#547)

* Saving work

* Saving changes

* Saving work before a forced update

* Latest changes

* latest changes

* Added new template

* Rebased

* Added ADASuitabilityReviewDecision entity. Added suitability review, reason and judge to AsylumCaseDefinition. Added AdaSuitability document tag. Added suitability review event. Created pre-submit handler to generate ada suitability document. Added AdaSuitability to bundleOrder. Created new AdaSuitabilityTemplate. Added Adasuitability bean to DocumentCreatorConfiguration. Added AdaSuitabilityDocument metadata to application.yml. Created AdaSuitabilityTemplateTest.

* Resolved comments in PR specifically regarding extra line seperations and variable name formatting

* Added functional test for ADA suitability document generation

* Adding system credentials and appropriate method to generate headers for pipeline build failures.

* Fix for failing functional test: RIA-5778-end-appeal-automatically-notice-document.json

* RIA-6612: Update Bundling events to include Ada suitability review do… (#549)

* RIA-6612: Update Bundling events to include Ada suitability review document

- new document added under section of Tribunal Documents.
- added functional and unit tests.

* Update owasp.dependencyCheck

* Updated 'after' method call in Jenkinfile*

* RIA-6694-Admin-Submit-Appeal (#551)

* RIA-6694-Admin-Submit-Appeal

* fixed state test

---------

Co-authored-by: Jamie <jamiemurphy@version1.com>
Co-authored-by: Dbarnes-v1 <99024336+Dbarnes-v1@users.noreply.github.com>

* RIA-6700 - Allowing access to editAppeal for Admin users (#552)

* RIA-6721 Added isAdmin field to templateFieldValues in appeal submission summary template. (#554)

Added isAdmin field to AsylumCaseDefinition.
Updated unit tests.

* RIA-6702 - Internal case creation adding access to the following even… (#553)

* RIA-6702 - Internal case creation adding access to the following events for Admins:

	1. makeAnApplication
	2. draftHearingRequirements
	3. buildCase
	4. submitCase
	5. uploadAdditionalEvidence
	6. applyForFTPAAppellant
	7. requestFeeRemission

* RIA-6702 - Updating unit test

* RIA-6702 - Suppression

* RIA-6873 appeal summary changes (#555)

* RIA-6873_appeal_summary_changes

* Charts java version upgraded

* Adding new suppression

* Change HAS_OTHER_APPEALS field type with new object class

* Ria 6844 Add date to ADA suitability document (#556)

* RIA-6844 Added date to ADA suitability document. Updated unit test.

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-6560 - Functional tests improvements (#568)

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Suppress CVE-2023-20863 (#570)

* Rebase from Master (#571)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. DocumentManagementUploader is updated but this class is not used or ex
tended by any other class

* update scanbase packages

* update gradle for test

* suppressing org.yaml:snakeyaml:1.26

* update tvtStringProvider

* update tvtStringProvider

* fix build failures

* fix build failures

* fix build failures

* Updates to fix build failures

* Updates to fix secure doc store client

* Bumping chart version/ fixing aliases

* Updates to fix build failures

* Updates to fix build failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to suppress cves to allow build to happen

* fix for failing gradle build

* RIA-5804: reload jenkins build

* Bumping chart version/ fixing aliases

* RIA-5804: fixed vulnerabilities

* RIA-5804: upgraded java chart version

---------

Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>

* Update suppressions.xml (#557)

* To update azurerm version for terraform (#558)

* Update state.tf

* Update .terraform-version

* Update variables.tf

* Update main.tf

* Update main.tf

* Revert "To update azurerm version for terraform (#558)" (#559)

This reverts commit a90efa41ddaa7b71f143c038f2355c4100e8a152.

* Revert "Update suppressions.xml (#557)" (#560)

This reverts commit 247256adf152dd85bd2f0dc3b3eb216478ff77a5.

* Revert "fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)" (#561)

This reverts commit 52eab14c22caa2398868bf623ffef1c9de6540bc.

* To revert cdam changes from production (#562)

* Update .terraform-version

* Update main.tf

* Update state.tf

* Update variables.tf

* Update suppressions.xml

* Update Chart.yaml

* Update suppressions.xml

* Bumping chart version/ fixing aliases

* Update Chart.yaml

* Update suppressions.xml

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update Dockerfile (#565)

* Update Dockerfile

* Update Dockerfile

* Update suppressions.xml

* Updated suppressions

---------

Co-authored-by: addison-jephtah <108927648+addison-jephtah@users.noreply.github.com>
Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>
Co-authored-by: mokainos <72137340+mokainos@users.noreply.github.com>

* Updated dependencies to remove suppressed CVEs (#564) (#573)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>
Co-authored-by: mcareyma <matthew.carey@version1.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7043 add NOTICE_OF_DECISION_UT_TRANSFER document tag (#576)

* RIA-7043
* Added NOTICE_OF_DECISION_UT_TRANSFER enum to DocumentTag.java

* RIA-7043
* Updated DocumentTagTest.java

* RIA-7043
* Updated document bundle configs

* Supressed CVE-2023-28709 (#580)

* Added new line character to kick off new build on pipeline (#582)

* RIA-7158 request case building notification attachment letter (#583)

* * Added powermock to build.gradle which is used in testing
* Added template for internal cases for FTs
* Added requestCaseBuilding event to enums
* Added NOTIFICATION_ATTACHMENT_DOCUMENTS to asylumCase to store new AIP notification attachment docs
* Added AdaListCase direction tag to fix bug where the direction cannot be parsed as it's not in the list of DirectionTag enums
* Added requestCaseBuilding Doc tag
* Updated bundleOrder with the new DocTag
* Added holidaydates service
* Added DueDateService
* Added new handler/docGenerator for requestCaseBuilding event for internal ADA cases
* Created new template for the new handler/docGenerator
* Added asylumcaseutils
* Added internalAdaBuildCase bean to DocumentCreatorConfiguration for the above new handler/template
* Updated CustomerServicesProvider with new email/telephone for internal ADA cases
* Added internalAdaBuildCaseDocument metadata to application.yml. Also gave CO permission for requestCaseBuilding event and added internal ADA contact details
* Added unit tests for above
* Added FT for LO requestCaseBuilding to verify doc generated

* RIA-7158
* Moved the deconstruction of directions to AsylumCaseUtils to make it generalised for future use
* Added utility class to format dates
* Updated tests
* Added comment as per PR review feedback

* Added suppression to make CI/CD pipeline pass (#584)

* RIA-7158 (#585)

* Formatted date

* Update suppressions.xml

force build

* Update minimal-aip-appeal-submitted.json

* Update minimal-appeal-submitted.json

* Update suppressions.xml

* Update suppressions.xml

* RIA-7175 Internal ADA suitability document - unsuitable (#593)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Suppress CVE-2023-35116 and CVE-2023-2976

* Revert "RIA-7175 Internal ADA suitability document - unsuitable (#593)" (#594)

This reverts commit 8d9236e8d0b9c89ac23bee6c4279d4d07b9c8c96.

* RIA-7174 ADA suitability document - suitable (#596)

* RIA-7174 ADA suitability notification doc for suitable decision

* RIA-7174 Suppressing CVE-2023-35116

* RIA-7174 Changes from code review, some refactoring work also

* RIA-7174
* Removed common method and put it back into the template as a private method.

* RIA-7174 Added empty line at end of functional test

---------

Co-authored-by: FarukH <hussain.faruk@hmcts.net>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7175 internal ada suitability unsuitable document (#595)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Fixed formatting issues after rebase branch

* RIA-7172: Generate letter when 'HO Request Review' event is triggered (#597)

* RIA-7172: Generate letter when 'HO Request Review' ebent is triggered

- add the new letter in the Notification_letter collection.
- new tag added.

* RIA-7172: Fix Functional test

* RIA-7172: Trigger letter generation only for ADA

* RIA-7212 Internal ADA Appeal decided, allowed document generation (#598)

* RIA-7212 Internal ADA Appeal decided, allowed document generation

* RIA-7212 Fixed unit tests after rebase

* RIA-7212 Tidying up code using common methods

* RIA-7212 Refactor packages

* Ria 7540 dynamic internal email/tel (#599)

* RIA-7540 Updated customer service provider to return internal case dynamic email/tel

* RIA-7540 updated HoReviewEvidenceLetterTemplate to get fetch dynamic email and tel

* RIA-7540 updated InternalAdaDecisionsAndReasonsAllowedLetterTemplate to get fetch dynamic email and tel

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7174 Refactor package location (#600)

* RIA-7175 Refactor of package (#601)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appea… (#605)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appeal Response' event

- added new user for functional test - HomeOfficeLart
- added new entity - AppealReviewOutcome.

* RIA-7198: Fix customer services contact info methods

* RIA-7198: Fix unit tests

* RIA-7198: Fix functional test for 'end appeal automatically' event

* RIA-7198: Added system env variable to secret mapping for the lart user credentials

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismisse… (#604)

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismissed - ADA (Letter) template generation, tests

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Fixed code styles

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsReasonsLetterAllowedGenerator(and Dismissed) refactored into one generic class with conditions, tests fixed as well

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsAndReasonsDismissedLetterTemplate refactored dueDate code lines

* RIA-7200 (#602)

* Added new template for hearing bundle ready letter
* Added new handlers and functionality to generate this letter AFTER generate hearing bundle event when async stitching bundle event is implicitly called and is successful
* Added unit/functional tests

* RIA-7174 Adding new template vars to template (#607)

* RIA-7174 Adding new template vars to template

* RIA-7174 Functional test reworked to add directions

* RIA-7174 Another functional test rework

* RIA-7538 Updated config and handler to handle internal case detained non ADA document generation (#610)

* RIA-7606_change_customer_service_mail (#611)

* RIA-7606_change_customer_service_mail: Fix customer service mail in application.yml

* RIA-7606_change_customer_service_mail: Fix customer service mail in InternalDetGenerateHearingBundleTemplateTest

* RIA-7215 Updated template to handle detained non-ada letter (#612)

* RIA-7200 Fix hearing centre name (#613)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7218 Allow document generation for all detained cases (#615)

* RIA-7218 Allow document generation for all detained cases

* RIA-7218 Functional test fixed

* RIA-7159 Request case building detained letter generation (#616)

* RIA-7159: WIP

- Used one generator for for both detained and non-detained letter
  generations

* RIA-7159 Final changes. tests and checkstyle changes

* RIA-7159 Removing redundant unit tests

---------

Co-authored-by: Neha Aggarwal <neha.aggarwal@version1.com>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7159 Rework of Non-ADA template to reduce duplication (#619)

* RIA-7548_internal_appeal_submission_non_ada (#618)

* RIA-7548_internal_appeal_submission_non_ada: Add appeal submission template for internal, non ada, detained only cases

* RIA-7548_internal_appeal_submission_non_ada: styles fix

* RIA-7548_internal_appeal_submission_non_ada: Add document tag, fix tests for this tag

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Fix condition AsylumCase definition in AppealSubmissionCreator

* RIA-7548_internal_appeal_submission_non_ada: Bundle sort tests fix

* RIA-7216 Added appeal decided dismissed detained non ADA document templates (#622)

* Update suppressions.xml

* Update suppressions.xml

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record ou… (#623)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed (#624)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7552 appeal can proceed (#626)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7554 directed to upload bundle (#628)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* Ria 7554 directed to upload bundle (#629)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#630)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#631)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-TASK Merged master changes to Naba - documents-api (#614)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* Fixed tests

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7582 non_payment_end_appeal (#637)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7582_non_payment_end_appeal: Add template, generator, configuration, Asylum definitions for remission type, tests

* RIA-7582_non_payment_end_appeal: Add RemissionType test

* RIA-7582_non_payment_end_appeal: Fix application properties document fileName and functional test 7582

* RIA-7580 (#638)

* Added new handler, template and bean config for internal detained non-ada appeal fee letter with no remissions
* Imported AppealType class from case-api
* Updated existing unit tests (State, BundleOrder & DocumentTag)
* Added unit tests and FT

* RIA-7581 Added internal detained mark as paid letter (#639)

* RIA-7618 document remission partially approved rejected (#641)

* RIA-7618 Initial document changes before rebase

* RIA-7618 Final refactored changes after rebasing

* RIA-7618 Utils method change

* RIA-7618 Adding unit test for RemissionDecision class

* RIA-7618 checkstyle test fix

* RIA-7556 internal det ho review maintained (#640)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7556 init commit

* RIA-7556_internal_det_ho_review_maintaned: Add tests unit/functional, update application.yml for new event and fix document extension in application.yml

* RIA-7556_internal_det_ho_review_maintaned: Add tests for new event

* RIA-7556_internal_det_ho_review_maintaned: Fix on dueDate in template and test for this template

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Adding detenction

---------

Co-authored-by: ThomasKKC <thomas.cheong@version1.com>

* RIA-7559 DET letter case listing detained (#642)

* RIA-7559 Generator and template for doc generation

* RIA-7559 internal detained list case letter generation

* RIA-7559 document creator values updated to correct document

* RIA-7559 functional test added

* RIA-7559 append document to notifications attachments group

* RIA-7559 functional test fix

* RIA-7559 Checkstyle and unit test fixes for pipeline

* RIA-7557 Internal detained review HO response decision withdrawn letter generation (#643)

* RIA-7557
* Added functionality for new letter generation when LO requests AIP to review HO response
* Added new doc tag for the new letter
* Refactored RIA-7556
* Added/updated unit/FTs

* Rebasing

* RIA-7557
* Updated FT

* RIA-7561 - Added handler to generate letter when 'Request Hearing Requ… (#644)

* RIA-7561: Added handler to generate letter when 'Request Hearing Requirements' Event is triggered

* RIA-7561: Remove local testing code.

* RIA-7561: Remove unused import.

* RIA-7561: Fix BundleOrderTest after rebase.

* RIA-7561: Fix PMD violations.

* Update suppressions.xml

* RIA-7556/RIA-7557 (#648)

* Renamed document file names for home office response review decision maintained and withdrawn

* RIA-7372 appeal_ended_aip_journey (#647)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended_aip_journey: Add Document tag for internal cases, generator, template, configuration, application.yml links and tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7561: Allow LF for Request Hearing Requirements Feature (#649)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7281 Added internal detained edit case listing letter (#650)

* RIA-7281 Added internal detained edit case listing letter

* RIA-7281 Added extra unit tests for thrown exceptions

* RIA-7374 mark_appeal_as_ada (#651)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7374_mark_appeal_as_ada: Add for internal journey mark as ada, configuration, template, document Tag, event, Bundler order tag. Populate application props with link to letter, add functional tests

* RIA-7374_mark_appeal_as_ada: Fix merge conflicts

* RIA-7374_mark_appeal_as_ada: Remove condition check if appeal is Ada, as well remove from tests functional and junit

* RIA-7364 internal decideAnApplication letter generation (#653)

* RIA-7364
* Added functionality for decideAnApplication letter generation for internal cases
* Copied across makeAnApplication logic and its parsing/extraction from case data
* Added new doc tag
* Added/updated unit and FTs

* RIA-7364
* Updated FTs

* RIA-7364 Made some changes for sonar cloud failures (#655)

* Added isPresent() check
* Updated assertion for default case in enhanced switch statement

* Update suppressions.xml

* RIA-7328 ho_ftpa_submitted (#657)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7328_ho_ftpa_submitted: Add DocumentTag, Populate BundlerOrder, DocumentCreatorConfiguration for APPLY_FOR_FTPA_RESPONDENT. Add roles, junit/functional tests for APPLY_FOR_FTPA_RESPONDENT

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7365 (#660)

* Added new template for internal decide an application where decision is refused
* Refactored 7364 so granted+refused use a single handler with independent DocumentCreatorConfiguration beans and seperate templates.
* Added/updated unit/FTs.

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7701 Added transfer out of ADA letter (#661)

* RIA-7326 (#663)

* Added functionality to generate letter when admin officer applies for ftpa for internal cases
* Added/updated tests

* RIA-7326 (#665)

* Updated doc tag

* RIA-7330 Internal appellant FTPA decided granted document (#670)

* RIA-7330 Internal appellant FTPA decided granted document

* RIA-7330 Checkstyle and unit test fixes

* Update suppressions.xml

* Update suppressions.xml

* RIA-7360 ho_ftpa_decided_granted (#671)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7360_ho_ftpa_decided_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided granted. Add Tests and functional test, Document.tag, Definitions.

* RIA-7361 ho_ftpa_decided_partially_granted (#672)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7361_ho_ftpa_decided_partially_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided partially granted. Add Tests and functional test

* RIA-7326 (#673)

* Give LR permission for applyForFTPAAppellant event doc generation

* RIA-7362 ho_ftpa_decided_refused (#675)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7362_ho_ftpa_decided_refused: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided refused. Add Tests and functional test

* RIA-7362_ho_ftpa_decided_refused: Fix typo

* RIA-7331 Internal appellant ftpa decided - partially granted document (#676)

* RIA-7331 Internal appellant ftpa decided - partially granted document

* RIA-7331 Corrected deadline date values for ada and non-ada

* RIA-7332 Document for Appellant ftp decided - refused (#677)

* RIA-7332 Document for Appellant ftp decided - refused

* RIA-7332 Suppressing CVE-2023-41080

* RIA-7332 Split functional test into ADA and non-ADA scenarios

* RIA-7332 Functional test file rename

* RIA-7331 Further changes to ADA working days scenario (#678)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios (#679)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios

* RIA-7330 rename FT title for non-ADA FT

* RIA-TASK - Merged Master changes to NABA case-documents (#669)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Update suppressions.xml

* Merged Master changes to NABA

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>

* RIA-7844 (#682)

* Added content for application type - reinstate to InternalDecideAnApplicationDecisionGrantedLetterTemplate.getWhatHappensNextContent()
* Added reinstate content test
* Added FTs for reinstate application type when decided

* RIA-7844 (#684)

* Adding full stop to String

* RIA-7322 Internal hearing requirements updated letter generation (#686)

* RIA-7367 (#685)

* Refactored internal appellant application decided (refused+granted)
* Updated internalApplicationDecided handler to pick correct DocumentCreatorCongif bean based on granted/refused and appellant/respondent application
* Added new bean for HO decide application
* Added/updated unit tests
* Refactored 7364 FTs to include Admin Officer as application applicant
* Added new FTs

* RIA-7368 (#690)

* Addedn functionality to generate letter when HO application decided
* Refactored RIA-7365
* Added/updated unit/FTs

* RIA-7372 appeal_ended (#688)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended: change decisionMaker to fetch from END_APPEAL_APPROVER_TYPE, fix endAppealDate fortmat, fix tests

* RIA-7372_appeal_ended: remove unused import

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7322 hearingDate removed from template (#691)

* RIA-7561: Fix the deadline date in the 'Request Hearing Requirements' letter (#687)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7378 unlink_appeal (#693)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Add new Document letter generation for Maintain Case Link event.

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: remove unused import

* RIA-7378 unlink case (#694)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7427 Internal upload additional evidence doc generation (#695)

* RIA-7427 Internal upload additional evidence doc generation

* RIA-7427 Test and checkstyle fixes

* RIA-7378 unlink_case (#696)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378 unlink_case (#697)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#698)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#699)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7895 bug_fix_rule3235 (#700)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7895_bug_fix_rule3235: Populate FtpaDecisionOutcomeType with values of 23 and 35 rules

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7279 (#705)

* Added handler and template for generating letter when LO requests HO to amend appeal response
* Imported isValidUserDirection from notifications-api.
* Added/updated unit and FTs

* RIA-7376 link_case (#704)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_case_det: Add Event create case link. Template, configurations, tests

* RIA-7376_link_case_det: Fix unit test

* RIA-7376_link_case_det: Fix intends

* RIA-7376_link_case_det: populate FT with more values, AsylumCase object mapper populated with dateTime module

* RIA-7376_link_case_det: merge conflicts

* RIA-7437 internal non standard direction letter (#706)

* RIA-7437 Non standard direction to appellant - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, second time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, Fourth time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests, try two - ADA & NonADA (Letter)

* RIA-7437 - Renamed bean

* RIA-7437 - fixed functional tests

* RIA-7437 Non standard direction to appellant, resolving comments (Letter)

* RIA-7437 Non standard direction to appellant, fixing checkstyle error (Letter)

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>
Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7376 link_cases (#711)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_cases: fix dates serialization mechanism

* RIA-7376_link_cases: fix styles

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'S… (#714)

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'Send Direction' event

* Update renovate.json

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7433 Generate letter when LO changes hearing centre for detained… (#702)

* RIA-7433: Generate letter when LO changes hearing centre for detained internal appeals

* RIA-7433 updated functional test description

* RIA-7433: Added FT for non-ADA appeal

* Fix checkstyle errors

* RIA-7418 Appeal edited - ADA & Non ADA (Letter) (#717)

* RIA-7418: added new edit template letter and logic behind

* RIA-7418: fixed BundleOrderTest.java

* RIA-7432: Fix template to reflect old and new hearing centres (#721)

* RIA-7370 (#719)

* Refactored implementation of RIA-7427 to make InternalUploadAdditionalEvidenceGenerator generic for all users
* Imported HasDocument interface and made current implementation of DocumentWithMetadata implement it
* Imported events from case-api
* Added 2 new doc tags (LO additional evidence upload and HO additional evidence upload)
* Created 2 new templates for HO and LO additional evidence upload
* Added new methods in AsylumCaseUtils to extract addendum evidence documents and to fetch most recent addendum evidence added
* Created 2 new beans in DocumentCreatorConfiguration (LO/HO additional evidence upload)
* 2 new application.yaml entries for document templates
* Updated existing tests and added new unit/FTs

* RIA-7370 Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice (#725)

* RIA-7370
* Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice

* RIA-7370
* Fixed sonar check. Performing isEmpty() check on optional var before a .get()

* RIA-7370 (#727)

* Added a null check on addendum metadata

* Suppress CVE (#728)

* RIA-7471 letter generation direction due date changed (#715)

* RIA-7471 Letter generation when 'Change Direction due date' is triggered

- for ADA and non ADA internal cases
- when recipient party is either APPELLANT or APPELLANT AND RESPONDENT.

* Fix naming of a variable

* RIA-7471 - fixed unit test

* RIA-7471 Fix functional tests

* Fix unit test

* Fix template personalisations

* Fix name for template env variable

---------

Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7435 Home_office_non-Standard_direction_letter (#730)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-7439 ho_change_direction_due_date (#729)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439 ho_change_direction_due_date (#731)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439 ho_change_direction_due_date (#735)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7429 Letter generation for Internal Reinstate Appeal (#722)

* RIA-7435 Rename the letter generator class and corresponding unit tests (#737)

* RIA-7435 Rename the letter generator class and corresponding unit tests

* Fix checkstyle error

* Fix functional tests

* Fixing functional test

* RIA-7911 Update hearing adjustments (#739)

* RIA-7911_Update_hearing_adjustments

* RIA-7911 Update hearing adjustments functional tests

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* Update suppressions.xml

* Update suppressions.xml

* RIA-7537 EJP Adding new roles for legal officer (#746)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-8888 Upgraded chart version (#751)

* RIA-8888 Upgraded chart version

* RIA-8888 revert version because it is auto bumped

* RIA-8888 added suppressions

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7411 Removing OOC feature flag fields (#743) (#754)

* RIA-7411 Removing OOC feature flag fields

* RIA-7411 Suppressing CVE-2023-42794, CVE-2023-42795, CVE-2023-45648

Co-authored-by: Ryan-Nesbitt <95298094+Ryan-Nesbitt@users.noreply.github.com>

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#760)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Jake Cohen <101183561+JakeCohenSol@users.noreply.github.com>
Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* Removed print line that causes issues on windows (#762)

* RIA-7950 upgrade_fix (#767)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7950_upgrade_fix: trigger rebuild

* RIA-2023 rebuild_pipelines (#775)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-20231212_rebuild_pipelines: Restart pipelines

* RIA-20231212_rebuild_pipelines: Add supressions

* Update suppressions.xml

* RIA-7324 Hearing adjourned without a date - ADA & Non ADA (Letter) (#788)

* RIA-7324: added adjourn hearing without date letter template

* RIA-7324: small fix on DocumentTag applied

* RIA-8214 Add a new screen to Bails start application - UT appeal pending (#791)

* RIA-8214: bail application submission template fixed with new fields

* RIA-8214: small refactor name on definitions

* Revert "RIA-8214 Add a new screen to Bails start application - UT appeal pending" (#793)

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#792)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-au…
rajeshthuraiyur added a commit that referenced this pull request May 24, 2024
* DIAC-123 cdam download change fix (#806)

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123

* DIAC-123 removing logging

---------

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8726 - Merge SNL (BAILS) - > Master (DO NOT MERGE) (#841)

* RIA-7973
* RIA-7973 Updated Bail application details template

* RIA-7973 Added Bail FT scenarios pattern

* RIA-7973 Fixed Ft

* RIA-8119
* RIA-8119 Bail application document changes with added interpreter fields

* RIA-8364
* RIA-8364 Bail template change 01134 -> 01144

* RIA-8489
* RIA-8489 Refactored interpreter language

* RIA-8410 RIA-8409 Generate and store hearing notice on case (initial listing and relisting)

* RIA-8410: Generate hearing documents

- Create Handler, Template and configuration classes to generate notice of hearing for case relisting

* RIA-8409: Generate hearing documents

- Create handler, template and configuration classes to generate notice of hearing for initial listing event

* RIA-8410: Some code refactoring

* RIA-8508
* RIA-8508 Fix appeals refactored interpreter language

* RIA-8507
* RIA-8507 Fix the field type for fcs_has_passport in BailCaseFieldDefinition

* RIA-8554
* RIA-8554 Fix detention location on hearing-notice template

* RIA-8554
* RIA-8554 Using enums for Field definition comparison

* Update BailSubmissionTemplateProvider.java

* RIA-8738: IMA - Rebasing docmosis template (#845)

* Updates to fix build failure

* RIA-8773: Add missing hearing centres in the hearing location to hearing address mapping document (#858)

* RIA-8773 Fix rebasing of CcdScenarioRunnerTest

* RIA-8774 Add logging (#862)

* RIA-8774 Add logging

* RIA-8770 Run functional tests on pipeline

* RIA-8774 Enable logging on functional tests

* RIA-8774 Enable logging on functional tests

* Update DocumentTagTest.java

---------

Co-authored-by: Marcellofabbri <marcello.fabbri@hmcts.net>
Co-authored-by: Augustine Onubeze <ikechukwu.onubeze@gmail.com>
Co-authored-by: Marcello Fabbri <56549133+Marcellofabbri@users.noreply.github.com>

* RIA-TASK NABA -> Master : DO NOT MERGE (#520)

* RIA-6455: Added new Hearing centre - Harmondsworth (#518)

* RIA-6455: Added new Hearing centre - Harmondsworth

* Fix vulnerabilities

* Added Location (#519)

* Added Location

* Suppressions

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6491: Give admin officer access to edit appeal post submission (#521)

* RIA-6491: Give admin officer access to edit appeal post submission

* RIA-6491: Address dependency vulnerabilities

* RIA-6529: Generate Hearing Notice after listing for ADA cases (#522)

* RIA-6529: Generate Hearing Notice after listing for ADA cases

* Suppress vulnerabilities

* Added Yarls Wood as hearing centre and also its address (#524)

* Ria 6424 appeal submission summary (#527)

* Added some defs to extract case data
Added some puts to copy case data to field values which docmosis can use to generate the appeal submission summary

* Modified tests

* Formatted for sonar scan

* Final changes

* Refactored AppealSubmissionTemplate and added logic for displaying removal order date and time

* Added tests for detained fields and removal order date

* Formatted import and method line seperations for serenity checks

* Added CVE suppression

* Changed where appelantInDetention defaults to YesOrNo.NO

* Moved the parsing of complex asylum case fields (nomsNumber, dateCustodialSentence & otherDetentionFacilityName, to a dedicated method. Modified tests to cover more scenarios and make the tests more robust by checking all other relevant fields in the same flow.

* Added assertion to check size of templateFieldValues

* Bundled common fields together and setting Mockito strictness to lenient

* Added suppressions

* RIA-6424: Fix the TypeReference class for the field - 'hasPendingBailApplications' (#528)

- Changed from YesOrNo type to BailApplicationStatus type.
- update relevant unit tests.

* Added guards in event nomsNumber, releaseDate & removalOrderDate are empty strings (#530)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Ria 6424 (#531)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Ria 6564 hearing notice edited ada (#532)

* RIA-6564 - Adding hearing notice document generation for ADA cases

* RIA-6564 - Checkstyle

* RIA-6564 - Adding suppression

* Ria 6685 date decision letter (#545)

* RIA-6685 Added logic for Date decision letter to appear in Appeal template

* Formatting changes and tests

* Fixed tests

* added decisionLetterReceivedDate test

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6685-fixed-test (#546)

Co-authored-by: Jamie <jamiemurphy@version1.com>

* Ria 6605 ada suitability document api (#547)

* Saving work

* Saving changes

* Saving work before a forced update

* Latest changes

* latest changes

* Added new template

* Rebased

* Added ADASuitabilityReviewDecision entity. Added suitability review, reason and judge to AsylumCaseDefinition. Added AdaSuitability document tag. Added suitability review event. Created pre-submit handler to generate ada suitability document. Added AdaSuitability to bundleOrder. Created new AdaSuitabilityTemplate. Added Adasuitability bean to DocumentCreatorConfiguration. Added AdaSuitabilityDocument metadata to application.yml. Created AdaSuitabilityTemplateTest.

* Resolved comments in PR specifically regarding extra line seperations and variable name formatting

* Added functional test for ADA suitability document generation

* Adding system credentials and appropriate method to generate headers for pipeline build failures.

* Fix for failing functional test: RIA-5778-end-appeal-automatically-notice-document.json

* RIA-6612: Update Bundling events to include Ada suitability review do… (#549)

* RIA-6612: Update Bundling events to include Ada suitability review document

- new document added under section of Tribunal Documents.
- added functional and unit tests.

* Update owasp.dependencyCheck

* Updated 'after' method call in Jenkinfile*

* RIA-6694-Admin-Submit-Appeal (#551)

* RIA-6694-Admin-Submit-Appeal

* fixed state test

---------

Co-authored-by: Jamie <jamiemurphy@version1.com>
Co-authored-by: Dbarnes-v1 <99024336+Dbarnes-v1@users.noreply.github.com>

* RIA-6700 - Allowing access to editAppeal for Admin users (#552)

* RIA-6721 Added isAdmin field to templateFieldValues in appeal submission summary template. (#554)

Added isAdmin field to AsylumCaseDefinition.
Updated unit tests.

* RIA-6702 - Internal case creation adding access to the following even… (#553)

* RIA-6702 - Internal case creation adding access to the following events for Admins:

	1. makeAnApplication
	2. draftHearingRequirements
	3. buildCase
	4. submitCase
	5. uploadAdditionalEvidence
	6. applyForFTPAAppellant
	7. requestFeeRemission

* RIA-6702 - Updating unit test

* RIA-6702 - Suppression

* RIA-6873 appeal summary changes (#555)

* RIA-6873_appeal_summary_changes

* Charts java version upgraded

* Adding new suppression

* Change HAS_OTHER_APPEALS field type with new object class

* Ria 6844 Add date to ADA suitability document (#556)

* RIA-6844 Added date to ADA suitability document. Updated unit test.

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-6560 - Functional tests improvements (#568)

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Suppress CVE-2023-20863 (#570)

* Rebase from Master (#571)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. DocumentManagementUploader is updated but this class is not used or ex
tended by any other class

* update scanbase packages

* update gradle for test

* suppressing org.yaml:snakeyaml:1.26

* update tvtStringProvider

* update tvtStringProvider

* fix build failures

* fix build failures

* fix build failures

* Updates to fix build failures

* Updates to fix secure doc store client

* Bumping chart version/ fixing aliases

* Updates to fix build failures

* Updates to fix build failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to suppress cves to allow build to happen

* fix for failing gradle build

* RIA-5804: reload jenkins build

* Bumping chart version/ fixing aliases

* RIA-5804: fixed vulnerabilities

* RIA-5804: upgraded java chart version

---------

Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>

* Update suppressions.xml (#557)

* To update azurerm version for terraform (#558)

* Update state.tf

* Update .terraform-version

* Update variables.tf

* Update main.tf

* Update main.tf

* Revert "To update azurerm version for terraform (#558)" (#559)

This reverts commit a90efa41ddaa7b71f143c038f2355c4100e8a152.

* Revert "Update suppressions.xml (#557)" (#560)

This reverts commit 247256adf152dd85bd2f0dc3b3eb216478ff77a5.

* Revert "fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)" (#561)

This reverts commit 52eab14c22caa2398868bf623ffef1c9de6540bc.

* To revert cdam changes from production (#562)

* Update .terraform-version

* Update main.tf

* Update state.tf

* Update variables.tf

* Update suppressions.xml

* Update Chart.yaml

* Update suppressions.xml

* Bumping chart version/ fixing aliases

* Update Chart.yaml

* Update suppressions.xml

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update Dockerfile (#565)

* Update Dockerfile

* Update Dockerfile

* Update suppressions.xml

* Updated suppressions

---------

Co-authored-by: addison-jephtah <108927648+addison-jephtah@users.noreply.github.com>
Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>
Co-authored-by: mokainos <72137340+mokainos@users.noreply.github.com>

* Updated dependencies to remove suppressed CVEs (#564) (#573)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>
Co-authored-by: mcareyma <matthew.carey@version1.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7043 add NOTICE_OF_DECISION_UT_TRANSFER document tag (#576)

* RIA-7043
* Added NOTICE_OF_DECISION_UT_TRANSFER enum to DocumentTag.java

* RIA-7043
* Updated DocumentTagTest.java

* RIA-7043
* Updated document bundle configs

* Supressed CVE-2023-28709 (#580)

* Added new line character to kick off new build on pipeline (#582)

* RIA-7158 request case building notification attachment letter (#583)

* * Added powermock to build.gradle which is used in testing
* Added template for internal cases for FTs
* Added requestCaseBuilding event to enums
* Added NOTIFICATION_ATTACHMENT_DOCUMENTS to asylumCase to store new AIP notification attachment docs
* Added AdaListCase direction tag to fix bug where the direction cannot be parsed as it's not in the list of DirectionTag enums
* Added requestCaseBuilding Doc tag
* Updated bundleOrder with the new DocTag
* Added holidaydates service
* Added DueDateService
* Added new handler/docGenerator for requestCaseBuilding event for internal ADA cases
* Created new template for the new handler/docGenerator
* Added asylumcaseutils
* Added internalAdaBuildCase bean to DocumentCreatorConfiguration for the above new handler/template
* Updated CustomerServicesProvider with new email/telephone for internal ADA cases
* Added internalAdaBuildCaseDocument metadata to application.yml. Also gave CO permission for requestCaseBuilding event and added internal ADA contact details
* Added unit tests for above
* Added FT for LO requestCaseBuilding to verify doc generated

* RIA-7158
* Moved the deconstruction of directions to AsylumCaseUtils to make it generalised for future use
* Added utility class to format dates
* Updated tests
* Added comment as per PR review feedback

* Added suppression to make CI/CD pipeline pass (#584)

* RIA-7158 (#585)

* Formatted date

* Update suppressions.xml

force build

* Update minimal-aip-appeal-submitted.json

* Update minimal-appeal-submitted.json

* Update suppressions.xml

* Update suppressions.xml

* RIA-7175 Internal ADA suitability document - unsuitable (#593)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Suppress CVE-2023-35116 and CVE-2023-2976

* Revert "RIA-7175 Internal ADA suitability document - unsuitable (#593)" (#594)

This reverts commit 8d9236e8d0b9c89ac23bee6c4279d4d07b9c8c96.

* RIA-7174 ADA suitability document - suitable (#596)

* RIA-7174 ADA suitability notification doc for suitable decision

* RIA-7174 Suppressing CVE-2023-35116

* RIA-7174 Changes from code review, some refactoring work also

* RIA-7174
* Removed common method and put it back into the template as a private method.

* RIA-7174 Added empty line at end of functional test

---------

Co-authored-by: FarukH <hussain.faruk@hmcts.net>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7175 internal ada suitability unsuitable document (#595)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Fixed formatting issues after rebase branch

* RIA-7172: Generate letter when 'HO Request Review' event is triggered (#597)

* RIA-7172: Generate letter when 'HO Request Review' ebent is triggered

- add the new letter in the Notification_letter collection.
- new tag added.

* RIA-7172: Fix Functional test

* RIA-7172: Trigger letter generation only for ADA

* RIA-7212 Internal ADA Appeal decided, allowed document generation (#598)

* RIA-7212 Internal ADA Appeal decided, allowed document generation

* RIA-7212 Fixed unit tests after rebase

* RIA-7212 Tidying up code using common methods

* RIA-7212 Refactor packages

* Ria 7540 dynamic internal email/tel (#599)

* RIA-7540 Updated customer service provider to return internal case dynamic email/tel

* RIA-7540 updated HoReviewEvidenceLetterTemplate to get fetch dynamic email and tel

* RIA-7540 updated InternalAdaDecisionsAndReasonsAllowedLetterTemplate to get fetch dynamic email and tel

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7174 Refactor package location (#600)

* RIA-7175 Refactor of package (#601)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appea… (#605)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appeal Response' event

- added new user for functional test - HomeOfficeLart
- added new entity - AppealReviewOutcome.

* RIA-7198: Fix customer services contact info methods

* RIA-7198: Fix unit tests

* RIA-7198: Fix functional test for 'end appeal automatically' event

* RIA-7198: Added system env variable to secret mapping for the lart user credentials

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismisse… (#604)

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismissed - ADA (Letter) template generation, tests

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Fixed code styles

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsReasonsLetterAllowedGenerator(and Dismissed) refactored into one generic class with conditions, tests fixed as well

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsAndReasonsDismissedLetterTemplate refactored dueDate code lines

* RIA-7200 (#602)

* Added new template for hearing bundle ready letter
* Added new handlers and functionality to generate this letter AFTER generate hearing bundle event when async stitching bundle event is implicitly called and is successful
* Added unit/functional tests

* RIA-7174 Adding new template vars to template (#607)

* RIA-7174 Adding new template vars to template

* RIA-7174 Functional test reworked to add directions

* RIA-7174 Another functional test rework

* RIA-7538 Updated config and handler to handle internal case detained non ADA document generation (#610)

* RIA-7606_change_customer_service_mail (#611)

* RIA-7606_change_customer_service_mail: Fix customer service mail in application.yml

* RIA-7606_change_customer_service_mail: Fix customer service mail in InternalDetGenerateHearingBundleTemplateTest

* RIA-7215 Updated template to handle detained non-ada letter (#612)

* RIA-7200 Fix hearing centre name (#613)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7218 Allow document generation for all detained cases (#615)

* RIA-7218 Allow document generation for all detained cases

* RIA-7218 Functional test fixed

* RIA-7159 Request case building detained letter generation (#616)

* RIA-7159: WIP

- Used one generator for for both detained and non-detained letter
  generations

* RIA-7159 Final changes. tests and checkstyle changes

* RIA-7159 Removing redundant unit tests

---------

Co-authored-by: Neha Aggarwal <neha.aggarwal@version1.com>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7159 Rework of Non-ADA template to reduce duplication (#619)

* RIA-7548_internal_appeal_submission_non_ada (#618)

* RIA-7548_internal_appeal_submission_non_ada: Add appeal submission template for internal, non ada, detained only cases

* RIA-7548_internal_appeal_submission_non_ada: styles fix

* RIA-7548_internal_appeal_submission_non_ada: Add document tag, fix tests for this tag

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Fix condition AsylumCase definition in AppealSubmissionCreator

* RIA-7548_internal_appeal_submission_non_ada: Bundle sort tests fix

* RIA-7216 Added appeal decided dismissed detained non ADA document templates (#622)

* Update suppressions.xml

* Update suppressions.xml

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record ou… (#623)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed (#624)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7552 appeal can proceed (#626)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7554 directed to upload bundle (#628)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* Ria 7554 directed to upload bundle (#629)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#630)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#631)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-TASK Merged master changes to Naba - documents-api (#614)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* Fixed tests

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7582 non_payment_end_appeal (#637)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7582_non_payment_end_appeal: Add template, generator, configuration, Asylum definitions for remission type, tests

* RIA-7582_non_payment_end_appeal: Add RemissionType test

* RIA-7582_non_payment_end_appeal: Fix application properties document fileName and functional test 7582

* RIA-7580 (#638)

* Added new handler, template and bean config for internal detained non-ada appeal fee letter with no remissions
* Imported AppealType class from case-api
* Updated existing unit tests (State, BundleOrder & DocumentTag)
* Added unit tests and FT

* RIA-7581 Added internal detained mark as paid letter (#639)

* RIA-7618 document remission partially approved rejected (#641)

* RIA-7618 Initial document changes before rebase

* RIA-7618 Final refactored changes after rebasing

* RIA-7618 Utils method change

* RIA-7618 Adding unit test for RemissionDecision class

* RIA-7618 checkstyle test fix

* RIA-7556 internal det ho review maintained (#640)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7556 init commit

* RIA-7556_internal_det_ho_review_maintaned: Add tests unit/functional, update application.yml for new event and fix document extension in application.yml

* RIA-7556_internal_det_ho_review_maintaned: Add tests for new event

* RIA-7556_internal_det_ho_review_maintaned: Fix on dueDate in template and test for this template

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Adding detenction

---------

Co-authored-by: ThomasKKC <thomas.cheong@version1.com>

* RIA-7559 DET letter case listing detained (#642)

* RIA-7559 Generator and template for doc generation

* RIA-7559 internal detained list case letter generation

* RIA-7559 document creator values updated to correct document

* RIA-7559 functional test added

* RIA-7559 append document to notifications attachments group

* RIA-7559 functional test fix

* RIA-7559 Checkstyle and unit test fixes for pipeline

* RIA-7557 Internal detained review HO response decision withdrawn letter generation (#643)

* RIA-7557
* Added functionality for new letter generation when LO requests AIP to review HO response
* Added new doc tag for the new letter
* Refactored RIA-7556
* Added/updated unit/FTs

* Rebasing

* RIA-7557
* Updated FT

* RIA-7561 - Added handler to generate letter when 'Request Hearing Requ… (#644)

* RIA-7561: Added handler to generate letter when 'Request Hearing Requirements' Event is triggered

* RIA-7561: Remove local testing code.

* RIA-7561: Remove unused import.

* RIA-7561: Fix BundleOrderTest after rebase.

* RIA-7561: Fix PMD violations.

* Update suppressions.xml

* RIA-7556/RIA-7557 (#648)

* Renamed document file names for home office response review decision maintained and withdrawn

* RIA-7372 appeal_ended_aip_journey (#647)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended_aip_journey: Add Document tag for internal cases, generator, template, configuration, application.yml links and tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7561: Allow LF for Request Hearing Requirements Feature (#649)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7281 Added internal detained edit case listing letter (#650)

* RIA-7281 Added internal detained edit case listing letter

* RIA-7281 Added extra unit tests for thrown exceptions

* RIA-7374 mark_appeal_as_ada (#651)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7374_mark_appeal_as_ada: Add for internal journey mark as ada, configuration, template, document Tag, event, Bundler order tag. Populate application props with link to letter, add functional tests

* RIA-7374_mark_appeal_as_ada: Fix merge conflicts

* RIA-7374_mark_appeal_as_ada: Remove condition check if appeal is Ada, as well remove from tests functional and junit

* RIA-7364 internal decideAnApplication letter generation (#653)

* RIA-7364
* Added functionality for decideAnApplication letter generation for internal cases
* Copied across makeAnApplication logic and its parsing/extraction from case data
* Added new doc tag
* Added/updated unit and FTs

* RIA-7364
* Updated FTs

* RIA-7364 Made some changes for sonar cloud failures (#655)

* Added isPresent() check
* Updated assertion for default case in enhanced switch statement

* Update suppressions.xml

* RIA-7328 ho_ftpa_submitted (#657)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7328_ho_ftpa_submitted: Add DocumentTag, Populate BundlerOrder, DocumentCreatorConfiguration for APPLY_FOR_FTPA_RESPONDENT. Add roles, junit/functional tests for APPLY_FOR_FTPA_RESPONDENT

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7365 (#660)

* Added new template for internal decide an application where decision is refused
* Refactored 7364 so granted+refused use a single handler with independent DocumentCreatorConfiguration beans and seperate templates.
* Added/updated unit/FTs.

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7701 Added transfer out of ADA letter (#661)

* RIA-7326 (#663)

* Added functionality to generate letter when admin officer applies for ftpa for internal cases
* Added/updated tests

* RIA-7326 (#665)

* Updated doc tag

* RIA-7330 Internal appellant FTPA decided granted document (#670)

* RIA-7330 Internal appellant FTPA decided granted document

* RIA-7330 Checkstyle and unit test fixes

* Update suppressions.xml

* Update suppressions.xml

* RIA-7360 ho_ftpa_decided_granted (#671)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7360_ho_ftpa_decided_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided granted. Add Tests and functional test, Document.tag, Definitions.

* RIA-7361 ho_ftpa_decided_partially_granted (#672)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7361_ho_ftpa_decided_partially_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided partially granted. Add Tests and functional test

* RIA-7326 (#673)

* Give LR permission for applyForFTPAAppellant event doc generation

* RIA-7362 ho_ftpa_decided_refused (#675)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7362_ho_ftpa_decided_refused: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided refused. Add Tests and functional test

* RIA-7362_ho_ftpa_decided_refused: Fix typo

* RIA-7331 Internal appellant ftpa decided - partially granted document (#676)

* RIA-7331 Internal appellant ftpa decided - partially granted document

* RIA-7331 Corrected deadline date values for ada and non-ada

* RIA-7332 Document for Appellant ftp decided - refused (#677)

* RIA-7332 Document for Appellant ftp decided - refused

* RIA-7332 Suppressing CVE-2023-41080

* RIA-7332 Split functional test into ADA and non-ADA scenarios

* RIA-7332 Functional test file rename

* RIA-7331 Further changes to ADA working days scenario (#678)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios (#679)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios

* RIA-7330 rename FT title for non-ADA FT

* RIA-TASK - Merged Master changes to NABA case-documents (#669)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Update suppressions.xml

* Merged Master changes to NABA

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>

* RIA-7844 (#682)

* Added content for application type - reinstate to InternalDecideAnApplicationDecisionGrantedLetterTemplate.getWhatHappensNextContent()
* Added reinstate content test
* Added FTs for reinstate application type when decided

* RIA-7844 (#684)

* Adding full stop to String

* RIA-7322 Internal hearing requirements updated letter generation (#686)

* RIA-7367 (#685)

* Refactored internal appellant application decided (refused+granted)
* Updated internalApplicationDecided handler to pick correct DocumentCreatorCongif bean based on granted/refused and appellant/respondent application
* Added new bean for HO decide application
* Added/updated unit tests
* Refactored 7364 FTs to include Admin Officer as application applicant
* Added new FTs

* RIA-7368 (#690)

* Addedn functionality to generate letter when HO application decided
* Refactored RIA-7365
* Added/updated unit/FTs

* RIA-7372 appeal_ended (#688)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended: change decisionMaker to fetch from END_APPEAL_APPROVER_TYPE, fix endAppealDate fortmat, fix tests

* RIA-7372_appeal_ended: remove unused import

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7322 hearingDate removed from template (#691)

* RIA-7561: Fix the deadline date in the 'Request Hearing Requirements' letter (#687)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7378 unlink_appeal (#693)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Add new Document letter generation for Maintain Case Link event.

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: remove unused import

* RIA-7378 unlink case (#694)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7427 Internal upload additional evidence doc generation (#695)

* RIA-7427 Internal upload additional evidence doc generation

* RIA-7427 Test and checkstyle fixes

* RIA-7378 unlink_case (#696)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378 unlink_case (#697)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#698)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#699)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7895 bug_fix_rule3235 (#700)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7895_bug_fix_rule3235: Populate FtpaDecisionOutcomeType with values of 23 and 35 rules

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7279 (#705)

* Added handler and template for generating letter when LO requests HO to amend appeal response
* Imported isValidUserDirection from notifications-api.
* Added/updated unit and FTs

* RIA-7376 link_case (#704)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_case_det: Add Event create case link. Template, configurations, tests

* RIA-7376_link_case_det: Fix unit test

* RIA-7376_link_case_det: Fix intends

* RIA-7376_link_case_det: populate FT with more values, AsylumCase object mapper populated with dateTime module

* RIA-7376_link_case_det: merge conflicts

* RIA-7437 internal non standard direction letter (#706)

* RIA-7437 Non standard direction to appellant - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, second time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, Fourth time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests, try two - ADA & NonADA (Letter)

* RIA-7437 - Renamed bean

* RIA-7437 - fixed functional tests

* RIA-7437 Non standard direction to appellant, resolving comments (Letter)

* RIA-7437 Non standard direction to appellant, fixing checkstyle error (Letter)

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>
Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7376 link_cases (#711)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_cases: fix dates serialization mechanism

* RIA-7376_link_cases: fix styles

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'S… (#714)

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'Send Direction' event

* Update renovate.json

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7433 Generate letter when LO changes hearing centre for detained… (#702)

* RIA-7433: Generate letter when LO changes hearing centre for detained internal appeals

* RIA-7433 updated functional test description

* RIA-7433: Added FT for non-ADA appeal

* Fix checkstyle errors

* RIA-7418 Appeal edited - ADA & Non ADA (Letter) (#717)

* RIA-7418: added new edit template letter and logic behind

* RIA-7418: fixed BundleOrderTest.java

* RIA-7432: Fix template to reflect old and new hearing centres (#721)

* RIA-7370 (#719)

* Refactored implementation of RIA-7427 to make InternalUploadAdditionalEvidenceGenerator generic for all users
* Imported HasDocument interface and made current implementation of DocumentWithMetadata implement it
* Imported events from case-api
* Added 2 new doc tags (LO additional evidence upload and HO additional evidence upload)
* Created 2 new templates for HO and LO additional evidence upload
* Added new methods in AsylumCaseUtils to extract addendum evidence documents and to fetch most recent addendum evidence added
* Created 2 new beans in DocumentCreatorConfiguration (LO/HO additional evidence upload)
* 2 new application.yaml entries for document templates
* Updated existing tests and added new unit/FTs

* RIA-7370 Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice (#725)

* RIA-7370
* Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice

* RIA-7370
* Fixed sonar check. Performing isEmpty() check on optional var before a .get()

* RIA-7370 (#727)

* Added a null check on addendum metadata

* Suppress CVE (#728)

* RIA-7471 letter generation direction due date changed (#715)

* RIA-7471 Letter generation when 'Change Direction due date' is triggered

- for ADA and non ADA internal cases
- when recipient party is either APPELLANT or APPELLANT AND RESPONDENT.

* Fix naming of a variable

* RIA-7471 - fixed unit test

* RIA-7471 Fix functional tests

* Fix unit test

* Fix template personalisations

* Fix name for template env variable

---------

Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7435 Home_office_non-Standard_direction_letter (#730)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-7439 ho_change_direction_due_date (#729)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439 ho_change_direction_due_date (#731)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439 ho_change_direction_due_date (#735)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7429 Letter generation for Internal Reinstate Appeal (#722)

* RIA-7435 Rename the letter generator class and corresponding unit tests (#737)

* RIA-7435 Rename the letter generator class and corresponding unit tests

* Fix checkstyle error

* Fix functional tests

* Fixing functional test

* RIA-7911 Update hearing adjustments (#739)

* RIA-7911_Update_hearing_adjustments

* RIA-7911 Update hearing adjustments functional tests

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* Update suppressions.xml

* Update suppressions.xml

* RIA-7537 EJP Adding new roles for legal officer (#746)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-8888 Upgraded chart version (#751)

* RIA-8888 Upgraded chart version

* RIA-8888 revert version because it is auto bumped

* RIA-8888 added suppressions

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7411 Removing OOC feature flag fields (#743) (#754)

* RIA-7411 Removing OOC feature flag fields

* RIA-7411 Suppressing CVE-2023-42794, CVE-2023-42795, CVE-2023-45648

Co-authored-by: Ryan-Nesbitt <95298094+Ryan-Nesbitt@users.noreply.github.com>

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#760)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Jake Cohen <101183561+JakeCohenSol@users.noreply.github.com>
Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* Removed print line that causes issues on windows (#762)

* RIA-7950 upgrade_fix (#767)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7950_upgrade_fix: trigger rebuild

* RIA-2023 rebuild_pipelines (#775)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-20231212_rebuild_pipelines: Restart pipelines

* RIA-20231212_rebuild_pipelines: Add supressions

* Update suppressions.xml

* RIA-7324 Hearing adjourned without a date - ADA & Non ADA (Letter) (#788)

* RIA-7324: added adjourn hearing without date letter template

* RIA-7324: small fix on DocumentTag applied

* RIA-8214 Add a new screen to Bails start application - UT appeal pending (#791)

* RIA-8214: bail application submission template fixed with new fields

* RIA-8214: small refactor name on definitions

* Revert "RIA-8214 Add a new screen to Bails start application - UT appeal pending" (#793)

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#792)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

* DIAC-66 getting all functionals to run (#747)

* DIAC-66 getting all functionals to run

* DIAC-66 dependency update

* DIAC-66 dependency update

* DIAC-70 adding integration, smoke and unit testing and report to nightly runs

* DIAC-70 removing integration

* DIAC-70 adding secrets

* DIAC-70 adding mutation test reporting

* DIAC-70 adding mutation test reporting

* DIAC-66 integration tests

* DIAC-66 dependency upgrade

* DIAC-66 checkstyle fix

* DIAC-66 java chart upgrade

* DIAC-00 Revert pact dependency upgrade (#759)

* DIAC-84 Disable Decision and reasons document PDF conversion (#752)

* DIAC-84 Disable Decision and reasons document PDF conversion

* Remove PDF conversion

* upgrade java helm chart

* Delete Decision and reasons document PDF conversion files

* suppress CVE-2023-35116

* Update test names and add test for document null check

* fix test

* Update final decision and document name

* rename pdf service to file rename service

* update ia-case-api url

* Fix functional tests

* test

* Bumping chart version/ fixing aliases

* cleanup

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update all non-major dependencies (#740)

* Update all non-major dependencies

* renovate dependency fix

* functional flakiness workaround

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: nilay <nilay.patel@hmcts.net>

* Update all non-major dependencies (#768)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 suppressions update 04/12/23 (#771)

* Update all non-major dependencies (#769)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 dependency 07/12/23 (#773)

* DIAC-002 updating renovate JSON to exclude certain packages (#776)

* DIAC-78 - Remove logs containing case data (#766)

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* Update all non-major dependencies (#774)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-002 reverting terraform updates as requires more work (#777)

* DIAC-184 build fix 18-12-23 (#783)

* Update all non-major dependencies (#779)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#784)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#785)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#786)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-110 turning on fortify (#787)

* Update Terraform azurerm to ~> 3.87.0 (#790)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Merge master changes to NABA

* Merge master changes to NABA

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Jake Cohen <101183561+JakeCohenSol@users.noreply.github.com>
Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>
Co-authored-by: alivenichoppa <97441560+alivenichoppa@users.noreply.github.com>
Co-authored-by: nilay <nilay.patel@hmcts.net>
Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8023 QA Fix: generate appeal summary for internal detained non-ADA appeals (#814)

* RIA-7957 Adding event authorisation for Upload Appeal Response for respondent user (#829)

* Update suppressions.xml

* RIA-TASK - Fix for missing document tags when end appeal for EJP non DE case (#869)

* Fix for missing document tags when end appeal for EJP non DE case

* Remove unused import

* Update bundle order and test

* RIA-8609 - Cherry picked from commit 1e61307a 18/01/2024 to bc61a18b 23/02/2024 (#836)

* RIA-8609 - Cherry picked from commit 1e61307a 18/01/2024 to bc61a18b 23/02/2024

* Cherry picked the commits from 401580ae 29/02/24 to c19c3e9b 29/03/24

* Temporarily disable FTs

* Add double quotes as required

* Fix failed functional tests (#870)

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-8609 - Cherry picked from 11/04/2024 a9dc2e9b to 16/04/2024 1be1d489 (#876)

* Cherry picked from 11/04/2024 a9dc2e9b to 16/04/2024 1be1d489

* Fix test

* RIA-TASK - Resolve conflicts (#878)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option…
rajeshthuraiyur added a commit that referenced this pull request May 29, 2024
* DIAC-123 cdam download change fix (#806)

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123

* DIAC-123 removing logging

---------

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8726 - Merge SNL (BAILS) - > Master (DO NOT MERGE) (#841)

* RIA-7973
* RIA-7973 Updated Bail application details template

* RIA-7973 Added Bail FT scenarios pattern

* RIA-7973 Fixed Ft

* RIA-8119
* RIA-8119 Bail application document changes with added interpreter fields

* RIA-8364
* RIA-8364 Bail template change 01134 -> 01144

* RIA-8489
* RIA-8489 Refactored interpreter language

* RIA-8410 RIA-8409 Generate and store hearing notice on case (initial listing and relisting)

* RIA-8410: Generate hearing documents

- Create Handler, Template and configuration classes to generate notice of hearing for case relisting

* RIA-8409: Generate hearing documents

- Create handler, template and configuration classes to generate notice of hearing for initial listing event

* RIA-8410: Some code refactoring

* RIA-8508
* RIA-8508 Fix appeals refactored interpreter language

* RIA-8507
* RIA-8507 Fix the field type for fcs_has_passport in BailCaseFieldDefinition

* RIA-8554
* RIA-8554 Fix detention location on hearing-notice template

* RIA-8554
* RIA-8554 Using enums for Field definition comparison

* Update BailSubmissionTemplateProvider.java

* RIA-8738: IMA - Rebasing docmosis template (#845)

* Updates to fix build failure

* RIA-8773: Add missing hearing centres in the hearing location to hearing address mapping document (#858)

* RIA-8773 Fix rebasing of CcdScenarioRunnerTest

* RIA-8774 Add logging (#862)

* RIA-8774 Add logging

* RIA-8770 Run functional tests on pipeline

* RIA-8774 Enable logging on functional tests

* RIA-8774 Enable logging on functional tests

* Update DocumentTagTest.java

---------

Co-authored-by: Marcellofabbri <marcello.fabbri@hmcts.net>
Co-authored-by: Augustine Onubeze <ikechukwu.onubeze@gmail.com>
Co-authored-by: Marcello Fabbri <56549133+Marcellofabbri@users.noreply.github.com>

* RIA-TASK NABA -> Master : DO NOT MERGE (#520)

* RIA-6455: Added new Hearing centre - Harmondsworth (#518)

* RIA-6455: Added new Hearing centre - Harmondsworth

* Fix vulnerabilities

* Added Location (#519)

* Added Location

* Suppressions

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6491: Give admin officer access to edit appeal post submission (#521)

* RIA-6491: Give admin officer access to edit appeal post submission

* RIA-6491: Address dependency vulnerabilities

* RIA-6529: Generate Hearing Notice after listing for ADA cases (#522)

* RIA-6529: Generate Hearing Notice after listing for ADA cases

* Suppress vulnerabilities

* Added Yarls Wood as hearing centre and also its address (#524)

* Ria 6424 appeal submission summary (#527)

* Added some defs to extract case data
Added some puts to copy case data to field values which docmosis can use to generate the appeal submission summary

* Modified tests

* Formatted for sonar scan

* Final changes

* Refactored AppealSubmissionTemplate and added logic for displaying removal order date and time

* Added tests for detained fields and removal order date

* Formatted import and method line seperations for serenity checks

* Added CVE suppression

* Changed where appelantInDetention defaults to YesOrNo.NO

* Moved the parsing of complex asylum case fields (nomsNumber, dateCustodialSentence & otherDetentionFacilityName, to a dedicated method. Modified tests to cover more scenarios and make the tests more robust by checking all other relevant fields in the same flow.

* Added assertion to check size of templateFieldValues

* Bundled common fields together and setting Mockito strictness to lenient

* Added suppressions

* RIA-6424: Fix the TypeReference class for the field - 'hasPendingBailApplications' (#528)

- Changed from YesOrNo type to BailApplicationStatus type.
- update relevant unit tests.

* Added guards in event nomsNumber, releaseDate & removalOrderDate are empty strings (#530)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Ria 6424 (#531)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Ria 6564 hearing notice edited ada (#532)

* RIA-6564 - Adding hearing notice document generation for ADA cases

* RIA-6564 - Checkstyle

* RIA-6564 - Adding suppression

* Ria 6685 date decision letter (#545)

* RIA-6685 Added logic for Date decision letter to appear in Appeal template

* Formatting changes and tests

* Fixed tests

* added decisionLetterReceivedDate test

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6685-fixed-test (#546)

Co-authored-by: Jamie <jamiemurphy@version1.com>

* Ria 6605 ada suitability document api (#547)

* Saving work

* Saving changes

* Saving work before a forced update

* Latest changes

* latest changes

* Added new template

* Rebased

* Added ADASuitabilityReviewDecision entity. Added suitability review, reason and judge to AsylumCaseDefinition. Added AdaSuitability document tag. Added suitability review event. Created pre-submit handler to generate ada suitability document. Added AdaSuitability to bundleOrder. Created new AdaSuitabilityTemplate. Added Adasuitability bean to DocumentCreatorConfiguration. Added AdaSuitabilityDocument metadata to application.yml. Created AdaSuitabilityTemplateTest.

* Resolved comments in PR specifically regarding extra line seperations and variable name formatting

* Added functional test for ADA suitability document generation

* Adding system credentials and appropriate method to generate headers for pipeline build failures.

* Fix for failing functional test: RIA-5778-end-appeal-automatically-notice-document.json

* RIA-6612: Update Bundling events to include Ada suitability review do… (#549)

* RIA-6612: Update Bundling events to include Ada suitability review document

- new document added under section of Tribunal Documents.
- added functional and unit tests.

* Update owasp.dependencyCheck

* Updated 'after' method call in Jenkinfile*

* RIA-6694-Admin-Submit-Appeal (#551)

* RIA-6694-Admin-Submit-Appeal

* fixed state test

---------

Co-authored-by: Jamie <jamiemurphy@version1.com>
Co-authored-by: Dbarnes-v1 <99024336+Dbarnes-v1@users.noreply.github.com>

* RIA-6700 - Allowing access to editAppeal for Admin users (#552)

* RIA-6721 Added isAdmin field to templateFieldValues in appeal submission summary template. (#554)

Added isAdmin field to AsylumCaseDefinition.
Updated unit tests.

* RIA-6702 - Internal case creation adding access to the following even… (#553)

* RIA-6702 - Internal case creation adding access to the following events for Admins:

	1. makeAnApplication
	2. draftHearingRequirements
	3. buildCase
	4. submitCase
	5. uploadAdditionalEvidence
	6. applyForFTPAAppellant
	7. requestFeeRemission

* RIA-6702 - Updating unit test

* RIA-6702 - Suppression

* RIA-6873 appeal summary changes (#555)

* RIA-6873_appeal_summary_changes

* Charts java version upgraded

* Adding new suppression

* Change HAS_OTHER_APPEALS field type with new object class

* Ria 6844 Add date to ADA suitability document (#556)

* RIA-6844 Added date to ADA suitability document. Updated unit test.

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-6560 - Functional tests improvements (#568)

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Suppress CVE-2023-20863 (#570)

* Rebase from Master (#571)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. DocumentManagementUploader is updated but this class is not used or ex
tended by any other class

* update scanbase packages

* update gradle for test

* suppressing org.yaml:snakeyaml:1.26

* update tvtStringProvider

* update tvtStringProvider

* fix build failures

* fix build failures

* fix build failures

* Updates to fix build failures

* Updates to fix secure doc store client

* Bumping chart version/ fixing aliases

* Updates to fix build failures

* Updates to fix build failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to suppress cves to allow build to happen

* fix for failing gradle build

* RIA-5804: reload jenkins build

* Bumping chart version/ fixing aliases

* RIA-5804: fixed vulnerabilities

* RIA-5804: upgraded java chart version

---------

Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>

* Update suppressions.xml (#557)

* To update azurerm version for terraform (#558)

* Update state.tf

* Update .terraform-version

* Update variables.tf

* Update main.tf

* Update main.tf

* Revert "To update azurerm version for terraform (#558)" (#559)

This reverts commit a90efa41ddaa7b71f143c038f2355c4100e8a152.

* Revert "Update suppressions.xml (#557)" (#560)

This reverts commit 247256adf152dd85bd2f0dc3b3eb216478ff77a5.

* Revert "fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)" (#561)

This reverts commit 52eab14c22caa2398868bf623ffef1c9de6540bc.

* To revert cdam changes from production (#562)

* Update .terraform-version

* Update main.tf

* Update state.tf

* Update variables.tf

* Update suppressions.xml

* Update Chart.yaml

* Update suppressions.xml

* Bumping chart version/ fixing aliases

* Update Chart.yaml

* Update suppressions.xml

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update Dockerfile (#565)

* Update Dockerfile

* Update Dockerfile

* Update suppressions.xml

* Updated suppressions

---------

Co-authored-by: addison-jephtah <108927648+addison-jephtah@users.noreply.github.com>
Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>
Co-authored-by: mokainos <72137340+mokainos@users.noreply.github.com>

* Updated dependencies to remove suppressed CVEs (#564) (#573)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>
Co-authored-by: mcareyma <matthew.carey@version1.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7043 add NOTICE_OF_DECISION_UT_TRANSFER document tag (#576)

* RIA-7043
* Added NOTICE_OF_DECISION_UT_TRANSFER enum to DocumentTag.java

* RIA-7043
* Updated DocumentTagTest.java

* RIA-7043
* Updated document bundle configs

* Supressed CVE-2023-28709 (#580)

* Added new line character to kick off new build on pipeline (#582)

* RIA-7158 request case building notification attachment letter (#583)

* * Added powermock to build.gradle which is used in testing
* Added template for internal cases for FTs
* Added requestCaseBuilding event to enums
* Added NOTIFICATION_ATTACHMENT_DOCUMENTS to asylumCase to store new AIP notification attachment docs
* Added AdaListCase direction tag to fix bug where the direction cannot be parsed as it's not in the list of DirectionTag enums
* Added requestCaseBuilding Doc tag
* Updated bundleOrder with the new DocTag
* Added holidaydates service
* Added DueDateService
* Added new handler/docGenerator for requestCaseBuilding event for internal ADA cases
* Created new template for the new handler/docGenerator
* Added asylumcaseutils
* Added internalAdaBuildCase bean to DocumentCreatorConfiguration for the above new handler/template
* Updated CustomerServicesProvider with new email/telephone for internal ADA cases
* Added internalAdaBuildCaseDocument metadata to application.yml. Also gave CO permission for requestCaseBuilding event and added internal ADA contact details
* Added unit tests for above
* Added FT for LO requestCaseBuilding to verify doc generated

* RIA-7158
* Moved the deconstruction of directions to AsylumCaseUtils to make it generalised for future use
* Added utility class to format dates
* Updated tests
* Added comment as per PR review feedback

* Added suppression to make CI/CD pipeline pass (#584)

* RIA-7158 (#585)

* Formatted date

* Update suppressions.xml

force build

* Update minimal-aip-appeal-submitted.json

* Update minimal-appeal-submitted.json

* Update suppressions.xml

* Update suppressions.xml

* RIA-7175 Internal ADA suitability document - unsuitable (#593)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Suppress CVE-2023-35116 and CVE-2023-2976

* Revert "RIA-7175 Internal ADA suitability document - unsuitable (#593)" (#594)

This reverts commit 8d9236e8d0b9c89ac23bee6c4279d4d07b9c8c96.

* RIA-7174 ADA suitability document - suitable (#596)

* RIA-7174 ADA suitability notification doc for suitable decision

* RIA-7174 Suppressing CVE-2023-35116

* RIA-7174 Changes from code review, some refactoring work also

* RIA-7174
* Removed common method and put it back into the template as a private method.

* RIA-7174 Added empty line at end of functional test

---------

Co-authored-by: FarukH <hussain.faruk@hmcts.net>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7175 internal ada suitability unsuitable document (#595)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Fixed formatting issues after rebase branch

* RIA-7172: Generate letter when 'HO Request Review' event is triggered (#597)

* RIA-7172: Generate letter when 'HO Request Review' ebent is triggered

- add the new letter in the Notification_letter collection.
- new tag added.

* RIA-7172: Fix Functional test

* RIA-7172: Trigger letter generation only for ADA

* RIA-7212 Internal ADA Appeal decided, allowed document generation (#598)

* RIA-7212 Internal ADA Appeal decided, allowed document generation

* RIA-7212 Fixed unit tests after rebase

* RIA-7212 Tidying up code using common methods

* RIA-7212 Refactor packages

* Ria 7540 dynamic internal email/tel (#599)

* RIA-7540 Updated customer service provider to return internal case dynamic email/tel

* RIA-7540 updated HoReviewEvidenceLetterTemplate to get fetch dynamic email and tel

* RIA-7540 updated InternalAdaDecisionsAndReasonsAllowedLetterTemplate to get fetch dynamic email and tel

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7174 Refactor package location (#600)

* RIA-7175 Refactor of package (#601)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appea… (#605)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appeal Response' event

- added new user for functional test - HomeOfficeLart
- added new entity - AppealReviewOutcome.

* RIA-7198: Fix customer services contact info methods

* RIA-7198: Fix unit tests

* RIA-7198: Fix functional test for 'end appeal automatically' event

* RIA-7198: Added system env variable to secret mapping for the lart user credentials

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismisse… (#604)

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismissed - ADA (Letter) template generation, tests

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Fixed code styles

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsReasonsLetterAllowedGenerator(and Dismissed) refactored into one generic class with conditions, tests fixed as well

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsAndReasonsDismissedLetterTemplate refactored dueDate code lines

* RIA-7200 (#602)

* Added new template for hearing bundle ready letter
* Added new handlers and functionality to generate this letter AFTER generate hearing bundle event when async stitching bundle event is implicitly called and is successful
* Added unit/functional tests

* RIA-7174 Adding new template vars to template (#607)

* RIA-7174 Adding new template vars to template

* RIA-7174 Functional test reworked to add directions

* RIA-7174 Another functional test rework

* RIA-7538 Updated config and handler to handle internal case detained non ADA document generation (#610)

* RIA-7606_change_customer_service_mail (#611)

* RIA-7606_change_customer_service_mail: Fix customer service mail in application.yml

* RIA-7606_change_customer_service_mail: Fix customer service mail in InternalDetGenerateHearingBundleTemplateTest

* RIA-7215 Updated template to handle detained non-ada letter (#612)

* RIA-7200 Fix hearing centre name (#613)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7218 Allow document generation for all detained cases (#615)

* RIA-7218 Allow document generation for all detained cases

* RIA-7218 Functional test fixed

* RIA-7159 Request case building detained letter generation (#616)

* RIA-7159: WIP

- Used one generator for for both detained and non-detained letter
  generations

* RIA-7159 Final changes. tests and checkstyle changes

* RIA-7159 Removing redundant unit tests

---------

Co-authored-by: Neha Aggarwal <neha.aggarwal@version1.com>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7159 Rework of Non-ADA template to reduce duplication (#619)

* RIA-7548_internal_appeal_submission_non_ada (#618)

* RIA-7548_internal_appeal_submission_non_ada: Add appeal submission template for internal, non ada, detained only cases

* RIA-7548_internal_appeal_submission_non_ada: styles fix

* RIA-7548_internal_appeal_submission_non_ada: Add document tag, fix tests for this tag

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Fix condition AsylumCase definition in AppealSubmissionCreator

* RIA-7548_internal_appeal_submission_non_ada: Bundle sort tests fix

* RIA-7216 Added appeal decided dismissed detained non ADA document templates (#622)

* Update suppressions.xml

* Update suppressions.xml

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record ou… (#623)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed (#624)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7552 appeal can proceed (#626)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7554 directed to upload bundle (#628)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* Ria 7554 directed to upload bundle (#629)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#630)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#631)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-TASK Merged master changes to Naba - documents-api (#614)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* Fixed tests

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7582 non_payment_end_appeal (#637)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7582_non_payment_end_appeal: Add template, generator, configuration, Asylum definitions for remission type, tests

* RIA-7582_non_payment_end_appeal: Add RemissionType test

* RIA-7582_non_payment_end_appeal: Fix application properties document fileName and functional test 7582

* RIA-7580 (#638)

* Added new handler, template and bean config for internal detained non-ada appeal fee letter with no remissions
* Imported AppealType class from case-api
* Updated existing unit tests (State, BundleOrder & DocumentTag)
* Added unit tests and FT

* RIA-7581 Added internal detained mark as paid letter (#639)

* RIA-7618 document remission partially approved rejected (#641)

* RIA-7618 Initial document changes before rebase

* RIA-7618 Final refactored changes after rebasing

* RIA-7618 Utils method change

* RIA-7618 Adding unit test for RemissionDecision class

* RIA-7618 checkstyle test fix

* RIA-7556 internal det ho review maintained (#640)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7556 init commit

* RIA-7556_internal_det_ho_review_maintaned: Add tests unit/functional, update application.yml for new event and fix document extension in application.yml

* RIA-7556_internal_det_ho_review_maintaned: Add tests for new event

* RIA-7556_internal_det_ho_review_maintaned: Fix on dueDate in template and test for this template

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Adding detenction

---------

Co-authored-by: ThomasKKC <thomas.cheong@version1.com>

* RIA-7559 DET letter case listing detained (#642)

* RIA-7559 Generator and template for doc generation

* RIA-7559 internal detained list case letter generation

* RIA-7559 document creator values updated to correct document

* RIA-7559 functional test added

* RIA-7559 append document to notifications attachments group

* RIA-7559 functional test fix

* RIA-7559 Checkstyle and unit test fixes for pipeline

* RIA-7557 Internal detained review HO response decision withdrawn letter generation (#643)

* RIA-7557
* Added functionality for new letter generation when LO requests AIP to review HO response
* Added new doc tag for the new letter
* Refactored RIA-7556
* Added/updated unit/FTs

* Rebasing

* RIA-7557
* Updated FT

* RIA-7561 - Added handler to generate letter when 'Request Hearing Requ… (#644)

* RIA-7561: Added handler to generate letter when 'Request Hearing Requirements' Event is triggered

* RIA-7561: Remove local testing code.

* RIA-7561: Remove unused import.

* RIA-7561: Fix BundleOrderTest after rebase.

* RIA-7561: Fix PMD violations.

* Update suppressions.xml

* RIA-7556/RIA-7557 (#648)

* Renamed document file names for home office response review decision maintained and withdrawn

* RIA-7372 appeal_ended_aip_journey (#647)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended_aip_journey: Add Document tag for internal cases, generator, template, configuration, application.yml links and tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7561: Allow LF for Request Hearing Requirements Feature (#649)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7281 Added internal detained edit case listing letter (#650)

* RIA-7281 Added internal detained edit case listing letter

* RIA-7281 Added extra unit tests for thrown exceptions

* RIA-7374 mark_appeal_as_ada (#651)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7374_mark_appeal_as_ada: Add for internal journey mark as ada, configuration, template, document Tag, event, Bundler order tag. Populate application props with link to letter, add functional tests

* RIA-7374_mark_appeal_as_ada: Fix merge conflicts

* RIA-7374_mark_appeal_as_ada: Remove condition check if appeal is Ada, as well remove from tests functional and junit

* RIA-7364 internal decideAnApplication letter generation (#653)

* RIA-7364
* Added functionality for decideAnApplication letter generation for internal cases
* Copied across makeAnApplication logic and its parsing/extraction from case data
* Added new doc tag
* Added/updated unit and FTs

* RIA-7364
* Updated FTs

* RIA-7364 Made some changes for sonar cloud failures (#655)

* Added isPresent() check
* Updated assertion for default case in enhanced switch statement

* Update suppressions.xml

* RIA-7328 ho_ftpa_submitted (#657)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7328_ho_ftpa_submitted: Add DocumentTag, Populate BundlerOrder, DocumentCreatorConfiguration for APPLY_FOR_FTPA_RESPONDENT. Add roles, junit/functional tests for APPLY_FOR_FTPA_RESPONDENT

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7365 (#660)

* Added new template for internal decide an application where decision is refused
* Refactored 7364 so granted+refused use a single handler with independent DocumentCreatorConfiguration beans and seperate templates.
* Added/updated unit/FTs.

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7701 Added transfer out of ADA letter (#661)

* RIA-7326 (#663)

* Added functionality to generate letter when admin officer applies for ftpa for internal cases
* Added/updated tests

* RIA-7326 (#665)

* Updated doc tag

* RIA-7330 Internal appellant FTPA decided granted document (#670)

* RIA-7330 Internal appellant FTPA decided granted document

* RIA-7330 Checkstyle and unit test fixes

* Update suppressions.xml

* Update suppressions.xml

* RIA-7360 ho_ftpa_decided_granted (#671)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7360_ho_ftpa_decided_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided granted. Add Tests and functional test, Document.tag, Definitions.

* RIA-7361 ho_ftpa_decided_partially_granted (#672)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7361_ho_ftpa_decided_partially_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided partially granted. Add Tests and functional test

* RIA-7326 (#673)

* Give LR permission for applyForFTPAAppellant event doc generation

* RIA-7362 ho_ftpa_decided_refused (#675)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7362_ho_ftpa_decided_refused: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided refused. Add Tests and functional test

* RIA-7362_ho_ftpa_decided_refused: Fix typo

* RIA-7331 Internal appellant ftpa decided - partially granted document (#676)

* RIA-7331 Internal appellant ftpa decided - partially granted document

* RIA-7331 Corrected deadline date values for ada and non-ada

* RIA-7332 Document for Appellant ftp decided - refused (#677)

* RIA-7332 Document for Appellant ftp decided - refused

* RIA-7332 Suppressing CVE-2023-41080

* RIA-7332 Split functional test into ADA and non-ADA scenarios

* RIA-7332 Functional test file rename

* RIA-7331 Further changes to ADA working days scenario (#678)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios (#679)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios

* RIA-7330 rename FT title for non-ADA FT

* RIA-TASK - Merged Master changes to NABA case-documents (#669)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Update suppressions.xml

* Merged Master changes to NABA

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>

* RIA-7844 (#682)

* Added content for application type - reinstate to InternalDecideAnApplicationDecisionGrantedLetterTemplate.getWhatHappensNextContent()
* Added reinstate content test
* Added FTs for reinstate application type when decided

* RIA-7844 (#684)

* Adding full stop to String

* RIA-7322 Internal hearing requirements updated letter generation (#686)

* RIA-7367 (#685)

* Refactored internal appellant application decided (refused+granted)
* Updated internalApplicationDecided handler to pick correct DocumentCreatorCongif bean based on granted/refused and appellant/respondent application
* Added new bean for HO decide application
* Added/updated unit tests
* Refactored 7364 FTs to include Admin Officer as application applicant
* Added new FTs

* RIA-7368 (#690)

* Addedn functionality to generate letter when HO application decided
* Refactored RIA-7365
* Added/updated unit/FTs

* RIA-7372 appeal_ended (#688)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended: change decisionMaker to fetch from END_APPEAL_APPROVER_TYPE, fix endAppealDate fortmat, fix tests

* RIA-7372_appeal_ended: remove unused import

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7322 hearingDate removed from template (#691)

* RIA-7561: Fix the deadline date in the 'Request Hearing Requirements' letter (#687)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7378 unlink_appeal (#693)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Add new Document letter generation for Maintain Case Link event.

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: remove unused import

* RIA-7378 unlink case (#694)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7427 Internal upload additional evidence doc generation (#695)

* RIA-7427 Internal upload additional evidence doc generation

* RIA-7427 Test and checkstyle fixes

* RIA-7378 unlink_case (#696)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378 unlink_case (#697)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#698)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#699)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7895 bug_fix_rule3235 (#700)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7895_bug_fix_rule3235: Populate FtpaDecisionOutcomeType with values of 23 and 35 rules

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7279 (#705)

* Added handler and template for generating letter when LO requests HO to amend appeal response
* Imported isValidUserDirection from notifications-api.
* Added/updated unit and FTs

* RIA-7376 link_case (#704)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_case_det: Add Event create case link. Template, configurations, tests

* RIA-7376_link_case_det: Fix unit test

* RIA-7376_link_case_det: Fix intends

* RIA-7376_link_case_det: populate FT with more values, AsylumCase object mapper populated with dateTime module

* RIA-7376_link_case_det: merge conflicts

* RIA-7437 internal non standard direction letter (#706)

* RIA-7437 Non standard direction to appellant - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, second time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, Fourth time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests, try two - ADA & NonADA (Letter)

* RIA-7437 - Renamed bean

* RIA-7437 - fixed functional tests

* RIA-7437 Non standard direction to appellant, resolving comments (Letter)

* RIA-7437 Non standard direction to appellant, fixing checkstyle error (Letter)

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>
Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7376 link_cases (#711)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_cases: fix dates serialization mechanism

* RIA-7376_link_cases: fix styles

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'S… (#714)

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'Send Direction' event

* Update renovate.json

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7433 Generate letter when LO changes hearing centre for detained… (#702)

* RIA-7433: Generate letter when LO changes hearing centre for detained internal appeals

* RIA-7433 updated functional test description

* RIA-7433: Added FT for non-ADA appeal

* Fix checkstyle errors

* RIA-7418 Appeal edited - ADA & Non ADA (Letter) (#717)

* RIA-7418: added new edit template letter and logic behind

* RIA-7418: fixed BundleOrderTest.java

* RIA-7432: Fix template to reflect old and new hearing centres (#721)

* RIA-7370 (#719)

* Refactored implementation of RIA-7427 to make InternalUploadAdditionalEvidenceGenerator generic for all users
* Imported HasDocument interface and made current implementation of DocumentWithMetadata implement it
* Imported events from case-api
* Added 2 new doc tags (LO additional evidence upload and HO additional evidence upload)
* Created 2 new templates for HO and LO additional evidence upload
* Added new methods in AsylumCaseUtils to extract addendum evidence documents and to fetch most recent addendum evidence added
* Created 2 new beans in DocumentCreatorConfiguration (LO/HO additional evidence upload)
* 2 new application.yaml entries for document templates
* Updated existing tests and added new unit/FTs

* RIA-7370 Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice (#725)

* RIA-7370
* Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice

* RIA-7370
* Fixed sonar check. Performing isEmpty() check on optional var before a .get()

* RIA-7370 (#727)

* Added a null check on addendum metadata

* Suppress CVE (#728)

* RIA-7471 letter generation direction due date changed (#715)

* RIA-7471 Letter generation when 'Change Direction due date' is triggered

- for ADA and non ADA internal cases
- when recipient party is either APPELLANT or APPELLANT AND RESPONDENT.

* Fix naming of a variable

* RIA-7471 - fixed unit test

* RIA-7471 Fix functional tests

* Fix unit test

* Fix template personalisations

* Fix name for template env variable

---------

Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7435 Home_office_non-Standard_direction_letter (#730)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-7439 ho_change_direction_due_date (#729)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439 ho_change_direction_due_date (#731)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439 ho_change_direction_due_date (#735)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7429 Letter generation for Internal Reinstate Appeal (#722)

* RIA-7435 Rename the letter generator class and corresponding unit tests (#737)

* RIA-7435 Rename the letter generator class and corresponding unit tests

* Fix checkstyle error

* Fix functional tests

* Fixing functional test

* RIA-7911 Update hearing adjustments (#739)

* RIA-7911_Update_hearing_adjustments

* RIA-7911 Update hearing adjustments functional tests

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* Update suppressions.xml

* Update suppressions.xml

* RIA-7537 EJP Adding new roles for legal officer (#746)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-8888 Upgraded chart version (#751)

* RIA-8888 Upgraded chart version

* RIA-8888 revert version because it is auto bumped

* RIA-8888 added suppressions

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7411 Removing OOC feature flag fields (#743) (#754)

* RIA-7411 Removing OOC feature flag fields

* RIA-7411 Suppressing CVE-2023-42794, CVE-2023-42795, CVE-2023-45648

Co-authored-by: Ryan-Nesbitt <95298094+Ryan-Nesbitt@users.noreply.github.com>

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#760)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Jake Cohen <101183561+JakeCohenSol@users.noreply.github.com>
Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* Removed print line that causes issues on windows (#762)

* RIA-7950 upgrade_fix (#767)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7950_upgrade_fix: trigger rebuild

* RIA-2023 rebuild_pipelines (#775)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-20231212_rebuild_pipelines: Restart pipelines

* RIA-20231212_rebuild_pipelines: Add supressions

* Update suppressions.xml

* RIA-7324 Hearing adjourned without a date - ADA & Non ADA (Letter) (#788)

* RIA-7324: added adjourn hearing without date letter template

* RIA-7324: small fix on DocumentTag applied

* RIA-8214 Add a new screen to Bails start application - UT appeal pending (#791)

* RIA-8214: bail application submission template fixed with new fields

* RIA-8214: small refactor name on definitions

* Revert "RIA-8214 Add a new screen to Bails start application - UT appeal pending" (#793)

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#792)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

* DIAC-66 getting all functionals to run (#747)

* DIAC-66 getting all functionals to run

* DIAC-66 dependency update

* DIAC-66 dependency update

* DIAC-70 adding integration, smoke and unit testing and report to nightly runs

* DIAC-70 removing integration

* DIAC-70 adding secrets

* DIAC-70 adding mutation test reporting

* DIAC-70 adding mutation test reporting

* DIAC-66 integration tests

* DIAC-66 dependency upgrade

* DIAC-66 checkstyle fix

* DIAC-66 java chart upgrade

* DIAC-00 Revert pact dependency upgrade (#759)

* DIAC-84 Disable Decision and reasons document PDF conversion (#752)

* DIAC-84 Disable Decision and reasons document PDF conversion

* Remove PDF conversion

* upgrade java helm chart

* Delete Decision and reasons document PDF conversion files

* suppress CVE-2023-35116

* Update test names and add test for document null check

* fix test

* Update final decision and document name

* rename pdf service to file rename service

* update ia-case-api url

* Fix functional tests

* test

* Bumping chart version/ fixing aliases

* cleanup

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update all non-major dependencies (#740)

* Update all non-major dependencies

* renovate dependency fix

* functional flakiness workaround

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: nilay <nilay.patel@hmcts.net>

* Update all non-major dependencies (#768)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 suppressions update 04/12/23 (#771)

* Update all non-major dependencies (#769)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-123 dependency 07/12/23 (#773)

* DIAC-002 updating renovate JSON to exclude certain packages (#776)

* DIAC-78 - Remove logs containing case data (#766)

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* Update all non-major dependencies (#774)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-002 reverting terraform updates as requires more work (#777)

* DIAC-184 build fix 18-12-23 (#783)

* Update all non-major dependencies (#779)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#784)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#785)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#786)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DIAC-110 turning on fortify (#787)

* Update Terraform azurerm to ~> 3.87.0 (#790)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Merge master changes to NABA

* Merge master changes to NABA

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Jake Cohen <101183561+JakeCohenSol@users.noreply.github.com>
Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>
Co-authored-by: alivenichoppa <97441560+alivenichoppa@users.noreply.github.com>
Co-authored-by: nilay <nilay.patel@hmcts.net>
Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8023 QA Fix: generate appeal summary for internal detained non-ADA appeals (#814)

* RIA-7957 Adding event authorisation for Upload Appeal Response for respondent user (#829)

* Update suppressions.xml

* RIA-TASK - Fix for missing document tags when end appeal for EJP non DE case (#869)

* Fix for missing document tags when end appeal for EJP non DE case

* Remove unused import

* Update bundle order and test

* RIA-8609 - Cherry picked from commit 1e61307a 18/01/2024 to bc61a18b 23/02/2024 (#836)

* RIA-8609 - Cherry picked from commit 1e61307a 18/01/2024 to bc61a18b 23/02/2024

* Cherry picked the commits from 401580ae 29/02/24 to c19c3e9b 29/03/24

* Temporarily disable FTs

* Add double quotes as required

* Fix failed functional tests (#870)

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-8609 - Cherry picked from 11/04/2024 a9dc2e9b to 16/04/2024 1be1d489 (#876)

* Cherry picked from 11/04/2024 a9dc2e9b to 16/04/2024 1be1d489

* Fix test

* RIA-TASK - Resolve conflicts (#878)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config…
rajeshthuraiyur added a commit that referenced this pull request Jul 23, 2024
* RIA-7416 Split witness names to capture first and last names in LR journey (#592)

* RIA-7416: Update 'witnessDetails' with witness family name

* RIA-7416: Use Junit 5 features in functional tests

* RIA-7416: Temporarily address dependency vulnerability

* RIA-7416: Disable an existing failing functional test to progress PR in pipeline

- This functional test fails because of some authorisation issue.
- It has been esatablished that the update in this PR is not the
  cause of the failing test.
- Not sure how it passed successfully through the pipeline

---------

Co-authored-by: Augustine Onubeze <augustine.onubeze@hmcts.net>

* RIA-7574: Appeal submission summary document displays Legal Rep full Name (#603)

Co-authored-by: Augustine Onubeze <augustine.onubeze@hmcts.net>

* RIA-TASK Merged master changes to SNL - documents-api (#646)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

---------

Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7567 appellant and witness interpreter requirement are available (#645)

* RIA-7567 appellant and witness interpreter requirement are available #1220

* fix the problem of "exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61"

* fix the problem of "Failed to apply plugin 'net.serenity-bdd.aggregator'."

* fix the problem of "Could not set unknown property 'configDir' for extension 'checkstyle' of type org.gradle.api.plugins.quality.CheckstyleExtension."

* revert the changes for fixing the build problem

* add the functional test for RIA-7567

* add the functional test for RIA-7567 for updateHearingRequirements event

* update the witness name of the functional test for draftHearingRequirements event updateHearingRequirements event

* extract some logic to private method for setting interpreter information of appellant and witness

* RIA-7750 party ID generation LR journey (#662)

* RIA-7875  updates to resolve conflicts (#689)

* Updates to fix FT failures

* updates to fix build issues

* RIA-7860 Hearings Tab setup

* Update renovate.json

* RIA-7879 map epims ids to ccd hearing locations (#710)

* RIA-7879 map epims ids to ccd hearing locations

* Added the unit test and functional test

* renovate json patch

* update functional test

* RIA-7881 list the case system user (#726)

* RIA-7860 Hearings Tab setup

* RIA-7881 Authorization for system user for listCase

* Update suppressions.xml

* RIA-7195 remove listing reference number from notification template when hearing list assist hearing v2 (#750)

* RIA-7195 remove listing reference number from notification template when hearing list assist hearing v2

* update the unit test, functional test and temporarily suppress CVE problem

* update the unit test

* update the unit test for isIntegrated flag

* RIA-7792 Remove witness list element from logic (#753)

* RIA-7860 Hearings Tab setup

* RIA-7792 Refactor logic to forgo witnessListElement

* RIA-7792 Upgrade chart version

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7922 Improve test coverage (#756)

* RIA-7860 Hearings Tab setup

* RIA-7792 Improve WitnessDetailsTest

* RIA-7792 Improve HearingRequirementsTemplateTest

* RIA-7792 Delete DynamicMultiSelectList

* RIA-7792 Delete DynamicMultiSelectList

* RIA-7792 Undo stale change that got lumped in with the rest

* RIA-7922 update witness details class (#757)

* RIA-7860 Hearings Tab setup

* RIA-7792 Add field to WitnessDetails

* RIA-7882 Add editCaseListing permission for caseworker-ia-system (#758)

* RIA-7882 Add editCaseListing permission for caseworker-ia-system

* RIA-7882 Increase temporary suppression

* Update AuthorizationHeadersProvider.java

* Update CcdScenarioRunnerTest.java

* Update CcdScenarioRunnerTest.java

* RIA-7973 Updated Bail application details template (#765)

* RIA-7973 Updated Bail application details template

* RIA-7973 Added Bail FT scenarios pattern

* RIA-7973 Fixed Ft

* Update CcdScenarioRunnerTest.java

* RIA-8119 Bail application document changes with added interpreter fields (#778)

* RIA-8119 Bail application document changes with added interpreter fields

* RIA-8119 Suppressing CVE-2023-6481 and CVE-2023-34055

* RIA-8119 Suppressing CVE-2023-33202, CVE-2023-46589, CVE-2023-6378

* RIA-8364 Bail template change 01134 -> 01144 (#789)

* RIA-8489 Refactored interpreter language (#798)

* RIA-8410 RIA-8409 Generate and store hearing notice on case (initial listing and relisting) (#794)

* RIA-8410: Generate hearing documents

- Create Handler, Template and configuration classes to generate notice
  of hearing for case relisting.

* RIA-8409: Generate hearing documents

- Create handler, template and configuration classes to generate notice of hearing for initial listing event.

* RIA-8410: Some code refactoring

* RIA-8508 Fix appeals refactored interpreter language (#803)

* RIA-8415 record adjournment details (#801)

* RIA-7860 Hearings Tab setup

* RIA-8415 Add recordAdjournmentDetails event

* RIA-8415 Add noticeOfAdjournedHearing document tag

* RIA-8415 Add classes and config to handle RecordAdjournmentDetails

* RIA-8415 Functional test for RecordAdjournmentDetails

* RIA-8415 Update test

* RIA-8507 Fix the field type for fcs_has_passport in BailCaseFieldDefinition (#810)

* RIA-8554 Fix detention location on hearing-notice template (#817)

* RIA-8554 Using enums for Field definition comparison (#819)

* Update BailDocumentCreatorConfiguration.java

* Update BailSubmissionTemplate.java

* updates to fix rebasing issues

* Updates to fix sonar issue

* Updates to fix sonar issue

* Updates to fix rebase issue

* Fix issues in functional tests (#861)

* Update suppressions.xml

* RIA-8802 bails notice of hearing displays the correct location information snl (#885)

* RIA-8935: Fix issue in Exception management (#893)

* RIA-8916 To resolve merge conflicts with master branch (#889)

* DIAC-123 cdam download change fix (#806)

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123

* DIAC-123 removing logging

---------

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8726 - Merge SNL (BAILS) - > Master (DO NOT MERGE) (#841)

* RIA-7973
* RIA-7973 Updated Bail application details template

* RIA-7973 Added Bail FT scenarios pattern

* RIA-7973 Fixed Ft

* RIA-8119
* RIA-8119 Bail application document changes with added interpreter fields

* RIA-8364
* RIA-8364 Bail template change 01134 -> 01144

* RIA-8489
* RIA-8489 Refactored interpreter language

* RIA-8410 RIA-8409 Generate and store hearing notice on case (initial listing and relisting)

* RIA-8410: Generate hearing documents

- Create Handler, Template and configuration classes to generate notice of hearing for case relisting

* RIA-8409: Generate hearing documents

- Create handler, template and configuration classes to generate notice of hearing for initial listing event

* RIA-8410: Some code refactoring

* RIA-8508
* RIA-8508 Fix appeals refactored interpreter language

* RIA-8507
* RIA-8507 Fix the field type for fcs_has_passport in BailCaseFieldDefinition

* RIA-8554
* RIA-8554 Fix detention location on hearing-notice template

* RIA-8554
* RIA-8554 Using enums for Field definition comparison

* Update BailSubmissionTemplateProvider.java

* RIA-8738: IMA - Rebasing docmosis template (#845)

* Updates to fix build failure

* RIA-8773: Add missing hearing centres in the hearing location to hearing address mapping document (#858)

* RIA-8773 Fix rebasing of CcdScenarioRunnerTest

* RIA-8774 Add logging (#862)

* RIA-8774 Add logging

* RIA-8770 Run functional tests on pipeline

* RIA-8774 Enable logging on functional tests

* RIA-8774 Enable logging on functional tests

* Update DocumentTagTest.java

---------

Co-authored-by: Marcellofabbri <marcello.fabbri@hmcts.net>
Co-authored-by: Augustine Onubeze <ikechukwu.onubeze@gmail.com>
Co-authored-by: Marcello Fabbri <56549133+Marcellofabbri@users.noreply.github.com>

* RIA-TASK NABA -> Master : DO NOT MERGE (#520)

* RIA-6455: Added new Hearing centre - Harmondsworth (#518)

* RIA-6455: Added new Hearing centre - Harmondsworth

* Fix vulnerabilities

* Added Location (#519)

* Added Location

* Suppressions

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6491: Give admin officer access to edit appeal post submission (#521)

* RIA-6491: Give admin officer access to edit appeal post submission

* RIA-6491: Address dependency vulnerabilities

* RIA-6529: Generate Hearing Notice after listing for ADA cases (#522)

* RIA-6529: Generate Hearing Notice after listing for ADA cases

* Suppress vulnerabilities

* Added Yarls Wood as hearing centre and also its address (#524)

* Ria 6424 appeal submission summary (#527)

* Added some defs to extract case data
Added some puts to copy case data to field values which docmosis can use to generate the appeal submission summary

* Modified tests

* Formatted for sonar scan

* Final changes

* Refactored AppealSubmissionTemplate and added logic for displaying removal order date and time

* Added tests for detained fields and removal order date

* Formatted import and method line seperations for serenity checks

* Added CVE suppression

* Changed where appelantInDetention defaults to YesOrNo.NO

* Moved the parsing of complex asylum case fields (nomsNumber, dateCustodialSentence & otherDetentionFacilityName, to a dedicated method. Modified tests to cover more scenarios and make the tests more robust by checking all other relevant fields in the same flow.

* Added assertion to check size of templateFieldValues

* Bundled common fields together and setting Mockito strictness to lenient

* Added suppressions

* RIA-6424: Fix the TypeReference class for the field - 'hasPendingBailApplications' (#528)

- Changed from YesOrNo type to BailApplicationStatus type.
- update relevant unit tests.

* Added guards in event nomsNumber, releaseDate & removalOrderDate are empty strings (#530)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Ria 6424 (#531)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Ria 6564 hearing notice edited ada (#532)

* RIA-6564 - Adding hearing notice document generation for ADA cases

* RIA-6564 - Checkstyle

* RIA-6564 - Adding suppression

* Ria 6685 date decision letter (#545)

* RIA-6685 Added logic for Date decision letter to appear in Appeal template

* Formatting changes and tests

* Fixed tests

* added decisionLetterReceivedDate test

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6685-fixed-test (#546)

Co-authored-by: Jamie <jamiemurphy@version1.com>

* Ria 6605 ada suitability document api (#547)

* Saving work

* Saving changes

* Saving work before a forced update

* Latest changes

* latest changes

* Added new template

* Rebased

* Added ADASuitabilityReviewDecision entity. Added suitability review, reason and judge to AsylumCaseDefinition. Added AdaSuitability document tag. Added suitability review event. Created pre-submit handler to generate ada suitability document. Added AdaSuitability to bundleOrder. Created new AdaSuitabilityTemplate. Added Adasuitability bean to DocumentCreatorConfiguration. Added AdaSuitabilityDocument metadata to application.yml. Created AdaSuitabilityTemplateTest.

* Resolved comments in PR specifically regarding extra line seperations and variable name formatting

* Added functional test for ADA suitability document generation

* Adding system credentials and appropriate method to generate headers for pipeline build failures.

* Fix for failing functional test: RIA-5778-end-appeal-automatically-notice-document.json

* RIA-6612: Update Bundling events to include Ada suitability review do… (#549)

* RIA-6612: Update Bundling events to include Ada suitability review document

- new document added under section of Tribunal Documents.
- added functional and unit tests.

* Update owasp.dependencyCheck

* Updated 'after' method call in Jenkinfile*

* RIA-6694-Admin-Submit-Appeal (#551)

* RIA-6694-Admin-Submit-Appeal

* fixed state test

---------

Co-authored-by: Jamie <jamiemurphy@version1.com>
Co-authored-by: Dbarnes-v1 <99024336+Dbarnes-v1@users.noreply.github.com>

* RIA-6700 - Allowing access to editAppeal for Admin users (#552)

* RIA-6721 Added isAdmin field to templateFieldValues in appeal submission summary template. (#554)

Added isAdmin field to AsylumCaseDefinition.
Updated unit tests.

* RIA-6702 - Internal case creation adding access to the following even… (#553)

* RIA-6702 - Internal case creation adding access to the following events for Admins:

	1. makeAnApplication
	2. draftHearingRequirements
	3. buildCase
	4. submitCase
	5. uploadAdditionalEvidence
	6. applyForFTPAAppellant
	7. requestFeeRemission

* RIA-6702 - Updating unit test

* RIA-6702 - Suppression

* RIA-6873 appeal summary changes (#555)

* RIA-6873_appeal_summary_changes

* Charts java version upgraded

* Adding new suppression

* Change HAS_OTHER_APPEALS field type with new object class

* Ria 6844 Add date to ADA suitability document (#556)

* RIA-6844 Added date to ADA suitability document. Updated unit test.

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-6560 - Functional tests improvements (#568)

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Suppress CVE-2023-20863 (#570)

* Rebase from Master (#571)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. DocumentManagementUploader is updated but this class is not used or ex
tended by any other class

* update scanbase packages

* update gradle for test

* suppressing org.yaml:snakeyaml:1.26

* update tvtStringProvider

* update tvtStringProvider

* fix build failures

* fix build failures

* fix build failures

* Updates to fix build failures

* Updates to fix secure doc store client

* Bumping chart version/ fixing aliases

* Updates to fix build failures

* Updates to fix build failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to suppress cves to allow build to happen

* fix for failing gradle build

* RIA-5804: reload jenkins build

* Bumping chart version/ fixing aliases

* RIA-5804: fixed vulnerabilities

* RIA-5804: upgraded java chart version

---------

Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>

* Update suppressions.xml (#557)

* To update azurerm version for terraform (#558)

* Update state.tf

* Update .terraform-version

* Update variables.tf

* Update main.tf

* Update main.tf

* Revert "To update azurerm version for terraform (#558)" (#559)

This reverts commit a90efa41ddaa7b71f143c038f2355c4100e8a152.

* Revert "Update suppressions.xml (#557)" (#560)

This reverts commit 247256adf152dd85bd2f0dc3b3eb216478ff77a5.

* Revert "fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)" (#561)

This reverts commit 52eab14c22caa2398868bf623ffef1c9de6540bc.

* To revert cdam changes from production (#562)

* Update .terraform-version

* Update main.tf

* Update state.tf

* Update variables.tf

* Update suppressions.xml

* Update Chart.yaml

* Update suppressions.xml

* Bumping chart version/ fixing aliases

* Update Chart.yaml

* Update suppressions.xml

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update Dockerfile (#565)

* Update Dockerfile

* Update Dockerfile

* Update suppressions.xml

* Updated suppressions

---------

Co-authored-by: addison-jephtah <108927648+addison-jephtah@users.noreply.github.com>
Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>
Co-authored-by: mokainos <72137340+mokainos@users.noreply.github.com>

* Updated dependencies to remove suppressed CVEs (#564) (#573)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>
Co-authored-by: mcareyma <matthew.carey@version1.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7043 add NOTICE_OF_DECISION_UT_TRANSFER document tag (#576)

* RIA-7043
* Added NOTICE_OF_DECISION_UT_TRANSFER enum to DocumentTag.java

* RIA-7043
* Updated DocumentTagTest.java

* RIA-7043
* Updated document bundle configs

* Supressed CVE-2023-28709 (#580)

* Added new line character to kick off new build on pipeline (#582)

* RIA-7158 request case building notification attachment letter (#583)

* * Added powermock to build.gradle which is used in testing
* Added template for internal cases for FTs
* Added requestCaseBuilding event to enums
* Added NOTIFICATION_ATTACHMENT_DOCUMENTS to asylumCase to store new AIP notification attachment docs
* Added AdaListCase direction tag to fix bug where the direction cannot be parsed as it's not in the list of DirectionTag enums
* Added requestCaseBuilding Doc tag
* Updated bundleOrder with the new DocTag
* Added holidaydates service
* Added DueDateService
* Added new handler/docGenerator for requestCaseBuilding event for internal ADA cases
* Created new template for the new handler/docGenerator
* Added asylumcaseutils
* Added internalAdaBuildCase bean to DocumentCreatorConfiguration for the above new handler/template
* Updated CustomerServicesProvider with new email/telephone for internal ADA cases
* Added internalAdaBuildCaseDocument metadata to application.yml. Also gave CO permission for requestCaseBuilding event and added internal ADA contact details
* Added unit tests for above
* Added FT for LO requestCaseBuilding to verify doc generated

* RIA-7158
* Moved the deconstruction of directions to AsylumCaseUtils to make it generalised for future use
* Added utility class to format dates
* Updated tests
* Added comment as per PR review feedback

* Added suppression to make CI/CD pipeline pass (#584)

* RIA-7158 (#585)

* Formatted date

* Update suppressions.xml

force build

* Update minimal-aip-appeal-submitted.json

* Update minimal-appeal-submitted.json

* Update suppressions.xml

* Update suppressions.xml

* RIA-7175 Internal ADA suitability document - unsuitable (#593)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Suppress CVE-2023-35116 and CVE-2023-2976

* Revert "RIA-7175 Internal ADA suitability document - unsuitable (#593)" (#594)

This reverts commit 8d9236e8d0b9c89ac23bee6c4279d4d07b9c8c96.

* RIA-7174 ADA suitability document - suitable (#596)

* RIA-7174 ADA suitability notification doc for suitable decision

* RIA-7174 Suppressing CVE-2023-35116

* RIA-7174 Changes from code review, some refactoring work also

* RIA-7174
* Removed common method and put it back into the template as a private method.

* RIA-7174 Added empty line at end of functional test

---------

Co-authored-by: FarukH <hussain.faruk@hmcts.net>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7175 internal ada suitability unsuitable document (#595)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Fixed formatting issues after rebase branch

* RIA-7172: Generate letter when 'HO Request Review' event is triggered (#597)

* RIA-7172: Generate letter when 'HO Request Review' ebent is triggered

- add the new letter in the Notification_letter collection.
- new tag added.

* RIA-7172: Fix Functional test

* RIA-7172: Trigger letter generation only for ADA

* RIA-7212 Internal ADA Appeal decided, allowed document generation (#598)

* RIA-7212 Internal ADA Appeal decided, allowed document generation

* RIA-7212 Fixed unit tests after rebase

* RIA-7212 Tidying up code using common methods

* RIA-7212 Refactor packages

* Ria 7540 dynamic internal email/tel (#599)

* RIA-7540 Updated customer service provider to return internal case dynamic email/tel

* RIA-7540 updated HoReviewEvidenceLetterTemplate to get fetch dynamic email and tel

* RIA-7540 updated InternalAdaDecisionsAndReasonsAllowedLetterTemplate to get fetch dynamic email and tel

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7174 Refactor package location (#600)

* RIA-7175 Refactor of package (#601)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appea… (#605)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appeal Response' event

- added new user for functional test - HomeOfficeLart
- added new entity - AppealReviewOutcome.

* RIA-7198: Fix customer services contact info methods

* RIA-7198: Fix unit tests

* RIA-7198: Fix functional test for 'end appeal automatically' event

* RIA-7198: Added system env variable to secret mapping for the lart user credentials

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismisse… (#604)

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismissed - ADA (Letter) template generation, tests

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Fixed code styles

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsReasonsLetterAllowedGenerator(and Dismissed) refactored into one generic class with conditions, tests fixed as well

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsAndReasonsDismissedLetterTemplate refactored dueDate code lines

* RIA-7200 (#602)

* Added new template for hearing bundle ready letter
* Added new handlers and functionality to generate this letter AFTER generate hearing bundle event when async stitching bundle event is implicitly called and is successful
* Added unit/functional tests

* RIA-7174 Adding new template vars to template (#607)

* RIA-7174 Adding new template vars to template

* RIA-7174 Functional test reworked to add directions

* RIA-7174 Another functional test rework

* RIA-7538 Updated config and handler to handle internal case detained non ADA document generation (#610)

* RIA-7606_change_customer_service_mail (#611)

* RIA-7606_change_customer_service_mail: Fix customer service mail in application.yml

* RIA-7606_change_customer_service_mail: Fix customer service mail in InternalDetGenerateHearingBundleTemplateTest

* RIA-7215 Updated template to handle detained non-ada letter (#612)

* RIA-7200 Fix hearing centre name (#613)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7218 Allow document generation for all detained cases (#615)

* RIA-7218 Allow document generation for all detained cases

* RIA-7218 Functional test fixed

* RIA-7159 Request case building detained letter generation (#616)

* RIA-7159: WIP

- Used one generator for for both detained and non-detained letter
  generations

* RIA-7159 Final changes. tests and checkstyle changes

* RIA-7159 Removing redundant unit tests

---------

Co-authored-by: Neha Aggarwal <neha.aggarwal@version1.com>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7159 Rework of Non-ADA template to reduce duplication (#619)

* RIA-7548_internal_appeal_submission_non_ada (#618)

* RIA-7548_internal_appeal_submission_non_ada: Add appeal submission template for internal, non ada, detained only cases

* RIA-7548_internal_appeal_submission_non_ada: styles fix

* RIA-7548_internal_appeal_submission_non_ada: Add document tag, fix tests for this tag

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Fix condition AsylumCase definition in AppealSubmissionCreator

* RIA-7548_internal_appeal_submission_non_ada: Bundle sort tests fix

* RIA-7216 Added appeal decided dismissed detained non ADA document templates (#622)

* Update suppressions.xml

* Update suppressions.xml

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record ou… (#623)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed (#624)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7552 appeal can proceed (#626)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7554 directed to upload bundle (#628)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* Ria 7554 directed to upload bundle (#629)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#630)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#631)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-TASK Merged master changes to Naba - documents-api (#614)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* Fixed tests

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7582 non_payment_end_appeal (#637)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7582_non_payment_end_appeal: Add template, generator, configuration, Asylum definitions for remission type, tests

* RIA-7582_non_payment_end_appeal: Add RemissionType test

* RIA-7582_non_payment_end_appeal: Fix application properties document fileName and functional test 7582

* RIA-7580 (#638)

* Added new handler, template and bean config for internal detained non-ada appeal fee letter with no remissions
* Imported AppealType class from case-api
* Updated existing unit tests (State, BundleOrder & DocumentTag)
* Added unit tests and FT

* RIA-7581 Added internal detained mark as paid letter (#639)

* RIA-7618 document remission partially approved rejected (#641)

* RIA-7618 Initial document changes before rebase

* RIA-7618 Final refactored changes after rebasing

* RIA-7618 Utils method change

* RIA-7618 Adding unit test for RemissionDecision class

* RIA-7618 checkstyle test fix

* RIA-7556 internal det ho review maintained (#640)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7556 init commit

* RIA-7556_internal_det_ho_review_maintaned: Add tests unit/functional, update application.yml for new event and fix document extension in application.yml

* RIA-7556_internal_det_ho_review_maintaned: Add tests for new event

* RIA-7556_internal_det_ho_review_maintaned: Fix on dueDate in template and test for this template

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Adding detenction

---------

Co-authored-by: ThomasKKC <thomas.cheong@version1.com>

* RIA-7559 DET letter case listing detained (#642)

* RIA-7559 Generator and template for doc generation

* RIA-7559 internal detained list case letter generation

* RIA-7559 document creator values updated to correct document

* RIA-7559 functional test added

* RIA-7559 append document to notifications attachments group

* RIA-7559 functional test fix

* RIA-7559 Checkstyle and unit test fixes for pipeline

* RIA-7557 Internal detained review HO response decision withdrawn letter generation (#643)

* RIA-7557
* Added functionality for new letter generation when LO requests AIP to review HO response
* Added new doc tag for the new letter
* Refactored RIA-7556
* Added/updated unit/FTs

* Rebasing

* RIA-7557
* Updated FT

* RIA-7561 - Added handler to generate letter when 'Request Hearing Requ… (#644)

* RIA-7561: Added handler to generate letter when 'Request Hearing Requirements' Event is triggered

* RIA-7561: Remove local testing code.

* RIA-7561: Remove unused import.

* RIA-7561: Fix BundleOrderTest after rebase.

* RIA-7561: Fix PMD violations.

* Update suppressions.xml

* RIA-7556/RIA-7557 (#648)

* Renamed document file names for home office response review decision maintained and withdrawn

* RIA-7372 appeal_ended_aip_journey (#647)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended_aip_journey: Add Document tag for internal cases, generator, template, configuration, application.yml links and tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7561: Allow LF for Request Hearing Requirements Feature (#649)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7281 Added internal detained edit case listing letter (#650)

* RIA-7281 Added internal detained edit case listing letter

* RIA-7281 Added extra unit tests for thrown exceptions

* RIA-7374 mark_appeal_as_ada (#651)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7374_mark_appeal_as_ada: Add for internal journey mark as ada, configuration, template, document Tag, event, Bundler order tag. Populate application props with link to letter, add functional tests

* RIA-7374_mark_appeal_as_ada: Fix merge conflicts

* RIA-7374_mark_appeal_as_ada: Remove condition check if appeal is Ada, as well remove from tests functional and junit

* RIA-7364 internal decideAnApplication letter generation (#653)

* RIA-7364
* Added functionality for decideAnApplication letter generation for internal cases
* Copied across makeAnApplication logic and its parsing/extraction from case data
* Added new doc tag
* Added/updated unit and FTs

* RIA-7364
* Updated FTs

* RIA-7364 Made some changes for sonar cloud failures (#655)

* Added isPresent() check
* Updated assertion for default case in enhanced switch statement

* Update suppressions.xml

* RIA-7328 ho_ftpa_submitted (#657)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7328_ho_ftpa_submitted: Add DocumentTag, Populate BundlerOrder, DocumentCreatorConfiguration for APPLY_FOR_FTPA_RESPONDENT. Add roles, junit/functional tests for APPLY_FOR_FTPA_RESPONDENT

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7365 (#660)

* Added new template for internal decide an application where decision is refused
* Refactored 7364 so granted+refused use a single handler with independent DocumentCreatorConfiguration beans and seperate templates.
* Added/updated unit/FTs.

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7701 Added transfer out of ADA letter (#661)

* RIA-7326 (#663)

* Added functionality to generate letter when admin officer applies for ftpa for internal cases
* Added/updated tests

* RIA-7326 (#665)

* Updated doc tag

* RIA-7330 Internal appellant FTPA decided granted document (#670)

* RIA-7330 Internal appellant FTPA decided granted document

* RIA-7330 Checkstyle and unit test fixes

* Update suppressions.xml

* Update suppressions.xml

* RIA-7360 ho_ftpa_decided_granted (#671)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7360_ho_ftpa_decided_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided granted. Add Tests and functional test, Document.tag, Definitions.

* RIA-7361 ho_ftpa_decided_partially_granted (#672)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7361_ho_ftpa_decided_partially_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided partially granted. Add Tests and functional test

* RIA-7326 (#673)

* Give LR permission for applyForFTPAAppellant event doc generation

* RIA-7362 ho_ftpa_decided_refused (#675)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7362_ho_ftpa_decided_refused: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided refused. Add Tests and functional test

* RIA-7362_ho_ftpa_decided_refused: Fix typo

* RIA-7331 Internal appellant ftpa decided - partially granted document (#676)

* RIA-7331 Internal appellant ftpa decided - partially granted document

* RIA-7331 Corrected deadline date values for ada and non-ada

* RIA-7332 Document for Appellant ftp decided - refused (#677)

* RIA-7332 Document for Appellant ftp decided - refused

* RIA-7332 Suppressing CVE-2023-41080

* RIA-7332 Split functional test into ADA and non-ADA scenarios

* RIA-7332 Functional test file rename

* RIA-7331 Further changes to ADA working days scenario (#678)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios (#679)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios

* RIA-7330 rename FT title for non-ADA FT

* RIA-TASK - Merged Master changes to NABA case-documents (#669)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Update suppressions.xml

* Merged Master changes to NABA

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>

* RIA-7844 (#682)

* Added content for application type - reinstate to InternalDecideAnApplicationDecisionGrantedLetterTemplate.getWhatHappensNextContent()
* Added reinstate content test
* Added FTs for reinstate application type when decided

* RIA-7844 (#684)

* Adding full stop to String

* RIA-7322 Internal hearing requirements updated letter generation (#686)

* RIA-7367 (#685)

* Refactored internal appellant application decided (refused+granted)
* Updated internalApplicationDecided handler to pick correct DocumentCreatorCongif bean based on granted/refused and appellant/respondent application
* Added new bean for HO decide application
* Added/updated unit tests
* Refactored 7364 FTs to include Admin Officer as application applicant
* Added new FTs

* RIA-7368 (#690)

* Addedn functionality to generate letter when HO application decided
* Refactored RIA-7365
* Added/updated unit/FTs

* RIA-7372 appeal_ended (#688)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended: change decisionMaker to fetch from END_APPEAL_APPROVER_TYPE, fix endAppealDate fortmat, fix tests

* RIA-7372_appeal_ended: remove unused import

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7322 hearingDate removed from template (#691)

* RIA-7561: Fix the deadline date in the 'Request Hearing Requirements' letter (#687)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7378 unlink_appeal (#693)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Add new Document letter generation for Maintain Case Link event.

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: remove unused import

* RIA-7378 unlink case (#694)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7427 Internal upload additional evidence doc generation (#695)

* RIA-7427 Internal upload additional evidence doc generation

* RIA-7427 Test and checkstyle fixes

* RIA-7378 unlink_case (#696)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378 unlink_case (#697)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#698)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#699)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7895 bug_fix_rule3235 (#700)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7895_bug_fix_rule3235: Populate FtpaDecisionOutcomeType with values of 23 and 35 rules

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7279 (#705)

* Added handler and template for generating letter when LO requests HO to amend appeal response
* Imported isValidUserDirection from notifications-api.
* Added/updated unit and FTs

* RIA-7376 link_case (#704)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_case_det: Add Event create case link. Template, configurations, tests

* RIA-7376_link_case_det: Fix unit test

* RIA-7376_link_case_det: Fix intends

* RIA-7376_link_case_det: populate FT with more values, AsylumCase object mapper populated with dateTime module

* RIA-7376_link_case_det: merge conflicts

* RIA-7437 internal non standard direction letter (#706)

* RIA-7437 Non standard direction to appellant - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, second time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, Fourth time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests, try two - ADA & NonADA (Letter)

* RIA-7437 - Renamed bean

* RIA-7437 - fixed functional tests

* RIA-7437 Non standard direction to appellant, resolving comments (Letter)

* RIA-7437 Non standard direction to appellant, fixing checkstyle error (Letter)

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>
Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7376 link_cases (#711)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_cases: fix dates serialization mechanism

* RIA-7376_link_cases: fix styles

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'S… (#714)

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'Send Direction' event

* Update renovate.json

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7433 Generate letter when LO changes hearing centre for detained… (#702)

* RIA-7433: Generate letter when LO changes hearing centre for detained internal appeals

* RIA-7433 updated functional test description

* RIA-7433: Added FT for non-ADA appeal

* Fix checkstyle errors

* RIA-7418 Appeal edited - ADA & Non ADA (Letter) (#717)

* RIA-7418: added new edit template letter and logic behind

* RIA-7418: fixed BundleOrderTest.java

* RIA-7432: Fix template to reflect old and new hearing centres (#721)

* RIA-7370 (#719)

* Refactored implementation of RIA-7427 to make InternalUploadAdditionalEvidenceGenerator generic for all users
* Imported HasDocument interface and made current implementation of DocumentWithMetadata implement it
* Imported events from case-api
* Added 2 new doc tags (LO additional evidence upload and HO additional evidence upload)
* Created 2 new templates for HO and LO additional evidence upload
* Added new methods in AsylumCaseUtils to extract addendum evidence documents and to fetch most recent addendum evidence added
* Created 2 new beans in DocumentCreatorConfiguration (LO/HO additional evidence upload)
* 2 new application.yaml entries for document templates
* Updated existing tests and added new unit/FTs

* RIA-7370 Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice (#725)

* RIA-7370
* Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice

* RIA-7370
* Fixed sonar check. Performing isEmpty() check on optional var before a .get()

* RIA-7370 (#727)

* Added a null check on addendum metadata

* Suppress CVE (#728)

* RIA-7471 letter generation direction due date changed (#715)

* RIA-7471 Letter generation when 'Change Direction due date' is triggered

- for ADA and non ADA internal cases
- when recipient party is either APPELLANT or APPELLANT AND RESPONDENT.

* Fix naming of a variable

* RIA-7471 - fixed unit test

* RIA-7471 Fix functional tests

* Fix unit test

* Fix template personalisations

* Fix name for template env variable

---------

Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7435 Home_office_non-Standard_direction_letter (#730)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-7439 ho_change_direction_due_date (#729)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439 ho_change_direction_due_date (#731)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439 ho_change_direction_due_date (#735)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7429 Letter generation for Internal Reinstate Appeal (#722)

* RIA-7435 Rename the letter generator class and corresponding unit tests (#737)

* RIA-7435 Rename the letter generator class and corresponding unit tests

* Fix checkstyle error

* Fix functional tests

* Fixing functional test

* RIA-7911 Update hearing adjustments (#739)

* RIA-7911_Update_hearing_adjustments

* RIA-7911 Update hearing adjustments functional tests

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* Update suppressions.xml

* Update suppressions.xml

* RIA-7537 EJP Adding new roles for legal officer (#746)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-8888 Upgraded chart version (#751)

* RIA-8888 Upgraded chart version

* RIA-8888 revert version because it is auto bumped

* RIA-8888 added suppressions

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7411 Removing OOC feature flag fields (#743) (#754)

* RIA-7411 Removing OOC feature flag fields

* RIA-7411 Suppressing CVE-2023-42794, CVE-2023-42795, CVE-2023-45648

Co-authored-by: Ryan-Nesbitt <95298094+Ryan-Nesbitt@users.noreply.github.com>

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#760)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Jake Cohen <101183561+JakeCohenSol@users.noreply.github.com>
Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* Removed print line that causes issues on windows (#762)

* RIA-7950 upgrade_fix (#767)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7950_upgrade_fix: trigger rebuild

* RIA-2023 rebuild_pipelines (#775)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-20231212_rebuild_pipelines: Restart pipelines

* RIA-20231212_rebuild_pipelines: Add supressions

* Update suppressions.xml

* RIA-7324 Hearing adjourned without a date - ADA & Non ADA (Letter) (#788)

* RIA-7324: added adjourn hearing without date letter template

* RIA-7324: small fix on DocumentTag applied

* RIA-8214 Add a new screen to Bails start application - UT appeal pending (#791)

* RIA-8214: bail application submission template fixed with new fields

* RIA-8214: small refactor name on definitions

* Revert "RIA-8214 Add a new screen to Bails start application - UT appeal pending" (#793)

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#792)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

* DIAC-66 getting all functionals to run (#747)

* DIAC-66 getting all functionals to run

* DIAC-66 dependency update

* DIAC-66 dependency update

* DIAC-70 adding integration, smoke and unit testing and report to nightly runs

* DIAC-70 removing integration

* DIAC-70 adding secrets

* DIAC-70 adding mutation test reporting

* DIAC-70 adding mutation test reporting

* DIAC-66 integration tests

* DIAC-66 dependency upgrade

* DIAC-66 checkstyle fix

* DIAC-66 java chart upgrade

* DIAC-00 Revert pact dependency upgrade (#759)

* DIAC-84 Disable Decision and reasons document PDF conversion (#752)

* DIAC-84 Disable Decision and reasons document PDF conversion

* Remove PDF conversion

* upgrade java helm chart

* Delete Decision and reasons document PDF c…
ThomasKKC added a commit that referenced this pull request Jul 29, 2024
* RIA-7875 Merge SNL -> Master (DO NOT MERGE) (#609)

* RIA-7416 Split witness names to capture first and last names in LR journey (#592)

* RIA-7416: Update 'witnessDetails' with witness family name

* RIA-7416: Use Junit 5 features in functional tests

* RIA-7416: Temporarily address dependency vulnerability

* RIA-7416: Disable an existing failing functional test to progress PR in pipeline

- This functional test fails because of some authorisation issue.
- It has been esatablished that the update in this PR is not the
  cause of the failing test.
- Not sure how it passed successfully through the pipeline

---------

Co-authored-by: Augustine Onubeze <augustine.onubeze@hmcts.net>

* RIA-7574: Appeal submission summary document displays Legal Rep full Name (#603)

Co-authored-by: Augustine Onubeze <augustine.onubeze@hmcts.net>

* RIA-TASK Merged master changes to SNL - documents-api (#646)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

---------

Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7567 appellant and witness interpreter requirement are available (#645)

* RIA-7567 appellant and witness interpreter requirement are available #1220

* fix the problem of "exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61"

* fix the problem of "Failed to apply plugin 'net.serenity-bdd.aggregator'."

* fix the problem of "Could not set unknown property 'configDir' for extension 'checkstyle' of type org.gradle.api.plugins.quality.CheckstyleExtension."

* revert the changes for fixing the build problem

* add the functional test for RIA-7567

* add the functional test for RIA-7567 for updateHearingRequirements event

* update the witness name of the functional test for draftHearingRequirements event updateHearingRequirements event

* extract some logic to private method for setting interpreter information of appellant and witness

* RIA-7750 party ID generation LR journey (#662)

* RIA-7875  updates to resolve conflicts (#689)

* Updates to fix FT failures

* updates to fix build issues

* RIA-7860 Hearings Tab setup

* Update renovate.json

* RIA-7879 map epims ids to ccd hearing locations (#710)

* RIA-7879 map epims ids to ccd hearing locations

* Added the unit test and functional test

* renovate json patch

* update functional test

* RIA-7881 list the case system user (#726)

* RIA-7860 Hearings Tab setup

* RIA-7881 Authorization for system user for listCase

* Update suppressions.xml

* RIA-7195 remove listing reference number from notification template when hearing list assist hearing v2 (#750)

* RIA-7195 remove listing reference number from notification template when hearing list assist hearing v2

* update the unit test, functional test and temporarily suppress CVE problem

* update the unit test

* update the unit test for isIntegrated flag

* RIA-7792 Remove witness list element from logic (#753)

* RIA-7860 Hearings Tab setup

* RIA-7792 Refactor logic to forgo witnessListElement

* RIA-7792 Upgrade chart version

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7922 Improve test coverage (#756)

* RIA-7860 Hearings Tab setup

* RIA-7792 Improve WitnessDetailsTest

* RIA-7792 Improve HearingRequirementsTemplateTest

* RIA-7792 Delete DynamicMultiSelectList

* RIA-7792 Delete DynamicMultiSelectList

* RIA-7792 Undo stale change that got lumped in with the rest

* RIA-7922 update witness details class (#757)

* RIA-7860 Hearings Tab setup

* RIA-7792 Add field to WitnessDetails

* RIA-7882 Add editCaseListing permission for caseworker-ia-system (#758)

* RIA-7882 Add editCaseListing permission for caseworker-ia-system

* RIA-7882 Increase temporary suppression

* Update AuthorizationHeadersProvider.java

* Update CcdScenarioRunnerTest.java

* Update CcdScenarioRunnerTest.java

* RIA-7973 Updated Bail application details template (#765)

* RIA-7973 Updated Bail application details template

* RIA-7973 Added Bail FT scenarios pattern

* RIA-7973 Fixed Ft

* Update CcdScenarioRunnerTest.java

* RIA-8119 Bail application document changes with added interpreter fields (#778)

* RIA-8119 Bail application document changes with added interpreter fields

* RIA-8119 Suppressing CVE-2023-6481 and CVE-2023-34055

* RIA-8119 Suppressing CVE-2023-33202, CVE-2023-46589, CVE-2023-6378

* RIA-8364 Bail template change 01134 -> 01144 (#789)

* RIA-8489 Refactored interpreter language (#798)

* RIA-8410 RIA-8409 Generate and store hearing notice on case (initial listing and relisting) (#794)

* RIA-8410: Generate hearing documents

- Create Handler, Template and configuration classes to generate notice
  of hearing for case relisting.

* RIA-8409: Generate hearing documents

- Create handler, template and configuration classes to generate notice of hearing for initial listing event.

* RIA-8410: Some code refactoring

* RIA-8508 Fix appeals refactored interpreter language (#803)

* RIA-8415 record adjournment details (#801)

* RIA-7860 Hearings Tab setup

* RIA-8415 Add recordAdjournmentDetails event

* RIA-8415 Add noticeOfAdjournedHearing document tag

* RIA-8415 Add classes and config to handle RecordAdjournmentDetails

* RIA-8415 Functional test for RecordAdjournmentDetails

* RIA-8415 Update test

* RIA-8507 Fix the field type for fcs_has_passport in BailCaseFieldDefinition (#810)

* RIA-8554 Fix detention location on hearing-notice template (#817)

* RIA-8554 Using enums for Field definition comparison (#819)

* Update BailDocumentCreatorConfiguration.java

* Update BailSubmissionTemplate.java

* updates to fix rebasing issues

* Updates to fix sonar issue

* Updates to fix sonar issue

* Updates to fix rebase issue

* Fix issues in functional tests (#861)

* Update suppressions.xml

* RIA-8802 bails notice of hearing displays the correct location information snl (#885)

* RIA-8935: Fix issue in Exception management (#893)

* RIA-8916 To resolve merge conflicts with master branch (#889)

* DIAC-123 cdam download change fix (#806)

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123

* DIAC-123 removing logging

---------

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8726 - Merge SNL (BAILS) - > Master (DO NOT MERGE) (#841)

* RIA-7973
* RIA-7973 Updated Bail application details template

* RIA-7973 Added Bail FT scenarios pattern

* RIA-7973 Fixed Ft

* RIA-8119
* RIA-8119 Bail application document changes with added interpreter fields

* RIA-8364
* RIA-8364 Bail template change 01134 -> 01144

* RIA-8489
* RIA-8489 Refactored interpreter language

* RIA-8410 RIA-8409 Generate and store hearing notice on case (initial listing and relisting)

* RIA-8410: Generate hearing documents

- Create Handler, Template and configuration classes to generate notice of hearing for case relisting

* RIA-8409: Generate hearing documents

- Create handler, template and configuration classes to generate notice of hearing for initial listing event

* RIA-8410: Some code refactoring

* RIA-8508
* RIA-8508 Fix appeals refactored interpreter language

* RIA-8507
* RIA-8507 Fix the field type for fcs_has_passport in BailCaseFieldDefinition

* RIA-8554
* RIA-8554 Fix detention location on hearing-notice template

* RIA-8554
* RIA-8554 Using enums for Field definition comparison

* Update BailSubmissionTemplateProvider.java

* RIA-8738: IMA - Rebasing docmosis template (#845)

* Updates to fix build failure

* RIA-8773: Add missing hearing centres in the hearing location to hearing address mapping document (#858)

* RIA-8773 Fix rebasing of CcdScenarioRunnerTest

* RIA-8774 Add logging (#862)

* RIA-8774 Add logging

* RIA-8770 Run functional tests on pipeline

* RIA-8774 Enable logging on functional tests

* RIA-8774 Enable logging on functional tests

* Update DocumentTagTest.java

---------

Co-authored-by: Marcellofabbri <marcello.fabbri@hmcts.net>
Co-authored-by: Augustine Onubeze <ikechukwu.onubeze@gmail.com>
Co-authored-by: Marcello Fabbri <56549133+Marcellofabbri@users.noreply.github.com>

* RIA-TASK NABA -> Master : DO NOT MERGE (#520)

* RIA-6455: Added new Hearing centre - Harmondsworth (#518)

* RIA-6455: Added new Hearing centre - Harmondsworth

* Fix vulnerabilities

* Added Location (#519)

* Added Location

* Suppressions

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6491: Give admin officer access to edit appeal post submission (#521)

* RIA-6491: Give admin officer access to edit appeal post submission

* RIA-6491: Address dependency vulnerabilities

* RIA-6529: Generate Hearing Notice after listing for ADA cases (#522)

* RIA-6529: Generate Hearing Notice after listing for ADA cases

* Suppress vulnerabilities

* Added Yarls Wood as hearing centre and also its address (#524)

* Ria 6424 appeal submission summary (#527)

* Added some defs to extract case data
Added some puts to copy case data to field values which docmosis can use to generate the appeal submission summary

* Modified tests

* Formatted for sonar scan

* Final changes

* Refactored AppealSubmissionTemplate and added logic for displaying removal order date and time

* Added tests for detained fields and removal order date

* Formatted import and method line seperations for serenity checks

* Added CVE suppression

* Changed where appelantInDetention defaults to YesOrNo.NO

* Moved the parsing of complex asylum case fields (nomsNumber, dateCustodialSentence & otherDetentionFacilityName, to a dedicated method. Modified tests to cover more scenarios and make the tests more robust by checking all other relevant fields in the same flow.

* Added assertion to check size of templateFieldValues

* Bundled common fields together and setting Mockito strictness to lenient

* Added suppressions

* RIA-6424: Fix the TypeReference class for the field - 'hasPendingBailApplications' (#528)

- Changed from YesOrNo type to BailApplicationStatus type.
- update relevant unit tests.

* Added guards in event nomsNumber, releaseDate & removalOrderDate are empty strings (#530)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Ria 6424 (#531)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Ria 6564 hearing notice edited ada (#532)

* RIA-6564 - Adding hearing notice document generation for ADA cases

* RIA-6564 - Checkstyle

* RIA-6564 - Adding suppression

* Ria 6685 date decision letter (#545)

* RIA-6685 Added logic for Date decision letter to appear in Appeal template

* Formatting changes and tests

* Fixed tests

* added decisionLetterReceivedDate test

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6685-fixed-test (#546)

Co-authored-by: Jamie <jamiemurphy@version1.com>

* Ria 6605 ada suitability document api (#547)

* Saving work

* Saving changes

* Saving work before a forced update

* Latest changes

* latest changes

* Added new template

* Rebased

* Added ADASuitabilityReviewDecision entity. Added suitability review, reason and judge to AsylumCaseDefinition. Added AdaSuitability document tag. Added suitability review event. Created pre-submit handler to generate ada suitability document. Added AdaSuitability to bundleOrder. Created new AdaSuitabilityTemplate. Added Adasuitability bean to DocumentCreatorConfiguration. Added AdaSuitabilityDocument metadata to application.yml. Created AdaSuitabilityTemplateTest.

* Resolved comments in PR specifically regarding extra line seperations and variable name formatting

* Added functional test for ADA suitability document generation

* Adding system credentials and appropriate method to generate headers for pipeline build failures.

* Fix for failing functional test: RIA-5778-end-appeal-automatically-notice-document.json

* RIA-6612: Update Bundling events to include Ada suitability review do… (#549)

* RIA-6612: Update Bundling events to include Ada suitability review document

- new document added under section of Tribunal Documents.
- added functional and unit tests.

* Update owasp.dependencyCheck

* Updated 'after' method call in Jenkinfile*

* RIA-6694-Admin-Submit-Appeal (#551)

* RIA-6694-Admin-Submit-Appeal

* fixed state test

---------

Co-authored-by: Jamie <jamiemurphy@version1.com>
Co-authored-by: Dbarnes-v1 <99024336+Dbarnes-v1@users.noreply.github.com>

* RIA-6700 - Allowing access to editAppeal for Admin users (#552)

* RIA-6721 Added isAdmin field to templateFieldValues in appeal submission summary template. (#554)

Added isAdmin field to AsylumCaseDefinition.
Updated unit tests.

* RIA-6702 - Internal case creation adding access to the following even… (#553)

* RIA-6702 - Internal case creation adding access to the following events for Admins:

	1. makeAnApplication
	2. draftHearingRequirements
	3. buildCase
	4. submitCase
	5. uploadAdditionalEvidence
	6. applyForFTPAAppellant
	7. requestFeeRemission

* RIA-6702 - Updating unit test

* RIA-6702 - Suppression

* RIA-6873 appeal summary changes (#555)

* RIA-6873_appeal_summary_changes

* Charts java version upgraded

* Adding new suppression

* Change HAS_OTHER_APPEALS field type with new object class

* Ria 6844 Add date to ADA suitability document (#556)

* RIA-6844 Added date to ADA suitability document. Updated unit test.

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-6560 - Functional tests improvements (#568)

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Suppress CVE-2023-20863 (#570)

* Rebase from Master (#571)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. DocumentManagementUploader is updated but this class is not used or ex
tended by any other class

* update scanbase packages

* update gradle for test

* suppressing org.yaml:snakeyaml:1.26

* update tvtStringProvider

* update tvtStringProvider

* fix build failures

* fix build failures

* fix build failures

* Updates to fix build failures

* Updates to fix secure doc store client

* Bumping chart version/ fixing aliases

* Updates to fix build failures

* Updates to fix build failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to suppress cves to allow build to happen

* fix for failing gradle build

* RIA-5804: reload jenkins build

* Bumping chart version/ fixing aliases

* RIA-5804: fixed vulnerabilities

* RIA-5804: upgraded java chart version

---------

Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>

* Update suppressions.xml (#557)

* To update azurerm version for terraform (#558)

* Update state.tf

* Update .terraform-version

* Update variables.tf

* Update main.tf

* Update main.tf

* Revert "To update azurerm version for terraform (#558)" (#559)

This reverts commit a90efa41ddaa7b71f143c038f2355c4100e8a152.

* Revert "Update suppressions.xml (#557)" (#560)

This reverts commit 247256adf152dd85bd2f0dc3b3eb216478ff77a5.

* Revert "fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)" (#561)

This reverts commit 52eab14c22caa2398868bf623ffef1c9de6540bc.

* To revert cdam changes from production (#562)

* Update .terraform-version

* Update main.tf

* Update state.tf

* Update variables.tf

* Update suppressions.xml

* Update Chart.yaml

* Update suppressions.xml

* Bumping chart version/ fixing aliases

* Update Chart.yaml

* Update suppressions.xml

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update Dockerfile (#565)

* Update Dockerfile

* Update Dockerfile

* Update suppressions.xml

* Updated suppressions

---------

Co-authored-by: addison-jephtah <108927648+addison-jephtah@users.noreply.github.com>
Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>
Co-authored-by: mokainos <72137340+mokainos@users.noreply.github.com>

* Updated dependencies to remove suppressed CVEs (#564) (#573)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>
Co-authored-by: mcareyma <matthew.carey@version1.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7043 add NOTICE_OF_DECISION_UT_TRANSFER document tag (#576)

* RIA-7043
* Added NOTICE_OF_DECISION_UT_TRANSFER enum to DocumentTag.java

* RIA-7043
* Updated DocumentTagTest.java

* RIA-7043
* Updated document bundle configs

* Supressed CVE-2023-28709 (#580)

* Added new line character to kick off new build on pipeline (#582)

* RIA-7158 request case building notification attachment letter (#583)

* * Added powermock to build.gradle which is used in testing
* Added template for internal cases for FTs
* Added requestCaseBuilding event to enums
* Added NOTIFICATION_ATTACHMENT_DOCUMENTS to asylumCase to store new AIP notification attachment docs
* Added AdaListCase direction tag to fix bug where the direction cannot be parsed as it's not in the list of DirectionTag enums
* Added requestCaseBuilding Doc tag
* Updated bundleOrder with the new DocTag
* Added holidaydates service
* Added DueDateService
* Added new handler/docGenerator for requestCaseBuilding event for internal ADA cases
* Created new template for the new handler/docGenerator
* Added asylumcaseutils
* Added internalAdaBuildCase bean to DocumentCreatorConfiguration for the above new handler/template
* Updated CustomerServicesProvider with new email/telephone for internal ADA cases
* Added internalAdaBuildCaseDocument metadata to application.yml. Also gave CO permission for requestCaseBuilding event and added internal ADA contact details
* Added unit tests for above
* Added FT for LO requestCaseBuilding to verify doc generated

* RIA-7158
* Moved the deconstruction of directions to AsylumCaseUtils to make it generalised for future use
* Added utility class to format dates
* Updated tests
* Added comment as per PR review feedback

* Added suppression to make CI/CD pipeline pass (#584)

* RIA-7158 (#585)

* Formatted date

* Update suppressions.xml

force build

* Update minimal-aip-appeal-submitted.json

* Update minimal-appeal-submitted.json

* Update suppressions.xml

* Update suppressions.xml

* RIA-7175 Internal ADA suitability document - unsuitable (#593)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Suppress CVE-2023-35116 and CVE-2023-2976

* Revert "RIA-7175 Internal ADA suitability document - unsuitable (#593)" (#594)

This reverts commit 8d9236e8d0b9c89ac23bee6c4279d4d07b9c8c96.

* RIA-7174 ADA suitability document - suitable (#596)

* RIA-7174 ADA suitability notification doc for suitable decision

* RIA-7174 Suppressing CVE-2023-35116

* RIA-7174 Changes from code review, some refactoring work also

* RIA-7174
* Removed common method and put it back into the template as a private method.

* RIA-7174 Added empty line at end of functional test

---------

Co-authored-by: FarukH <hussain.faruk@hmcts.net>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7175 internal ada suitability unsuitable document (#595)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Fixed formatting issues after rebase branch

* RIA-7172: Generate letter when 'HO Request Review' event is triggered (#597)

* RIA-7172: Generate letter when 'HO Request Review' ebent is triggered

- add the new letter in the Notification_letter collection.
- new tag added.

* RIA-7172: Fix Functional test

* RIA-7172: Trigger letter generation only for ADA

* RIA-7212 Internal ADA Appeal decided, allowed document generation (#598)

* RIA-7212 Internal ADA Appeal decided, allowed document generation

* RIA-7212 Fixed unit tests after rebase

* RIA-7212 Tidying up code using common methods

* RIA-7212 Refactor packages

* Ria 7540 dynamic internal email/tel (#599)

* RIA-7540 Updated customer service provider to return internal case dynamic email/tel

* RIA-7540 updated HoReviewEvidenceLetterTemplate to get fetch dynamic email and tel

* RIA-7540 updated InternalAdaDecisionsAndReasonsAllowedLetterTemplate to get fetch dynamic email and tel

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7174 Refactor package location (#600)

* RIA-7175 Refactor of package (#601)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appea… (#605)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appeal Response' event

- added new user for functional test - HomeOfficeLart
- added new entity - AppealReviewOutcome.

* RIA-7198: Fix customer services contact info methods

* RIA-7198: Fix unit tests

* RIA-7198: Fix functional test for 'end appeal automatically' event

* RIA-7198: Added system env variable to secret mapping for the lart user credentials

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismisse… (#604)

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismissed - ADA (Letter) template generation, tests

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Fixed code styles

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsReasonsLetterAllowedGenerator(and Dismissed) refactored into one generic class with conditions, tests fixed as well

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsAndReasonsDismissedLetterTemplate refactored dueDate code lines

* RIA-7200 (#602)

* Added new template for hearing bundle ready letter
* Added new handlers and functionality to generate this letter AFTER generate hearing bundle event when async stitching bundle event is implicitly called and is successful
* Added unit/functional tests

* RIA-7174 Adding new template vars to template (#607)

* RIA-7174 Adding new template vars to template

* RIA-7174 Functional test reworked to add directions

* RIA-7174 Another functional test rework

* RIA-7538 Updated config and handler to handle internal case detained non ADA document generation (#610)

* RIA-7606_change_customer_service_mail (#611)

* RIA-7606_change_customer_service_mail: Fix customer service mail in application.yml

* RIA-7606_change_customer_service_mail: Fix customer service mail in InternalDetGenerateHearingBundleTemplateTest

* RIA-7215 Updated template to handle detained non-ada letter (#612)

* RIA-7200 Fix hearing centre name (#613)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7218 Allow document generation for all detained cases (#615)

* RIA-7218 Allow document generation for all detained cases

* RIA-7218 Functional test fixed

* RIA-7159 Request case building detained letter generation (#616)

* RIA-7159: WIP

- Used one generator for for both detained and non-detained letter
  generations

* RIA-7159 Final changes. tests and checkstyle changes

* RIA-7159 Removing redundant unit tests

---------

Co-authored-by: Neha Aggarwal <neha.aggarwal@version1.com>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7159 Rework of Non-ADA template to reduce duplication (#619)

* RIA-7548_internal_appeal_submission_non_ada (#618)

* RIA-7548_internal_appeal_submission_non_ada: Add appeal submission template for internal, non ada, detained only cases

* RIA-7548_internal_appeal_submission_non_ada: styles fix

* RIA-7548_internal_appeal_submission_non_ada: Add document tag, fix tests for this tag

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Fix condition AsylumCase definition in AppealSubmissionCreator

* RIA-7548_internal_appeal_submission_non_ada: Bundle sort tests fix

* RIA-7216 Added appeal decided dismissed detained non ADA document templates (#622)

* Update suppressions.xml

* Update suppressions.xml

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record ou… (#623)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed (#624)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7552 appeal can proceed (#626)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7554 directed to upload bundle (#628)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* Ria 7554 directed to upload bundle (#629)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#630)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#631)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-TASK Merged master changes to Naba - documents-api (#614)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* Fixed tests

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7582 non_payment_end_appeal (#637)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7582_non_payment_end_appeal: Add template, generator, configuration, Asylum definitions for remission type, tests

* RIA-7582_non_payment_end_appeal: Add RemissionType test

* RIA-7582_non_payment_end_appeal: Fix application properties document fileName and functional test 7582

* RIA-7580 (#638)

* Added new handler, template and bean config for internal detained non-ada appeal fee letter with no remissions
* Imported AppealType class from case-api
* Updated existing unit tests (State, BundleOrder & DocumentTag)
* Added unit tests and FT

* RIA-7581 Added internal detained mark as paid letter (#639)

* RIA-7618 document remission partially approved rejected (#641)

* RIA-7618 Initial document changes before rebase

* RIA-7618 Final refactored changes after rebasing

* RIA-7618 Utils method change

* RIA-7618 Adding unit test for RemissionDecision class

* RIA-7618 checkstyle test fix

* RIA-7556 internal det ho review maintained (#640)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7556 init commit

* RIA-7556_internal_det_ho_review_maintaned: Add tests unit/functional, update application.yml for new event and fix document extension in application.yml

* RIA-7556_internal_det_ho_review_maintaned: Add tests for new event

* RIA-7556_internal_det_ho_review_maintaned: Fix on dueDate in template and test for this template

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Adding detenction

---------

Co-authored-by: ThomasKKC <thomas.cheong@version1.com>

* RIA-7559 DET letter case listing detained (#642)

* RIA-7559 Generator and template for doc generation

* RIA-7559 internal detained list case letter generation

* RIA-7559 document creator values updated to correct document

* RIA-7559 functional test added

* RIA-7559 append document to notifications attachments group

* RIA-7559 functional test fix

* RIA-7559 Checkstyle and unit test fixes for pipeline

* RIA-7557 Internal detained review HO response decision withdrawn letter generation (#643)

* RIA-7557
* Added functionality for new letter generation when LO requests AIP to review HO response
* Added new doc tag for the new letter
* Refactored RIA-7556
* Added/updated unit/FTs

* Rebasing

* RIA-7557
* Updated FT

* RIA-7561 - Added handler to generate letter when 'Request Hearing Requ… (#644)

* RIA-7561: Added handler to generate letter when 'Request Hearing Requirements' Event is triggered

* RIA-7561: Remove local testing code.

* RIA-7561: Remove unused import.

* RIA-7561: Fix BundleOrderTest after rebase.

* RIA-7561: Fix PMD violations.

* Update suppressions.xml

* RIA-7556/RIA-7557 (#648)

* Renamed document file names for home office response review decision maintained and withdrawn

* RIA-7372 appeal_ended_aip_journey (#647)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended_aip_journey: Add Document tag for internal cases, generator, template, configuration, application.yml links and tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7561: Allow LF for Request Hearing Requirements Feature (#649)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7281 Added internal detained edit case listing letter (#650)

* RIA-7281 Added internal detained edit case listing letter

* RIA-7281 Added extra unit tests for thrown exceptions

* RIA-7374 mark_appeal_as_ada (#651)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7374_mark_appeal_as_ada: Add for internal journey mark as ada, configuration, template, document Tag, event, Bundler order tag. Populate application props with link to letter, add functional tests

* RIA-7374_mark_appeal_as_ada: Fix merge conflicts

* RIA-7374_mark_appeal_as_ada: Remove condition check if appeal is Ada, as well remove from tests functional and junit

* RIA-7364 internal decideAnApplication letter generation (#653)

* RIA-7364
* Added functionality for decideAnApplication letter generation for internal cases
* Copied across makeAnApplication logic and its parsing/extraction from case data
* Added new doc tag
* Added/updated unit and FTs

* RIA-7364
* Updated FTs

* RIA-7364 Made some changes for sonar cloud failures (#655)

* Added isPresent() check
* Updated assertion for default case in enhanced switch statement

* Update suppressions.xml

* RIA-7328 ho_ftpa_submitted (#657)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7328_ho_ftpa_submitted: Add DocumentTag, Populate BundlerOrder, DocumentCreatorConfiguration for APPLY_FOR_FTPA_RESPONDENT. Add roles, junit/functional tests for APPLY_FOR_FTPA_RESPONDENT

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7365 (#660)

* Added new template for internal decide an application where decision is refused
* Refactored 7364 so granted+refused use a single handler with independent DocumentCreatorConfiguration beans and seperate templates.
* Added/updated unit/FTs.

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7701 Added transfer out of ADA letter (#661)

* RIA-7326 (#663)

* Added functionality to generate letter when admin officer applies for ftpa for internal cases
* Added/updated tests

* RIA-7326 (#665)

* Updated doc tag

* RIA-7330 Internal appellant FTPA decided granted document (#670)

* RIA-7330 Internal appellant FTPA decided granted document

* RIA-7330 Checkstyle and unit test fixes

* Update suppressions.xml

* Update suppressions.xml

* RIA-7360 ho_ftpa_decided_granted (#671)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7360_ho_ftpa_decided_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided granted. Add Tests and functional test, Document.tag, Definitions.

* RIA-7361 ho_ftpa_decided_partially_granted (#672)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7361_ho_ftpa_decided_partially_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided partially granted. Add Tests and functional test

* RIA-7326 (#673)

* Give LR permission for applyForFTPAAppellant event doc generation

* RIA-7362 ho_ftpa_decided_refused (#675)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7362_ho_ftpa_decided_refused: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided refused. Add Tests and functional test

* RIA-7362_ho_ftpa_decided_refused: Fix typo

* RIA-7331 Internal appellant ftpa decided - partially granted document (#676)

* RIA-7331 Internal appellant ftpa decided - partially granted document

* RIA-7331 Corrected deadline date values for ada and non-ada

* RIA-7332 Document for Appellant ftp decided - refused (#677)

* RIA-7332 Document for Appellant ftp decided - refused

* RIA-7332 Suppressing CVE-2023-41080

* RIA-7332 Split functional test into ADA and non-ADA scenarios

* RIA-7332 Functional test file rename

* RIA-7331 Further changes to ADA working days scenario (#678)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios (#679)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios

* RIA-7330 rename FT title for non-ADA FT

* RIA-TASK - Merged Master changes to NABA case-documents (#669)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Update suppressions.xml

* Merged Master changes to NABA

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>

* RIA-7844 (#682)

* Added content for application type - reinstate to InternalDecideAnApplicationDecisionGrantedLetterTemplate.getWhatHappensNextContent()
* Added reinstate content test
* Added FTs for reinstate application type when decided

* RIA-7844 (#684)

* Adding full stop to String

* RIA-7322 Internal hearing requirements updated letter generation (#686)

* RIA-7367 (#685)

* Refactored internal appellant application decided (refused+granted)
* Updated internalApplicationDecided handler to pick correct DocumentCreatorCongif bean based on granted/refused and appellant/respondent application
* Added new bean for HO decide application
* Added/updated unit tests
* Refactored 7364 FTs to include Admin Officer as application applicant
* Added new FTs

* RIA-7368 (#690)

* Addedn functionality to generate letter when HO application decided
* Refactored RIA-7365
* Added/updated unit/FTs

* RIA-7372 appeal_ended (#688)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended: change decisionMaker to fetch from END_APPEAL_APPROVER_TYPE, fix endAppealDate fortmat, fix tests

* RIA-7372_appeal_ended: remove unused import

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7322 hearingDate removed from template (#691)

* RIA-7561: Fix the deadline date in the 'Request Hearing Requirements' letter (#687)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7378 unlink_appeal (#693)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Add new Document letter generation for Maintain Case Link event.

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: remove unused import

* RIA-7378 unlink case (#694)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7427 Internal upload additional evidence doc generation (#695)

* RIA-7427 Internal upload additional evidence doc generation

* RIA-7427 Test and checkstyle fixes

* RIA-7378 unlink_case (#696)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378 unlink_case (#697)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#698)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#699)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7895 bug_fix_rule3235 (#700)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7895_bug_fix_rule3235: Populate FtpaDecisionOutcomeType with values of 23 and 35 rules

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7279 (#705)

* Added handler and template for generating letter when LO requests HO to amend appeal response
* Imported isValidUserDirection from notifications-api.
* Added/updated unit and FTs

* RIA-7376 link_case (#704)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_case_det: Add Event create case link. Template, configurations, tests

* RIA-7376_link_case_det: Fix unit test

* RIA-7376_link_case_det: Fix intends

* RIA-7376_link_case_det: populate FT with more values, AsylumCase object mapper populated with dateTime module

* RIA-7376_link_case_det: merge conflicts

* RIA-7437 internal non standard direction letter (#706)

* RIA-7437 Non standard direction to appellant - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, second time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, Fourth time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests, try two - ADA & NonADA (Letter)

* RIA-7437 - Renamed bean

* RIA-7437 - fixed functional tests

* RIA-7437 Non standard direction to appellant, resolving comments (Letter)

* RIA-7437 Non standard direction to appellant, fixing checkstyle error (Letter)

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>
Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7376 link_cases (#711)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_cases: fix dates serialization mechanism

* RIA-7376_link_cases: fix styles

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'S… (#714)

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'Send Direction' event

* Update renovate.json

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7433 Generate letter when LO changes hearing centre for detained… (#702)

* RIA-7433: Generate letter when LO changes hearing centre for detained internal appeals

* RIA-7433 updated functional test description

* RIA-7433: Added FT for non-ADA appeal

* Fix checkstyle errors

* RIA-7418 Appeal edited - ADA & Non ADA (Letter) (#717)

* RIA-7418: added new edit template letter and logic behind

* RIA-7418: fixed BundleOrderTest.java

* RIA-7432: Fix template to reflect old and new hearing centres (#721)

* RIA-7370 (#719)

* Refactored implementation of RIA-7427 to make InternalUploadAdditionalEvidenceGenerator generic for all users
* Imported HasDocument interface and made current implementation of DocumentWithMetadata implement it
* Imported events from case-api
* Added 2 new doc tags (LO additional evidence upload and HO additional evidence upload)
* Created 2 new templates for HO and LO additional evidence upload
* Added new methods in AsylumCaseUtils to extract addendum evidence documents and to fetch most recent addendum evidence added
* Created 2 new beans in DocumentCreatorConfiguration (LO/HO additional evidence upload)
* 2 new application.yaml entries for document templates
* Updated existing tests and added new unit/FTs

* RIA-7370 Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice (#725)

* RIA-7370
* Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice

* RIA-7370
* Fixed sonar check. Performing isEmpty() check on optional var before a .get()

* RIA-7370 (#727)

* Added a null check on addendum metadata

* Suppress CVE (#728)

* RIA-7471 letter generation direction due date changed (#715)

* RIA-7471 Letter generation when 'Change Direction due date' is triggered

- for ADA and non ADA internal cases
- when recipient party is either APPELLANT or APPELLANT AND RESPONDENT.

* Fix naming of a variable

* RIA-7471 - fixed unit test

* RIA-7471 Fix functional tests

* Fix unit test

* Fix template personalisations

* Fix name for template env variable

---------

Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7435 Home_office_non-Standard_direction_letter (#730)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-7439 ho_change_direction_due_date (#729)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439 ho_change_direction_due_date (#731)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439 ho_change_direction_due_date (#735)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7429 Letter generation for Internal Reinstate Appeal (#722)

* RIA-7435 Rename the letter generator class and corresponding unit tests (#737)

* RIA-7435 Rename the letter generator class and corresponding unit tests

* Fix checkstyle error

* Fix functional tests

* Fixing functional test

* RIA-7911 Update hearing adjustments (#739)

* RIA-7911_Update_hearing_adjustments

* RIA-7911 Update hearing adjustments functional tests

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* Update suppressions.xml

* Update suppressions.xml

* RIA-7537 EJP Adding new roles for legal officer (#746)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-8888 Upgraded chart version (#751)

* RIA-8888 Upgraded chart version

* RIA-8888 revert version because it is auto bumped

* RIA-8888 added suppressions

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7411 Removing OOC feature flag fields (#743) (#754)

* RIA-7411 Removing OOC feature flag fields

* RIA-7411 Suppressing CVE-2023-42794, CVE-2023-42795, CVE-2023-45648

Co-authored-by: Ryan-Nesbitt <95298094+Ryan-Nesbitt@users.noreply.github.com>

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#760)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Jake Cohen <101183561+JakeCohenSol@users.noreply.github.com>
Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* Removed print line that causes issues on windows (#762)

* RIA-7950 upgrade_fix (#767)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7950_upgrade_fix: trigger rebuild

* RIA-2023 rebuild_pipelines (#775)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-20231212_rebuild_pipelines: Restart pipelines

* RIA-20231212_rebuild_pipelines: Add supressions

* Update suppressions.xml

* RIA-7324 Hearing adjourned without a date - ADA & Non ADA (Letter) (#788)

* RIA-7324: added adjourn hearing without date letter template

* RIA-7324: small fix on DocumentTag applied

* RIA-8214 Add a new screen to Bails start application - UT appeal pending (#791)

* RIA-8214: bail application submission template fixed with new fields

* RIA-8214: small refactor name on definitions

* Revert "RIA-8214 Add a new screen to Bails start application - UT appeal pending" (#793)

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#792)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

* DIAC-66 getting all functionals to run (#747)

* DIAC-66 getting all functionals to run

* DIAC-66 dependency update

* DIAC-66 dependency update

* DIAC-70 adding integration, smoke and unit testing and report to nightly runs

* DIAC-70 removing integration

* DIAC-70 adding secrets

* DIAC-70 adding mutation test reporting

* DIAC-70 adding mutation test reporting

* DIAC-66 integration tests

* DIAC-66 dependency upgrade

* DIAC-66 checkstyle fix

* DIAC-66 java chart upgrade

* DIAC-00 Revert pact dependency upgrade (#759)

* DIAC-84 Disable Decision and reasons document PDF conversion (#752)

* DIAC-84 Disable Decision and reasons document PDF conversion

* Remove PDF conversion

* upgrade java…
rajeshthuraiyur added a commit that referenced this pull request Oct 29, 2024
* Update README.md

First commit to create DLRM internal branch

* RIA-8931 add_supporting_documents (#905)

* RIA-8931: Add APPEAL_WAS_NOT_SUBMITTED_SUPPORTING_DOCUMENT generation

* RIA-8931: Styles fix

* RIA-8337 Internal end appeal letter generation and bundling with attachment (#906)

* RIA-8337 Internal end appeal letter generation and bundling with attachment

* RIA-8337 rebase fix of duplicated values

* RIA-8337 Fixed failing unit tests after rebase

* RIA-8337 checkstyle fixes

* RIA-8337 unused imports removed

* RIA-8305 case listed non detained letter (#908)

* RIA-8305 - Case listed - Non Detained (by post) notification

* RIA-8305 - Checkstyle

* RIA-8305 - FT fix

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-8331 RIA-8331 adjourned_without_a_date (#910)

* RIA-8331: Add internalAdjournWithoutDateLetterBundle and internalAdjournWithoutDateLetter for generation By post letters

* RIA-8331: Edit RIA-2970 FT doocuments expectation

* RIA-8331: Rename variable

* RIA-9172 OOC changes for internal end appeal letter+bundle generation (#912)

* RIA-9172 Addressing sonar line duplication % (#913)

* RIA-9172 remove duplications into utils method (#914)

* RIA-9172 remove duplications into utils method

* RIA-9172 checkstyle remove unused imports

* RIA-9172 removing more unused imports

* RIA-9172 removing more unused imports from test

* RIA-9172: Duplication code removal (#915)

* RIA-8332 Use admin appellant address when listing the case for internal cases and ooc (#911)

* RIA-8332 Use admin appellant address when listing the case for internal cases and ooc

* RIA-8332 Fix checkStyleTest

* RIA-8331: fix cases for OOT addresses (#919)

* RIA-8331: Change hearing location address to name of hearing center (#920)

* RIA-8306 late appeal can proceed letter notification (#921)

* RIA-8306 - late appeal can proceed - Non Detained & OOC(by post) notification

* RIA 8306 - late appeal can proceed

* RIA 8306 - fixed

* RIA 8306 - Checkstyle fix

* RIA 8306 - Ft Fix

* RIA 8306 - FT fix

* RIA 8306 - FT fix

* RIA 8306 - FT fix

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-8331 attachment_removal (#922)

* RIA-8331: Remove attachment implementation for documents service

* RIA-8331: 2970 test rollback

* RIA-8329 Create the notification letter bundle when the 'Edit Case Li… (#923)

* RIA-8329 Create the notification letter bundle when the 'Edit Case Listing' event is done for internal non-detained cases

* Fix unit tests

* RIA-9207 Update AppealSubmission with out of country circumstances (#924)

* RIA-9130 Make Update Tribunal decision event available to LO (#926)

* RIA-TASK - Rebase master ia-case-documents-api (#929)

* RIA-7875 Merge SNL -> Master (DO NOT MERGE) (#609)

* RIA-7416 Split witness names to capture first and last names in LR journey (#592)

* RIA-7416: Update 'witnessDetails' with witness family name

* RIA-7416: Use Junit 5 features in functional tests

* RIA-7416: Temporarily address dependency vulnerability

* RIA-7416: Disable an existing failing functional test to progress PR in pipeline

- This functional test fails because of some authorisation issue.
- It has been esatablished that the update in this PR is not the
  cause of the failing test.
- Not sure how it passed successfully through the pipeline

---------

Co-authored-by: Augustine Onubeze <augustine.onubeze@hmcts.net>

* RIA-7574: Appeal submission summary document displays Legal Rep full Name (#603)

Co-authored-by: Augustine Onubeze <augustine.onubeze@hmcts.net>

* RIA-TASK Merged master changes to SNL - documents-api (#646)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

---------

Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7567 appellant and witness interpreter requirement are available (#645)

* RIA-7567 appellant and witness interpreter requirement are available #1220

* fix the problem of "exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61"

* fix the problem of "Failed to apply plugin 'net.serenity-bdd.aggregator'."

* fix the problem of "Could not set unknown property 'configDir' for extension 'checkstyle' of type org.gradle.api.plugins.quality.CheckstyleExtension."

* revert the changes for fixing the build problem

* add the functional test for RIA-7567

* add the functional test for RIA-7567 for updateHearingRequirements event

* update the witness name of the functional test for draftHearingRequirements event updateHearingRequirements event

* extract some logic to private method for setting interpreter information of appellant and witness

* RIA-7750 party ID generation LR journey (#662)

* RIA-7875  updates to resolve conflicts (#689)

* Updates to fix FT failures

* updates to fix build issues

* RIA-7860 Hearings Tab setup

* Update renovate.json

* RIA-7879 map epims ids to ccd hearing locations (#710)

* RIA-7879 map epims ids to ccd hearing locations

* Added the unit test and functional test

* renovate json patch

* update functional test

* RIA-7881 list the case system user (#726)

* RIA-7860 Hearings Tab setup

* RIA-7881 Authorization for system user for listCase

* Update suppressions.xml

* RIA-7195 remove listing reference number from notification template when hearing list assist hearing v2 (#750)

* RIA-7195 remove listing reference number from notification template when hearing list assist hearing v2

* update the unit test, functional test and temporarily suppress CVE problem

* update the unit test

* update the unit test for isIntegrated flag

* RIA-7792 Remove witness list element from logic (#753)

* RIA-7860 Hearings Tab setup

* RIA-7792 Refactor logic to forgo witnessListElement

* RIA-7792 Upgrade chart version

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7922 Improve test coverage (#756)

* RIA-7860 Hearings Tab setup

* RIA-7792 Improve WitnessDetailsTest

* RIA-7792 Improve HearingRequirementsTemplateTest

* RIA-7792 Delete DynamicMultiSelectList

* RIA-7792 Delete DynamicMultiSelectList

* RIA-7792 Undo stale change that got lumped in with the rest

* RIA-7922 update witness details class (#757)

* RIA-7860 Hearings Tab setup

* RIA-7792 Add field to WitnessDetails

* RIA-7882 Add editCaseListing permission for caseworker-ia-system (#758)

* RIA-7882 Add editCaseListing permission for caseworker-ia-system

* RIA-7882 Increase temporary suppression

* Update AuthorizationHeadersProvider.java

* Update CcdScenarioRunnerTest.java

* Update CcdScenarioRunnerTest.java

* RIA-7973 Updated Bail application details template (#765)

* RIA-7973 Updated Bail application details template

* RIA-7973 Added Bail FT scenarios pattern

* RIA-7973 Fixed Ft

* Update CcdScenarioRunnerTest.java

* RIA-8119 Bail application document changes with added interpreter fields (#778)

* RIA-8119 Bail application document changes with added interpreter fields

* RIA-8119 Suppressing CVE-2023-6481 and CVE-2023-34055

* RIA-8119 Suppressing CVE-2023-33202, CVE-2023-46589, CVE-2023-6378

* RIA-8364 Bail template change 01134 -> 01144 (#789)

* RIA-8489 Refactored interpreter language (#798)

* RIA-8410 RIA-8409 Generate and store hearing notice on case (initial listing and relisting) (#794)

* RIA-8410: Generate hearing documents

- Create Handler, Template and configuration classes to generate notice
  of hearing for case relisting.

* RIA-8409: Generate hearing documents

- Create handler, template and configuration classes to generate notice of hearing for initial listing event.

* RIA-8410: Some code refactoring

* RIA-8508 Fix appeals refactored interpreter language (#803)

* RIA-8415 record adjournment details (#801)

* RIA-7860 Hearings Tab setup

* RIA-8415 Add recordAdjournmentDetails event

* RIA-8415 Add noticeOfAdjournedHearing document tag

* RIA-8415 Add classes and config to handle RecordAdjournmentDetails

* RIA-8415 Functional test for RecordAdjournmentDetails

* RIA-8415 Update test

* RIA-8507 Fix the field type for fcs_has_passport in BailCaseFieldDefinition (#810)

* RIA-8554 Fix detention location on hearing-notice template (#817)

* RIA-8554 Using enums for Field definition comparison (#819)

* Update BailDocumentCreatorConfiguration.java

* Update BailSubmissionTemplate.java

* updates to fix rebasing issues

* Updates to fix sonar issue

* Updates to fix sonar issue

* Updates to fix rebase issue

* Fix issues in functional tests (#861)

* Update suppressions.xml

* RIA-8802 bails notice of hearing displays the correct location information snl (#885)

* RIA-8935: Fix issue in Exception management (#893)

* RIA-8916 To resolve merge conflicts with master branch (#889)

* DIAC-123 cdam download change fix (#806)

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123 trying cdam download auth change

* DIAC-123

* DIAC-123 removing logging

---------

Co-authored-by: KleoG <KleoG@users.noreply.github.com>

* RIA-8726 - Merge SNL (BAILS) - > Master (DO NOT MERGE) (#841)

* RIA-7973
* RIA-7973 Updated Bail application details template

* RIA-7973 Added Bail FT scenarios pattern

* RIA-7973 Fixed Ft

* RIA-8119
* RIA-8119 Bail application document changes with added interpreter fields

* RIA-8364
* RIA-8364 Bail template change 01134 -> 01144

* RIA-8489
* RIA-8489 Refactored interpreter language

* RIA-8410 RIA-8409 Generate and store hearing notice on case (initial listing and relisting)

* RIA-8410: Generate hearing documents

- Create Handler, Template and configuration classes to generate notice of hearing for case relisting

* RIA-8409: Generate hearing documents

- Create handler, template and configuration classes to generate notice of hearing for initial listing event

* RIA-8410: Some code refactoring

* RIA-8508
* RIA-8508 Fix appeals refactored interpreter language

* RIA-8507
* RIA-8507 Fix the field type for fcs_has_passport in BailCaseFieldDefinition

* RIA-8554
* RIA-8554 Fix detention location on hearing-notice template

* RIA-8554
* RIA-8554 Using enums for Field definition comparison

* Update BailSubmissionTemplateProvider.java

* RIA-8738: IMA - Rebasing docmosis template (#845)

* Updates to fix build failure

* RIA-8773: Add missing hearing centres in the hearing location to hearing address mapping document (#858)

* RIA-8773 Fix rebasing of CcdScenarioRunnerTest

* RIA-8774 Add logging (#862)

* RIA-8774 Add logging

* RIA-8770 Run functional tests on pipeline

* RIA-8774 Enable logging on functional tests

* RIA-8774 Enable logging on functional tests

* Update DocumentTagTest.java

---------

Co-authored-by: Marcellofabbri <marcello.fabbri@hmcts.net>
Co-authored-by: Augustine Onubeze <ikechukwu.onubeze@gmail.com>
Co-authored-by: Marcello Fabbri <56549133+Marcellofabbri@users.noreply.github.com>

* RIA-TASK NABA -> Master : DO NOT MERGE (#520)

* RIA-6455: Added new Hearing centre - Harmondsworth (#518)

* RIA-6455: Added new Hearing centre - Harmondsworth

* Fix vulnerabilities

* Added Location (#519)

* Added Location

* Suppressions

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6491: Give admin officer access to edit appeal post submission (#521)

* RIA-6491: Give admin officer access to edit appeal post submission

* RIA-6491: Address dependency vulnerabilities

* RIA-6529: Generate Hearing Notice after listing for ADA cases (#522)

* RIA-6529: Generate Hearing Notice after listing for ADA cases

* Suppress vulnerabilities

* Added Yarls Wood as hearing centre and also its address (#524)

* Ria 6424 appeal submission summary (#527)

* Added some defs to extract case data
Added some puts to copy case data to field values which docmosis can use to generate the appeal submission summary

* Modified tests

* Formatted for sonar scan

* Final changes

* Refactored AppealSubmissionTemplate and added logic for displaying removal order date and time

* Added tests for detained fields and removal order date

* Formatted import and method line seperations for serenity checks

* Added CVE suppression

* Changed where appelantInDetention defaults to YesOrNo.NO

* Moved the parsing of complex asylum case fields (nomsNumber, dateCustodialSentence & otherDetentionFacilityName, to a dedicated method. Modified tests to cover more scenarios and make the tests more robust by checking all other relevant fields in the same flow.

* Added assertion to check size of templateFieldValues

* Bundled common fields together and setting Mockito strictness to lenient

* Added suppressions

* RIA-6424: Fix the TypeReference class for the field - 'hasPendingBailApplications' (#528)

- Changed from YesOrNo type to BailApplicationStatus type.
- update relevant unit tests.

* Added guards in event nomsNumber, releaseDate & removalOrderDate are empty strings (#530)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Ria 6424 (#531)

* Added guards in event nomsNumber and releaseDate are empty strings

* Adding suppression

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Added check for custodial sentence release date as it is not always guaranteed to be provided

* Modified test to allow mock for containsKey method of asylumCase

* Ria 6564 hearing notice edited ada (#532)

* RIA-6564 - Adding hearing notice document generation for ADA cases

* RIA-6564 - Checkstyle

* RIA-6564 - Adding suppression

* Ria 6685 date decision letter (#545)

* RIA-6685 Added logic for Date decision letter to appear in Appeal template

* Formatting changes and tests

* Fixed tests

* added decisionLetterReceivedDate test

Co-authored-by: Jamie <jamiemurphy@version1.com>

* RIA-6685-fixed-test (#546)

Co-authored-by: Jamie <jamiemurphy@version1.com>

* Ria 6605 ada suitability document api (#547)

* Saving work

* Saving changes

* Saving work before a forced update

* Latest changes

* latest changes

* Added new template

* Rebased

* Added ADASuitabilityReviewDecision entity. Added suitability review, reason and judge to AsylumCaseDefinition. Added AdaSuitability document tag. Added suitability review event. Created pre-submit handler to generate ada suitability document. Added AdaSuitability to bundleOrder. Created new AdaSuitabilityTemplate. Added Adasuitability bean to DocumentCreatorConfiguration. Added AdaSuitabilityDocument metadata to application.yml. Created AdaSuitabilityTemplateTest.

* Resolved comments in PR specifically regarding extra line seperations and variable name formatting

* Added functional test for ADA suitability document generation

* Adding system credentials and appropriate method to generate headers for pipeline build failures.

* Fix for failing functional test: RIA-5778-end-appeal-automatically-notice-document.json

* RIA-6612: Update Bundling events to include Ada suitability review do… (#549)

* RIA-6612: Update Bundling events to include Ada suitability review document

- new document added under section of Tribunal Documents.
- added functional and unit tests.

* Update owasp.dependencyCheck

* Updated 'after' method call in Jenkinfile*

* RIA-6694-Admin-Submit-Appeal (#551)

* RIA-6694-Admin-Submit-Appeal

* fixed state test

---------

Co-authored-by: Jamie <jamiemurphy@version1.com>
Co-authored-by: Dbarnes-v1 <99024336+Dbarnes-v1@users.noreply.github.com>

* RIA-6700 - Allowing access to editAppeal for Admin users (#552)

* RIA-6721 Added isAdmin field to templateFieldValues in appeal submission summary template. (#554)

Added isAdmin field to AsylumCaseDefinition.
Updated unit tests.

* RIA-6702 - Internal case creation adding access to the following even… (#553)

* RIA-6702 - Internal case creation adding access to the following events for Admins:

	1. makeAnApplication
	2. draftHearingRequirements
	3. buildCase
	4. submitCase
	5. uploadAdditionalEvidence
	6. applyForFTPAAppellant
	7. requestFeeRemission

* RIA-6702 - Updating unit test

* RIA-6702 - Suppression

* RIA-6873 appeal summary changes (#555)

* RIA-6873_appeal_summary_changes

* Charts java version upgraded

* Adding new suppression

* Change HAS_OTHER_APPEALS field type with new object class

* Ria 6844 Add date to ADA suitability document (#556)

* RIA-6844 Added date to ADA suitability document. Updated unit test.

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-6560 - Functional tests improvements (#568)

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Functional tests improvements

* RIA-6560 - Suppress CVE-2023-20863 (#570)

* Rebase from Master (#571)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)

* fix for refactoring DocumentUploadClientApi with CaseDocumentClient. DocumentManagementUploader is updated but this class is not used or ex
tended by any other class

* update scanbase packages

* update gradle for test

* suppressing org.yaml:snakeyaml:1.26

* update tvtStringProvider

* update tvtStringProvider

* fix build failures

* fix build failures

* fix build failures

* Updates to fix build failures

* Updates to fix secure doc store client

* Bumping chart version/ fixing aliases

* Updates to fix build failures

* Updates to fix build failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to fix test failures

* Updates to suppress cves to allow build to happen

* fix for failing gradle build

* RIA-5804: reload jenkins build

* Bumping chart version/ fixing aliases

* RIA-5804: fixed vulnerabilities

* RIA-5804: upgraded java chart version

---------

Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>

* Update suppressions.xml (#557)

* To update azurerm version for terraform (#558)

* Update state.tf

* Update .terraform-version

* Update variables.tf

* Update main.tf

* Update main.tf

* Revert "To update azurerm version for terraform (#558)" (#559)

This reverts commit a90efa41ddaa7b71f143c038f2355c4100e8a152.

* Revert "Update suppressions.xml (#557)" (#560)

This reverts commit 247256adf152dd85bd2f0dc3b3eb216478ff77a5.

* Revert "fix for refactoring DocumentUploadClientApi with CaseDocumentClient. … (#502)" (#561)

This reverts commit 52eab14c22caa2398868bf623ffef1c9de6540bc.

* To revert cdam changes from production (#562)

* Update .terraform-version

* Update main.tf

* Update state.tf

* Update variables.tf

* Update suppressions.xml

* Update Chart.yaml

* Update suppressions.xml

* Bumping chart version/ fixing aliases

* Update Chart.yaml

* Update suppressions.xml

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update Dockerfile (#565)

* Update Dockerfile

* Update Dockerfile

* Update suppressions.xml

* Updated suppressions

---------

Co-authored-by: addison-jephtah <108927648+addison-jephtah@users.noreply.github.com>
Co-authored-by: rajeshthuraiyur <rajesh.thuraiyur@gmail.com>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Javier Marin <fjavimarc@gmail.com>
Co-authored-by: mokainos <72137340+mokainos@users.noreply.github.com>

* Updated dependencies to remove suppressed CVEs (#564) (#573)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>
Co-authored-by: mcareyma <matthew.carey@version1.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7043 add NOTICE_OF_DECISION_UT_TRANSFER document tag (#576)

* RIA-7043
* Added NOTICE_OF_DECISION_UT_TRANSFER enum to DocumentTag.java

* RIA-7043
* Updated DocumentTagTest.java

* RIA-7043
* Updated document bundle configs

* Supressed CVE-2023-28709 (#580)

* Added new line character to kick off new build on pipeline (#582)

* RIA-7158 request case building notification attachment letter (#583)

* * Added powermock to build.gradle which is used in testing
* Added template for internal cases for FTs
* Added requestCaseBuilding event to enums
* Added NOTIFICATION_ATTACHMENT_DOCUMENTS to asylumCase to store new AIP notification attachment docs
* Added AdaListCase direction tag to fix bug where the direction cannot be parsed as it's not in the list of DirectionTag enums
* Added requestCaseBuilding Doc tag
* Updated bundleOrder with the new DocTag
* Added holidaydates service
* Added DueDateService
* Added new handler/docGenerator for requestCaseBuilding event for internal ADA cases
* Created new template for the new handler/docGenerator
* Added asylumcaseutils
* Added internalAdaBuildCase bean to DocumentCreatorConfiguration for the above new handler/template
* Updated CustomerServicesProvider with new email/telephone for internal ADA cases
* Added internalAdaBuildCaseDocument metadata to application.yml. Also gave CO permission for requestCaseBuilding event and added internal ADA contact details
* Added unit tests for above
* Added FT for LO requestCaseBuilding to verify doc generated

* RIA-7158
* Moved the deconstruction of directions to AsylumCaseUtils to make it generalised for future use
* Added utility class to format dates
* Updated tests
* Added comment as per PR review feedback

* Added suppression to make CI/CD pipeline pass (#584)

* RIA-7158 (#585)

* Formatted date

* Update suppressions.xml

force build

* Update minimal-aip-appeal-submitted.json

* Update minimal-appeal-submitted.json

* Update suppressions.xml

* Update suppressions.xml

* RIA-7175 Internal ADA suitability document - unsuitable (#593)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Suppress CVE-2023-35116 and CVE-2023-2976

* Revert "RIA-7175 Internal ADA suitability document - unsuitable (#593)" (#594)

This reverts commit 8d9236e8d0b9c89ac23bee6c4279d4d07b9c8c96.

* RIA-7174 ADA suitability document - suitable (#596)

* RIA-7174 ADA suitability notification doc for suitable decision

* RIA-7174 Suppressing CVE-2023-35116

* RIA-7174 Changes from code review, some refactoring work also

* RIA-7174
* Removed common method and put it back into the template as a private method.

* RIA-7174 Added empty line at end of functional test

---------

Co-authored-by: FarukH <hussain.faruk@hmcts.net>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7175 internal ada suitability unsuitable document (#595)

* RIA-7175 Internal ADA suitability document - unsuitable

* RIA-7175 Fixed formatting issues after rebase branch

* RIA-7172: Generate letter when 'HO Request Review' event is triggered (#597)

* RIA-7172: Generate letter when 'HO Request Review' ebent is triggered

- add the new letter in the Notification_letter collection.
- new tag added.

* RIA-7172: Fix Functional test

* RIA-7172: Trigger letter generation only for ADA

* RIA-7212 Internal ADA Appeal decided, allowed document generation (#598)

* RIA-7212 Internal ADA Appeal decided, allowed document generation

* RIA-7212 Fixed unit tests after rebase

* RIA-7212 Tidying up code using common methods

* RIA-7212 Refactor packages

* Ria 7540 dynamic internal email/tel (#599)

* RIA-7540 Updated customer service provider to return internal case dynamic email/tel

* RIA-7540 updated HoReviewEvidenceLetterTemplate to get fetch dynamic email and tel

* RIA-7540 updated InternalAdaDecisionsAndReasonsAllowedLetterTemplate to get fetch dynamic email and tel

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7174 Refactor package location (#600)

* RIA-7175 Refactor of package (#601)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appea… (#605)

* RIA-7198: Generate letter when HO maintains decision in 'Upload Appeal Response' event

- added new user for functional test - HomeOfficeLart
- added new entity - AppealReviewOutcome.

* RIA-7198: Fix customer services contact info methods

* RIA-7198: Fix unit tests

* RIA-7198: Fix functional test for 'end appeal automatically' event

* RIA-7198: Added system env variable to secret mapping for the lart user credentials

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismisse… (#604)

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Add Dismissed - ADA (Letter) template generation, tests

* RIA-7213_internal_ada_appeal_decided_dismissed_document: Fixed code styles

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: RIA-7212 FT disabled:true

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsReasonsLetterAllowedGenerator(and Dismissed) refactored into one generic class with conditions, tests fixed as well

* RIA-7213_internal_ada_appeal_decided_dismissed_document: InternalAdaDecisionsAndReasonsDismissedLetterTemplate refactored dueDate code lines

* RIA-7200 (#602)

* Added new template for hearing bundle ready letter
* Added new handlers and functionality to generate this letter AFTER generate hearing bundle event when async stitching bundle event is implicitly called and is successful
* Added unit/functional tests

* RIA-7174 Adding new template vars to template (#607)

* RIA-7174 Adding new template vars to template

* RIA-7174 Functional test reworked to add directions

* RIA-7174 Another functional test rework

* RIA-7538 Updated config and handler to handle internal case detained non ADA document generation (#610)

* RIA-7606_change_customer_service_mail (#611)

* RIA-7606_change_customer_service_mail: Fix customer service mail in application.yml

* RIA-7606_change_customer_service_mail: Fix customer service mail in InternalDetGenerateHearingBundleTemplateTest

* RIA-7215 Updated template to handle detained non-ada letter (#612)

* RIA-7200 Fix hearing centre name (#613)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7218 Allow document generation for all detained cases (#615)

* RIA-7218 Allow document generation for all detained cases

* RIA-7218 Functional test fixed

* RIA-7159 Request case building detained letter generation (#616)

* RIA-7159: WIP

- Used one generator for for both detained and non-detained letter
  generations

* RIA-7159 Final changes. tests and checkstyle changes

* RIA-7159 Removing redundant unit tests

---------

Co-authored-by: Neha Aggarwal <neha.aggarwal@version1.com>
Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7159 Rework of Non-ADA template to reduce duplication (#619)

* RIA-7548_internal_appeal_submission_non_ada (#618)

* RIA-7548_internal_appeal_submission_non_ada: Add appeal submission template for internal, non ada, detained only cases

* RIA-7548_internal_appeal_submission_non_ada: styles fix

* RIA-7548_internal_appeal_submission_non_ada: Add document tag, fix tests for this tag

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Rename template, properties, configuration qualifier

* RIA-7548_internal_appeal_submission_non_ada: Fix condition AsylumCase definition in AppealSubmissionCreator

* RIA-7548_internal_appeal_submission_non_ada: Bundle sort tests fix

* RIA-7216 Added appeal decided dismissed detained non ADA document templates (#622)

* Update suppressions.xml

* Update suppressions.xml

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record ou… (#623)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed (#624)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7552 appeal can proceed (#626)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7552_appeal_can_proceed: Fix test EventTest

* RIA-7552_appeal_can_proceed: Fix checkstyle

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* RIA-7552_appeal_can_proceed: Reduce code duplications

* Ria 7554 directed to upload bundle (#628)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* Ria 7554 directed to upload bundle (#629)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#630)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* Ria 7554 directed to upload bundle (#631)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7554_directed_to_upload_bundle: Add Doctag, configurationm generator, template for request respondent evidence letter

* RIA-7554_directed_to_upload_bundle: Test fixes

* RIA-7554_directed_to_upload_bundle: code review fix

* RIA-7554_directed_to_upload_bundle: remove unused import

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-7554_directed_to_upload_bundle: reduce code duplications

* RIA-TASK Merged master changes to Naba - documents-api (#614)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* Fixed tests

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>

* RIA-7582 non_payment_end_appeal (#637)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7582_non_payment_end_appeal: Add template, generator, configuration, Asylum definitions for remission type, tests

* RIA-7582_non_payment_end_appeal: Add RemissionType test

* RIA-7582_non_payment_end_appeal: Fix application properties document fileName and functional test 7582

* RIA-7580 (#638)

* Added new handler, template and bean config for internal detained non-ada appeal fee letter with no remissions
* Imported AppealType class from case-api
* Updated existing unit tests (State, BundleOrder & DocumentTag)
* Added unit tests and FT

* RIA-7581 Added internal detained mark as paid letter (#639)

* RIA-7618 document remission partially approved rejected (#641)

* RIA-7618 Initial document changes before rebase

* RIA-7618 Final refactored changes after rebasing

* RIA-7618 Utils method change

* RIA-7618 Adding unit test for RemissionDecision class

* RIA-7618 checkstyle test fix

* RIA-7556 internal det ho review maintained (#640)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7556 init commit

* RIA-7556_internal_det_ho_review_maintaned: Add tests unit/functional, update application.yml for new event and fix document extension in application.yml

* RIA-7556_internal_det_ho_review_maintaned: Add tests for new event

* RIA-7556_internal_det_ho_review_maintaned: Fix on dueDate in template and test for this template

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Fix on functional test

* RIA-7556_internal_det_ho_review_maintaned: Adding detenction

---------

Co-authored-by: ThomasKKC <thomas.cheong@version1.com>

* RIA-7559 DET letter case listing detained (#642)

* RIA-7559 Generator and template for doc generation

* RIA-7559 internal detained list case letter generation

* RIA-7559 document creator values updated to correct document

* RIA-7559 functional test added

* RIA-7559 append document to notifications attachments group

* RIA-7559 functional test fix

* RIA-7559 Checkstyle and unit test fixes for pipeline

* RIA-7557 Internal detained review HO response decision withdrawn letter generation (#643)

* RIA-7557
* Added functionality for new letter generation when LO requests AIP to review HO response
* Added new doc tag for the new letter
* Refactored RIA-7556
* Added/updated unit/FTs

* Rebasing

* RIA-7557
* Updated FT

* RIA-7561 - Added handler to generate letter when 'Request Hearing Requ… (#644)

* RIA-7561: Added handler to generate letter when 'Request Hearing Requirements' Event is triggered

* RIA-7561: Remove local testing code.

* RIA-7561: Remove unused import.

* RIA-7561: Fix BundleOrderTest after rebase.

* RIA-7561: Fix PMD violations.

* Update suppressions.xml

* RIA-7556/RIA-7557 (#648)

* Renamed document file names for home office response review decision maintained and withdrawn

* RIA-7372 appeal_ended_aip_journey (#647)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended_aip_journey: Add Document tag for internal cases, generator, template, configuration, application.yml links and tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7372_appeal_ended_aip_journey: Add functional test and bundle tests

* RIA-7561: Allow LF for Request Hearing Requirements Feature (#649)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7281 Added internal detained edit case listing letter (#650)

* RIA-7281 Added internal detained edit case listing letter

* RIA-7281 Added extra unit tests for thrown exceptions

* RIA-7374 mark_appeal_as_ada (#651)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7374_mark_appeal_as_ada: Add for internal journey mark as ada, configuration, template, document Tag, event, Bundler order tag. Populate application props with link to letter, add functional tests

* RIA-7374_mark_appeal_as_ada: Fix merge conflicts

* RIA-7374_mark_appeal_as_ada: Remove condition check if appeal is Ada, as well remove from tests functional and junit

* RIA-7364 internal decideAnApplication letter generation (#653)

* RIA-7364
* Added functionality for decideAnApplication letter generation for internal cases
* Copied across makeAnApplication logic and its parsing/extraction from case data
* Added new doc tag
* Added/updated unit and FTs

* RIA-7364
* Updated FTs

* RIA-7364 Made some changes for sonar cloud failures (#655)

* Added isPresent() check
* Updated assertion for default case in enhanced switch statement

* Update suppressions.xml

* RIA-7328 ho_ftpa_submitted (#657)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7328_ho_ftpa_submitted: Add DocumentTag, Populate BundlerOrder, DocumentCreatorConfiguration for APPLY_FOR_FTPA_RESPONDENT. Add roles, junit/functional tests for APPLY_FOR_FTPA_RESPONDENT

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix FT credentials for FTPA respondent apply

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7328_ho_ftpa_submitted: Fix jenkins roles mappings

* RIA-7365 (#660)

* Added new template for internal decide an application where decision is refused
* Refactored 7364 so granted+refused use a single handler with independent DocumentCreatorConfiguration beans and seperate templates.
* Added/updated unit/FTs.

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7701 Added transfer out of ADA letter (#661)

* RIA-7326 (#663)

* Added functionality to generate letter when admin officer applies for ftpa for internal cases
* Added/updated tests

* RIA-7326 (#665)

* Updated doc tag

* RIA-7330 Internal appellant FTPA decided granted document (#670)

* RIA-7330 Internal appellant FTPA decided granted document

* RIA-7330 Checkstyle and unit test fixes

* Update suppressions.xml

* Update suppressions.xml

* RIA-7360 ho_ftpa_decided_granted (#671)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7360_ho_ftpa_decided_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided granted. Add Tests and functional test, Document.tag, Definitions.

* RIA-7361 ho_ftpa_decided_partially_granted (#672)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7361_ho_ftpa_decided_partially_granted: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided partially granted. Add Tests and functional test

* RIA-7326 (#673)

* Give LR permission for applyForFTPAAppellant event doc generation

* RIA-7362 ho_ftpa_decided_refused (#675)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7362_ho_ftpa_decided_refused: Add Letter, Configuration, changes to InternalFtpaDecidedLetterGenerator for HO FTPA decided refused. Add Tests and functional test

* RIA-7362_ho_ftpa_decided_refused: Fix typo

* RIA-7331 Internal appellant ftpa decided - partially granted document (#676)

* RIA-7331 Internal appellant ftpa decided - partially granted document

* RIA-7331 Corrected deadline date values for ada and non-ada

* RIA-7332 Document for Appellant ftp decided - refused (#677)

* RIA-7332 Document for Appellant ftp decided - refused

* RIA-7332 Suppressing CVE-2023-41080

* RIA-7332 Split functional test into ADA and non-ADA scenarios

* RIA-7332 Functional test file rename

* RIA-7331 Further changes to ADA working days scenario (#678)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios (#679)

* RIA-7330 Split functional tests into ADA and non-ADA scenarios

* RIA-7330 rename FT title for non-ADA FT

* RIA-TASK - Merged Master changes to NABA case-documents (#669)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Merged Master changes to NABA

* Update suppressions.xml

* Merged Master changes to NABA

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>

* RIA-7844 (#682)

* Added content for application type - reinstate to InternalDecideAnApplicationDecisionGrantedLetterTemplate.getWhatHappensNextContent()
* Added reinstate content test
* Added FTs for reinstate application type when decided

* RIA-7844 (#684)

* Adding full stop to String

* RIA-7322 Internal hearing requirements updated letter generation (#686)

* RIA-7367 (#685)

* Refactored internal appellant application decided (refused+granted)
* Updated internalApplicationDecided handler to pick correct DocumentCreatorCongif bean based on granted/refused and appellant/respondent application
* Added new bean for HO decide application
* Added/updated unit tests
* Refactored 7364 FTs to include Admin Officer as application applicant
* Added new FTs

* RIA-7368 (#690)

* Addedn functionality to generate letter when HO application decided
* Refactored RIA-7365
* Added/updated unit/FTs

* RIA-7372 appeal_ended (#688)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7372_appeal_ended: change decisionMaker to fetch from END_APPEAL_APPROVER_TYPE, fix endAppealDate fortmat, fix tests

* RIA-7372_appeal_ended: remove unused import

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7322 hearingDate removed from template (#691)

* RIA-7561: Fix the deadline date in the 'Request Hearing Requirements' letter (#687)

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7378 unlink_appeal (#693)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Add new Document letter generation for Maintain Case Link event.

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: Change tag name

* RIA-7378_unlink_appeal: remove unused import

* RIA-7378 unlink case (#694)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7427 Internal upload additional evidence doc generation (#695)

* RIA-7427 Internal upload additional evidence doc generation

* RIA-7427 Test and checkstyle fixes

* RIA-7378 unlink_case (#696)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378 unlink_case (#697)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: refactor test method name

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Rename classes, tags to 'Maintain case unlink appeal'

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#698)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378 unlink_appeal (#699)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7378_unlink_appeal: Fix the code duplication issue on Sonar Cloud

* RIA-7895 bug_fix_rule3235 (#700)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7895_bug_fix_rule3235: Populate FtpaDecisionOutcomeType with values of 23 and 35 rules

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7279 (#705)

* Added handler and template for generating letter when LO requests HO to amend appeal response
* Imported isValidUserDirection from notifications-api.
* Added/updated unit and FTs

* RIA-7376 link_case (#704)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_case_det: Add Event create case link. Template, configurations, tests

* RIA-7376_link_case_det: Fix unit test

* RIA-7376_link_case_det: Fix intends

* RIA-7376_link_case_det: populate FT with more values, AsylumCase object mapper populated with dateTime module

* RIA-7376_link_case_det: merge conflicts

* RIA-7437 internal non standard direction letter (#706)

* RIA-7437 Non standard direction to appellant - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, second time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, third time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating tests, Fourth time - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests - ADA & NonADA (Letter)

* RIA-7437 Non standard direction to appellant, updating functional tests, try two - ADA & NonADA (Letter)

* RIA-7437 - Renamed bean

* RIA-7437 - fixed functional tests

* RIA-7437 Non standard direction to appellant, resolving comments (Letter)

* RIA-7437 Non standard direction to appellant, fixing checkstyle error (Letter)

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>
Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7376 link_cases (#711)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7376_link_cases: fix dates serialization mechanism

* RIA-7376_link_cases: fix styles

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'S… (#714)

* RIA-7437 Generate letter when party is APPELLANT_AND_RESPONDENT in 'Send Direction' event

* Update renovate.json

---------

Co-authored-by: colmlynch60 <113999496+colmlynch60@users.noreply.github.com>

* RIA-7433 Generate letter when LO changes hearing centre for detained… (#702)

* RIA-7433: Generate letter when LO changes hearing centre for detained internal appeals

* RIA-7433 updated functional test description

* RIA-7433: Added FT for non-ADA appeal

* Fix checkstyle errors

* RIA-7418 Appeal edited - ADA & Non ADA (Letter) (#717)

* RIA-7418: added new edit template letter and logic behind

* RIA-7418: fixed BundleOrderTest.java

* RIA-7432: Fix template to reflect old and new hearing centres (#721)

* RIA-7370 (#719)

* Refactored implementation of RIA-7427 to make InternalUploadAdditionalEvidenceGenerator generic for all users
* Imported HasDocument interface and made current implementation of DocumentWithMetadata implement it
* Imported events from case-api
* Added 2 new doc tags (LO additional evidence upload and HO additional evidence upload)
* Created 2 new templates for HO and LO additional evidence upload
* Added new methods in AsylumCaseUtils to extract addendum evidence documents and to fetch most recent addendum evidence added
* Created 2 new beans in DocumentCreatorConfiguration (LO/HO additional evidence upload)
* 2 new application.yaml entries for document templates
* Updated existing tests and added new unit/FTs

* RIA-7370 Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice (#725)

* RIA-7370
* Provide home office apc permission for uploadAdditionalEvidenceHomeOffice and uploadAddendumEvidenceHomeOffice

* RIA-7370
* Fixed sonar check. Performing isEmpty() check on optional var before a .get()

* RIA-7370 (#727)

* Added a null check on addendum metadata

* Suppress CVE (#728)

* RIA-7471 letter generation direction due date changed (#715)

* RIA-7471 Letter generation when 'Change Direction due date' is triggered

- for ADA and non ADA internal cases
- when recipient party is either APPELLANT or APPELLANT AND RESPONDENT.

* Fix naming of a variable

* RIA-7471 - fixed unit test

* RIA-7471 Fix functional tests

* Fix unit test

* Fix template personalisations

* Fix name for template env variable

---------

Co-authored-by: colmlynch60 <colm.lynch@hmcts.net>

* RIA-7435 Home_office_non-Standard_direction_letter (#730)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-7439 ho_change_direction_due_date (#729)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439 ho_change_direction_due_date (#731)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: remove spaces

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: merge tests fix

* RIA-7439_ho_direction_due_date: merge conflicts resolve

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439 ho_change_direction_due_date (#735)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7439_ho_direction_due_date: Add Ho change direction due date letter, configurations, tests for internal DET cases

* RIA-7439_ho_direction_due_date: Move method isPartyIsRespondent ot Utils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: Add test for AsylumUtils

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7439_ho_direction_due_date: resolving code duplication Sonar Cloud issue

* RIA-7429 Letter generation for Internal Reinstate Appeal (#722)

* RIA-7435 Rename the letter generator class and corresponding unit tests (#737)

* RIA-7435 Rename the letter generator class and corresponding unit tests

* Fix checkstyle error

* Fix functional tests

* Fixing functional test

* RIA-7911 Update hearing adjustments (#739)

* RIA-7911_Update_hearing_adjustments

* RIA-7911 Update hearing adjustments functional tests

---------

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* Update suppressions.xml

* Update suppressions.xml

* RIA-7537 EJP Adding new roles for legal officer (#746)

Co-authored-by: JamieClarkeV1 <120718578+JamieClarkeV1@users.noreply.github.com>

* RIA-8888 Upgraded chart version (#751)

* RIA-8888 Upgraded chart version

* RIA-8888 revert version because it is auto bumped

* RIA-8888 added suppressions

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7411 Removing OOC feature flag fields (#743) (#754)

* RIA-7411 Removing OOC feature flag fields

* RIA-7411 Suppressing CVE-2023-42794, CVE-2023-42795, CVE-2023-45648

Co-authored-by: Ryan-Nesbitt <95298094+Ryan-Nesbitt@users.noreply.github.com>

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#760)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7722 Solve suppressions (#632)

* RIA-5804 using feature flag (#586)

Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>

* RIA-7802 To fix incorrect env value for PROD (#656)

* Update values.yaml

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-5679 Updating suppressions (#681)

* RIA-5679 Updated suppression for CVE-2023-35116

* RIA-5679 Adding suppression for CVE 2023-41080

* RIA-5679, Changed suppression to fixed dependency (#683)

* RIA-5679 nightly fixes (#708)

* RIA-5679 nightly fixes

* DIAC-2 Updated Renovate config file, added automerge, scheduling and package… (#732)

* Updated Renovate config file, added automerge, scheduling and package types. Also backdated restAssured from 5.3.1 to 5.3.0 to test Renovate

* Updating extends in renovate json

* Extending suppresion of CVE-2023-35116 due to no solution yet

* DIAC-2 updating renovate schedule (#734)

* DIAC-2 updating renovate schedule

* DIAC-2 updating renovate schedule london timezone

* RIA-1234 swagger workflow run fix (#736)

* Update all non-major dependencies (#738)

* Update all non-major dependencies

* Fixing dependency for spring bootstrap. Added TODO for an upgrade

* Reverting ccd-case-document-am-client to older version

* Updating renovate config to no longer check for cdam upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* DIAC-2 changing deprecated config option (#742)

* DIAC-2 changing deprecated config option

* DIAC-2 adding config option for exluding major updates

* DIAC-000 Dependency fix (#749)

* dependency fix

* updating pr validation

---------

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: burnstHMCTS <134689347+burnstHMCTS@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@version1.com>
Co-authored-by: Matthew Carey <matthew.carey@htmcts.net>
Co-authored-by: rajeshthuraiyur <48379561+rajeshthuraiyur@users.noreply.github.com>
Co-authored-by: Jake Cohen <101183561+JakeCohenSol@users.noreply.github.com>
Co-authored-by: Nilay <nilay.patel@solirius.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JakeCohenSol <jake.cohen@solirius.com>

* Removed print line that causes issues on windows (#762)

* RIA-7950 upgrade_fix (#767)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-7950_upgrade_fix: trigger rebuild

* RIA-2023 rebuild_pipelines (#775)

* RIA-7552_appeal_can_proceed: Add Asylum case definition for Record out of time decision, Letter template, Letter generator and configuration, tests

* RIA-20231212_rebuild_pipelines: Restart pipelines

* RIA-20231212_rebuild_pipelines: Add supressions

* Update suppressions.xml

* RIA-7324 Hearing adjourned without a date - ADA & Non ADA (Letter) (#788)

* RIA-7324: added adjourn hearing without date letter template

* RIA-7324: small fix on DocumentTag applied

* RIA-8214 Add a new screen to Bails start application - UT appeal pending (#791)

* RIA-8214: bail application submission template fixed with new fields

* RIA-8214: small refactor name on definitions

* Revert "RIA-8214 Add a new screen to Bails start application - UT appeal pending" (#793)

* RIA-TASK - Merge master changes to NABA - ia-case-documents-api (#792)

* Fix functional tests (#588)

* Fix functional tests

* Fix functional tests

* RIA-7385 Removed pedantic checkstyle rules (#589)

* RIA-7384 Enforce conventions on commit messages and branches (#591)

* RIA-7378 - preventing application startup if secrets can't be found (#608)

* RIA-7378 - added ConfigValidatorAppListener + test

* RIA-7378 - update

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* RIA-7319 - Gradle + Java 17 + AppInsights Upgrade (#587)

Co-authored-by: filippo-possenti-version1 <109352283+filippo-possenti-version1@users.noreply.github.com>
Co-authored-by: Filippo Possenti <filippo.possenti@version1.com>
Co-authored-by: hmct…
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.

4 participants