Skip to content
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
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@ The format is based on [Keep a Changelog](http://keepachangelog.com)
and this project adheres to [Semantic Versioning](http://semver.org).

## [Unreleased] - TBD


## [1.2.2] - 2023-08-27
### Added
- `IEventSubscription` interface for any operation with Events
- Webhooks 2.0 API are implemented
- Webhooks 2.0 API partially implemented
- `ValidatorId` and `LockToSignDate` properties added to the signNow document model (`FieldJsonAttributes`)

### Changed
- Token type is always set to `Bearer` or `Basic` explicitly in every service

### Fixed
- `LockToSignDate` property serialization for Date validator tag


## [1.2.1] - 2023-07-13
### Added
Expand Down Expand Up @@ -199,7 +206,8 @@ and this project adheres to [Semantic Versioning](http://semver.org).
[create freeform invite]: https://github.com/signnow/SignNow.NET/blob/develop/README.md#create-freeform-invite

<!-- Links to compare changes from previous version vs new version -->
[Unreleased]: https://github.com/signnow/SignNow.NET/compare/1.2.1...HEAD
[Unreleased]: https://github.com/signnow/SignNow.NET/compare/1.2.2...HEAD
[1.2.2]: https://github.com/signnow/SignNow.NET/compare/1.2.1...1.2.2
[1.2.1]: https://github.com/signnow/SignNow.NET/compare/1.2.0...1.2.1
[1.2.0]: https://github.com/signnow/SignNow.NET/compare/1.1.1...1.2.0
[1.1.1]: https://github.com/signnow/SignNow.NET/compare/1.1.0...1.1.1
Expand Down
4 changes: 2 additions & 2 deletions SignNow.Net.Examples/SignNow.Net.Examples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.1">
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion SignNow.Net.Test/SignNow.Net.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="Moq" Version="4.17.2" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.IO;
using Bogus;
using SignNow.Net.Model;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public void ShouldSerializeDateValidatorTag()
""required"": true,
""width"": 100,
""height"": 15,
""lsd"": ""y"",
""lock_to_sign_date"": true,
""validator_id"": ""13435fa6c2a17f83177fcbb5c4a9376ce85befeb""
}";

Expand Down
3 changes: 1 addition & 2 deletions SignNow.Net/Model/ComplexTags/DateValidatorTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public class DateValidatorTag : ComplexTagWithLabel
/// <summary>
/// Lock Signing Date option
/// </summary>
[JsonProperty("lsd", Order = 1)]
[JsonConverter(typeof(BoolToStringYNJsonConverter))]
[JsonProperty("lock_to_sign_date", Order = 1)]
public bool LockSigningDate { get; set; }

/// <summary>
Expand Down
12 changes: 12 additions & 0 deletions SignNow.Net/Model/FieldContents/FieldJsonAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,17 @@ public class FieldJsonAttributes
/// </summary>
[JsonProperty("name")]
public string Name { get; set; }

/// <summary>
/// Use the current date when the recipient is signing the document as a Date field value.
/// </summary>
[JsonProperty("lock_to_sign_date", NullValueHandling = NullValueHandling.Ignore)]
public bool LockToSignDate { get; set; }

/// <summary>
/// ID of regular expression validator supported by signNow.
/// </summary>
[JsonProperty("validator_id", NullValueHandling = NullValueHandling.Ignore)]
public string ValidatorId { get; set; }
}
}
2 changes: 1 addition & 1 deletion SignNow.Net/SignNow.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<None Include="icon.png" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.1">
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion SignNow.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>1.2.1-dev</Version>
<Version>1.2.2</Version>
<Authors>signNow</Authors>
<Company>signNow</Company>
<Title>SignNow.NET</Title>
Expand Down