Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES-1091 #791

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package io.mosip.esignet.api.dto;

import io.mosip.esignet.api.dto.claim.ClaimMetadata;
import io.mosip.esignet.api.dto.claim.VerificationDetail;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
Expand All @@ -21,7 +21,7 @@ public class KycAuthResult {

private String kycToken;
private String partnerSpecificUserToken;
private Map<String, List<ClaimMetadata>> claimsMetadata;
private Map<String, List<VerificationDetail>> claimsMetadata;

public KycAuthResult(String kycToken, String partnerSpecificUserToken) {
this.kycToken = kycToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
*/
package io.mosip.esignet.api.dto;

import io.mosip.esignet.api.dto.claim.ClaimMetadata;
import io.mosip.esignet.api.dto.claim.VerificationFilter;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class VerifiedKycExchangeDto extends KycExchangeDto {

private Map<String, ClaimMetadata> acceptedVerifiedClaims;
private Map<String, List<VerificationFilter>> acceptedVerifiedClaims;
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
/*
* 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 lombok.Data;
import java.util.List;

@Data
public class VerificationDetail {

private String trust_framework;
private String time;
private String assurance_level;
private AssuranceProcess assurance_process;
private String verification_process;
private List<Evidence> evidence;

}

@Data
class AssuranceProcess {
private String policy;
private String procedure;
private List<AssuranceDetail> assurance_details;
}

@Data
class AssuranceDetail {
private String assurance_type;
private String assurance_classification;
private List<EvidenceRef> evidence_ref;
}

@Data
class EvidenceRef {
private String txn;
private String evidence_metadata;
private String evidence_classification;
}

@Data
class Evidence {
private String type;
private String method;
private String time;
private VerificationMethod verification_method;
private List<EvidenceCheckDetail> check_details;
private DocumentDetail document_details;
private String attestation;
private ElectronicRecord record;

private String signature_type;
private String issuer;
private String serial_number;
private String created_at;
}

@Data
class VerificationMethod {
private String type;
}

@Data
class EvidenceCheckDetail {

private String check_method;
private String organisation;
private String txn;
private String time;

}

@Data
class DocumentDetail {
private String type;
private String document_number;
private String date_of_issuance;
private String date_of_expiry;
private EvidenceIssuer issuer;
}

@Data
class ElectronicRecord {
private String type;
private String personal_number;
private String created_at;
private String date_of_expiry;
private EvidenceIssuer source;
}

@Data
class EvidenceIssuer {
private String name;
private String country;
private String country_code;
private String jurisdiction;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
/*
* 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 lombok.Data;

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

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

private FilterCriteria trust_framework;
private FilterDateTime time;
private FilterCriteria assurance_level;
private List<EvidenceFilter> evidence;
private FilterCriteria verification_process;

}

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

private FilterCriteria type;
private FilterCriteria method;
private FilterDateTime time;
private VerificationMethodFilter verification_method;
private List<EvidenceCheckDetailFilter> check_details;
private DocumentDetailFilter document_details;
private String attestation;
private ElectronicRecordFilter record;

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

}

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
class VerificationMethodFilter implements Serializable {
private FilterCriteria type;
}

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
class EvidenceCheckDetailFilter implements Serializable {
private String check_method;
private String organisation;
private String txn;
private FilterDateTime time;
}

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
class DocumentDetailFilter implements Serializable {
private FilterCriteria type;
private String document_number;
private FilterDateTime date_of_issuance;
private FilterDateTime date_of_expiry;
private EvidenceIssuer issuer;
}

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
class ElectronicRecordFilter implements Serializable {
private FilterCriteria type;
private String personal_number;
private FilterDateTime created_at;
private FilterDateTime date_of_expiry;
private EvidenceIssuerFilter source;
}

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
class EvidenceIssuerFilter implements Serializable {
private FilterCriteria name;
private FilterCriteria country;
private FilterCriteria country_code;
private FilterCriteria jurisdiction;
}
Loading
Loading