diff --git a/Box.V2.Test/BoxSignRequestsManagerTest.cs b/Box.V2.Test/BoxSignRequestsManagerTest.cs
index e6b013c0c..d44b19932 100644
--- a/Box.V2.Test/BoxSignRequestsManagerTest.cs
+++ b/Box.V2.Test/BoxSignRequestsManagerTest.cs
@@ -80,6 +80,9 @@ public async Task CreateSignRequest_RequiredParams_Success()
Assert.AreEqual(1, response.Signers.Count);
Assert.AreEqual("example@gmail.com", response.Signers[0].Email);
Assert.AreEqual("12345", response.ParentFolder.Id);
+ Assert.AreEqual(1, response.Signers[0].Inputs.Count);
+ Assert.IsTrue(response.Signers[0].Inputs[0].CheckboxValue.Value);
+ Assert.AreEqual(BoxSignRequestSingerInputContentType.checkbox, response.Signers[0].Inputs[0].ContentType);
}
[TestMethod]
@@ -153,6 +156,9 @@ public async Task CreateSignRequest_OptionalParams_Success()
Assert.AreEqual("12345", response.SourceFiles[0].Id);
Assert.AreEqual(1, response.Signers.Count);
Assert.AreEqual("example@gmail.com", response.Signers[0].Email);
+ Assert.AreEqual(1, response.Signers[0].Inputs.Count);
+ Assert.IsTrue(response.Signers[0].Inputs[0].CheckboxValue.Value);
+ Assert.AreEqual(BoxSignRequestSingerInputContentType.checkbox, response.Signers[0].Inputs[0].ContentType);
Assert.AreEqual("12345", response.ParentFolder.Id);
Assert.IsTrue(response.IsDocumentPreparationNeeded);
Assert.IsTrue(response.AreRemindersEnabled);
@@ -236,6 +242,9 @@ public async Task GetSignRequestById_Success()
Assert.AreEqual("12345", response.SourceFiles[0].Id);
Assert.AreEqual(1, response.Signers.Count);
Assert.AreEqual("example@gmail.com", response.Signers[0].Email);
+ Assert.AreEqual(1, response.Signers[0].Inputs.Count);
+ Assert.IsTrue(response.Signers[0].Inputs[0].CheckboxValue.Value);
+ Assert.AreEqual(BoxSignRequestSingerInputContentType.checkbox, response.Signers[0].Inputs[0].ContentType);
Assert.AreEqual("12345", response.ParentFolder.Id);
Assert.IsTrue(response.IsDocumentPreparationNeeded);
Assert.IsTrue(response.AreRemindersEnabled);
diff --git a/Box.V2.Test/Fixtures/BoxSignRequest/CancelSignRequest200.json b/Box.V2.Test/Fixtures/BoxSignRequest/CancelSignRequest200.json
index a45afb155..8b9a310d7 100644
--- a/Box.V2.Test/Fixtures/BoxSignRequest/CancelSignRequest200.json
+++ b/Box.V2.Test/Fixtures/BoxSignRequest/CancelSignRequest200.json
@@ -62,7 +62,8 @@
"checkbox_value": true,
"date_value": "2021-04-26T08:12:13.982Z",
"type": "text",
- "page_index": 4
+ "page_index": 4,
+ "content_type": "checkbox"
}
],
"embed_url": "https://example.com"
diff --git a/Box.V2.Test/Fixtures/BoxSignRequest/CreateSignRequest200.json b/Box.V2.Test/Fixtures/BoxSignRequest/CreateSignRequest200.json
index 6b9c07473..18c1388b9 100644
--- a/Box.V2.Test/Fixtures/BoxSignRequest/CreateSignRequest200.json
+++ b/Box.V2.Test/Fixtures/BoxSignRequest/CreateSignRequest200.json
@@ -62,7 +62,8 @@
"checkbox_value": true,
"date_value": "2021-04-26T08:12:13.982Z",
"type": "text",
- "page_index": 4
+ "page_index": 4,
+ "content_type": "checkbox"
}
],
"embed_url": "https://example.com"
diff --git a/Box.V2.Test/Fixtures/BoxSignRequest/GetAllSignRequests200.json b/Box.V2.Test/Fixtures/BoxSignRequest/GetAllSignRequests200.json
index 0b6867681..78fed1faa 100644
--- a/Box.V2.Test/Fixtures/BoxSignRequest/GetAllSignRequests200.json
+++ b/Box.V2.Test/Fixtures/BoxSignRequest/GetAllSignRequests200.json
@@ -30,7 +30,8 @@
"checkbox_value": true,
"date_value": "2021-04-26T08:12:13.982Z",
"type": "text",
- "page_index": 4
+ "page_index": 4,
+ "content_type": "checkbox"
}
],
"embed_url": "https://example.com"
diff --git a/Box.V2.Test/Fixtures/BoxSignRequest/GetSignRequest200.json b/Box.V2.Test/Fixtures/BoxSignRequest/GetSignRequest200.json
index 6b9c07473..18c1388b9 100644
--- a/Box.V2.Test/Fixtures/BoxSignRequest/GetSignRequest200.json
+++ b/Box.V2.Test/Fixtures/BoxSignRequest/GetSignRequest200.json
@@ -62,7 +62,8 @@
"checkbox_value": true,
"date_value": "2021-04-26T08:12:13.982Z",
"type": "text",
- "page_index": 4
+ "page_index": 4,
+ "content_type": "checkbox"
}
],
"embed_url": "https://example.com"
diff --git a/Box.V2/Models/BoxSignRequestSigner.cs b/Box.V2/Models/BoxSignRequestSigner.cs
index c2e6fc1ea..812e93bdf 100644
--- a/Box.V2/Models/BoxSignRequestSigner.cs
+++ b/Box.V2/Models/BoxSignRequestSigner.cs
@@ -96,6 +96,7 @@ public class BoxSignRequestSignerInput
{
public const string FieldType = "type";
public const string FieldCheckboxValue = "checkbox_value";
+ public const string FieldContentType = "content_type";
public const string FieldDateValue = "date_value";
public const string FieldDocumentTagId = "document_tag_id";
public const string FieldPageIndex = "page_index";
@@ -114,6 +115,13 @@ public class BoxSignRequestSignerInput
[JsonProperty(PropertyName = FieldCheckboxValue)]
public virtual bool? CheckboxValue { get; private set; }
+ ///
+ /// Content type of input.
+ ///
+ [JsonProperty(PropertyName = FieldContentType)]
+ [JsonConverter(typeof(StringEnumConverter))]
+ public virtual BoxSignRequestSingerInputContentType ContentType { get; private set; }
+
///
/// Date prefill value.
///
@@ -150,6 +158,25 @@ public enum BoxSignRequestSingerInputType
checkbox
}
+ ///
+ /// Content type of input.
+ ///
+ public enum BoxSignRequestSingerInputContentType
+ {
+ initial,
+ stamp,
+ signature,
+ company,
+ title,
+ email,
+ full_name,
+ first_name,
+ last_name,
+ text,
+ date,
+ checkbox
+ }
+
///
/// Final decision made by the signer.
///