-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1395 from DFE-Digital/feature/176343-TTE
Feature/176343 tte
- Loading branch information
Showing
80 changed files
with
9,059 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...ernsCaseWork.API.Contracts/TargetedTrustEngagement/CloseTargetedTrustEngagementRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace ConcernsCaseWork.API.Contracts.TargetedTrustEngagement; | ||
|
||
public class CloseTargetedTrustEngagementRequest | ||
{ | ||
public DateTimeOffset? EngagementEndDate { get; set; } | ||
|
||
public TargetedTrustEngagementOutcome OutcomeId { get; set; } | ||
|
||
[StringLength(TargetedTrustEngagementConstants.MaxSupportingNotesLength, ErrorMessage = "Notes must be 2000 characters or less", MinimumLength = 0)] | ||
public string Notes { get; set; } | ||
|
||
public bool IsValid() | ||
{ | ||
return (Notes?.Length ?? 0) <= TargetedTrustEngagementConstants.MaxSupportingNotesLength; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...rnsCaseWork.API.Contracts/TargetedTrustEngagement/CloseTargetedTrustEngagementResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace ConcernsCaseWork.API.Contracts.TargetedTrustEngagement; | ||
|
||
public class CloseTargetedTrustEngagementResponse | ||
{ | ||
public CloseTargetedTrustEngagementResponse() | ||
{ | ||
|
||
} | ||
public CloseTargetedTrustEngagementResponse(int caseUrn, int targetedTrustEngagementId) | ||
{ | ||
CaseUrn = caseUrn >= 0 ? caseUrn : throw new ArgumentOutOfRangeException(nameof(caseUrn), "value must be greater than zero"); | ||
TargetedTrustEngagementId = targetedTrustEngagementId >= 0 ? targetedTrustEngagementId : throw new ArgumentOutOfRangeException(nameof(targetedTrustEngagementId), "value must be greater than zero"); | ||
} | ||
|
||
public int CaseUrn { get; set; } | ||
public int TargetedTrustEngagementId { get; set; } | ||
} |
29 changes: 29 additions & 0 deletions
29
...rnsCaseWork.API.Contracts/TargetedTrustEngagement/CreateTargetedTrustEngagementRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace ConcernsCaseWork.API.Contracts.TargetedTrustEngagement | ||
{ | ||
public class CreateTargetedTrustEngagementRequest | ||
{ | ||
public CreateTargetedTrustEngagementRequest() | ||
{ | ||
} | ||
|
||
[Range(1, int.MaxValue, ErrorMessage = "The CaseUrn must be greater than zero")] | ||
public int CaseUrn { get; set; } | ||
|
||
public DateTimeOffset? EngagementStartDate { get; set; } | ||
|
||
public TargetedTrustEngagementActivity? ActivityId { get; set; } | ||
public TargetedTrustEngagementActivityType[] ActivityTypes { get; set; } | ||
|
||
[StringLength(TargetedTrustEngagementConstants.MaxSupportingNotesLength, ErrorMessage = "Notes must be 2000 characters or less", MinimumLength = 0)] | ||
public string Notes { get; set; } | ||
|
||
public string CreatedBy { get; set; } | ||
|
||
public bool IsValid() | ||
{ | ||
return (Notes?.Length ?? 0) <= TargetedTrustEngagementConstants.MaxSupportingNotesLength; | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...nsCaseWork.API.Contracts/TargetedTrustEngagement/CreateTargetedTrustEngagementResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace ConcernsCaseWork.API.Contracts.TargetedTrustEngagement | ||
{ | ||
public class CreateTargetedTrustEngagementResponse | ||
{ | ||
public CreateTargetedTrustEngagementResponse() | ||
{ | ||
} | ||
|
||
public CreateTargetedTrustEngagementResponse(int concernsCaseUrn, int targetedTrustEngagementId) | ||
{ | ||
ConcernsCaseUrn = concernsCaseUrn >= 0 ? concernsCaseUrn : throw new ArgumentOutOfRangeException(nameof(concernsCaseUrn), "value must be greater than zero"); | ||
TargetedTrustEngagementId = targetedTrustEngagementId >= 0 ? targetedTrustEngagementId : throw new ArgumentOutOfRangeException(nameof(targetedTrustEngagementId), "value must be greater than zero"); | ||
} | ||
public int ConcernsCaseUrn { get; set; } | ||
public int TargetedTrustEngagementId { get; set; } | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...cernsCaseWork.API.Contracts/TargetedTrustEngagement/GetTargetedTrustEngagementResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
| ||
namespace ConcernsCaseWork.API.Contracts.TargetedTrustEngagement | ||
{ | ||
public class GetTargetedTrustEngagementResponse | ||
{ | ||
public int Id { get; set; } | ||
public int CaseUrn { get; set; } | ||
public DateTimeOffset? EngagementStartDate { get; set; } | ||
public TargetedTrustEngagementActivity? ActivityId { get; set; } | ||
public TargetedTrustEngagementActivityType[] ActivityTypes { get; set; } | ||
public string Notes { get; set; } | ||
public DateTimeOffset? EngagementEndDate { get; set; } | ||
public TargetedTrustEngagementOutcome? EngagementOutcomeId { get; set; } | ||
public DateTime CreatedAt { get; set; } | ||
public DateTime UpdatedAt { get; set; } | ||
public DateTime? ClosedAt { get; set; } | ||
public string CreatedBy { get; set; } | ||
public DateTime? DeletedAt { get; set; } | ||
public string Title { get; set; } | ||
public bool IsEditable { get; set; } | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...ConcernsCaseWork.API.Contracts/TargetedTrustEngagement/TargetedTrustEngagementActivity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.ComponentModel; | ||
|
||
namespace ConcernsCaseWork.API.Contracts.TargetedTrustEngagement | ||
{ | ||
public enum TargetedTrustEngagementActivity | ||
{ | ||
[Description("Budget Forecast Return/Accounts Return driven")] | ||
BudgetForecastReturnAccountsReturnDriven = 1, | ||
|
||
[Description("Executive pay engagement")] | ||
ExecutivePayEngagement = 2, | ||
|
||
[Description("Financial returns assurance")] | ||
FinancialReturnsAssurance = 3, | ||
|
||
[Description("Reserves Oversight and Assurance Project")] | ||
ReservesOversightAndAssuranceProject = 4, | ||
|
||
[Description("Local proactive engagament")] | ||
LocalProactiveEngagament = 5, | ||
|
||
[Description("Other national processes")] | ||
OtherNationalProcesses = 6, | ||
|
||
[Description("No engagement activities were taken forward")] | ||
NoEngagementActivitiesWereTakenForward = 7 | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...ernsCaseWork.API.Contracts/TargetedTrustEngagement/TargetedTrustEngagementActivityType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using System.ComponentModel; | ||
|
||
namespace ConcernsCaseWork.API.Contracts.TargetedTrustEngagement | ||
{ | ||
public enum TargetedTrustEngagementActivityType | ||
{ | ||
[Description("Category 1")] | ||
Category1 = 1, | ||
[Description("Category 2")] | ||
Category2 = 2, | ||
[Description("Category 3")] | ||
Category3 = 3, | ||
[Description("Category 4")] | ||
Category4 = 4, | ||
[Description("CEOs")] | ||
CEOs = 5, | ||
[Description("Leadership")] | ||
Leadership = 6, | ||
[Description("CEOs and Leadership")] | ||
CEOsAndLeadership = 7, | ||
[Description("Annual summary internal scrutiny reports")] | ||
AnnualSummaryInternalScrutinyReports = 8, | ||
[Description("Audit issues")] | ||
AuditIssues = 9, | ||
[Description("Management letter issues")] | ||
ManagementLetterIssues = 10, | ||
[Description("Regularity issues")] | ||
RegularityIssues = 11, | ||
[Description("Priority 1 ")] | ||
Priority1 = 12, | ||
[Description("Priority 2")] | ||
Priority2 = 13, | ||
[Description("Priority 3")] | ||
Priority3 = 14, | ||
[Description("Priority 4")] | ||
Priority4 = 15, | ||
[Description("Budget Forecast Return/Accounts Return driven")] | ||
BudgetForecastReturnAccountsReturnDriven = 16, | ||
[Description("Executive pay engagement")] | ||
ExecutivePayEngagement = 17, | ||
[Description("Financial returns assurance")] | ||
FinancialReturnsAssurance = 18, | ||
[Description("Reserves Oversight Assurance Project")] | ||
ReservesOversightAssuranceProject = 19, | ||
[Description("Local proactive engagament")] | ||
LocalProactiveEngagament = 20, | ||
[Description("Other national processes")] | ||
OtherNationalProcesses = 21 | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...oncernsCaseWork.API.Contracts/TargetedTrustEngagement/TargetedTrustEngagementConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace ConcernsCaseWork.API.Contracts.TargetedTrustEngagement | ||
{ | ||
public static class TargetedTrustEngagementConstants | ||
{ | ||
public const int MaxSupportingNotesLength = 2000; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
.../ConcernsCaseWork.API.Contracts/TargetedTrustEngagement/TargetedTrustEngagementOutcome.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.ComponentModel; | ||
|
||
namespace ConcernsCaseWork.API.Contracts.TargetedTrustEngagement | ||
{ | ||
public enum TargetedTrustEngagementOutcome | ||
{ | ||
[Description("Adequate response received")] | ||
AdequateResponseReceived = 1, | ||
|
||
[Description("Inadequate response received")] | ||
InadequateResponseReceived = 2, | ||
|
||
[Description("No engagement took place")] | ||
NoEngagementTookPlace = 3, | ||
|
||
[Description("No response required")] | ||
NoResponseRequired = 4 | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...sCaseWork.API.Contracts/TargetedTrustEngagement/TargetedTrustEngagementSummaryResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace ConcernsCaseWork.API.Contracts.TargetedTrustEngagement; | ||
|
||
public class TargetedTrustEngagementSummaryResponse | ||
{ | ||
public int CaseUrn { get; set; } | ||
public int TargetedTrustEngagementId { get; set; } | ||
public DateTimeOffset CreatedAt { get; set; } | ||
public DateTimeOffset UpdatedAt { get; set; } | ||
public string Title { get; set; } | ||
public int? Outcome { get; set; } | ||
public DateTimeOffset? ClosedAt { get; set; } | ||
} |
27 changes: 27 additions & 0 deletions
27
...rnsCaseWork.API.Contracts/TargetedTrustEngagement/UpdateTargetedTrustEngagementRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace ConcernsCaseWork.API.Contracts.TargetedTrustEngagement | ||
{ | ||
public class UpdateTargetedTrustEngagementRequest | ||
{ | ||
[Range(1, int.MaxValue, ErrorMessage = "The CaseUrn must be greater than zero")] | ||
public int CaseUrn { get; set; } | ||
|
||
public DateTimeOffset? EngagementStartDate { get; set; } | ||
|
||
|
||
public TargetedTrustEngagementActivity? ActivityId { get; set; } | ||
public TargetedTrustEngagementActivityType[] ActivityTypes { get; set; } | ||
|
||
|
||
[StringLength(TargetedTrustEngagementConstants.MaxSupportingNotesLength, ErrorMessage = "Notes must be 2000 characters or less", MinimumLength = 0)] | ||
public string Notes { get; set; } | ||
|
||
public string CreatedBy { get; set; } | ||
|
||
public bool IsValid() | ||
{ | ||
return (Notes?.Length ?? 0) <= TargetedTrustEngagementConstants.MaxSupportingNotesLength; | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...nsCaseWork.API.Contracts/TargetedTrustEngagement/UpdateTargetedTrustEngagementResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace ConcernsCaseWork.API.Contracts.TargetedTrustEngagement | ||
{ | ||
public class UpdateTargetedTrustEngagementResponse | ||
{ | ||
public UpdateTargetedTrustEngagementResponse() | ||
{ | ||
} | ||
|
||
public UpdateTargetedTrustEngagementResponse(int concernsCaseUrn, int targetedTrustEngagementId) | ||
{ | ||
ConcernsCaseUrn = concernsCaseUrn >= 0 ? concernsCaseUrn : throw new ArgumentOutOfRangeException(nameof(concernsCaseUrn), "value must be greater than zero"); | ||
TargetedTrustEngagementId = targetedTrustEngagementId >= 0 ? targetedTrustEngagementId : throw new ArgumentOutOfRangeException(nameof(targetedTrustEngagementId), "value must be greater than zero"); | ||
} | ||
public int ConcernsCaseUrn { get; set; } | ||
public int TargetedTrustEngagementId { get; set; } | ||
} | ||
} |
Oops, something went wrong.