Skip to content

Commit

Permalink
TCVP-3116 add reason fields, change hearing type to return code inste…
Browse files Browse the repository at this point in the history
…ad of text
  • Loading branch information
pbolduc committed Dec 9, 2024
1 parent 994289d commit aadee8b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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",
_ => ""
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public class DisputeCaseFileSummary
/// If zero, there is no estimated duration.
/// </summary>
public int AppearanceDuration { get; set; }

public string? TimeToPayReason { get; set; }
public string? FineReductionReason { get; set; }
}

public class DisputeCaseFileStatus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit aadee8b

Please sign in to comment.