File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
main/java/com/smartystreets/api/us_street
test/java/com/smartystreets/api/us_street Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ public class Candidate implements Serializable {
22
22
private String deliveryLine2 ;
23
23
private String lastLine ;
24
24
private String deliveryPointBarcode ;
25
+ private String smartyKey ;
25
26
private Components components ;
26
27
private Metadata metadata ;
27
28
private Analysis analysis ;
@@ -92,5 +93,10 @@ public String getDeliveryPointBarcode() {
92
93
return this .deliveryPointBarcode ;
93
94
}
94
95
96
+ @ JsonProperty ("smarty_key" )
97
+ public String getSmartyKey () {
98
+ return this .smartyKey ;
99
+ }
100
+
95
101
//endregion
96
102
}
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ public void testFullJSONDeserialization() throws Exception {
21
21
+ "\" delivery_line_2\" : \" blah blah\" ,\n "
22
22
+ "\" last_line\" : \" Provo UT 84604-4405\" ,\n "
23
23
+ "\" delivery_point_barcode\" : \" 846044405140\" ,\n "
24
+ + "\" smarty_key\" : \" 1750774478\" ,\n "
24
25
+ "\" components\" : {\n "
25
26
+ "\" primary_number\" : \" 3214\" ,\n "
26
27
+ "\" street_predirection\" : \" N\" ,\n "
@@ -88,6 +89,7 @@ public void testFullJSONDeserialization() throws Exception {
88
89
assertEquals ("blah blah" , candidates [0 ].getDeliveryLine2 ());
89
90
assertEquals ("Provo UT 84604-4405" , candidates [0 ].getLastLine ());
90
91
assertEquals ("846044405140" , candidates [0 ].getDeliveryPointBarcode ());
92
+ assertEquals ("1750774478" , candidates [0 ].getSmartyKey ());
91
93
assertEquals ("3214" , candidates [0 ].getComponents ().getPrimaryNumber ());
92
94
assertEquals ("N" , candidates [0 ].getComponents ().getStreetPredirection ());
93
95
assertEquals ("Q" , candidates [0 ].getComponents ().getStreetPostdirection ());
You can’t perform that action at this time.
0 commit comments