Created
December 11, 2020 03:04
-
-
Save typelogic/848858781b16d6fd9a04547afadd9e3b to your computer and use it in GitHub Desktop.
try add fields
This file contains hidden or 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
diff --git a/src/main/java/org/idpass/lite/IDPassReaderComponent.java b/src/main/java/org/idpass/lite/IDPassReaderComponent.java | |
index 5f9a1fe..18e88cf 100644 | |
--- a/src/main/java/org/idpass/lite/IDPassReaderComponent.java | |
+++ b/src/main/java/org/idpass/lite/IDPassReaderComponent.java | |
@@ -182,6 +182,8 @@ public class IDPassReaderComponent | |
ObjectNode front = mapper.createObjectNode(); | |
front.put("identification_number",m_idfc.getUIN()); | |
front.put("full_name", m_idfc.getFullName()); | |
+ front.put("surname", m_idfc.getSurName()); | |
+ front.put("given_names", m_idfc.getGivenName()); | |
front.put("sex",m_idfc.getGender() == 1 ? "Female" : "Male"); | |
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/d"); /// TODO: move to config? or list of possible combinations | |
if (m_idfc.getDateOfBirth() != null) { /// TODO: generalized these 'if' checks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment