Skip to content

Commit

Permalink
ES-1033 (#752)
Browse files Browse the repository at this point in the history
Signed-off-by: ase-101 <sunkadaeanusha@gmail.com>
  • Loading branch information
ase-101 authored Jun 6, 2024
1 parent a9a9a20 commit 1db3cfd
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class ClaimDetail implements Serializable {
public class ClaimDetail extends VerifiedClaimDetail implements Serializable {

private String value;
private String[] values;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@
*/
package io.mosip.esignet.api.dto.claim;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serializable;

@Data
public class DocumentDetail {
@JsonIgnoreProperties(ignoreUnknown = true)
public class DocumentDetail implements Serializable {

private FilterCriteria type;
private String documentNumber;
private FilterTime dateOfIssuance;
private FilterTime dateOfExpiry;
private String document_number;
private FilterDateTime date_of_issuance;
private FilterDateTime date_of_expiry;
private EvidenceIssuer issuer;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@
*/
package io.mosip.esignet.api.dto.claim;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serializable;

@Data
public class ElectronicRecord extends Evidence{
@JsonIgnoreProperties(ignoreUnknown = true)
public class ElectronicRecord implements Serializable {

private FilterCriteria type;
private String personalNumber;
private FilterTime createdAt;
private FilterTime dateOfExpiry;
private String personal_number;
private FilterDateTime created_at;
private FilterDateTime date_of_expiry;
private EvidenceIssuer source;

}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,26 @@
*/
package io.mosip.esignet.api.dto.claim;

import io.mosip.esignet.api.util.EvidenceType;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class Evidence extends ElectronicSignature{
public class Evidence implements Serializable {

private EvidenceType evidenceType;
private FilterCriteria type;
private FilterCriteria method;
private FilterTime time;
private VerificationMethod verificationMethod;
private List<EvidenceCheckDetail> checkDetails;
private DocumentDetail documentDetail;
private FilterDateTime time;
private VerificationMethod verification_method;
private List<EvidenceCheckDetail> check_details;
private DocumentDetail document_details;
private String attestation;
private ElectronicRecord record;

private FilterCriteria signature_type;
private FilterCriteria issuer;
private String serial_number;
private FilterDateTime created_at;

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@
*/
package io.mosip.esignet.api.dto.claim;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serializable;

@Data
public class EvidenceCheckDetail {
@JsonIgnoreProperties(ignoreUnknown = true)
public class EvidenceCheckDetail implements Serializable {

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class EvidenceIssuer {

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class FilterCriteria implements Serializable {

private String value;
private String[] values;
private List<String> values;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class FilterTime implements Serializable {
public class FilterDateTime implements Serializable {

private int maxAge;
private int max_age;

}
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
package io.mosip.esignet.api.dto.claim;

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package io.mosip.esignet.api.dto.claim;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.mosip.esignet.api.util.ErrorConstants;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

Expand All @@ -21,10 +19,9 @@
@JsonIgnoreProperties(ignoreUnknown = true)
public class Verification implements Serializable {

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
*/
package io.mosip.esignet.api.dto.claim;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serializable;

@Data
public class VerificationMethod {
@JsonIgnoreProperties(ignoreUnknown = true)
public class VerificationMethod implements Serializable {

private FilterCriteria type;

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class VerifiedClaimDetail extends ClaimDetail implements Serializable {
public class VerifiedClaimDetail implements Serializable {

private Verification verification;

Expand Down

0 comments on commit 1db3cfd

Please sign in to comment.