diff --git a/Box.V2.Test/BoxSignRequestsManagerTest.cs b/Box.V2.Test/BoxSignRequestsManagerTest.cs index 3b4b3b7fb..64eb1e55e 100644 --- a/Box.V2.Test/BoxSignRequestsManagerTest.cs +++ b/Box.V2.Test/BoxSignRequestsManagerTest.cs @@ -164,6 +164,7 @@ public async Task CreateSignRequest_OptionalParams_Success() Assert.AreEqual("example@gmail.com", response.Signers[0].Email); Assert.AreEqual("https://box.com/redirect_url_signer_1", response.Signers[0].RedirectUrl.ToString()); Assert.AreEqual("https://box.com/declined_redirect_url_signer_1", response.Signers[0].DeclinedRedirectUrl.ToString()); + Assert.AreEqual("https://app.box.com/embed/sign/document/bf7aaac6/", response.Signers[0].IframeableEmbedUrl); 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); @@ -213,6 +214,7 @@ public async Task GetSignRequest_Success() Assert.AreEqual("example@gmail.com", response.Entries[0].Signers[0].Email); Assert.AreEqual("https://box.com/redirect_url_signer_1", response.Entries[0].Signers[0].RedirectUrl.ToString()); Assert.AreEqual("https://box.com/declined_redirect_url_signer_1", response.Entries[0].Signers[0].DeclinedRedirectUrl.ToString()); + Assert.AreEqual("https://app.box.com/embed/sign/document/bf7aaac6/", response.Entries[0].Signers[0].IframeableEmbedUrl); Assert.AreEqual("12345", response.Entries[0].ParentFolder.Id); Assert.IsTrue(response.Entries[0].IsDocumentPreparationNeeded); Assert.IsTrue(response.Entries[0].AreRemindersEnabled); @@ -259,6 +261,7 @@ public async Task GetSignRequestById_Success() Assert.AreEqual("example@gmail.com", response.Signers[0].Email); Assert.AreEqual("https://box.com/redirect_url_signer_1", response.Signers[0].RedirectUrl.ToString()); Assert.AreEqual("https://box.com/declined_redirect_url_signer_1", response.Signers[0].DeclinedRedirectUrl.ToString()); + Assert.AreEqual("https://app.box.com/embed/sign/document/bf7aaac6/", response.Signers[0].IframeableEmbedUrl); 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); diff --git a/Box.V2.Test/Fixtures/BoxSignRequest/CancelSignRequest200.json b/Box.V2.Test/Fixtures/BoxSignRequest/CancelSignRequest200.json index f8383479a..959d3d4a2 100644 --- a/Box.V2.Test/Fixtures/BoxSignRequest/CancelSignRequest200.json +++ b/Box.V2.Test/Fixtures/BoxSignRequest/CancelSignRequest200.json @@ -70,7 +70,8 @@ ], "embed_url": "https://example.com", "redirect_url": "https://box.com/redirect_url_signer_1", - "declined_redirect_url": "https://box.com/declined_redirect_url_signer_1" + "declined_redirect_url": "https://box.com/declined_redirect_url_signer_1", + "iframeable_embed_url": "https://app.box.com/embed/sign/document/bf7aaac6/" } ], "signing_log": { diff --git a/Box.V2.Test/Fixtures/BoxSignRequest/CreateSignRequest200.json b/Box.V2.Test/Fixtures/BoxSignRequest/CreateSignRequest200.json index 57b43b48f..69a076924 100644 --- a/Box.V2.Test/Fixtures/BoxSignRequest/CreateSignRequest200.json +++ b/Box.V2.Test/Fixtures/BoxSignRequest/CreateSignRequest200.json @@ -70,7 +70,8 @@ ], "embed_url": "https://example.com", "redirect_url": "https://box.com/redirect_url_signer_1", - "declined_redirect_url": "https://box.com/declined_redirect_url_signer_1" + "declined_redirect_url": "https://box.com/declined_redirect_url_signer_1", + "iframeable_embed_url": "https://app.box.com/embed/sign/document/bf7aaac6/" } ], "signing_log": { diff --git a/Box.V2.Test/Fixtures/BoxSignRequest/GetAllSignRequests200.json b/Box.V2.Test/Fixtures/BoxSignRequest/GetAllSignRequests200.json index 3409ce225..65542e38c 100644 --- a/Box.V2.Test/Fixtures/BoxSignRequest/GetAllSignRequests200.json +++ b/Box.V2.Test/Fixtures/BoxSignRequest/GetAllSignRequests200.json @@ -36,7 +36,8 @@ ], "embed_url": "https://example.com", "redirect_url": "https://box.com/redirect_url_signer_1", - "declined_redirect_url": "https://box.com/declined_redirect_url_signer_1" + "declined_redirect_url": "https://box.com/declined_redirect_url_signer_1", + "iframeable_embed_url": "https://app.box.com/embed/sign/document/bf7aaac6/" } ], "source_files": [ diff --git a/Box.V2.Test/Fixtures/BoxSignRequest/GetSignRequest200.json b/Box.V2.Test/Fixtures/BoxSignRequest/GetSignRequest200.json index 57b43b48f..69a076924 100644 --- a/Box.V2.Test/Fixtures/BoxSignRequest/GetSignRequest200.json +++ b/Box.V2.Test/Fixtures/BoxSignRequest/GetSignRequest200.json @@ -70,7 +70,8 @@ ], "embed_url": "https://example.com", "redirect_url": "https://box.com/redirect_url_signer_1", - "declined_redirect_url": "https://box.com/declined_redirect_url_signer_1" + "declined_redirect_url": "https://box.com/declined_redirect_url_signer_1", + "iframeable_embed_url": "https://app.box.com/embed/sign/document/bf7aaac6/" } ], "signing_log": { diff --git a/Box.V2/Models/BoxSignRequestSigner.cs b/Box.V2/Models/BoxSignRequestSigner.cs index fd3433c9c..818253bdc 100644 --- a/Box.V2/Models/BoxSignRequestSigner.cs +++ b/Box.V2/Models/BoxSignRequestSigner.cs @@ -21,6 +21,7 @@ public class BoxSignRequestSigner public const string FieldSignerDecision = "signer_decision"; public const string FieldDeclinedRedirectUrl = "declined_redirect_url"; public const string FieldRedirectUrl = "redirect_url"; + public const string FieldIframeableEmbedUrl = "iframeable_embed_url"; /// /// Email address of the signer. @@ -90,6 +91,12 @@ public class BoxSignRequestSigner /// [JsonProperty(PropertyName = FieldRedirectUrl)] public virtual Uri RedirectUrl { get; private set; } + + /// + /// This URL is specifically designed for signing documents within an HTML iframe tag. + /// + [JsonProperty(PropertyName = FieldIframeableEmbedUrl)] + public virtual string IframeableEmbedUrl { get; private set; } } ///