Skip to content

Commit

Permalink
Fix lock to sign date property
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNDRmac committed Aug 27, 2023
1 parent 17a84fb commit 1299478
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org).
## [Unreleased] - TBD
### 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
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
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; }
}
}

0 comments on commit 1299478

Please sign in to comment.