Skip to content

Commit

Permalink
run codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
mickhansen committed Jul 17, 2024
1 parent 028fe78 commit b63c502
Showing 1 changed file with 36 additions and 5 deletions.
41 changes: 36 additions & 5 deletions Criipto.Signatures/Models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,10 @@ public class CompositeSignature : Signature {
#region members
[JsonProperty("signatory")]
public Signatory signatory { get; set; }

[JsonProperty("signatures")]
[JsonConverter(typeof(CompositionTypeListConverter))]
public List<SingleSignature> signatures { get; set; }
#endregion
}
#endregion
Expand Down Expand Up @@ -1202,7 +1206,7 @@ public dynamic GetInputObject()
#endregion

#region DrawableSignature
public class DrawableSignature : Signature {
public class DrawableSignature : Signature, SingleSignature {
#region members
[JsonProperty("image")]
public byte[] image { get; set; }
Expand All @@ -1229,7 +1233,7 @@ public class DrawableSignatureEvidenceProvider : SignatureEvidenceProvider, Sing
#endregion

#region EmptySignature
public class EmptySignature : Signature {
public class EmptySignature : Signature, SingleSignature {
#region members
[JsonProperty("signatory")]
public Signatory signatory { get; set; }
Expand Down Expand Up @@ -1353,7 +1357,7 @@ public class ExtendSignatureOrderOutput {
#endregion

#region JWTSignature
public class JWTSignature : Signature {
public class JWTSignature : Signature, SingleSignature {
#region members
[JsonProperty("jwks")]
public string jwks { get; set; }
Expand Down Expand Up @@ -2517,9 +2521,31 @@ public enum SignatoryDocumentStatus {
#region SignatoryEvidenceProviderInput
public class SignatoryEvidenceProviderInput {
#region members
public AllOfEvidenceProviderInput allOf { get; set; }

/// <summary>
/// Criipto Verify based evidence for signatures.
/// </summary>
public CriiptoVerifyProviderInput criiptoVerify { get; set; }

/// <summary>
/// Hand drawn signature evidence for signatures.
/// </summary>
public DrawableEvidenceProviderInput drawable { get; set; }

[Required]
[JsonRequired]
public string id { get; set; }

/// <summary>
/// TEST environment only. Does not manipulate the PDF, use for integration or webhook testing.
/// </summary>
public NoopEvidenceProviderInput noop { get; set; }

/// <summary>
/// OIDC/JWT based evidence for signatures.
/// </summary>
public OidcEvidenceProviderInput oidc { get; set; }
#endregion

#region methods
Expand Down Expand Up @@ -2549,12 +2575,12 @@ public dynamic GetInputObject()
#region SignatoryEvidenceValidationInput
public class SignatoryEvidenceValidationInput {
#region members
public bool? boolean { get; set; }

[Required]
[JsonRequired]
public string key { get; set; }

[Required]
[JsonRequired]
public string value { get; set; }
#endregion

Expand Down Expand Up @@ -3028,6 +3054,11 @@ public dynamic GetInputObject()
}
#endregion

public interface SingleSignature {
[JsonProperty("signatory")]
Signatory signatory { get; set; }
}

public interface SingleSignatureEvidenceProvider {
[JsonProperty("id")]
string id { get; set; }
Expand Down

0 comments on commit b63c502

Please sign in to comment.