diff --git a/src/backend/TrafficCourts/Staff.Service/Features/CourtFiles/Summaries/Handler.cs b/src/backend/TrafficCourts/Staff.Service/Features/CourtFiles/Summaries/Handler.cs index 799758f82..29373ff6f 100644 --- a/src/backend/TrafficCourts/Staff.Service/Features/CourtFiles/Summaries/Handler.cs +++ b/src/backend/TrafficCourts/Staff.Service/Features/CourtFiles/Summaries/Handler.cs @@ -363,7 +363,7 @@ private DisputeCaseFileSummary Map(OrdsDisputeCaseFileSummary dispute) SubmittedTs = dispute.submitted_dt, JjDecisionDate = dispute.jj_decision_dt, SignatoryName = dispute.signed_by, - HearingType = ToJJDisputeHearingType(dispute.hearing_type_cd), + HearingType = dispute.hearing_type_cd, TicketNumber = dispute.ticket_number_txt, ViolationDate = dispute.violation_dt, ViolationDateCount = dispute.unique_violation_dt_count, @@ -373,6 +373,8 @@ private DisputeCaseFileSummary Map(OrdsDisputeCaseFileSummary dispute) DisputantGivenName1 = dispute.prof_given_1_nm, DisputantGivenName2 = dispute.prof_given_2_nm, DisputantGivenName3 = dispute.prof_given_3_nm, + FineReductionReason = dispute.fine_reduction_reason_txt, + TimeToPayReason = dispute.time_to_pay_reason_txt, DisputeStatus = new DisputeCaseFileStatus { Code = dispute.dispute_status_type_cd, @@ -426,14 +428,4 @@ private static JJDisputeStatus ToJJDisputeStatus(string value) _ => JJDisputeStatus.UNKNOWN }; } - - private static string ToJJDisputeHearingType(string? value) - { - return value switch - { - "C" => "COURT_APPEARANCE", - "W" => "WRITTEN_REASONS", - _ => "" - }; - } } diff --git a/src/backend/TrafficCourts/TrafficCourts.Core/Domain/Models/DisputeCaseFileSummary.cs b/src/backend/TrafficCourts/TrafficCourts.Core/Domain/Models/DisputeCaseFileSummary.cs index 4bed4330a..90c3b0cf9 100644 --- a/src/backend/TrafficCourts/TrafficCourts.Core/Domain/Models/DisputeCaseFileSummary.cs +++ b/src/backend/TrafficCourts/TrafficCourts.Core/Domain/Models/DisputeCaseFileSummary.cs @@ -44,6 +44,9 @@ public class DisputeCaseFileSummary /// If zero, there is no estimated duration. /// public int AppearanceDuration { get; set; } + + public string? TimeToPayReason { get; set; } + public string? FineReductionReason { get; set; } } public class DisputeCaseFileStatus diff --git a/src/backend/TrafficCourts/TrafficCourts.OrdsDataService/Tco/OrdsDisputeCaseFileSummary.cs b/src/backend/TrafficCourts/TrafficCourts.OrdsDataService/Tco/OrdsDisputeCaseFileSummary.cs index 5374a5dbf..ab97dbec1 100644 --- a/src/backend/TrafficCourts/TrafficCourts.OrdsDataService/Tco/OrdsDisputeCaseFileSummary.cs +++ b/src/backend/TrafficCourts/TrafficCourts.OrdsDataService/Tco/OrdsDisputeCaseFileSummary.cs @@ -21,6 +21,8 @@ public class OrdsDisputeCaseFileSummary public string prof_given_1_nm { get; set; } public string prof_given_2_nm { get; set; } public string prof_given_3_nm { get; set; } + public string time_to_pay_reason_txt { get; set; } + public string fine_reduction_reason_txt { get; set; } public string dispute_status_type_cd { get; set; } public string dispute_status_type_dsc { get; set; } public decimal? detachment_agen_id { get; set; }