Skip to content

release 1.10.0 #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.0
```

Alternatively:
Expand Down Expand Up @@ -400,6 +400,6 @@ [email protected]
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.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.0
1.10.0
1 change: 0 additions & 1 deletion bin/check-clean-git-status
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ if [[ $(git status --porcelain) != '' ]]; then
printf "\t./run-build\n"

git status
git diff

exit 1
else
Expand Down
2 changes: 2 additions & 0 deletions docs/TemplateResponseDocumentFormFieldText.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion dropbox_sign/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
""" # noqa: E501


__version__ = "1.9.0"
__version__ = "1.10.0"

# import apis into sdk package
from dropbox_sign.apis import *
Expand Down
2 changes: 1 addition & 1 deletion dropbox_sign/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.0/python"
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
4 changes: 3 additions & 1 deletion dropbox_sign/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.0".format(
env=sys.platform, pyversion=sys.version
)
)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
2 changes: 1 addition & 1 deletion dropbox_sign/models/api_app_create_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
2 changes: 1 addition & 1 deletion dropbox_sign/models/api_app_update_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions dropbox_sign/models/report_create_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions dropbox_sign/models/report_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
16 changes: 16 additions & 0 deletions dropbox_sign/models/template_response_document_form_field_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand All @@ -87,6 +95,8 @@ class TemplateResponseDocumentFormFieldText(TemplateResponseDocumentFormFieldBas
"originalFontSize",
"fontFamily",
"validation_type",
"validation_custom_regex",
"validation_custom_regex_format_label",
"group",
]

Expand Down Expand Up @@ -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"),
}
)
Expand All @@ -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,)",
Expand Down
3 changes: 2 additions & 1 deletion examples/EmbeddedEditUrlExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
)

with ApiClient(configuration) as api_client:
merge_fields = []
merge_fields = [
]

embedded_edit_url_request = models.EmbeddedEditUrlRequest(
cc_roles=[
Expand Down
3 changes: 2 additions & 1 deletion examples/OauthTokenGenerateExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 2 additions & 1 deletion examples/OauthTokenRefreshExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
31 changes: 12 additions & 19 deletions examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
29 changes: 11 additions & 18 deletions examples/SignatureRequestBulkSendWithTemplateExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 1 addition & 4 deletions examples/SignatureRequestCancelExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
9 changes: 2 additions & 7 deletions examples/SignatureRequestCreateEmbeddedExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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)
31 changes: 12 additions & 19 deletions examples/SignatureRequestCreateEmbeddedWithTemplateExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 1 addition & 4 deletions examples/SignatureRequestEditEmbeddedExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Loading
Loading