Skip to content

Commit

Permalink
fix: new typing
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharking committed Oct 23, 2024
1 parent 7e5a50a commit 4a0fe29
Showing 1 changed file with 43 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import lombok.Getter;
import lombok.Setter;
Expand All @@ -27,22 +28,55 @@ public class EMrtdData implements Serializable {
@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public static class EMrtdProcessedData {
private ProcessedData fields;
private EF_DG1 ef_dg1;
private EF_DG2 ef_dg2;
private EF_DG11 ef_dg11;
}

@Getter
@Setter
@ToString
@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public static class ProcessedData {
private String mrzData;
private String firstName;
public static class EF_DG1 {
private String documentType;
private String documentNumber;
private String issuingState;
private String dateOfBirth;
private String dateOfExpiry;
private String sex;
private String nationality;
private String lastName;
private String faceDataUrl;
private String fingerprintDataUrl;
private long birthDate;
private String placeOfBirth;
private long issuanceDate;
private String firstName;
private String nameOfHolder;
private String mrzOptionalData;
}

@Getter
@Setter
@ToString
@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public static class EF_DG2 {
private List<String> faceImages;
}

@Getter
@Setter
@ToString
@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public static class EF_DG11 {
private String nameOfHolder;
private Long dateOfBirth;
private List<String> otherNames;
private String personalNumber;
private List<String> placeOfBirth;
private List<String> permanentAddress;
private String telephone;
private String profession;
private String title;
private String personalSummary;
private String custodyInformation;
}
}

0 comments on commit 4a0fe29

Please sign in to comment.