Skip to content

Commit

Permalink
1.3.0 Release (#83)
Browse files Browse the repository at this point in the history
- Update REJIS Court Date Handling (Trello 343)
- Payable online citations not showing as payable online (Trello 347)
- Add new REJIS municipalities: Clayton, Valley Park, Maplewood, St John, and Sycamore Hills (Trello 357 & 366)
  • Loading branch information
abobwhite authored Mar 2, 2018
1 parent 3df4667 commit 12e0b49
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>

<groupId>com.civtechstl</groupId>
<version>1.2.0</version>
<version>1.3.0</version>
<packaging>jar</packaging>

<parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class RejisPartialCitation {
@JsonProperty("BalDue")
public double balanceDue;

@JsonProperty("ShowIPaycourt")
@JsonProperty("ShowIpaycourt")
public boolean showIpaycourt;

}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public Citation fromRejisFullCitation(RejisFullCitation rejisFullCitation, Rejis
LocalDateTime NextDktDate = LocalDateTime.parse(rejisFullCitation.nextCourtDate);
LocalDateTime OrigDktDate = LocalDateTime.parse(rejisFullCitation.originalCourtDate);
if (NextDktDate.isBefore(OrigDktDate)){
genericCitation.court_dateTime = OrigDktDate;
genericCitation.court_dateTime = null;
}else{
genericCitation.court_dateTime = NextDktDate;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
INSERT INTO citation_datasource_municipality (citation_datasource_id,municipality_id) VALUES (2,17); #Clayton
INSERT INTO datasource_municipality_mapping (citation_datasource_id,municipality_id,datasource_municipality_identifier) VALUES (2,17,'CL'); #Clayton
INSERT INTO rejis_court_mapping (court_id,rejis_court_identifier) VALUES (17,'CL'); #Clayton

INSERT INTO citation_datasource_municipality (citation_datasource_id,municipality_id) VALUES (2,77); #Valley Park
INSERT INTO datasource_municipality_mapping (citation_datasource_id,municipality_id,datasource_municipality_identifier) VALUES (2,77,'VP'); #Valley Park
INSERT INTO rejis_court_mapping (court_id,rejis_court_identifier) VALUES (68,'VP'); #Valley Park

INSERT INTO citation_datasource_municipality (citation_datasource_id,municipality_id) VALUES (2,50); #Maplewood
INSERT INTO datasource_municipality_mapping (citation_datasource_id,municipality_id,datasource_municipality_identifier) VALUES (2,50,'MW'); #Maplewood
INSERT INTO rejis_court_mapping (court_id,rejis_court_identifier) VALUES (46,'MW'); #Maplewood
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
INSERT INTO citation_datasource_municipality (citation_datasource_id,municipality_id) VALUES (2,70); #St John
INSERT INTO datasource_municipality_mapping (citation_datasource_id,municipality_id,datasource_municipality_identifier) VALUES (2,70,'SJ'); #St John
INSERT INTO rejis_court_mapping (court_id,rejis_court_identifier) VALUES (64,'SJ'); #St John

INSERT INTO citation_datasource_municipality (citation_datasource_id,municipality_id) VALUES (2,72); #Sycamore Hills
INSERT INTO datasource_municipality_mapping (citation_datasource_id,municipality_id,datasource_municipality_identifier) VALUES (2,72,'SY'); #Sycamore Hills
INSERT INTO rejis_court_mapping (court_id,rejis_court_identifier) VALUES (64,'SY'); #Sycamore Hills
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
UPDATE municipality
SET payment_url='https://www.ncourt.com/x-press/x-onlinepayments.aspx?juris=71A21A7B-4F4D-4692-912E-FF780549415E'
WHERE municipality_id='72';
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,15 @@ public void citationTransformerCorrectlyAssignsCourtDate() {
.thenReturn(municipalHashable);

RejisFullCitation rejisFullCitation = generateFullRejisCitation();
rejisFullCitation.originalCourtDate = "2017-10-01T12:30:00";
rejisFullCitation.originalCourtDate = "2017-08-01T12:30:00";
Citation citation = citationTransformer.fromRejisFullCitation(rejisFullCitation, generatePartialRejisCitation());

assertEquals(citation.court_dateTime, LocalDateTime.parse(rejisFullCitation.originalCourtDate));
assertEquals(citation.court_dateTime, LocalDateTime.parse(rejisFullCitation.nextCourtDate));

rejisFullCitation.originalCourtDate = "2017-10-01T12:30:00";
citation = citationTransformer.fromRejisFullCitation(rejisFullCitation, generatePartialRejisCitation());

assertNull(citation.court_dateTime);
}

}

0 comments on commit 12e0b49

Please sign in to comment.