Skip to content

Commit

Permalink
feat: move notification suppression to public schema (box/box-openapi…
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build committed May 16, 2024
1 parent 700265b commit 7fb3612
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "3eadef2", "specHash": "f26f46d", "version": "0.6.5" }
{ "engineHash": "3eadef2", "specHash": "6c3dd22", "version": "0.6.5" }
4 changes: 4 additions & 0 deletions box_sdk_gen/managers/sign_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def create_sign_request(
external_id: Optional[str] = None,
is_phone_verification_required_to_view: Optional[bool] = None,
template_id: Optional[str] = None,
external_system_name: Optional[str] = None,
extra_headers: Optional[Dict[str, Optional[str]]] = None
) -> SignRequest:
"""
Expand Down Expand Up @@ -274,6 +275,8 @@ def create_sign_request(
:type is_phone_verification_required_to_view: Optional[bool], optional
:param template_id: When a signature request is created from a template this field will indicate the id of that template., defaults to None
:type template_id: Optional[str], optional
:param external_system_name: Used as an optional system name to appear in the signature log next to the signers who have been assigned an `embed_url_external_id`, defaults to None
:type external_system_name: Optional[str], optional
:param extra_headers: Extra headers that will be included in the HTTP request., defaults to None
:type extra_headers: Optional[Dict[str, Optional[str]]], optional
"""
Expand All @@ -297,6 +300,7 @@ def create_sign_request(
'external_id': external_id,
'is_phone_verification_required_to_view': is_phone_verification_required_to_view,
'template_id': template_id,
'external_system_name': external_system_name,
}
headers_map: Dict[str, str] = prepare_params({**extra_headers})
response: FetchResponse = fetch(
Expand Down
4 changes: 4 additions & 0 deletions box_sdk_gen/schemas/sign_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def __init__(
external_id: Optional[str] = None,
is_phone_verification_required_to_view: Optional[bool] = None,
template_id: Optional[str] = None,
external_system_name: Optional[str] = None,
**kwargs
):
"""
Expand Down Expand Up @@ -141,6 +142,8 @@ def __init__(
:type is_phone_verification_required_to_view: Optional[bool], optional
:param template_id: When a signature request is created from a template this field will indicate the id of that template., defaults to None
:type template_id: Optional[str], optional
:param external_system_name: Used as an optional system name to appear in the signature log next to the signers who have been assigned an `embed_url_external_id`, defaults to None
:type external_system_name: Optional[str], optional
"""
super().__init__(
is_document_preparation_needed=is_document_preparation_needed,
Expand All @@ -156,6 +159,7 @@ def __init__(
external_id=external_id,
is_phone_verification_required_to_view=is_phone_verification_required_to_view,
template_id=template_id,
external_system_name=external_system_name,
**kwargs
)
self.type = type
Expand Down
4 changes: 4 additions & 0 deletions box_sdk_gen/schemas/sign_request_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def __init__(
external_id: Optional[str] = None,
is_phone_verification_required_to_view: Optional[bool] = None,
template_id: Optional[str] = None,
external_system_name: Optional[str] = None,
**kwargs
):
"""
Expand Down Expand Up @@ -53,6 +54,8 @@ def __init__(
:type is_phone_verification_required_to_view: Optional[bool], optional
:param template_id: When a signature request is created from a template this field will indicate the id of that template., defaults to None
:type template_id: Optional[str], optional
:param external_system_name: Used as an optional system name to appear in the signature log next to the signers who have been assigned an `embed_url_external_id`, defaults to None
:type external_system_name: Optional[str], optional
"""
super().__init__(**kwargs)
self.is_document_preparation_needed = is_document_preparation_needed
Expand All @@ -70,3 +73,4 @@ def __init__(
is_phone_verification_required_to_view
)
self.template_id = template_id
self.external_system_name = external_system_name
4 changes: 4 additions & 0 deletions box_sdk_gen/schemas/sign_request_create_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def __init__(
external_id: Optional[str] = None,
is_phone_verification_required_to_view: Optional[bool] = None,
template_id: Optional[str] = None,
external_system_name: Optional[str] = None,
**kwargs
):
"""
Expand Down Expand Up @@ -77,6 +78,8 @@ def __init__(
:type is_phone_verification_required_to_view: Optional[bool], optional
:param template_id: When a signature request is created from a template this field will indicate the id of that template., defaults to None
:type template_id: Optional[str], optional
:param external_system_name: Used as an optional system name to appear in the signature log next to the signers who have been assigned an `embed_url_external_id`, defaults to None
:type external_system_name: Optional[str], optional
"""
super().__init__(
is_document_preparation_needed=is_document_preparation_needed,
Expand All @@ -92,6 +95,7 @@ def __init__(
external_id=external_id,
is_phone_verification_required_to_view=is_phone_verification_required_to_view,
template_id=template_id,
external_system_name=external_system_name,
**kwargs
)
self.signers = signers
Expand Down
4 changes: 4 additions & 0 deletions box_sdk_gen/schemas/sign_request_create_signer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def __init__(
verification_phone_number: Optional[str] = None,
password: Optional[str] = None,
signer_group_id: Optional[str] = None,
suppress_notifications: Optional[bool] = None,
**kwargs
):
"""
Expand Down Expand Up @@ -76,6 +77,8 @@ def __init__(
determine which signers belongs to same group. A successful response will provide a generated UUID value
instead for signers in the same signer group., defaults to None
:type signer_group_id: Optional[str], optional
:param suppress_notifications: If true, no emails about the sign request will be sent, defaults to None
:type suppress_notifications: Optional[bool], optional
"""
super().__init__(**kwargs)
self.email = email
Expand All @@ -89,3 +92,4 @@ def __init__(
self.verification_phone_number = verification_phone_number
self.password = password
self.signer_group_id = signer_group_id
self.suppress_notifications = suppress_notifications
4 changes: 4 additions & 0 deletions box_sdk_gen/schemas/sign_request_signer.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def __init__(
verification_phone_number: Optional[str] = None,
password: Optional[str] = None,
signer_group_id: Optional[str] = None,
suppress_notifications: Optional[bool] = None,
**kwargs
):
"""
Expand Down Expand Up @@ -130,6 +131,8 @@ def __init__(
determine which signers belongs to same group. A successful response will provide a generated UUID value
instead for signers in the same signer group., defaults to None
:type signer_group_id: Optional[str], optional
:param suppress_notifications: If true, no emails about the sign request will be sent, defaults to None
:type suppress_notifications: Optional[bool], optional
"""
super().__init__(
email=email,
Expand All @@ -143,6 +146,7 @@ def __init__(
verification_phone_number=verification_phone_number,
password=password,
signer_group_id=signer_group_id,
suppress_notifications=suppress_notifications,
**kwargs
)
self.has_viewed_document = has_viewed_document
Expand Down
2 changes: 2 additions & 0 deletions docs/sign_requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ client.sign_requests.create_sign_request([SignRequestCreateSigner(email=signer_1
- Forces signers to verify a text message prior to viewing the document. You must specify the phone number of signers to have this setting apply to them.
- template_id `Optional[str]`
- When a signature request is created from a template this field will indicate the id of that template.
- external_system_name `Optional[str]`
- Used as an optional system name to appear in the signature log next to the signers who have been assigned an `embed_url_external_id`
- extra_headers `Optional[Dict[str, Optional[str]]]`
- Extra headers that will be included in the HTTP request.

Expand Down

0 comments on commit 7fb3612

Please sign in to comment.