Skip to content

Commit

Permalink
[ES-1033] added fields for verified claims
Browse files Browse the repository at this point in the history
Signed-off-by: Venkata Saidurga Polamraju <saidurgacsea@gmail.com>
  • Loading branch information
pvsaidurga committed Jun 4, 2024
1 parent a9919e0 commit 85a2dab
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

@Data
public class DocumentDetails {

private FilterCriteria type;
private String documentNumber;
private String dateOfIssuance;
private String dateOfExpiry;
private Issuer issuer;
private FilterTime dateOfIssuance;
private FilterTime dateOfExpiry;
private EvidenceIssuer issuer;


}
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,23 @@
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class Evidence {

@NotBlank(message = ErrorConstants.INVALID_EVIDENCE_TYPE)
private EvidenceType type;
private FilterCriteria method;
private DocumentDetails documentDetails;
private FilterTime time;
private VerificationMethod verificationMethod;
private List<EvidenceCheckDetail> checkDetails;
private DocumentDetails documentDetails;
private String attestation;
private FilterCriteria signatureType;
private FilterCriteria issuer;
private String serialNumber;
private FilterTime createdAt;
private EvidenceRecord record;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package io.mosip.esignet.api.dto.Claim;

import lombok.Data;

@Data
public class EvidenceCheckDetail {

private String checkMethod;
private String organisation;
private String txn;
private FilterTime time;

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
import lombok.Data;

@Data
public class Issuer {
public class EvidenceIssuer {

private String name;
private String country;
private String countryCode;
private String jurisdiction;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.mosip.esignet.api.dto.Claim;

import lombok.Data;

@Data
public class EvidenceRecord {

private FilterCriteria type;
private String personalNumber;
private FilterTime createdAt;
private FilterTime dateOfExpiry;
private EvidenceIssuer source;

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
public class Verification {

@NotBlank(message=ErrorConstants.INVALID_TRUST_FRAMEWORK)
private FilterCriteria trust_framework;
private FilterCriteria trustFramework;
private FilterTime time;
private FilterCriteria assurance_level;
private FilterCriteria assuranceLevel;
private List<Evidence> evidence;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package io.mosip.esignet.api.dto.Claim;

import lombok.Data;

@Data
public class VerificationMethod {
private FilterCriteria type;

}

0 comments on commit 85a2dab

Please sign in to comment.