| All Verbs | /Verification/{ClientKey} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class Verification
{
public String ClientKey = null;
public String AuthorizationID = null;
public Long DocumentId = null;
public String UserSSN = null;
public String Mode = null;
public Boolean IsContentInclude = null;
public String getClientKey() { return ClientKey; }
public Verification setClientKey(String value) { this.ClientKey = value; return this; }
public String getAuthorizationID() { return AuthorizationID; }
public Verification setAuthorizationID(String value) { this.AuthorizationID = value; return this; }
public Long getDocumentId() { return DocumentId; }
public Verification setDocumentId(Long value) { this.DocumentId = value; return this; }
public String getUserSSN() { return UserSSN; }
public Verification setUserSSN(String value) { this.UserSSN = value; return this; }
public String getMode() { return Mode; }
public Verification setMode(String value) { this.Mode = value; return this; }
public Boolean isİsContentInclude() { return IsContentInclude; }
public Verification setİsContentInclude(Boolean value) { this.IsContentInclude = value; return this; }
}
public static class VerificationResponse
{
public VerifyResult Result = null;
public Boolean ServiceSuccessResult = null;
public String ErrorMesage = null;
public VerifyResult getResult() { return Result; }
public VerificationResponse setResult(VerifyResult value) { this.Result = value; return this; }
public Boolean isServiceSuccessResult() { return ServiceSuccessResult; }
public VerificationResponse setServiceSuccessResult(Boolean value) { this.ServiceSuccessResult = value; return this; }
public String getErrorMesage() { return ErrorMesage; }
public VerificationResponse setErrorMesage(String value) { this.ErrorMesage = value; return this; }
}
public static class VerifyResult
{
public Boolean Result = null;
public String ErrorMesage = null;
public Boolean IsValid = null;
public ArrayList<VerifyDocumentDetails> DocumentDetails = null;
public ArrayList<VerifySignerDetails> Signers = null;
public Boolean isResult() { return Result; }
public VerifyResult setResult(Boolean value) { this.Result = value; return this; }
public String getErrorMesage() { return ErrorMesage; }
public VerifyResult setErrorMesage(String value) { this.ErrorMesage = value; return this; }
public Boolean isİsValid() { return IsValid; }
public VerifyResult setİsValid(Boolean value) { this.IsValid = value; return this; }
public ArrayList<VerifyDocumentDetails> getDocumentDetails() { return DocumentDetails; }
public VerifyResult setDocumentDetails(ArrayList<VerifyDocumentDetails> value) { this.DocumentDetails = value; return this; }
public ArrayList<VerifySignerDetails> getSigners() { return Signers; }
public VerifyResult setSigners(ArrayList<VerifySignerDetails> value) { this.Signers = value; return this; }
}
public static class VerifyDocumentDetails
{
public byte[] DocumentContent = null;
public String DocumentName = null;
public String DocumentType = null;
public String DocumentKey = null;
public byte[] getDocumentContent() { return DocumentContent; }
public VerifyDocumentDetails setDocumentContent(byte[] value) { this.DocumentContent = value; return this; }
public String getDocumentName() { return DocumentName; }
public VerifyDocumentDetails setDocumentName(String value) { this.DocumentName = value; return this; }
public String getDocumentType() { return DocumentType; }
public VerifyDocumentDetails setDocumentType(String value) { this.DocumentType = value; return this; }
public String getDocumentKey() { return DocumentKey; }
public VerifyDocumentDetails setDocumentKey(String value) { this.DocumentKey = value; return this; }
}
public static class VerifySignerDetails
{
public String Cert_SubjectCN = null;
public String ID = null;
public X509Certificate2 SignerCertificate = null;
public String SignType = null;
public String SignAlgorithm = null;
public String HashAlgorithm = null;
public Boolean SignStatusIsValid = null;
public String CertStatusValue = null;
public Date SigningTime = null;
public Boolean IsTimeStampExist = null;
public VerifySignerDetails NextSigner = null;
public ArrayList<VerifySignerDetails> CounterSigners = null;
public ArrayList<TSValidationResultItem> TimeStampDetails = null;
public ArrayList<SgValidationResultItem> SignValidationDetails = null;
public ArrayList<CertValidationResultItem> CertValidationDetails = null;
public String Cert_SubjectSN = null;
public String Cert_Issuer = null;
public Date Cert_ValidFrom = null;
public Date Cert_ValidTo = null;
public String CertBase64 = null;
public String SigningLocation = null;
public String SigningReason = null;
public String getCertSubjectCN() { return Cert_SubjectCN; }
public VerifySignerDetails setCertSubjectCN(String value) { this.Cert_SubjectCN = value; return this; }
public String getİd() { return ID; }
public VerifySignerDetails setİd(String value) { this.ID = value; return this; }
public X509Certificate2 getSignerCertificate() { return SignerCertificate; }
public VerifySignerDetails setSignerCertificate(X509Certificate2 value) { this.SignerCertificate = value; return this; }
public String getSignType() { return SignType; }
public VerifySignerDetails setSignType(String value) { this.SignType = value; return this; }
public String getSignAlgorithm() { return SignAlgorithm; }
public VerifySignerDetails setSignAlgorithm(String value) { this.SignAlgorithm = value; return this; }
public String getHashAlgorithm() { return HashAlgorithm; }
public VerifySignerDetails setHashAlgorithm(String value) { this.HashAlgorithm = value; return this; }
public Boolean isSignStatusIsValid() { return SignStatusIsValid; }
public VerifySignerDetails setSignStatusIsValid(Boolean value) { this.SignStatusIsValid = value; return this; }
public String getCertStatusValue() { return CertStatusValue; }
public VerifySignerDetails setCertStatusValue(String value) { this.CertStatusValue = value; return this; }
public Date getSigningTime() { return SigningTime; }
public VerifySignerDetails setSigningTime(Date value) { this.SigningTime = value; return this; }
public Boolean isİsTimeStampExist() { return IsTimeStampExist; }
public VerifySignerDetails setİsTimeStampExist(Boolean value) { this.IsTimeStampExist = value; return this; }
public VerifySignerDetails getNextSigner() { return NextSigner; }
public VerifySignerDetails setNextSigner(VerifySignerDetails value) { this.NextSigner = value; return this; }
public ArrayList<VerifySignerDetails> getCounterSigners() { return CounterSigners; }
public VerifySignerDetails setCounterSigners(ArrayList<VerifySignerDetails> value) { this.CounterSigners = value; return this; }
public ArrayList<TSValidationResultItem> getTimeStampDetails() { return TimeStampDetails; }
public VerifySignerDetails setTimeStampDetails(ArrayList<TSValidationResultItem> value) { this.TimeStampDetails = value; return this; }
public ArrayList<SgValidationResultItem> getSignValidationDetails() { return SignValidationDetails; }
public VerifySignerDetails setSignValidationDetails(ArrayList<SgValidationResultItem> value) { this.SignValidationDetails = value; return this; }
public ArrayList<CertValidationResultItem> getCertValidationDetails() { return CertValidationDetails; }
public VerifySignerDetails setCertValidationDetails(ArrayList<CertValidationResultItem> value) { this.CertValidationDetails = value; return this; }
public String getCertSubjectSN() { return Cert_SubjectSN; }
public VerifySignerDetails setCertSubjectSN(String value) { this.Cert_SubjectSN = value; return this; }
public String getCertİssuer() { return Cert_Issuer; }
public VerifySignerDetails setCertİssuer(String value) { this.Cert_Issuer = value; return this; }
public Date getCertValidFrom() { return Cert_ValidFrom; }
public VerifySignerDetails setCertValidFrom(Date value) { this.Cert_ValidFrom = value; return this; }
public Date getCertValidTo() { return Cert_ValidTo; }
public VerifySignerDetails setCertValidTo(Date value) { this.Cert_ValidTo = value; return this; }
public String getCertBase64() { return CertBase64; }
public VerifySignerDetails setCertBase64(String value) { this.CertBase64 = value; return this; }
public String getSigningLocation() { return SigningLocation; }
public VerifySignerDetails setSigningLocation(String value) { this.SigningLocation = value; return this; }
public String getSigningReason() { return SigningReason; }
public VerifySignerDetails setSigningReason(String value) { this.SigningReason = value; return this; }
}
public static class TSValidationResultItem
{
public String ID = null;
public String Message = null;
public String Result = null;
public Boolean Successed = null;
public ArrayList<TSValidationResultItem> Child = null;
public String getİd() { return ID; }
public TSValidationResultItem setİd(String value) { this.ID = value; return this; }
public String getMessage() { return Message; }
public TSValidationResultItem setMessage(String value) { this.Message = value; return this; }
public String getResult() { return Result; }
public TSValidationResultItem setResult(String value) { this.Result = value; return this; }
public Boolean isSuccessed() { return Successed; }
public TSValidationResultItem setSuccessed(Boolean value) { this.Successed = value; return this; }
public ArrayList<TSValidationResultItem> getChild() { return Child; }
public TSValidationResultItem setChild(ArrayList<TSValidationResultItem> value) { this.Child = value; return this; }
}
public static class SgValidationResultItem
{
public String ID = null;
public String Message = null;
public String Result = null;
public Boolean Successed = null;
public SgValidationResultItem Child = null;
public String getİd() { return ID; }
public SgValidationResultItem setİd(String value) { this.ID = value; return this; }
public String getMessage() { return Message; }
public SgValidationResultItem setMessage(String value) { this.Message = value; return this; }
public String getResult() { return Result; }
public SgValidationResultItem setResult(String value) { this.Result = value; return this; }
public Boolean isSuccessed() { return Successed; }
public SgValidationResultItem setSuccessed(Boolean value) { this.Successed = value; return this; }
public SgValidationResultItem getChild() { return Child; }
public SgValidationResultItem setChild(SgValidationResultItem value) { this.Child = value; return this; }
}
public static class CertValidationResultItem
{
public String ID = null;
public String Message = null;
public String Result = null;
public Boolean Successed = null;
public CertValidationResultItem Child = null;
public String getİd() { return ID; }
public CertValidationResultItem setİd(String value) { this.ID = value; return this; }
public String getMessage() { return Message; }
public CertValidationResultItem setMessage(String value) { this.Message = value; return this; }
public String getResult() { return Result; }
public CertValidationResultItem setResult(String value) { this.Result = value; return this; }
public Boolean isSuccessed() { return Successed; }
public CertValidationResultItem setSuccessed(Boolean value) { this.Successed = value; return this; }
public CertValidationResultItem getChild() { return Child; }
public CertValidationResultItem setChild(CertValidationResultItem value) { this.Child = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Verification/{ClientKey} HTTP/1.1
Host: imzagerservices.eyyubiye.bel.tr
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"ClientKey":"String","AuthorizationID":"String","DocumentId":0,"UserSSN":"String","Mode":"String","IsContentInclude":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{Unable to show example output for type 'VerificationResponse' using the custom 'other' filter}One or more errors occurred.