-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
iframeable_embed_url
field to BoxSignRequestSigner
class
Closes: SDK-3318
- Loading branch information
1 parent
d515262
commit 27998bd
Showing
5 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ public void createSignRequestSucceeds() { | |
final String prepareUrl = "https://prepareurl.com"; | ||
final String redirectUrl = "https://box.com/redirect_url"; | ||
final String declinedRedirectUrl = "https://box.com/declined_redirect_url"; | ||
final String iframeableEmedUrl = "https://app.box.com/embed/sign/document/gfhr4222-a331-494b-808b-79bc7f3992a3/f14d7098-a331-494b-808b-79bc7f3992a4"; | ||
|
||
final String signerRedirectUrl = "https://box.com/redirect_url_signer_1"; | ||
final String signerDeclinedRedirectUrl = "https://box.com/declined_redirect_url_signer_1"; | ||
|
@@ -63,6 +64,7 @@ public void createSignRequestSucceeds() { | |
|
||
List<BoxSignRequestSigner> signers = new ArrayList<>(); | ||
BoxSignRequestSigner newSigner = new BoxSignRequestSigner("[email protected]"); | ||
newSigner.setEmbedUrlExternalUserId("1234"); | ||
signers.add(newSigner); | ||
|
||
String parentFolderId = "55555"; | ||
|
@@ -77,6 +79,7 @@ public void createSignRequestSucceeds() { | |
BoxSignRequestSigner signer = signRequestInfo.getSigners().get(0); | ||
BoxSignerInput input = signer.getInputs().get(0); | ||
assertEquals(signerRedirectUrl, signer.getRedirectUrl()); | ||
assertEquals(iframeableEmedUrl, signer.getIframeableEmedUrl()); | ||
assertEquals(signerDeclinedRedirectUrl, signer.getDeclinedRedirectUrl()); | ||
|
||
assertEquals(prepareUrl, signRequestInfo.getPrepareUrl()); | ||
|
@@ -102,6 +105,7 @@ public void getSignRequestInfoSucceeds() { | |
final String prepareUrl = "https://prepareurl.com"; | ||
final String redirectUrl = "https://box.com/redirect_url"; | ||
final String declinedRedirectUrl = "https://box.com/declined_redirect_url"; | ||
final String iframeableEmedUrl = "https://app.box.com/embed/sign/document/gfhr4222-a331-494b-808b-79bc7f3992a3/f14d7098-a331-494b-808b-79bc7f3992a4"; | ||
|
||
final String signerRedirectUrl = "https://box.com/redirect_url_signer_1"; | ||
final String signerDeclinedRedirectUrl = "https://box.com/declined_redirect_url_signer_1"; | ||
|
@@ -125,6 +129,7 @@ public void getSignRequestInfoSucceeds() { | |
BoxSignerInput input = signer.getInputs().get(0); | ||
assertEquals(signerRedirectUrl, signer.getRedirectUrl()); | ||
assertEquals(signerDeclinedRedirectUrl, signer.getDeclinedRedirectUrl()); | ||
assertEquals(iframeableEmedUrl, signer.getIframeableEmedUrl()); | ||
|
||
assertEquals(prepareUrl, signRequestInfo.getPrepareUrl()); | ||
assertEquals(redirectUrl, signRequestInfo.getRedirectUrl()); | ||
|
@@ -148,6 +153,7 @@ public void getAllSignRequestsSucceeds() { | |
final String prepareUrl = "https://prepareurl.com"; | ||
final String redirectUrl = "https://box.com/redirect_url"; | ||
final String declinedRedirectUrl = "https://box.com/declined_redirect_url"; | ||
final String iframeableEmedUrl = "https://app.box.com/embed/sign/document/gfhr4222-a331-494b-808b-79bc7f3992a3/f14d7098-a331-494b-808b-79bc7f3992a4"; | ||
|
||
final String signerRedirectUrl = "https://box.com/redirect_url_signer_1"; | ||
final String signerDeclinedRedirectUrl = "https://box.com/declined_redirect_url_signer_1"; | ||
|
@@ -170,6 +176,7 @@ public void getAllSignRequestsSucceeds() { | |
BoxSignerInput input = signer.getInputs().get(0); | ||
assertEquals(signerRedirectUrl, signer.getRedirectUrl()); | ||
assertEquals(signerDeclinedRedirectUrl, signer.getDeclinedRedirectUrl()); | ||
assertEquals(iframeableEmedUrl, signer.getIframeableEmedUrl()); | ||
|
||
assertEquals(prepareUrl, firstSignRequest.getPrepareUrl()); | ||
assertEquals(redirectUrl, firstSignRequest.getRedirectUrl()); | ||
|