Skip to content

Commit

Permalink
Merge pull request #83 from mrmontreal/PB-91102
Browse files Browse the repository at this point in the history
PB-91102: Add code to support chained signing.
  • Loading branch information
mrmontreal authored Jan 20, 2023
2 parents 69aa158 + c3c56e2 commit 80a7e68
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/SDK/Document.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ public External External
set;
}

public Nullable<Boolean> ExternalSigned {
get;
set;
}

public List<Field> Fields
{
get
Expand Down
5 changes: 5 additions & 0 deletions src/SDK/Internal/Conversion/DocumentConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ internal Document ToSDKDocument()
document.Tagged = apiDocument.Tagged;
}

if ( apiDocument.ExternalSigned != null )
{
document.ExternalSigned = apiDocument.ExternalSigned;
}

return document;
}

Expand Down
2 changes: 1 addition & 1 deletion src/SDK/Internal/HttpMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace OneSpanSign.Sdk.Internal
/// </summary>
public class HttpMethods
{
private const string ESL_API_VERSION = "11.48";
private const string ESL_API_VERSION = "11.49";
private const string ESL_API_USER_AGENT = ".Net SDK v" + ESL_API_VERSION;
private const string ESL_API_VERSION_HEADER = "esl-api-version=" + ESL_API_VERSION;

Expand Down
6 changes: 6 additions & 0 deletions src/SDK/Models/Document.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ public string SignedHash {
public string SignerVerificationToken {
get; set;
}

[JsonProperty("externalSigned")]
public Nullable<Boolean> ExternalSigned
{
get; set;
}

}
}
4 changes: 2 additions & 2 deletions src/SDK/OneSpanSign.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Authors>Simon Levy</Authors>
<Company>OneSpan</Company>
<Product>OneSpan Sign SDK</Product>
<Version>11.48</Version>
<Version>11.49</Version>
<Copyright>OneSpan</Copyright>
<Description>.NET SDK for OneSpan Sign</Description>
<PackageProjectUrl>https://github.com/OneSpan/oss.sdk.net</PackageProjectUrl>
Expand All @@ -23,7 +23,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>

<!-- .NET Standard 2.0 references, compilation flags and build options -->
Expand Down

0 comments on commit 80a7e68

Please sign in to comment.