Skip to content

Commit 38ee50e

Browse files
authored
chore: Sign request support multiple documents (#826)
1 parent 8f39533 commit 38ee50e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/usage/sign_requests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Create Sign Request
2020
------------------------
2121

2222
The [`client.create_sign_request(files, signers, parent_folder_id, prefill_tags=None, are_reminders_enabled=None, are_text_signatures_enabled=None, days_valid=None, email_message=None, email_subject=None, external_id=None, is_document_preparation_needed=None, redirect_url=None, declined_redirect_url=None)`][create-sign-request]
23-
method will create a Sign Request. You need to provide at least one file (from which the signing document will be created) and at least one signer to receive the Sign Request.
23+
method will create a Sign Request. You need to provide at least one file and up to 10 files (from which the signing document will be created) with at least one signer to receive the Sign Request.
2424

2525
<!-- sample post_sign_requests -->
2626
```python

test/unit/client/test_client.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,11 @@ def test_create_sign_request(mock_client, mock_box_session, mock_sign_request_re
16921692
'id': '12345',
16931693
'type': 'file'
16941694
}
1695-
files = [source_file]
1695+
source_file2 = {
1696+
'id': '34567',
1697+
'type': 'file'
1698+
}
1699+
files = [source_file, source_file2]
16961700

16971701
signer = {
16981702
'email': '[email protected]'
@@ -1705,6 +1709,10 @@ def test_create_sign_request(mock_client, mock_box_session, mock_sign_request_re
17051709
{
17061710
'id': source_file['id'],
17071711
'type': source_file['type']
1712+
},
1713+
{
1714+
'id': source_file2['id'],
1715+
'type': source_file2['type']
17081716
}
17091717
],
17101718
'signers': [

0 commit comments

Comments
 (0)