Skip to content

Commit 56a93ac

Browse files
feat(boxsdkgen): Support new sign request metadata (box/box-openapi#565) (#1221)
1 parent d0204ea commit 56a93ac

File tree

5 files changed

+45
-3
lines changed

5 files changed

+45
-3
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "35c5d34", "specHash": "e7ce024", "version": "4.1.0" }
1+
{ "engineHash": "49f3695", "specHash": "7e4908e", "version": "4.1.0" }

box_sdk_gen/schemas/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,14 @@
274274

275275
from box_sdk_gen.schemas.sign_request_signer_input import *
276276

277-
from box_sdk_gen.schemas.sign_request_signer import *
278-
279277
from box_sdk_gen.schemas.sign_request_base import *
280278

281279
from box_sdk_gen.schemas.sign_request_create_request import *
282280

281+
from box_sdk_gen.schemas.sign_request_signer_attachment import *
282+
283+
from box_sdk_gen.schemas.sign_request_signer import *
284+
283285
from box_sdk_gen.schemas.sign_request import *
284286

285287
from box_sdk_gen.schemas.sign_requests import *

box_sdk_gen/schemas/sign_request.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def __init__(
7979
auto_expire_at: Optional[DateTime] = None,
8080
parent_folder: Optional[FolderMini] = None,
8181
collaborator_level: Optional[str] = None,
82+
short_id: Optional[str] = None,
83+
created_at: Optional[DateTime] = None,
84+
finished_at: Optional[DateTime] = None,
8285
sender_email: Optional[str] = None,
8386
sender_id: Optional[int] = None,
8487
is_document_preparation_needed: Optional[bool] = None,
@@ -124,6 +127,12 @@ def __init__(
124127
:type auto_expire_at: Optional[DateTime], optional
125128
:param collaborator_level: The collaborator level of the user to the sign request. Values can include "owner", "editor", and "viewer"., defaults to None
126129
:type collaborator_level: Optional[str], optional
130+
:param short_id: Short identifier for the sign request., defaults to None
131+
:type short_id: Optional[str], optional
132+
:param created_at: Timestamp marking when the sign request was created., defaults to None
133+
:type created_at: Optional[DateTime], optional
134+
:param finished_at: Timestamp indicating when all signing actions completed., defaults to None
135+
:type finished_at: Optional[DateTime], optional
127136
:param sender_email: The email address of the sender of the sign request., defaults to None
128137
:type sender_email: Optional[str], optional
129138
:param sender_id: The user ID of the sender of the sign request., defaults to None
@@ -183,5 +192,8 @@ def __init__(
183192
self.auto_expire_at = auto_expire_at
184193
self.parent_folder = parent_folder
185194
self.collaborator_level = collaborator_level
195+
self.short_id = short_id
196+
self.created_at = created_at
197+
self.finished_at = finished_at
186198
self.sender_email = sender_email
187199
self.sender_id = sender_id

box_sdk_gen/schemas/sign_request_signer.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
from box_sdk_gen.schemas.sign_request_signer_input import SignRequestSignerInput
1616

17+
from box_sdk_gen.schemas.sign_request_signer_attachment import (
18+
SignRequestSignerAttachment,
19+
)
20+
1721
from box_sdk_gen.box.errors import BoxSDKError
1822

1923
from box_sdk_gen.internal.utils import DateTime
@@ -58,6 +62,7 @@ def __init__(
5862
inputs: Optional[List[SignRequestSignerInput]] = None,
5963
embed_url: Optional[str] = None,
6064
iframeable_embed_url: Optional[str] = None,
65+
attachments: Optional[List[SignRequestSignerAttachment]] = None,
6166
email: Optional[str] = None,
6267
role: Optional[SignRequestCreateSignerRoleField] = None,
6368
is_in_person: Optional[bool] = None,
@@ -86,6 +91,8 @@ def __init__(
8691
parameter was passed in the
8792
`create Box Sign request` call., defaults to None
8893
:type iframeable_embed_url: Optional[str], optional
94+
:param attachments: Attachments that the signer uploaded., defaults to None
95+
:type attachments: Optional[List[SignRequestSignerAttachment]], optional
8996
:param email: Email address of the signer.
9097
The email address of the signer is required when making signature requests, except when using templates that are configured to include emails., defaults to None
9198
:type email: Optional[str], optional
@@ -157,3 +164,4 @@ def __init__(
157164
self.inputs = inputs
158165
self.embed_url = embed_url
159166
self.iframeable_embed_url = iframeable_embed_url
167+
self.attachments = attachments
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from typing import Optional
2+
3+
from box_sdk_gen.internal.base_object import BaseObject
4+
5+
from box_sdk_gen.box.errors import BoxSDKError
6+
7+
8+
class SignRequestSignerAttachment(BaseObject):
9+
def __init__(
10+
self, *, id: Optional[str] = None, name: Optional[str] = None, **kwargs
11+
):
12+
"""
13+
:param id: Identifier of the attachment file., defaults to None
14+
:type id: Optional[str], optional
15+
:param name: Display name of the attachment file., defaults to None
16+
:type name: Optional[str], optional
17+
"""
18+
super().__init__(**kwargs)
19+
self.id = id
20+
self.name = name

0 commit comments

Comments
 (0)