diff --git a/README.md b/README.md
index fe3fd13..5c2d671 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ Python 3.8+
Install using `pip`:
```shell
-python3 -m pip install dropbox-sign==1.9.0
+python3 -m pip install dropbox-sign==1.10-dev
```
Alternatively:
@@ -400,6 +400,6 @@ apisupport@hellosign.com
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 3.0.0
-- Package version: 1.9.0
+- Package version: 1.10-dev
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
diff --git a/VERSION b/VERSION
index f8e233b..1a9d86e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.9.0
+1.10-dev
diff --git a/bin/check-clean-git-status b/bin/check-clean-git-status
index debcd48..a2131c2 100755
--- a/bin/check-clean-git-status
+++ b/bin/check-clean-git-status
@@ -7,7 +7,6 @@ if [[ $(git status --porcelain) != '' ]]; then
printf "\t./run-build\n"
git status
- git diff
exit 1
else
diff --git a/docs/OAuthTokenRefreshRequest.md b/docs/OAuthTokenRefreshRequest.md
index 3dd2809..05a4e80 100644
--- a/docs/OAuthTokenRefreshRequest.md
+++ b/docs/OAuthTokenRefreshRequest.md
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
| `grant_type`*_required_ | ```str``` | When refreshing an existing token use `refresh_token`. | [default to 'refresh_token'] |
| `refresh_token`*_required_ | ```str``` | The token provided when you got the expired access token. | |
-| `client_id` | ```str``` | The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled. | |
-| `client_secret` | ```str``` | The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled. | |
+| `client_id` | ```str``` | The client ID for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings. | |
+| `client_secret` | ```str``` | The client secret for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings. | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/TemplateResponseDocumentFormFieldText.md b/docs/TemplateResponseDocumentFormFieldText.md
index 8d52035..c0ed796 100644
--- a/docs/TemplateResponseDocumentFormFieldText.md
+++ b/docs/TemplateResponseDocumentFormFieldText.md
@@ -11,6 +11,8 @@ Name | Type | Description | Notes
| `original_font_size` | ```int``` | Original font size used in this form field's text. | |
| `font_family` | ```str``` | Font family used in this form field's text. | |
| `validation_type` | ```str``` | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | |
+| `validation_custom_regex` | ```str``` | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | |
+| `validation_custom_regex_format_label` | ```str``` | When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. | |
| `group` | ```str``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/dropbox_sign/__init__.py b/dropbox_sign/__init__.py
index a000968..82a36a1 100644
--- a/dropbox_sign/__init__.py
+++ b/dropbox_sign/__init__.py
@@ -15,7 +15,7 @@
""" # noqa: E501
-__version__ = "1.9.0"
+__version__ = "1.10-dev"
# import apis into sdk package
from dropbox_sign.apis import *
diff --git a/dropbox_sign/api_client.py b/dropbox_sign/api_client.py
index b8ac14b..b90e802 100644
--- a/dropbox_sign/api_client.py
+++ b/dropbox_sign/api_client.py
@@ -89,7 +89,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
- self.user_agent = "OpenAPI-Generator/1.9.0/python"
+ self.user_agent = "OpenAPI-Generator/1.10-dev/python"
self.client_side_validation = configuration.client_side_validation
def __enter__(self):
diff --git a/dropbox_sign/configuration.py b/dropbox_sign/configuration.py
index 180560a..7247bd5 100644
--- a/dropbox_sign/configuration.py
+++ b/dropbox_sign/configuration.py
@@ -546,7 +546,9 @@ def to_debug_report(self) -> str:
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: 3.0.0\n"
- "SDK Package Version: 1.9.0".format(env=sys.platform, pyversion=sys.version)
+ "SDK Package Version: 1.10-dev".format(
+ env=sys.platform, pyversion=sys.version
+ )
)
def get_host_settings(self) -> List[HostSetting]:
diff --git a/dropbox_sign/models/api_app_create_request.py b/dropbox_sign/models/api_app_create_request.py
index 2e8e6a7..788c74a 100644
--- a/dropbox_sign/models/api_app_create_request.py
+++ b/dropbox_sign/models/api_app_create_request.py
@@ -36,7 +36,7 @@ class ApiAppCreateRequest(BaseModel):
ApiAppCreateRequest
""" # noqa: E501
- domains: Annotated[List[StrictStr], Field(min_length=1, max_length=2)] = Field(
+ domains: Annotated[List[StrictStr], Field(min_length=1, max_length=10)] = Field(
description="The domain names the ApiApp will be associated with."
)
name: StrictStr = Field(description="The name you want to assign to the ApiApp.")
diff --git a/dropbox_sign/models/api_app_update_request.py b/dropbox_sign/models/api_app_update_request.py
index 7e1f872..7370a7e 100644
--- a/dropbox_sign/models/api_app_update_request.py
+++ b/dropbox_sign/models/api_app_update_request.py
@@ -46,7 +46,7 @@ class ApiAppUpdateRequest(BaseModel):
default=None,
description="An image file to use as a custom logo in embedded contexts. (Only applies to some API plans)",
)
- domains: Optional[Annotated[List[StrictStr], Field(max_length=2)]] = Field(
+ domains: Optional[Annotated[List[StrictStr], Field(max_length=10)]] = Field(
default=None, description="The domain names the ApiApp will be associated with."
)
name: Optional[StrictStr] = Field(
diff --git a/dropbox_sign/models/o_auth_token_refresh_request.py b/dropbox_sign/models/o_auth_token_refresh_request.py
index 025a581..7a1aa9a 100644
--- a/dropbox_sign/models/o_auth_token_refresh_request.py
+++ b/dropbox_sign/models/o_auth_token_refresh_request.py
@@ -40,11 +40,11 @@ class OAuthTokenRefreshRequest(BaseModel):
)
client_id: Optional[StrictStr] = Field(
default=None,
- description='The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled.',
+ description="The client ID for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.",
)
client_secret: Optional[StrictStr] = Field(
default=None,
- description='The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled.',
+ description="The client secret for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.",
)
__properties: ClassVar[List[str]] = [
"grant_type",
diff --git a/dropbox_sign/models/report_create_request.py b/dropbox_sign/models/report_create_request.py
index bdee210..9c4e3e1 100644
--- a/dropbox_sign/models/report_create_request.py
+++ b/dropbox_sign/models/report_create_request.py
@@ -48,9 +48,9 @@ class ReportCreateRequest(BaseModel):
def report_type_validate_enum(cls, value):
"""Validates the enum"""
for i in value:
- if i not in set(["user_activity", "document_status"]):
+ if i not in set(["user_activity", "document_status", "sms_activity"]):
raise ValueError(
- "each list item must be one of ('user_activity', 'document_status')"
+ "each list item must be one of ('user_activity', 'document_status', 'sms_activity')"
)
return value
diff --git a/dropbox_sign/models/report_response.py b/dropbox_sign/models/report_response.py
index f1fbe51..176195d 100644
--- a/dropbox_sign/models/report_response.py
+++ b/dropbox_sign/models/report_response.py
@@ -62,9 +62,9 @@ def report_type_validate_enum(cls, value):
return value
for i in value:
- if i not in set(["user_activity", "document_status"]):
+ if i not in set(["user_activity", "document_status", "sms_activity"]):
raise ValueError(
- "each list item must be one of ('user_activity', 'document_status')"
+ "each list item must be one of ('user_activity', 'document_status', 'sms_activity')"
)
return value
diff --git a/dropbox_sign/models/template_response_document_form_field_text.py b/dropbox_sign/models/template_response_document_form_field_text.py
index e6800d2..6280970 100644
--- a/dropbox_sign/models/template_response_document_form_field_text.py
+++ b/dropbox_sign/models/template_response_document_form_field_text.py
@@ -68,6 +68,14 @@ class TemplateResponseDocumentFormFieldText(TemplateResponseDocumentFormFieldBas
default=None,
description="Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values.",
)
+ validation_custom_regex: Optional[StrictStr] = Field(
+ default=None,
+ description="When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.",
+ )
+ validation_custom_regex_format_label: Optional[StrictStr] = Field(
+ default=None,
+ description="When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.",
+ )
group: Optional[StrictStr] = Field(
default=None,
description="The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.",
@@ -87,6 +95,8 @@ class TemplateResponseDocumentFormFieldText(TemplateResponseDocumentFormFieldBas
"originalFontSize",
"fontFamily",
"validation_type",
+ "validation_custom_regex",
+ "validation_custom_regex_format_label",
"group",
]
@@ -199,6 +209,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"originalFontSize": obj.get("originalFontSize"),
"fontFamily": obj.get("fontFamily"),
"validation_type": obj.get("validation_type"),
+ "validation_custom_regex": obj.get("validation_custom_regex"),
+ "validation_custom_regex_format_label": obj.get(
+ "validation_custom_regex_format_label"
+ ),
"group": obj.get("group"),
}
)
@@ -223,6 +237,8 @@ def openapi_types(cls) -> Dict[str, str]:
"original_font_size": "(int,)",
"font_family": "(str,)",
"validation_type": "(str,)",
+ "validation_custom_regex": "(str,)",
+ "validation_custom_regex_format_label": "(str,)",
"group": "(str,)",
"api_id": "(str,)",
"name": "(str,)",
diff --git a/examples/EmbeddedEditUrlExample.py b/examples/EmbeddedEditUrlExample.py
index 90e9127..0c85777 100644
--- a/examples/EmbeddedEditUrlExample.py
+++ b/examples/EmbeddedEditUrlExample.py
@@ -10,7 +10,8 @@
)
with ApiClient(configuration) as api_client:
- merge_fields = []
+ merge_fields = [
+ ]
embedded_edit_url_request = models.EmbeddedEditUrlRequest(
cc_roles=[
diff --git a/examples/OauthTokenGenerateExample.py b/examples/OauthTokenGenerateExample.py
index 0c541ed..69cec3f 100644
--- a/examples/OauthTokenGenerateExample.py
+++ b/examples/OauthTokenGenerateExample.py
@@ -4,7 +4,8 @@
from dropbox_sign import ApiClient, ApiException, Configuration, api, models
-configuration = Configuration()
+configuration = Configuration(
+)
with ApiClient(configuration) as api_client:
o_auth_token_generate_request = models.OAuthTokenGenerateRequest(
diff --git a/examples/OauthTokenRefreshExample.py b/examples/OauthTokenRefreshExample.py
index c359591..7bd30fb 100644
--- a/examples/OauthTokenRefreshExample.py
+++ b/examples/OauthTokenRefreshExample.py
@@ -4,7 +4,8 @@
from dropbox_sign import ApiClient, ApiException, Configuration, api, models
-configuration = Configuration()
+configuration = Configuration(
+)
with ApiClient(configuration) as api_client:
o_auth_token_refresh_request = models.OAuthTokenRefreshRequest(
diff --git a/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.py b/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.py
index 4a0b11b..b2cb98a 100644
--- a/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.py
+++ b/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.py
@@ -73,30 +73,23 @@
ccs_1,
]
- signature_request_bulk_create_embedded_with_template_request = (
- models.SignatureRequestBulkCreateEmbeddedWithTemplateRequest(
- client_id="1a659d9ad95bccd307ecad78d72192f8",
- template_ids=[
- "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
- ],
- message="Glad we could come to an agreement.",
- subject="Purchase Order",
- test_mode=True,
- signer_list=signer_list,
- ccs=ccs,
- )
+ signature_request_bulk_create_embedded_with_template_request = models.SignatureRequestBulkCreateEmbeddedWithTemplateRequest(
+ client_id="1a659d9ad95bccd307ecad78d72192f8",
+ template_ids=[
+ "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
+ ],
+ message="Glad we could come to an agreement.",
+ subject="Purchase Order",
+ test_mode=True,
+ signer_list=signer_list,
+ ccs=ccs,
)
try:
- response = api.SignatureRequestApi(
- api_client
- ).signature_request_bulk_create_embedded_with_template(
+ response = api.SignatureRequestApi(api_client).signature_request_bulk_create_embedded_with_template(
signature_request_bulk_create_embedded_with_template_request=signature_request_bulk_create_embedded_with_template_request,
)
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_bulk_create_embedded_with_template: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_bulk_create_embedded_with_template: %s\n" % e)
diff --git a/examples/SignatureRequestBulkSendWithTemplateExample.py b/examples/SignatureRequestBulkSendWithTemplateExample.py
index d83b191..4a8fb41 100644
--- a/examples/SignatureRequestBulkSendWithTemplateExample.py
+++ b/examples/SignatureRequestBulkSendWithTemplateExample.py
@@ -74,29 +74,22 @@
ccs_1,
]
- signature_request_bulk_send_with_template_request = (
- models.SignatureRequestBulkSendWithTemplateRequest(
- template_ids=[
- "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
- ],
- message="Glad we could come to an agreement.",
- subject="Purchase Order",
- test_mode=True,
- signer_list=signer_list,
- ccs=ccs,
- )
+ signature_request_bulk_send_with_template_request = models.SignatureRequestBulkSendWithTemplateRequest(
+ template_ids=[
+ "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
+ ],
+ message="Glad we could come to an agreement.",
+ subject="Purchase Order",
+ test_mode=True,
+ signer_list=signer_list,
+ ccs=ccs,
)
try:
- response = api.SignatureRequestApi(
- api_client
- ).signature_request_bulk_send_with_template(
+ response = api.SignatureRequestApi(api_client).signature_request_bulk_send_with_template(
signature_request_bulk_send_with_template_request=signature_request_bulk_send_with_template_request,
)
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_bulk_send_with_template: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_bulk_send_with_template: %s\n" % e)
diff --git a/examples/SignatureRequestCancelExample.py b/examples/SignatureRequestCancelExample.py
index ccc4312..6a0e62b 100644
--- a/examples/SignatureRequestCancelExample.py
+++ b/examples/SignatureRequestCancelExample.py
@@ -15,7 +15,4 @@
signature_request_id="fa5c8a0b0f492d768749333ad6fcc214c111e967",
)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_cancel: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_cancel: %s\n" % e)
diff --git a/examples/SignatureRequestCreateEmbeddedExample.py b/examples/SignatureRequestCreateEmbeddedExample.py
index 6ded13b..2e1b93c 100644
--- a/examples/SignatureRequestCreateEmbeddedExample.py
+++ b/examples/SignatureRequestCreateEmbeddedExample.py
@@ -53,15 +53,10 @@
)
try:
- response = api.SignatureRequestApi(
- api_client
- ).signature_request_create_embedded(
+ response = api.SignatureRequestApi(api_client).signature_request_create_embedded(
signature_request_create_embedded_request=signature_request_create_embedded_request,
)
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_create_embedded: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_create_embedded: %s\n" % e)
diff --git a/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.py b/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.py
index 4b18d40..8bc255e 100644
--- a/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.py
+++ b/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.py
@@ -83,15 +83,10 @@
)
try:
- response = api.SignatureRequestApi(
- api_client
- ).signature_request_create_embedded(
+ response = api.SignatureRequestApi(api_client).signature_request_create_embedded(
signature_request_create_embedded_request=signature_request_create_embedded_request,
)
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_create_embedded: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_create_embedded: %s\n" % e)
diff --git a/examples/SignatureRequestCreateEmbeddedWithTemplateExample.py b/examples/SignatureRequestCreateEmbeddedWithTemplateExample.py
index b252818..6a58357 100644
--- a/examples/SignatureRequestCreateEmbeddedWithTemplateExample.py
+++ b/examples/SignatureRequestCreateEmbeddedWithTemplateExample.py
@@ -28,30 +28,23 @@
signers_1,
]
- signature_request_create_embedded_with_template_request = (
- models.SignatureRequestCreateEmbeddedWithTemplateRequest(
- client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
- template_ids=[
- "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
- ],
- message="Glad we could come to an agreement.",
- subject="Purchase Order",
- test_mode=True,
- signing_options=signing_options,
- signers=signers,
- )
+ signature_request_create_embedded_with_template_request = models.SignatureRequestCreateEmbeddedWithTemplateRequest(
+ client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ template_ids=[
+ "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
+ ],
+ message="Glad we could come to an agreement.",
+ subject="Purchase Order",
+ test_mode=True,
+ signing_options=signing_options,
+ signers=signers,
)
try:
- response = api.SignatureRequestApi(
- api_client
- ).signature_request_create_embedded_with_template(
+ response = api.SignatureRequestApi(api_client).signature_request_create_embedded_with_template(
signature_request_create_embedded_with_template_request=signature_request_create_embedded_with_template_request,
)
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_create_embedded_with_template: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_create_embedded_with_template: %s\n" % e)
diff --git a/examples/SignatureRequestEditEmbeddedExample.py b/examples/SignatureRequestEditEmbeddedExample.py
index b623c40..e3e5f1a 100644
--- a/examples/SignatureRequestEditEmbeddedExample.py
+++ b/examples/SignatureRequestEditEmbeddedExample.py
@@ -60,7 +60,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_edit_embedded: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_edit_embedded: %s\n" % e)
diff --git a/examples/SignatureRequestEditEmbeddedGroupedSignersExample.py b/examples/SignatureRequestEditEmbeddedGroupedSignersExample.py
index a0c9665..9c26905 100644
--- a/examples/SignatureRequestEditEmbeddedGroupedSignersExample.py
+++ b/examples/SignatureRequestEditEmbeddedGroupedSignersExample.py
@@ -90,7 +90,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_edit_embedded: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_edit_embedded: %s\n" % e)
diff --git a/examples/SignatureRequestEditEmbeddedWithTemplateExample.py b/examples/SignatureRequestEditEmbeddedWithTemplateExample.py
index 308eb5a..92f0378 100644
--- a/examples/SignatureRequestEditEmbeddedWithTemplateExample.py
+++ b/examples/SignatureRequestEditEmbeddedWithTemplateExample.py
@@ -28,31 +28,24 @@
signers_1,
]
- signature_request_edit_embedded_with_template_request = (
- models.SignatureRequestEditEmbeddedWithTemplateRequest(
- client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
- template_ids=[
- "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
- ],
- message="Glad we could come to an agreement.",
- subject="Purchase Order",
- test_mode=True,
- signing_options=signing_options,
- signers=signers,
- )
+ signature_request_edit_embedded_with_template_request = models.SignatureRequestEditEmbeddedWithTemplateRequest(
+ client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ template_ids=[
+ "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
+ ],
+ message="Glad we could come to an agreement.",
+ subject="Purchase Order",
+ test_mode=True,
+ signing_options=signing_options,
+ signers=signers,
)
try:
- response = api.SignatureRequestApi(
- api_client
- ).signature_request_edit_embedded_with_template(
+ response = api.SignatureRequestApi(api_client).signature_request_edit_embedded_with_template(
signature_request_id="fa5c8a0b0f492d768749333ad6fcc214c111e967",
signature_request_edit_embedded_with_template_request=signature_request_edit_embedded_with_template_request,
)
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_edit_embedded_with_template: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_edit_embedded_with_template: %s\n" % e)
diff --git a/examples/SignatureRequestEditExample.py b/examples/SignatureRequestEditExample.py
index 08cc2c5..4c6fc1e 100644
--- a/examples/SignatureRequestEditExample.py
+++ b/examples/SignatureRequestEditExample.py
@@ -51,14 +51,12 @@
files=[
open("./example_signature_request.pdf", "rb").read(),
],
- metadata=json.loads(
- """
+ metadata=json.loads("""
{
"custom_id": 1234,
"custom_text": "NDA #9"
}
- """
- ),
+ """),
field_options=field_options,
signing_options=signing_options,
signers=signers,
@@ -72,7 +70,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_edit: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_edit: %s\n" % e)
diff --git a/examples/SignatureRequestEditGroupedSignersExample.py b/examples/SignatureRequestEditGroupedSignersExample.py
index 01e81f7..41f5a54 100644
--- a/examples/SignatureRequestEditGroupedSignersExample.py
+++ b/examples/SignatureRequestEditGroupedSignersExample.py
@@ -81,14 +81,12 @@
"lawyer1@dropboxsign.com",
"lawyer2@dropboxsign.com",
],
- metadata=json.loads(
- """
+ metadata=json.loads("""
{
"custom_id": 1234,
"custom_text": "NDA #9"
}
- """
- ),
+ """),
field_options=field_options,
signing_options=signing_options,
grouped_signers=grouped_signers,
@@ -102,7 +100,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_edit: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_edit: %s\n" % e)
diff --git a/examples/SignatureRequestEditWithTemplateExample.py b/examples/SignatureRequestEditWithTemplateExample.py
index e39b55b..4e86534 100644
--- a/examples/SignatureRequestEditWithTemplateExample.py
+++ b/examples/SignatureRequestEditWithTemplateExample.py
@@ -48,32 +48,25 @@
custom_fields_1,
]
- signature_request_edit_with_template_request = (
- models.SignatureRequestEditWithTemplateRequest(
- template_ids=[
- "61a832ff0d8423f91d503e76bfbcc750f7417c78",
- ],
- message="Glad we could come to an agreement.",
- subject="Purchase Order",
- test_mode=True,
- signing_options=signing_options,
- signers=signers,
- ccs=ccs,
- custom_fields=custom_fields,
- )
+ signature_request_edit_with_template_request = models.SignatureRequestEditWithTemplateRequest(
+ template_ids=[
+ "61a832ff0d8423f91d503e76bfbcc750f7417c78",
+ ],
+ message="Glad we could come to an agreement.",
+ subject="Purchase Order",
+ test_mode=True,
+ signing_options=signing_options,
+ signers=signers,
+ ccs=ccs,
+ custom_fields=custom_fields,
)
try:
- response = api.SignatureRequestApi(
- api_client
- ).signature_request_edit_with_template(
+ response = api.SignatureRequestApi(api_client).signature_request_edit_with_template(
signature_request_id="fa5c8a0b0f492d768749333ad6fcc214c111e967",
signature_request_edit_with_template_request=signature_request_edit_with_template_request,
)
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_edit_with_template: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_edit_with_template: %s\n" % e)
diff --git a/examples/SignatureRequestFilesAsDataUriExample.py b/examples/SignatureRequestFilesAsDataUriExample.py
index d13de91..09a5092 100644
--- a/examples/SignatureRequestFilesAsDataUriExample.py
+++ b/examples/SignatureRequestFilesAsDataUriExample.py
@@ -11,15 +11,10 @@
with ApiClient(configuration) as api_client:
try:
- response = api.SignatureRequestApi(
- api_client
- ).signature_request_files_as_data_uri(
+ response = api.SignatureRequestApi(api_client).signature_request_files_as_data_uri(
signature_request_id="fa5c8a0b0f492d768749333ad6fcc214c111e967",
)
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_files_as_data_uri: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_files_as_data_uri: %s\n" % e)
diff --git a/examples/SignatureRequestFilesAsFileUrlExample.py b/examples/SignatureRequestFilesAsFileUrlExample.py
index 1969a6e..9cd19e6 100644
--- a/examples/SignatureRequestFilesAsFileUrlExample.py
+++ b/examples/SignatureRequestFilesAsFileUrlExample.py
@@ -11,16 +11,11 @@
with ApiClient(configuration) as api_client:
try:
- response = api.SignatureRequestApi(
- api_client
- ).signature_request_files_as_file_url(
+ response = api.SignatureRequestApi(api_client).signature_request_files_as_file_url(
signature_request_id="fa5c8a0b0f492d768749333ad6fcc214c111e967",
force_download=1,
)
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_files_as_file_url: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_files_as_file_url: %s\n" % e)
diff --git a/examples/SignatureRequestFilesExample.py b/examples/SignatureRequestFilesExample.py
index cc70305..12694cc 100644
--- a/examples/SignatureRequestFilesExample.py
+++ b/examples/SignatureRequestFilesExample.py
@@ -18,7 +18,4 @@
open("./file_response", "wb").write(response.read())
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_files: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_files: %s\n" % e)
diff --git a/examples/SignatureRequestGetExample.py b/examples/SignatureRequestGetExample.py
index 3eb5f58..47359ef 100644
--- a/examples/SignatureRequestGetExample.py
+++ b/examples/SignatureRequestGetExample.py
@@ -17,6 +17,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_get: %s\n" % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_get: %s\n" % e)
diff --git a/examples/SignatureRequestListExample.py b/examples/SignatureRequestListExample.py
index 9f81fe2..3255d2c 100644
--- a/examples/SignatureRequestListExample.py
+++ b/examples/SignatureRequestListExample.py
@@ -18,7 +18,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_list: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_list: %s\n" % e)
diff --git a/examples/SignatureRequestReleaseHoldExample.py b/examples/SignatureRequestReleaseHoldExample.py
index fb26250..e584b4f 100644
--- a/examples/SignatureRequestReleaseHoldExample.py
+++ b/examples/SignatureRequestReleaseHoldExample.py
@@ -17,7 +17,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_release_hold: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_release_hold: %s\n" % e)
diff --git a/examples/SignatureRequestRemindExample.py b/examples/SignatureRequestRemindExample.py
index 48c9d38..048db30 100644
--- a/examples/SignatureRequestRemindExample.py
+++ b/examples/SignatureRequestRemindExample.py
@@ -22,7 +22,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_remind: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_remind: %s\n" % e)
diff --git a/examples/SignatureRequestRemoveExample.py b/examples/SignatureRequestRemoveExample.py
index 2f9f686..3a38008 100644
--- a/examples/SignatureRequestRemoveExample.py
+++ b/examples/SignatureRequestRemoveExample.py
@@ -14,7 +14,4 @@
signature_request_id="fa5c8a0b0f492d768749333ad6fcc214c111e967",
)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_remove: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_remove: %s\n" % e)
diff --git a/examples/SignatureRequestSendExample.py b/examples/SignatureRequestSendExample.py
index fdc3256..21b1bfc 100644
--- a/examples/SignatureRequestSendExample.py
+++ b/examples/SignatureRequestSendExample.py
@@ -51,14 +51,12 @@
files=[
open("./example_signature_request.pdf", "rb").read(),
],
- metadata=json.loads(
- """
+ metadata=json.loads("""
{
"custom_id": 1234,
"custom_text": "NDA #9"
}
- """
- ),
+ """),
field_options=field_options,
signing_options=signing_options,
signers=signers,
@@ -71,7 +69,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_send: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_send: %s\n" % e)
diff --git a/examples/SignatureRequestSendGroupedSignersExample.py b/examples/SignatureRequestSendGroupedSignersExample.py
index 1029ec2..3a7e649 100644
--- a/examples/SignatureRequestSendGroupedSignersExample.py
+++ b/examples/SignatureRequestSendGroupedSignersExample.py
@@ -81,14 +81,12 @@
"lawyer1@dropboxsign.com",
"lawyer2@dropboxsign.com",
],
- metadata=json.loads(
- """
+ metadata=json.loads("""
{
"custom_id": 1234,
"custom_text": "NDA #9"
}
- """
- ),
+ """),
field_options=field_options,
signing_options=signing_options,
grouped_signers=grouped_signers,
@@ -101,7 +99,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_send: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_send: %s\n" % e)
diff --git a/examples/SignatureRequestSendWithTemplateExample.py b/examples/SignatureRequestSendWithTemplateExample.py
index 34c38a5..468a6b1 100644
--- a/examples/SignatureRequestSendWithTemplateExample.py
+++ b/examples/SignatureRequestSendWithTemplateExample.py
@@ -48,31 +48,24 @@
custom_fields_1,
]
- signature_request_send_with_template_request = (
- models.SignatureRequestSendWithTemplateRequest(
- template_ids=[
- "61a832ff0d8423f91d503e76bfbcc750f7417c78",
- ],
- message="Glad we could come to an agreement.",
- subject="Purchase Order",
- test_mode=True,
- signing_options=signing_options,
- signers=signers,
- ccs=ccs,
- custom_fields=custom_fields,
- )
+ signature_request_send_with_template_request = models.SignatureRequestSendWithTemplateRequest(
+ template_ids=[
+ "61a832ff0d8423f91d503e76bfbcc750f7417c78",
+ ],
+ message="Glad we could come to an agreement.",
+ subject="Purchase Order",
+ test_mode=True,
+ signing_options=signing_options,
+ signers=signers,
+ ccs=ccs,
+ custom_fields=custom_fields,
)
try:
- response = api.SignatureRequestApi(
- api_client
- ).signature_request_send_with_template(
+ response = api.SignatureRequestApi(api_client).signature_request_send_with_template(
signature_request_send_with_template_request=signature_request_send_with_template_request,
)
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_send_with_template: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_send_with_template: %s\n" % e)
diff --git a/examples/SignatureRequestUpdateExample.py b/examples/SignatureRequestUpdateExample.py
index 7121bf2..0d9bc45 100644
--- a/examples/SignatureRequestUpdateExample.py
+++ b/examples/SignatureRequestUpdateExample.py
@@ -23,7 +23,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling SignatureRequestApi#signature_request_update: %s\n"
- % e
- )
+ print("Exception when calling SignatureRequestApi#signature_request_update: %s\n" % e)
diff --git a/examples/TemplateCreateEmbeddedDraftExample.py b/examples/TemplateCreateEmbeddedDraftExample.py
index 428e772..2e96c0a 100644
--- a/examples/TemplateCreateEmbeddedDraftExample.py
+++ b/examples/TemplateCreateEmbeddedDraftExample.py
@@ -68,7 +68,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling TemplateApi#template_create_embedded_draft: %s\n"
- % e
- )
+ print("Exception when calling TemplateApi#template_create_embedded_draft: %s\n" % e)
diff --git a/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.py b/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.py
index b2c38f0..84232ea 100644
--- a/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.py
+++ b/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.py
@@ -117,7 +117,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling TemplateApi#template_create_embedded_draft: %s\n"
- % e
- )
+ print("Exception when calling TemplateApi#template_create_embedded_draft: %s\n" % e)
diff --git a/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.py b/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.py
index 093c5f5..e203940 100644
--- a/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.py
+++ b/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.py
@@ -135,7 +135,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling TemplateApi#template_create_embedded_draft: %s\n"
- % e
- )
+ print("Exception when calling TemplateApi#template_create_embedded_draft: %s\n" % e)
diff --git a/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.py b/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.py
index 05cd574..b99b91a 100644
--- a/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.py
+++ b/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.py
@@ -104,7 +104,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling TemplateApi#template_create_embedded_draft: %s\n"
- % e
- )
+ print("Exception when calling TemplateApi#template_create_embedded_draft: %s\n" % e)
diff --git a/examples/UnclaimedDraftCreateEmbeddedExample.py b/examples/UnclaimedDraftCreateEmbeddedExample.py
index c750c86..dade05e 100644
--- a/examples/UnclaimedDraftCreateEmbeddedExample.py
+++ b/examples/UnclaimedDraftCreateEmbeddedExample.py
@@ -10,15 +10,13 @@
)
with ApiClient(configuration) as api_client:
- unclaimed_draft_create_embedded_request = (
- models.UnclaimedDraftCreateEmbeddedRequest(
- client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
- requester_email_address="jack@dropboxsign.com",
- test_mode=True,
- files=[
- open("./example_signature_request.pdf", "rb").read(),
- ],
- )
+ unclaimed_draft_create_embedded_request = models.UnclaimedDraftCreateEmbeddedRequest(
+ client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ requester_email_address="jack@dropboxsign.com",
+ test_mode=True,
+ files=[
+ open("./example_signature_request.pdf", "rb").read(),
+ ],
)
try:
@@ -28,7 +26,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: %s\n"
- % e
- )
+ print("Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: %s\n" % e)
diff --git a/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.py b/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.py
index fcf77f4..b825eea 100644
--- a/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.py
+++ b/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.py
@@ -57,17 +57,15 @@
form_fields_per_document_2,
]
- unclaimed_draft_create_embedded_request = (
- models.UnclaimedDraftCreateEmbeddedRequest(
- client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
- requester_email_address="jack@dropboxsign.com",
- test_mode=False,
- file_urls=[
- "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
- ],
- form_field_groups=form_field_groups,
- form_fields_per_document=form_fields_per_document,
- )
+ unclaimed_draft_create_embedded_request = models.UnclaimedDraftCreateEmbeddedRequest(
+ client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ requester_email_address="jack@dropboxsign.com",
+ test_mode=False,
+ file_urls=[
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ form_field_groups=form_field_groups,
+ form_fields_per_document=form_fields_per_document,
)
try:
@@ -77,7 +75,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: %s\n"
- % e
- )
+ print("Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: %s\n" % e)
diff --git a/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.py b/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.py
index 2037cbe..931cc0b 100644
--- a/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.py
+++ b/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.py
@@ -75,17 +75,15 @@
form_fields_per_document_2,
]
- unclaimed_draft_create_embedded_request = (
- models.UnclaimedDraftCreateEmbeddedRequest(
- client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
- requester_email_address="jack@dropboxsign.com",
- test_mode=False,
- file_urls=[
- "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
- ],
- form_field_rules=form_field_rules,
- form_fields_per_document=form_fields_per_document,
- )
+ unclaimed_draft_create_embedded_request = models.UnclaimedDraftCreateEmbeddedRequest(
+ client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ requester_email_address="jack@dropboxsign.com",
+ test_mode=False,
+ file_urls=[
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ form_field_rules=form_field_rules,
+ form_fields_per_document=form_fields_per_document,
)
try:
@@ -95,7 +93,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: %s\n"
- % e
- )
+ print("Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: %s\n" % e)
diff --git a/examples/UnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.py b/examples/UnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.py
index 4e40298..6828613 100644
--- a/examples/UnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.py
+++ b/examples/UnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.py
@@ -45,16 +45,14 @@
form_fields_per_document_2,
]
- unclaimed_draft_create_embedded_request = (
- models.UnclaimedDraftCreateEmbeddedRequest(
- client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
- requester_email_address="jack@dropboxsign.com",
- test_mode=False,
- file_urls=[
- "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
- ],
- form_fields_per_document=form_fields_per_document,
- )
+ unclaimed_draft_create_embedded_request = models.UnclaimedDraftCreateEmbeddedRequest(
+ client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ requester_email_address="jack@dropboxsign.com",
+ test_mode=False,
+ file_urls=[
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ form_fields_per_document=form_fields_per_document,
)
try:
@@ -64,7 +62,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: %s\n"
- % e
- )
+ print("Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: %s\n" % e)
diff --git a/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.py b/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.py
index 36888e6..fbb76e6 100644
--- a/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.py
+++ b/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.py
@@ -29,29 +29,22 @@
signers_1,
]
- unclaimed_draft_create_embedded_with_template_request = (
- models.UnclaimedDraftCreateEmbeddedWithTemplateRequest(
- client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
- requester_email_address="jack@dropboxsign.com",
- template_ids=[
- "61a832ff0d8423f91d503e76bfbcc750f7417c78",
- ],
- test_mode=False,
- ccs=ccs,
- signers=signers,
- )
+ unclaimed_draft_create_embedded_with_template_request = models.UnclaimedDraftCreateEmbeddedWithTemplateRequest(
+ client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ requester_email_address="jack@dropboxsign.com",
+ template_ids=[
+ "61a832ff0d8423f91d503e76bfbcc750f7417c78",
+ ],
+ test_mode=False,
+ ccs=ccs,
+ signers=signers,
)
try:
- response = api.UnclaimedDraftApi(
- api_client
- ).unclaimed_draft_create_embedded_with_template(
+ response = api.UnclaimedDraftApi(api_client).unclaimed_draft_create_embedded_with_template(
unclaimed_draft_create_embedded_with_template_request=unclaimed_draft_create_embedded_with_template_request,
)
pprint(response)
except ApiException as e:
- print(
- "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded_with_template: %s\n"
- % e
- )
+ print("Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded_with_template: %s\n" % e)
diff --git a/examples/UnclaimedDraftCreateExample.py b/examples/UnclaimedDraftCreateExample.py
index 29da5b0..f7715b7 100644
--- a/examples/UnclaimedDraftCreateExample.py
+++ b/examples/UnclaimedDraftCreateExample.py
@@ -36,6 +36,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: %s\n" % e
- )
+ print("Exception when calling UnclaimedDraftApi#unclaimed_draft_create: %s\n" % e)
diff --git a/examples/UnclaimedDraftCreateFormFieldGroupsExample.py b/examples/UnclaimedDraftCreateFormFieldGroupsExample.py
index 285bdea..4af6915 100644
--- a/examples/UnclaimedDraftCreateFormFieldGroupsExample.py
+++ b/examples/UnclaimedDraftCreateFormFieldGroupsExample.py
@@ -74,6 +74,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: %s\n" % e
- )
+ print("Exception when calling UnclaimedDraftApi#unclaimed_draft_create: %s\n" % e)
diff --git a/examples/UnclaimedDraftCreateFormFieldRulesExample.py b/examples/UnclaimedDraftCreateFormFieldRulesExample.py
index 5bfab83..a0bba30 100644
--- a/examples/UnclaimedDraftCreateFormFieldRulesExample.py
+++ b/examples/UnclaimedDraftCreateFormFieldRulesExample.py
@@ -92,6 +92,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: %s\n" % e
- )
+ print("Exception when calling UnclaimedDraftApi#unclaimed_draft_create: %s\n" % e)
diff --git a/examples/UnclaimedDraftCreateFormFieldsPerDocumentExample.py b/examples/UnclaimedDraftCreateFormFieldsPerDocumentExample.py
index da39f6f..d15b6c5 100644
--- a/examples/UnclaimedDraftCreateFormFieldsPerDocumentExample.py
+++ b/examples/UnclaimedDraftCreateFormFieldsPerDocumentExample.py
@@ -61,6 +61,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: %s\n" % e
- )
+ print("Exception when calling UnclaimedDraftApi#unclaimed_draft_create: %s\n" % e)
diff --git a/examples/UnclaimedDraftEditAndResendExample.py b/examples/UnclaimedDraftEditAndResendExample.py
index bfae153..440aaaa 100644
--- a/examples/UnclaimedDraftEditAndResendExample.py
+++ b/examples/UnclaimedDraftEditAndResendExample.py
@@ -23,7 +23,4 @@
pprint(response)
except ApiException as e:
- print(
- "Exception when calling UnclaimedDraftApi#unclaimed_draft_edit_and_resend: %s\n"
- % e
- )
+ print("Exception when calling UnclaimedDraftApi#unclaimed_draft_edit_and_resend: %s\n" % e)
diff --git a/openapi-config.yaml b/openapi-config.yaml
index 0e7bd04..d76c83c 100644
--- a/openapi-config.yaml
+++ b/openapi-config.yaml
@@ -5,7 +5,7 @@ additionalProperties:
generatorLanguageVersion: ">=3.8"
packageName: dropbox_sign
projectName: dropbox-sign
- packageVersion: 1.9.0
+ packageVersion: 1.10-dev
sortModelPropertiesByRequiredFlag: true
legacyDiscriminatorBehavior: true
packageAuthor: Dropbox Sign API Team
diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml
index c832450..c123c2e 100644
--- a/openapi-sdk.yaml
+++ b/openapi-sdk.yaml
@@ -7797,7 +7797,7 @@ components:
type: array
items:
type: string
- maxItems: 2
+ maxItems: 10
minItems: 1
name:
description: 'The name you want to assign to the ApiApp.'
@@ -7823,7 +7823,7 @@ components:
type: array
items:
type: string
- maxItems: 2
+ maxItems: 10
name:
description: 'The name you want to assign to the ApiApp.'
type: string
@@ -8112,10 +8112,10 @@ components:
description: 'The token provided when you got the expired access token.'
type: string
client_id:
- description: 'The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled.'
+ description: 'The client ID for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.'
type: string
client_secret:
- description: 'The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled.'
+ description: 'The client secret for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.'
type: string
type: object
ReportCreateRequest:
@@ -8135,6 +8135,7 @@ components:
enum:
- user_activity
- document_status
+ - sms_activity
maxItems: 2
minItems: 1
start_date:
@@ -11964,6 +11965,7 @@ components:
enum:
- user_activity
- document_status
+ - sms_activity
type: object
x-internal-class: true
SignatureRequestResponse:
@@ -13130,6 +13132,14 @@ components:
- employer_identification_number
- custom_regex
nullable: true
+ validation_custom_regex:
+ description: 'When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.'
+ type: string
+ nullable: true
+ validation_custom_regex_format_label:
+ description: 'When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.'
+ type: string
+ nullable: true
group:
description: 'The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.'
type: string
diff --git a/pyproject.toml b/pyproject.toml
index 9c6179c..704fa86 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dropbox_sign"
-version = "1.9.0"
+version = "1.10-dev"
description = "Dropbox Sign API"
authors = ["Official Python SDK for the Dropbox Sign API "]
license = "MIT"
diff --git a/setup.py b/setup.py
index a33217a..ad2afcd 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "dropbox-sign"
-VERSION = "1.9.0"
+VERSION = "1.10-dev"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
diff --git a/test_fixtures/FaxGetResponse.json b/test_fixtures/FaxGetResponse.json
index 2eda936..0d668e0 100644
--- a/test_fixtures/FaxGetResponse.json
+++ b/test_fixtures/FaxGetResponse.json
@@ -20,12 +20,11 @@
"transmissions": [
{
"recipient": "recipient@dropboxsign.com",
- "sender": "me@dropboxsign.com",
"sent_at": 1723231831,
"status_code": "success"
}
],
- "files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2",
+ "files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2"
}
}
}
diff --git a/test_fixtures/FaxLineCreateRequest.json b/test_fixtures/FaxLineCreateRequest.json
new file mode 100644
index 0000000..91d11c8
--- /dev/null
+++ b/test_fixtures/FaxLineCreateRequest.json
@@ -0,0 +1,6 @@
+{
+ "default": {
+ "country": "US",
+ "area_code": 949
+ }
+}
diff --git a/test_fixtures/FaxLineListResponse.json b/test_fixtures/FaxLineListResponse.json
new file mode 100644
index 0000000..c241c1b
--- /dev/null
+++ b/test_fixtures/FaxLineListResponse.json
@@ -0,0 +1,26 @@
+{
+ "default": {
+ "list_info": {
+ "num_pages": 1,
+ "num_results": 1,
+ "page": 1,
+ "page_size": 1
+ },
+ "fax_lines": [
+ {
+ "number": "14155557897",
+ "created_at": 1750196223,
+ "updated_at": 1750196223,
+ "accounts": [
+ {
+ "account_id": "a3367a4130f3624687ea7de6f09df951a44923dd",
+ "email_address": "me@dropboxsign.com",
+ "is_locked": false,
+ "is_paid_hs": false,
+ "is_paid_hf": true
+ }
+ ]
+ }
+ ]
+ }
+}
diff --git a/test_fixtures/FaxLineResponse.json b/test_fixtures/FaxLineResponse.json
new file mode 100644
index 0000000..3855a8a
--- /dev/null
+++ b/test_fixtures/FaxLineResponse.json
@@ -0,0 +1,18 @@
+{
+ "default": {
+ "fax_line": {
+ "number": "14155557897",
+ "created_at": 1750196223,
+ "updated_at": 1750196223,
+ "accounts": [
+ {
+ "account_id": "a3367a4130f3624687ea7de6f09df951a44923dd",
+ "email_address": "me@dropboxsign.com",
+ "is_locked": false,
+ "is_paid_hs": false,
+ "is_paid_hf": true
+ }
+ ]
+ }
+ }
+}
diff --git a/test_fixtures/FaxListResponse.json b/test_fixtures/FaxListResponse.json
index a9ebf63..d0ce7fe 100644
--- a/test_fixtures/FaxListResponse.json
+++ b/test_fixtures/FaxListResponse.json
@@ -27,12 +27,11 @@
"transmissions": [
{
"recipient": "recipient@dropboxsign.com",
- "sender": "me@dropboxsign.com",
"sent_at": 1723231831,
"status_code": "success"
}
],
- "files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2",
+ "files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2"
}
]
}
diff --git a/test_fixtures/FaxResponse.json b/test_fixtures/FaxResponse.json
new file mode 100644
index 0000000..32a44d5
--- /dev/null
+++ b/test_fixtures/FaxResponse.json
@@ -0,0 +1,24 @@
+{
+ "default": {
+ "fax": {
+ "fax_id": "c2e9691c85d9d6fa6ae773842e3680b2b8650f1d",
+ "title": "example title",
+ "original_title": "example original title",
+ "metadata": {},
+ "created_at": 1750105080,
+ "sender": "14155557068",
+ "files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2",
+ "final_copy_uri": "/v3/transmission/final_copy/c2e9691c85d9d6fa6ae773842e3680b2b8650f1d",
+ "transmissions": [
+ {
+ "recipient": "18005550199",
+ "status_code": "transmitting"
+ }
+ ],
+ "transmission_id": "c2e9691c85d9d6fa6ae773842e3680b2b8650f1d",
+ "from": "14155557068",
+ "test_mode": false
+ }
+ }
+}
+
diff --git a/test_fixtures/FaxSendResponse.json b/test_fixtures/FaxSendResponse.json
deleted file mode 100644
index b651c78..0000000
--- a/test_fixtures/FaxSendResponse.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "default": {
- "fax": {
- "fax_id": "c2e9691c85d9d6fa6ae773842e3680b2b8650f1d",
- "title": "example title",
- "original_title": "example original title",
- "subject": "example subject",
- "message": "example message",
- "metadata": [ ],
- "created_at": 1726774555,
- "sender": "me@dropboxsign.com",
- "transmissions": [],
- "files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2"
- }
- }
-}
diff --git a/tests/test_fax_api.py b/tests/test_fax_api.py
new file mode 100644
index 0000000..b97509b
--- /dev/null
+++ b/tests/test_fax_api.py
@@ -0,0 +1,71 @@
+import unittest
+
+from dropbox_sign import ApiClient, Configuration, apis, models as m
+from test_utils import get_fixture_data, MockPoolManager, get_base_path
+
+
+class TestFaxApi(unittest.TestCase):
+ def setUp(self):
+ self.configuration = Configuration()
+ self.api_client = ApiClient(self.configuration)
+ self.mock_pool = MockPoolManager(self)
+ self.api_client.rest_client.pool_manager = self.mock_pool
+
+ self.api = apis.FaxApi(self.api_client)
+
+ def test_fax_send(self):
+ request_class = "FaxSendRequest"
+ request_data = get_fixture_data(request_class)["default"]
+
+ response_class = "FaxGetResponse"
+ response_data = get_fixture_data(response_class)["default"]
+
+ self.mock_pool.expect_request(
+ content_type="multipart/form-data",
+ data=request_data,
+ response=response_data,
+ )
+ expected = m.FaxGetResponse.init(response_data)
+ obj = m.FaxSendRequest.init(request_data)
+ obj.files = [open(f"{get_base_path()}/pdf-sample.pdf", "rb")]
+
+ result = self.api.fax_send(obj)
+
+ self.assertEqual(result.__class__.__name__, response_class)
+ self.assertEqual(result, expected)
+
+ obj.files[0].close()
+
+ def test_fax_get(self):
+ fax_id = "c2e9691c85d9d6fa6ae773842e3680b2b8650f1d"
+
+ response_class = "FaxGetResponse"
+ response_data = get_fixture_data(response_class)["default"]
+
+ self.mock_pool.expect_request(
+ content_type="application/json", response=response_data
+ )
+ expected = m.FaxGetResponse.init(response_data)
+
+ result = self.api.fax_get(fax_id)
+
+ self.assertEqual(result.__class__.__name__, response_class)
+ self.assertEqual(result, expected)
+
+ def test_fax_list(self):
+ response_class = "FaxListResponse"
+ response_data = get_fixture_data(response_class)["default"]
+
+ self.mock_pool.expect_request(
+ content_type="application/json", response=response_data
+ )
+ expected = m.FaxListResponse.init(response_data)
+
+ result = self.api.fax_list()
+
+ self.assertEqual(result.__class__.__name__, response_class)
+ self.assertEqual(result, expected)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/tests/test_fax_line_api.py b/tests/test_fax_line_api.py
new file mode 100644
index 0000000..569a08b
--- /dev/null
+++ b/tests/test_fax_line_api.py
@@ -0,0 +1,68 @@
+import unittest
+
+from dropbox_sign import ApiClient, Configuration, apis, models as m
+from test_utils import get_fixture_data, MockPoolManager, get_base_path
+
+
+class TestFaxLineApi(unittest.TestCase):
+ def setUp(self):
+ self.configuration = Configuration()
+ self.api_client = ApiClient(self.configuration)
+ self.mock_pool = MockPoolManager(self)
+ self.api_client.rest_client.pool_manager = self.mock_pool
+
+ self.api = apis.FaxLineApi(self.api_client)
+
+ def test_fax_line_create(self):
+ request_class = "FaxLineCreateRequest"
+ request_data = get_fixture_data(request_class)["default"]
+
+ response_class = "FaxLineResponse"
+ response_data = get_fixture_data(response_class)["default"]
+
+ self.mock_pool.expect_request(
+ content_type="application/json", response=response_data
+ )
+
+ expected = m.FaxLineResponse.init(response_data)
+
+ result = self.api.fax_line_create(obj)
+
+ self.assertEqual(result.__class__.__name__, response_class)
+ self.assertEqual(result, expected)
+
+ obj.files[0].close()
+
+ def test_fax_line_get(self):
+ fax_line_number = "14155557897"
+
+ response_class = "FaxLineResponse"
+ response_data = get_fixture_data(response_class)["default"]
+
+ self.mock_pool.expect_request(
+ content_type="application/json", response=response_data
+ )
+ expected = m.FaxLineResponse.init(response_data)
+
+ result = self.api.fax_line_get(fax_line_number)
+
+ self.assertEqual(result.__class__.__name__, response_class)
+ self.assertEqual(result, expected)
+
+ def test_fax_line_list(self):
+ response_class = "FaxLineListResponse"
+ response_data = get_fixture_data(response_class)["default"]
+
+ self.mock_pool.expect_request(
+ content_type="application/json", response=response_data
+ )
+ expected = m.FaxLineListResponse.init(response_data)
+
+ result = self.api.fax_line_list()
+
+ self.assertEqual(result.__class__.__name__, response_class)
+ self.assertEqual(result, expected)
+
+
+if __name__ == "__main__":
+ unittest.main()