diff --git a/README.md b/README.md index fe3fd13..9d276ae 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.0 ``` 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.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/VERSION b/VERSION index f8e233b..81c871d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.9.0 +1.10.0 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/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..1486b6f 100644 --- a/dropbox_sign/__init__.py +++ b/dropbox_sign/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "1.9.0" +__version__ = "1.10.0" # 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..cd98147 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.0/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..1e0e120 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.0".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/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..d3677b8 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.0 sortModelPropertiesByRequiredFlag: true legacyDiscriminatorBehavior: true packageAuthor: Dropbox Sign API Team diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index c832450..f984d4d 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 @@ -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..2464415 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dropbox_sign" -version = "1.9.0" +version = "1.10.0" 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..03d5fb2 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.0" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/test_fixtures/AccountCreateRequest.json b/test_fixtures/AccountCreateRequest.json deleted file mode 100644 index e5e268e..0000000 --- a/test_fixtures/AccountCreateRequest.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "default": { - "email_address": "newuser@dropboxsign.com", - "client_id": "cc91c61d00f8bb2ece1428035716b", - "client_secret": "1d14434088507ffa390e6f5528465" - } -} diff --git a/test_fixtures/AccountCreateResponse.json b/test_fixtures/AccountCreateResponse.json deleted file mode 100644 index 3221993..0000000 --- a/test_fixtures/AccountCreateResponse.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "default": { - "account": { - "account_id": "a2b31224f7e6fb5581d2f8cbd91cf65fa2f86aae", - "email_address": "newuser@dropboxsign.com", - "is_paid_hs": false, - "is_paid_hf": false, - "is_locked": false, - "quotas": { - "templates_left": 0, - "api_signature_requests_left": 0, - "documents_left": 3 - } - } - } -} diff --git a/test_fixtures/AccountGetResponse.json b/test_fixtures/AccountGetResponse.json deleted file mode 100644 index 9bb0009..0000000 --- a/test_fixtures/AccountGetResponse.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "default": { - "account": { - "account_id": "5008b25c7f67153e57d5a357b1687968068fb465", - "email_address": "me@dropboxsign.com", - "is_locked": false, - "is_paid_hs": true, - "is_paid_hf": false, - "quotas": { - "api_signature_requests_left": 1250 - } - } - } -} diff --git a/test_fixtures/AccountUpdateRequest.json b/test_fixtures/AccountUpdateRequest.json deleted file mode 100644 index e514066..0000000 --- a/test_fixtures/AccountUpdateRequest.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "default": { - "callback_url": "https://www.example.com/callback" - } -} diff --git a/test_fixtures/AccountVerifyRequest.json b/test_fixtures/AccountVerifyRequest.json deleted file mode 100644 index 3d233d2..0000000 --- a/test_fixtures/AccountVerifyRequest.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "default": { - "email_address": "some_user@dropboxsign.com" - } -} diff --git a/test_fixtures/AccountVerifyResponse.json b/test_fixtures/AccountVerifyResponse.json deleted file mode 100644 index 241daa3..0000000 --- a/test_fixtures/AccountVerifyResponse.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "default": { - "account": { - "email_address": "some_user@dropboxsign.com" - } - } -} diff --git a/test_fixtures/ApiAppCreateRequest.json b/test_fixtures/ApiAppCreateRequest.json deleted file mode 100644 index 2ee8e41..0000000 --- a/test_fixtures/ApiAppCreateRequest.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "default": { - "name": "My Production App", - "callback_url": "https://example.com/callback", - "domains": [ - "example.com" - ], - "oauth": { - "callback_url": "https://example.com/oauth", - "scopes": [ - "basic_account_info", - "request_signature" - ] - }, - "options": { - "can_insert_everywhere": true - }, - "white_labeling_options": { - "header_background_color": "#1A1A1A", - "legal_version": "terms1", - "link_color": "#0061FE", - "page_background_color": "#f7f8f9", - "primary_button_color": "#0061FE", - "primary_button_color_hover": "#0061FE", - "primary_button_text_color": "#ffffff", - "primary_button_text_color_hover": "#ffffff", - "secondary_button_color": "#ffffff", - "secondary_button_color_hover": "#ffffff", - "secondary_button_text_color": "#0061FE", - "secondary_button_text_color_hover": "#0061FE", - "text_color1": "#808080", - "text_color2": "#ffffff" - } - } -} diff --git a/test_fixtures/ApiAppGetResponse.json b/test_fixtures/ApiAppGetResponse.json deleted file mode 100644 index f7d799f..0000000 --- a/test_fixtures/ApiAppGetResponse.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "default": { - "api_app": { - "client_id": "0dd3b823a682527788c4e40cb7b6f7e9", - "created_at": 1436232339, - "domains": ["example.com"], - "is_approved": false, - "name": "My Production App", - "oauth": { - "callback_url": "https://example.com/oauth", - "scopes": [ - "basic_account_info", - "request_signature" - ], - "charges_users": false, - "secret": "98891a1b59f312d04cd88e4e0c498d75" - }, - "options": { - "can_insert_everywhere": true - }, - "owner_account": { - "account_id": "dc5deeb9e10b044c591ef2475aafad1d1d3bd888", - "email_address": "john@example.com" - }, - "white_labeling_options": { - "header_background_color": "#1A1A1A", - "legal_version": "terms1", - "link_color": "#0061FE", - "page_background_color": "#f7f8f9", - "primary_button_color": "#0061FE", - "primary_button_color_hover": "#0061FE", - "primary_button_text_color": "#ffffff", - "primary_button_text_color_hover": "#ffffff", - "secondary_button_color": "#ffffff", - "secondary_button_color_hover": "#ffffff", - "secondary_button_text_color": "#0061FE", - "secondary_button_text_color_hover": "#0061FE", - "text_color1": "#808080", - "text_color2": "#ffffff" - } - } - } -} diff --git a/test_fixtures/ApiAppListResponse.json b/test_fixtures/ApiAppListResponse.json deleted file mode 100644 index cc17d45..0000000 --- a/test_fixtures/ApiAppListResponse.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "default": { - "api_apps": [ - { - "client_id": "0dd3b823a682527788c4e40cb7b6f7e9", - "created_at": 1436232339, - "domains": ["example.com"], - "is_approved": true, - "name": "My Production App", - "oauth": { - "callback_url": "https://example.com/oauth", - "scopes": [ - "basic_account_info", - "request_signature" - ], - "charges_users": false, - "secret": "98891a1b59f312d04cd88e4e0c498d75" - }, - "options": { - "can_insert_everywhere": true - }, - "owner_account": { - "account_id": "dc5deeb9e10b044c591ef2475aafad1d1d3bd888", - "email_address": "john@example.com" - } - }, - { - "client_id": "bff6d867fafcca27554cf89b1ca98793", - "created_at": 1433458421, - "domains": ["example.com"], - "is_approved": false, - "name": "My Other App", - "options": { - "can_insert_everywhere": true - }, - "owner_account": { - "account_id": "dc5deeb9e10b044c591ef2475aafad1d1d3bd888", - "email_address": "john@example.com" - } - } - ], - "list_info": { - "num_pages": 1, - "num_results": 2, - "page": 1, - "page_size": 20 - } - } -} diff --git a/test_fixtures/ApiAppUpdateRequest.json b/test_fixtures/ApiAppUpdateRequest.json deleted file mode 100644 index ee4e9ff..0000000 --- a/test_fixtures/ApiAppUpdateRequest.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "default": { - "name": "New Name", - "domains": [ - "example.com" - ], - "callback_url": "https://example.com/dropboxsign", - "oauth": { - "callback_url": "https://example.com/oauth", - "scopes": [ - "basic_account_info", - "request_signature" - ] - }, - "options": { - "can_insert_everywhere": true - }, - "white_labeling_options": { - "header_background_color": "#1A1A1A", - "legal_version": "terms1", - "link_color": "#0061FE", - "page_background_color": "#f7f8f9", - "primary_button_color": "#0061FE", - "primary_button_color_hover": "#0061FE", - "primary_button_text_color": "#ffffff", - "primary_button_text_color_hover": "#ffffff", - "secondary_button_color": "#ffffff", - "secondary_button_color_hover": "#ffffff", - "secondary_button_text_color": "#0061FE", - "secondary_button_text_color_hover": "#0061FE", - "text_color1": "#808080", - "text_color2": "#ffffff" - } - } -} diff --git a/test_fixtures/BulkSendJobGetResponse.json b/test_fixtures/BulkSendJobGetResponse.json deleted file mode 100644 index e428a30..0000000 --- a/test_fixtures/BulkSendJobGetResponse.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "default": { - "bulk_send_job": { - "bulk_send_job_id": "6e683bc0369ba3d5b6f43c2c22a8031dbf6bd174", - "total": 1, - "is_creator": true, - "created_at": 1532640962 - }, - "list_info": { - "page": 1, - "num_pages": 1, - "num_results": 1, - "page_size": 20 - }, - "signature_requests": [ - { - "signature_request_id": "fa5c8a0b0f492d768749333ad6fcc214c111e967", - "title": "Purchase Agreement", - "subject": "Purchase Agreement", - "message": "Please sign and return.", - "is_complete": true, - "is_declined": false, - "has_error": false, - "custom_fields": [], - "created_at": 0, - "expires_at": 0, - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "response_data": [ - { - "api_id": "80c678_1", - "name": "Needs Express Shipping", - "signature_id": "78caf2a1d01cd39cea2bc1cbb340dac3", - "value": true, - "type": "checkbox", - "required": false - }, - { - "api_id": "80c678_2", - "name": "Shipping Address", - "signature_id": "78caf2a1d01cd39cea2bc1cbb340dac3", - "value": "1212 Park Avenue", - "type": "text", - "required": false - }, - { - "api_id": "80c678_3", - "name": "DateSigned", - "signature_id": "78caf2a1d01cd39cea2bc1cbb340dac3", - "value": "09/01/2012", - "type": "text", - "required": false - } - ], - "details_url": "https://app.hellosign.com/home/manage?guid=fa5c8a0b0f492d768749333ad6fcc214c111e967", - "requester_email_address": "me@dropboxsign.com", - "signatures": [ - { - "signature_id": "78caf2a1d01cd39cea2bc1cbb340dac3", - "signer_email_address": "john@example.com", - "signer_name": "John Doe", - "status_code": "signed", - "signed_at": 1346521550, - "last_viewed_at": 1346521483, - "has_pin": false - } - ], - "cc_email_addresses": [], - "bulk_send_job_id": "6e683bc0369ba3d5b6f43c2c22a8031dbf6bd174", - "test_mode": false - } - ] - } -} diff --git a/test_fixtures/BulkSendJobListResponse.json b/test_fixtures/BulkSendJobListResponse.json deleted file mode 100644 index 6e973ce..0000000 --- a/test_fixtures/BulkSendJobListResponse.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "default": { - "list_info": { - "page": 1, - "num_pages": 1, - "num_results": 2, - "page_size": 20 - }, - "bulk_send_jobs": [ - { - "bulk_send_job_id": "fef03f144d9384737a98ff2ca6c1fd9d7bc2239a", - "total": 250, - "is_creator": false, - "created_at": 1532740871 - }, - { - "bulk_send_job_id": "6e683bc0369ba3d5b6f43c2c22a8031dbf6bd174", - "total": 1, - "is_creator": true, - "created_at": 1532640962 - } - ] - } -} diff --git a/test_fixtures/BulkSendJobSendResponse.json b/test_fixtures/BulkSendJobSendResponse.json deleted file mode 100644 index 548687c..0000000 --- a/test_fixtures/BulkSendJobSendResponse.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "default": { - "bulk_send_job": { - "bulk_send_job_id": "ccaf88244ef006b6e31ebba5ed4cb53b3131d9ac", - "total": 3, - "is_creator": true, - "created_at": 1543556038 - } - } -} diff --git a/test_fixtures/EmbeddedEditUrlRequest.json b/test_fixtures/EmbeddedEditUrlRequest.json deleted file mode 100644 index 9d3d766..0000000 --- a/test_fixtures/EmbeddedEditUrlRequest.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "default": { - "allow_edit_ccs": true, - "cc_roles": [ - "" - ], - "editor_options": { - "allow_edit_signers": true, - "allow_edit_documents": false - }, - "force_signer_roles": true, - "force_subject_message": true, - "merge_fields": [ - { - "name": "field1", - "type": "text" - }, - { - "name": "field1", - "type": "checkbox" - } - ], - "preview_only": true, - "show_preview": true, - "show_progress_stepper": true, - "test_mode": true - } -} diff --git a/test_fixtures/EmbeddedEditUrlResponse.json b/test_fixtures/EmbeddedEditUrlResponse.json deleted file mode 100644 index 7390c57..0000000 --- a/test_fixtures/EmbeddedEditUrlResponse.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "default": { - "embedded": { - "edit_url": "https://app.hellosign.com/editor/embeddedTemplate?token=70ca8e5779c9a931125db09f3170efc1&root_snapshot_guids[]=a97ce534aec6cbe09e70cdd55112e31bd320ed00&edited_template_guid=61a832ff0d8423f91d503e76bfbcc750f7417c78&guid=56ecaf0659aa29215d2ee489c0c88ff8c9496099&force_signer_input=1", - "expires_at": 1634313821 - } - } -} diff --git a/test_fixtures/EmbeddedSignUrlResponse.json b/test_fixtures/EmbeddedSignUrlResponse.json deleted file mode 100644 index b48b730..0000000 --- a/test_fixtures/EmbeddedSignUrlResponse.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "default": { - "embedded": { - "sign_url": "https://app.hellosign.com/editor/embeddedSign?signature_id=50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b&token=b6b8e7deaf8f0b95c029dca049356d4a2cf9710a", - "expires_at": 1634313821 - } - } -} diff --git a/test_fixtures/ErrorResponse.json b/test_fixtures/ErrorResponse.json deleted file mode 100644 index a7502f2..0000000 --- a/test_fixtures/ErrorResponse.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "default": { - "error": { - "error_msg": "Generic error message", - "error_path": "path_to_error[0]", - "error_name": "bad_request" - } - } -} diff --git a/test_fixtures/EventCallbackHelper_AccountCallbacks.json b/test_fixtures/EventCallbackHelper_AccountCallbacks.json deleted file mode 100644 index bbdf418..0000000 --- a/test_fixtures/EventCallbackHelper_AccountCallbacks.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "base": { - "account_guid": "63522885f9261e2b04eea043933ee7313eb674fd", - "event": { - "event_time": "1348177752", - "event_type": "unknown_error", - "event_hash": "c574f5d3090c2936360b4e36cf6835cf3e2206b84fdc6347e6b28ca721ae1371", - "event_metadata": { - "related_signature_id": "ad4d8a769b555fa5ef38691465d426682bf2c992", - "reported_for_account_id": "63522885f9261e2b04eea043933ee7313eb674fd" - } - } - }, - "base_no_metadata": { - "account_guid": "63522885f9261e2b04eea043933ee7313eb674fd", - "event": { - "event_time": "1348177752", - "event_type": "unknown_error", - "event_hash": "c574f5d3090c2936360b4e36cf6835cf3e2206b84fdc6347e6b28ca721ae1371" - } - }, - "account": { - "account_guid": "63522885f9261e2b04eea043933ee7313eb674fd", - "event": { - "event_time": "1348177752", - "event_type": "account_confirmed", - "event_hash": "6dc5b7aad93cf54915e0089d6c31d61b3833f66f51459171c69f8fa211308848", - "event_metadata": { - "related_signature_id": "ad4d8a769b555fa5ef38691465d426682bf2c992", - "reported_for_account_id": "63522885f9261e2b04eea043933ee7313eb674fd" - } - } - }, - "account_no_metadata": { - "account_guid": "63522885f9261e2b04eea043933ee7313eb674fd", - "event": { - "event_time": "1348177752", - "event_type": "account_confirmed", - "event_hash": "6dc5b7aad93cf54915e0089d6c31d61b3833f66f51459171c69f8fa211308848" - } - }, - "signature_request": { - "account_guid": "63522885f9261e2b04eea043933ee7313eb674fd", - "event": { - "event_time": "1348177752", - "event_type": "signature_request_sent", - "event_hash": "08d45a6b7677492b78be030cef18cfeaece8fe67e163cc8e526ee638ad483756", - "event_metadata": { - "related_signature_id": "ad4d8a769b555fa5ef38691465d426682bf2c992", - "reported_for_account_id": "63522885f9261e2b04eea043933ee7313eb674fd" - } - } - }, - "signature_request_no_metadata": { - "account_guid": "63522885f9261e2b04eea043933ee7313eb674fd", - "event": { - "event_time": "1348177752", - "event_type": "signature_request_sent", - "event_hash": "08d45a6b7677492b78be030cef18cfeaece8fe67e163cc8e526ee638ad483756" - } - }, - "template": { - "account_guid": "63522885f9261e2b04eea043933ee7313eb674fd", - "event": { - "event_time": "1348177752", - "event_type": "template_created", - "event_hash": "4a9b22fa68d5addb8b6313eea9d42ecb393903a4240b71503ef78e9dac6c100d", - "event_metadata": { - "related_signature_id": "ad4d8a769b555fa5ef38691465d426682bf2c992", - "reported_for_account_id": "63522885f9261e2b04eea043933ee7313eb674fd" - } - } - }, - "template_no_metadata": { - "account_guid": "63522885f9261e2b04eea043933ee7313eb674fd", - "event": { - "event_time": "1348177752", - "event_type": "template_created", - "event_hash": "4a9b22fa68d5addb8b6313eea9d42ecb393903a4240b71503ef78e9dac6c100d" - } - } -} diff --git a/test_fixtures/EventCallbackHelper_AppCallbacks.json b/test_fixtures/EventCallbackHelper_AppCallbacks.json deleted file mode 100644 index bf6e9ad..0000000 --- a/test_fixtures/EventCallbackHelper_AppCallbacks.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "base": { - "account_guid": "63522885f9261e2b04eea043933ee7313eb674fd", - "event": { - "event_time": "1348177752", - "event_type": "unknown_error", - "event_hash": "c574f5d3090c2936360b4e36cf6835cf3e2206b84fdc6347e6b28ca721ae1371", - "event_metadata": { - "related_signature_id": "ad4d8a769b555fa5ef38691465d426682bf2c992", - "reported_for_account_id": "63522885f9261e2b04eea043933ee7313eb674fd", - "reported_for_app_id": "98891a1b59f312d04cd88e4e0c498d75e0ce0ce0" - } - } - }, - "account": { - "account_guid": "63522885f9261e2b04eea043933ee7313eb674fd", - "event": { - "event_time": "1348177752", - "event_type": "account_confirmed", - "event_hash": "6dc5b7aad93cf54915e0089d6c31d61b3833f66f51459171c69f8fa211308848", - "event_metadata": { - "related_signature_id": "ad4d8a769b555fa5ef38691465d426682bf2c992", - "reported_for_account_id": "63522885f9261e2b04eea043933ee7313eb674fd", - "reported_for_app_id": "98891a1b59f312d04cd88e4e0c498d75e0ce0ce0" - } - } - }, - "signature_request": { - "account_guid": "63522885f9261e2b04eea043933ee7313eb674fd", - "event": { - "event_time": "1348177752", - "event_type": "signature_request_sent", - "event_hash": "08d45a6b7677492b78be030cef18cfeaece8fe67e163cc8e526ee638ad483756", - "event_metadata": { - "related_signature_id": "ad4d8a769b555fa5ef38691465d426682bf2c992", - "reported_for_account_id": "63522885f9261e2b04eea043933ee7313eb674fd", - "reported_for_app_id": "98891a1b59f312d04cd88e4e0c498d75e0ce0ce0" - } - } - }, - "template": { - "account_guid": "63522885f9261e2b04eea043933ee7313eb674fd", - "event": { - "event_time": "1348177752", - "event_type": "template_created", - "event_hash": "4a9b22fa68d5addb8b6313eea9d42ecb393903a4240b71503ef78e9dac6c100d", - "event_metadata": { - "related_signature_id": "ad4d8a769b555fa5ef38691465d426682bf2c992", - "reported_for_account_id": "63522885f9261e2b04eea043933ee7313eb674fd", - "reported_for_app_id": "98891a1b59f312d04cd88e4e0c498d75e0ce0ce0" - } - } - } -} diff --git a/test_fixtures/FaxGetResponse.json b/test_fixtures/FaxGetResponse.json deleted file mode 100644 index 2eda936..0000000 --- a/test_fixtures/FaxGetResponse.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "default": { - "fax": { - "fax_id": "c2e9691c85d9d6fa6ae773842e3680b2b8650f1d", - "title": "example title", - "original_title": "example original title", - "subject": "example subject", - "message": "example message", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "created_at": 1726774555, - "sender": "me@dropboxsign.com", - "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", - } - } -} diff --git a/test_fixtures/FaxListResponse.json b/test_fixtures/FaxListResponse.json deleted file mode 100644 index a9ebf63..0000000 --- a/test_fixtures/FaxListResponse.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "default": { - "list_info": { - "num_pages": 1, - "num_results": 1, - "page": 1, - "page_size": 1 - }, - "faxes": [ - { - "fax_id": "c2e9691c85d9d6fa6ae773842e3680b2b8650f1d", - "title": "example title", - "original_title": "example original title", - "subject": "example subject", - "message": "example message", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "created_at": 1726774555, - "sender": "me@dropboxsign.com", - "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", - } - ] - } -} diff --git a/test_fixtures/FaxSendRequest.json b/test_fixtures/FaxSendRequest.json deleted file mode 100644 index 4c418cb..0000000 --- a/test_fixtures/FaxSendRequest.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "default": { - "file_url": [ - "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2" - ], - "test_mode": "true", - "recipient": "16690000001", - "sender": "16690000000", - "cover_page_to": "Jill Fax", - "cover_page_message": "I'm sending you a fax!", - "cover_page_from": "Faxer Faxerson", - "title": "This is what the fax is about!" - } -} 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/test_fixtures/FileResponse.json b/test_fixtures/FileResponse.json deleted file mode 100644 index 42417f5..0000000 --- a/test_fixtures/FileResponse.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "default": { - "file_url": "https://s3.amazonaws.com/hellofax_uploads/super_groups/2016/03/18/9aba07a585d7e223b4f137c8981c5e5892893c00/merged-completed.pdf?AWSAccessKeyId=AKIAJWEWDFQHQMBECJZA&Expires=1452868903&Signature=M%2FNDS%2BQre8xjPvzm7fHf%2BjO8Zbc%3D", - "expires_at": 1458605123 - } -} diff --git a/test_fixtures/OAuthTokenGenerateRequest.json b/test_fixtures/OAuthTokenGenerateRequest.json deleted file mode 100644 index 2870cd3..0000000 --- a/test_fixtures/OAuthTokenGenerateRequest.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "default": { - "state": "900e06e2", - "code": "1b0d28d90c86c141", - "grant_type": "authorization_code", - "client_id": "cc91c61d00f8bb2ece1428035716b", - "client_secret": "1d14434088507ffa390e6f5528465" - } -} diff --git a/test_fixtures/OAuthTokenRefreshRequest.json b/test_fixtures/OAuthTokenRefreshRequest.json deleted file mode 100644 index 8eaacd6..0000000 --- a/test_fixtures/OAuthTokenRefreshRequest.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "default": { - "grant_type": "refresh_token", - "refresh_token": "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3" - } -} diff --git a/test_fixtures/OAuthTokenResponse.json b/test_fixtures/OAuthTokenResponse.json deleted file mode 100644 index 4863c39..0000000 --- a/test_fixtures/OAuthTokenResponse.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "default": { - "access_token": "NWNiOTMxOGFkOGVjMDhhNTAxZN2NkNjgxMjMwOWJiYTEzZTBmZGUzMjMThhMzYyMzc=", - "token_type": "Bearer", - "refresh_token": "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3", - "expires_in": 86400, - "state": "900e06e2" - }, - "refresh": { - "access_token": "NWNiOTMxOGFkOGVjMDhhNTAxZN2NkNjgxMjMwOWJiYTEzZTBmZGUzMjMThhMzYyMzc=", - "token_type": "Bearer", - "refresh_token": "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3", - "expires_in": 86400 - } -} diff --git a/test_fixtures/ReportCreateRequest.json b/test_fixtures/ReportCreateRequest.json deleted file mode 100644 index b743a83..0000000 --- a/test_fixtures/ReportCreateRequest.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "default": { - "start_date": "09/01/2020", - "end_date": "09/01/2020", - "report_type": [ - "user_activity", - "document_status" - ] - } -} diff --git a/test_fixtures/ReportCreateResponse.json b/test_fixtures/ReportCreateResponse.json deleted file mode 100644 index 87a5f7d..0000000 --- a/test_fixtures/ReportCreateResponse.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "default": { - "report": { - "success": "Your request is being processed. You will receive an email when the report is ready.", - "start_date": "09/01/2020", - "end_date": "09/02/2020", - "report_type": [ - "user_activity", - "document_status" - ] - } - } -} diff --git a/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json b/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json deleted file mode 100644 index c155d43..0000000 --- a/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "default": { - "allow_decline": true, - "ccs": [ - { - "role": "Accounting", - "email_address": "accounting@example.com" - } - ], - "client_id": "1a659d9ad95bccd307ecad78d72192f8", - "custom_fields": [ - { - "name": "Cost", - "value": "$20,000", - "editor": "Client", - "required": true - } - ], - "message": "Glad we could come to an agreement.", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "signer_list": [ - { - "signers": [ - { - "role": "Client", - "name": "George", - "email_address": "george@example.com", - "pin": "d79a3td", - "sms_phone_number": "123-123-1234" - } - ], - "custom_fields": [ - { - "name": "company", - "value": "ABC Corp" - } - ] - }, - { - "signers": [ - { - "role": "Client", - "name": "Mary", - "email_address": "mary@example.com", - "pin": "gd9as5b", - "sms_phone_number": "432-432-4321" - } - ], - "custom_fields": [ - { - "name": "company", - "value": "123 LLC" - } - ] - } - ], - "signing_redirect_url": "https://example.com/redirect", - "subject": "Purchase Order", - "template_ids": [ - "c26b8a16784a872da37ea946b9ddec7c1e11dff6" - ], - "test_mode": true, - "title": "My amazing title" - } -} diff --git a/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json b/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json deleted file mode 100644 index e08221f..0000000 --- a/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "default": { - "allow_decline": true, - "ccs": [ - { - "role": "Accounting", - "email_address": "accounting@example.com" - } - ], - "custom_fields": [ - { - "name": "Cost", - "value": "$20,000", - "editor": "Client", - "required": true - } - ], - "message": "Glad we could come to an agreement.", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "signer_list": [ - { - "signers": [ - { - "role": "Client", - "name": "George", - "email_address": "george@example.com", - "pin": "d79a3td", - "sms_phone_number": "123-123-1234" - } - ], - "custom_fields": [ - { - "name": "company", - "value": "ABC Corp" - } - ] - }, - { - "signers": [ - { - "role": "Client", - "name": "Mary", - "email_address": "mary@example.com", - "pin": "gd9as5b", - "sms_phone_number": "432-432-4321" - } - ], - "custom_fields": [ - { - "name": "company", - "value": "123 LLC" - } - ] - } - ], - "signing_redirect_url": "https://example.com/redirect", - "subject": "Purchase Order", - "template_ids": [ - "c26b8a16784a872da37ea946b9ddec7c1e11dff6" - ], - "test_mode": true, - "title": "My amazing title" - } -} diff --git a/test_fixtures/SignatureRequestCreateEmbeddedRequest.json b/test_fixtures/SignatureRequestCreateEmbeddedRequest.json deleted file mode 100644 index 16e8037..0000000 --- a/test_fixtures/SignatureRequestCreateEmbeddedRequest.json +++ /dev/null @@ -1,262 +0,0 @@ -{ - "default": { - "allow_decline": true, - "allow_reassign": true, - "attachments": [ - { - "name": "Attachment1", - "signer_index": 1, - "instructions": "Upload your Driver's License", - "required": true - } - ], - "cc_email_addresses": [ - "lawyer@dropboxsign.com", - "lawyer@example.com" - ], - "client_id": "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a", - "custom_fields": [ - { - "name": "Cost", - "value": "$20,000", - "editor": "Client", - "required": true - } - ], - "field_options": { - "date_format": "MM / DD / YYYY" - }, - "file_urls": [ - "https://app.hellosign.com/docs/example_signature_request.pdf" - ], - "form_field_groups": [ - { - "group_id": "RadioGroup1", - "group_label": "Radio Group 1", - "requirement": "require_0-1" - } - ], - "form_field_rules": [ - { - "id": "rule_1", - "trigger_operator": "AND", - "triggers": [ - { - "id": "uniqueIdHere_1", - "operator": "is", - "value": "foo" - } - ], - "actions": [ - { - "field_id": "uniqueIdHere_2", - "hidden": true, - "type": "change-field-visibility" - } - ] - } - ], - "form_fields_per_document": [ - { - "document_index": 0, - "api_id": "uniqueIdHere_1", - "name": "", - "type": "text", - "x": 112, - "y": 328, - "width": 100, - "height": 16, - "required": true, - "signer": "0", - "page": 1, - "validation_type": "numbers_only", - "font_family": "roboto", - "font_size": 11 - }, - { - "document_index": 0, - "api_id": "uniqueIdHere_2", - "name": "", - "type": "signature", - "x": 530, - "y": 415, - "width": 120, - "height": 30, - "required": true, - "signer": "0", - "page": 1 - } - ], - "hide_text_tags": false, - "message": "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "populate_auto_fill_fields": false, - "signers": [ - { - "email_address": "jack@example.com", - "name": "Jack", - "order": 0 - }, - { - "email_address": "jill@example.com", - "name": "Jill", - "order": 1 - } - ], - "signing_options": { - "draw": true, - "type": true, - "upload": true, - "phone": false, - "default_type": "draw" - }, - "subject": "The NDA we talked about", - "test_mode": true, - "title": "NDA with Acme Co.", - "use_text_tags": false - }, - "with_grouped_signers": { - "allow_decline": true, - "allow_reassign": true, - "attachments": [ - { - "name": "Attachment1", - "signer_index": 1, - "instructions": "Upload your Driver's License", - "required": true - } - ], - "cc_email_addresses": [ - "lawyer@dropboxsign.com", - "lawyer@example.com" - ], - "client_id": "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a", - "custom_fields": [ - { - "name": "Cost", - "value": "$20,000", - "editor": "Client", - "required": true - } - ], - "field_options": { - "date_format": "MM / DD / YYYY" - }, - "file_urls": [ - "https://app.hellosign.com/docs/example_signature_request.pdf" - ], - "form_field_groups": [ - { - "group_id": "RadioGroup1", - "group_label": "Radio Group 1", - "requirement": "require_0-1" - } - ], - "form_field_rules": [ - { - "id": "rule_1", - "trigger_operator": "AND", - "triggers": [ - { - "id": "uniqueIdHere_1", - "operator": "is", - "value": "foo" - } - ], - "actions": [ - { - "field_id": "uniqueIdHere_2", - "hidden": true, - "type": "change-field-visibility" - } - ] - } - ], - "form_fields_per_document": [ - { - "document_index": 0, - "api_id": "uniqueIdHere_1", - "name": "", - "type": "text", - "x": 112, - "y": 328, - "width": 100, - "height": 16, - "required": true, - "signer": "0", - "page": 1, - "validation_type": "numbers_only", - "font_family": "roboto", - "font_size": 11 - }, - { - "document_index": 0, - "api_id": "uniqueIdHere_2", - "name": "", - "type": "signature", - "x": 530, - "y": 415, - "width": 120, - "height": 30, - "required": true, - "signer": "0", - "page": 1 - } - ], - "hide_text_tags": false, - "message": "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - "metadata": { - "field1": "value1" - }, - "populate_auto_fill_fields": false, - "grouped_signers": [ - { - "group": "Group #1", - "order": 0, - "signers": [ - { - "email_address": "jack@example.com", - "name": "Jack" - }, - { - "email_address": "jill@example.com", - "name": "Jill" - } - ] - }, - { - "group": "Group #2", - "order": 1, - "signers": [ - { - "email_address": "bob@example.com", - "name": "Bob" - }, - { - "email_address": "charlie@example.com", - "name": "Charlie" - } - ] - } - ], - "signing_options": { - "draw": true, - "type": true, - "upload": true, - "phone": false, - "default_type": "draw" - }, - "subject": "The NDA we talked about", - "test_mode": true, - "title": "NDA with Acme Co.", - "use_text_tags": false - } -} diff --git a/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json b/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json deleted file mode 100644 index a9597ea..0000000 --- a/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "default": { - "allow_decline": true, - "ccs": [ - { - "role": "Accounting", - "email_address": "accounting@example.com" - } - ], - "client_id": "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a", - "custom_fields": [ - { - "name": "Cost", - "value": "$20,000", - "editor": "Client", - "required": true - } - ], - "file_urls": [ - "https://app.hellosign.com/docs/example_signature_request.pdf" - ], - "message": "Glad we could come to an agreement.", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "populate_auto_fill_fields": false, - "signers": [ - { - "role": "Role 1", - "name": "Signer 1", - "email_address": "s1@example.com", - "pin": "pin123", - "sms_phone_number": "123-123-1234" - }, - { - "role": "Role 2", - "name": "Signer 2", - "email_address": "s2@example.com" - }, - { - "role": "Role 2", - "name": "Signer 3", - "email_address": "s3@example.com" - } - ], - "signing_options": { - "draw": true, - "type": true, - "upload": true, - "phone": false, - "default_type": "draw" - }, - "subject": "Purchase Order", - "template_ids": [ - "c26b8a16784a872da37ea946b9ddec7c1e11dff6" - ], - "test_mode": true, - "title": "My amazing title" - } -} diff --git a/test_fixtures/SignatureRequestGetResponse.json b/test_fixtures/SignatureRequestGetResponse.json deleted file mode 100644 index f0fda3c..0000000 --- a/test_fixtures/SignatureRequestGetResponse.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "default": { - "signature_request": { - "signature_request_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160", - "title": "NDA with Acme Co.", - "original_title": "The NDA we talked about", - "subject": "The NDA we talked about", - "message": "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "created_at": 1570471067, - "is_complete": false, - "is_declined": false, - "has_error": false, - "expires_at": 0, - "custom_fields": [ - { - "name": "textbox1", - "type": "text", - "value": "hi mum", - "editor": "Client1", - "required": true, - "api_id": "textbox___1" - }, - { - "name": "checkbox1", - "type": "checkbox", - "value": true, - "editor": "Client1", - "required": true, - "api_id": "checkbox___1" - }, - { - "name": "textbox2", - "type": "text", - "value": "hi mum", - "editor": "Client2", - "required": true - }, - { - "name": "checkbox2", - "type": "checkbox", - "value": true, - "editor": "Client2", - "required": true - } - ], - "response_data": [ - { - "name": "Dropdown1", - "type": "dropdown", - "required": true, - "api_id": "dropdown__1", - "value": "1", - "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" - }, - { - "name": "Checkbox1", - "type": "checkbox", - "required": false, - "api_id": "checkbox__1", - "value": true, - "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" - }, - { - "name": "Textbox1", - "type": "text", - "required": true, - "api_id": "textbox__1", - "value": "Signature required below", - "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" - }, - { - "name": "DateSigned1", - "type": "date_signed", - "required": false, - "api_id": "datesigned__1", - "value": "06 / 29 / 2022", - "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" - }, - { - "name": "RadioItem1", - "type": "radio", - "required": false, - "api_id": "radio__1", - "value": true, - "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" - }, - { - "name": "Initial1", - "type": "initials", - "required": true, - "api_id": "initial__1", - "value": "YM", - "is_signed": true, - "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" - }, - { - "name": "RadioItem2", - "type": "radio", - "required": false, - "api_id": "radio__2", - "value": false, - "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" - }, - { - "name": "Signature1", - "type": "signature", - "required": true, - "api_id": "signature__1", - "value": "John Doe", - "is_signed": true, - "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" - } - ], - "signing_url": "https://app.hellosign.com/sign/a9f4825edef25f47e7b4c14ce8100d81d1693160", - "details_url": "https://app.hellosign.com/home/manage?guid=a9f4825edef25f47e7b4c14ce8100d81d1693160", - "requester_email_address": "me@dropboxsign.com", - "signatures": [ - { - "signature_id": "78caf2a1d01cd39cea2bc1cbb340dac3", - "signer_email_address": "jack@example.com", - "signer_name": "Jack", - "order": 0, - "status_code": "awaiting_signature", - "has_pin": false, - "has_sms_auth": false, - "has_sms_delivery": true, - "sms_phone_number": "+14155550100" - }, - { - "signature_id": "616629ed37f8588d28600be17ab5d6b7", - "signer_email_address": "jill@example.com", - "signer_name": "Jill", - "order": 1, - "status_code": "awaiting_signature", - "has_pin": false, - "has_sms_auth": false, - "has_sms_delivery": false - } - ], - "cc_email_addresses": [ - "lawyer@dropboxsign.com", - "lawyer@example.com" - ], - "test_mode": false - } - } -} diff --git a/test_fixtures/SignatureRequestListResponse.json b/test_fixtures/SignatureRequestListResponse.json deleted file mode 100644 index fd70a82..0000000 --- a/test_fixtures/SignatureRequestListResponse.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "default": { - "list_info": { - "page": 1, - "num_pages": 1, - "num_results": 2, - "page_size": 20 - }, - "signature_requests": [ - { - "signature_request_id": "d10338cad145e1cb68afc828", - "title": "FHA", - "original_title": "FHA", - "subject": "FHA", - "message": "Let me know if you two have any questions.", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "created_at": 1570471067, - "expires_at": 0, - "is_complete": false, - "is_declined": false, - "has_error": false, - "custom_fields": [], - "response_data": [], - "signing_url": "https://app.hellosign.com/sign/d10338cad145e1cb68afc828", - "details_url": "https://app.hellosign.com/home/manage?guid=d10338cad145e1cb68afc828", - "requester_email_address": "me@dropboxsign.com", - "signatures": [ - { - "signature_id": "78caf2a1d01cd39cea2bc1cbb340dac3", - "signer_email_address": "george-jetson@example.com", - "signer_name": "George Jetson", - "order": 0, - "status_code": "awaiting_signature", - "has_pin": false, - "has_sms_auth": false - }, - { - "signature_id": "616629ed37f8588d28600be17ab5d6b7", - "signer_email_address": "jane-jetson@example.com", - "signer_name": "Jane Jetson", - "order": 1, - "status_code": "awaiting_signature", - "has_pin": false, - "has_sms_auth": false - } - ], - "cc_email_addresses": [ - "stan@example.com" - ], - "test_mode": false - }, - { - "signature_request_id": "fa5c8a0b0f492d768749333a", - "title": "Purchase Agreement", - "original_title": "Purchase Agreement", - "subject": "Purchase Agreement", - "message": "Please sign and return.", - "metadata": {}, - "created_at": 1570471067, - "expires_at": 0, - "is_complete": true, - "is_declined": false, - "has_error": false, - "custom_fields": [], - "response_data": [ - { - "api_id": "uniqueIdHere_1", - "name": "Needs Express Shipping", - "signature_id": "5687fb7bd5aaacb1689728762b600c74", - "value": true, - "type": "checkbox", - "required": false - }, - { - "api_id": "uniqueIdHere_2", - "name": "Shipping Address", - "signature_id": "5687fb7bd5aaacb1689728762b600c74", - "value": "1212 Park Avenue", - "type": "text", - "required": false - }, - { - "api_id": "uniqueIdHere_3", - "name": "DateSigned", - "signature_id": "5687fb7bd5aaacb1689728762b600c74", - "value": "09/01/2012", - "type": "date_signed", - "required": false - } - ], - "details_url": "https://app.hellosign.com/home/manage?guid=fa5c8a0b0f492d768749333a", - "requester_email_address": "me@dropboxsign.com", - "signatures": [ - { - "signature_id": "5687fb7bd5aaacb1689728762b600c74", - "signer_email_address": "john@example.com", - "signer_name": "John Doe", - "status_code": "signed", - "signed_at": 1346521550, - "last_viewed_at": 1346521483, - "has_pin": false - } - ], - "cc_email_addresses": [], - "test_mode": false - } - ] - } -} diff --git a/test_fixtures/SignatureRequestRemindRequest.json b/test_fixtures/SignatureRequestRemindRequest.json deleted file mode 100644 index 7d5570a..0000000 --- a/test_fixtures/SignatureRequestRemindRequest.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "default": { - "email_address": "john@example.com" - } -} diff --git a/test_fixtures/SignatureRequestSendRequest.json b/test_fixtures/SignatureRequestSendRequest.json deleted file mode 100644 index 98d12db..0000000 --- a/test_fixtures/SignatureRequestSendRequest.json +++ /dev/null @@ -1,479 +0,0 @@ -{ - "default": { - "allow_decline": true, - "allow_reassign": true, - "attachments": [ - { - "name": "Attachment1", - "signer_index": 1, - "instructions": "Upload your Driver's License", - "required": true - } - ], - "cc_email_addresses": [ - "lawyer@dropboxsign.com", - "lawyer@example.com" - ], - "client_id": "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a", - "custom_fields": [ - { - "name": "Cost", - "value": "$20,000", - "editor": "Client", - "required": true - } - ], - "field_options": { - "date_format": "DD - MM - YYYY" - }, - "file_urls": [ - "https://app.hellosign.com/docs/example_signature_request.pdf" - ], - "form_field_groups": [ - { - "group_id": "radio_group_1", - "group_label": "Radio Group 1", - "requirement": "require_0-1" - } - ], - "form_field_rules": [ - { - "id": "rule_1", - "trigger_operator": "AND", - "triggers": [ - { - "id": "api_id_1", - "operator": "is", - "value": "foo" - } - ], - "actions": [ - { - "field_id": "api_id_2", - "hidden": true, - "type": "change-field-visibility" - } - ] - }, - { - "id": "rule_2", - "trigger_operator": "AND", - "triggers": [ - { - "id": "api_id_2", - "operator": "not", - "value": "bar" - } - ], - "actions": [ - { - "field_id": "api_id_3", - "hidden": true, - "type": "change-field-visibility" - } - ] - }, - { - "id": "rule_3", - "trigger_operator": "AND", - "triggers": [ - { - "id": "api_id_3", - "operator": "any", - "values": [ - "Option 1", - "Option 2" - ] - } - ], - "actions": [ - { - "group_id": "radio_group_1", - "hidden": true, - "type": "change-group-visibility" - } - ] - } - ], - "form_fields_per_document": [ - { - "document_index": 0, - "api_id": "api_id_1", - "name": "field_1", - "type": "text", - "x": 260, - "y": 315, - "width": 120, - "height": 30, - "required": true, - "signer": "1", - "page": 1, - "font_family": "roboto", - "font_size": 11 - }, - { - "document_index": 0, - "api_id": "api_id_2", - "name": "field_2", - "type": "text", - "x": 260, - "y": 315, - "width": 120, - "height": 30, - "required": true, - "signer": "1", - "page": 1, - "font_size": 12 - }, - { - "document_index": 0, - "api_id": "api_id_3", - "name": "field_3", - "type": "dropdown", - "options": [ - "Option 1", - "Option 2", - "Option 3" - ], - "x": 260, - "y": 315, - "width": 120, - "height": 30, - "required": true, - "signer": "1", - "page": 1, - "font_size": 12 - }, - { - "document_index": 0, - "api_id": "api_id_4", - "name": "field_4", - "type": "text", - "x": 260, - "y": 315, - "width": 120, - "height": 30, - "required": true, - "signer": "1", - "page": 1, - "font_size": 12 - }, - { - "document_index": 0, - "api_id": "api_id_5", - "name": "field_5", - "type": "radio", - "group": "radio_group_1", - "is_checked": true, - "x": 112, - "y": 328, - "width": 100, - "height": 16, - "required": false, - "signer": "1" - }, - { - "document_index": 0, - "api_id": "api_id_6", - "name": "field_6", - "type": "radio", - "group": "radio_group_1", - "is_checked": false, - "x": 112, - "y": 328, - "width": 100, - "height": 16, - "required": false, - "signer": "1" - } - ], - "hide_text_tags": true, - "is_qualified_signature": false, - "is_eid": false, - "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "signers": [ - { - "email_address": "s1@example.com", - "name": "Signer 1", - "order": 0, - "sms_phone_number": "+14155550100", - "sms_phone_number_type": "delivery" - }, - { - "email_address": "s2@example.com", - "name": "Signer 2", - "order": 1 - }, - { - "email_address": "s3@example.com", - "name": "Signer 3", - "order": 2 - }, - { - "email_address": "s4@example.com", - "name": "Signer 4", - "order": 3 - } - ], - "signing_options": { - "draw": true, - "type": true, - "upload": true, - "phone": false, - "default_type": "draw" - }, - "signing_redirect_url": "https://example.com/redirect", - "subject": "The NDA we talked about", - "test_mode": true, - "title": "NDA with Acme Co.", - "use_text_tags": true - }, - "with_grouped_signers": { - "allow_decline": true, - "allow_reassign": true, - "attachments": [ - { - "name": "Attachment1", - "signer_index": 1, - "instructions": "Upload your Driver's License", - "required": true - } - ], - "cc_email_addresses": [ - "lawyer@dropboxsign.com", - "lawyer@example.com" - ], - "client_id": "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a", - "custom_fields": [ - { - "name": "Cost", - "value": "$20,000", - "editor": "Client", - "required": true - } - ], - "field_options": { - "date_format": "DD - MM - YYYY" - }, - "file_urls": [ - "https://app.hellosign.com/docs/example_signature_request.pdf" - ], - "form_field_groups": [ - { - "group_id": "radio_group_1", - "group_label": "Radio Group 1", - "requirement": "require_0-1" - } - ], - "form_field_rules": [ - { - "id": "rule_1", - "trigger_operator": "AND", - "triggers": [ - { - "id": "api_id_1", - "operator": "is", - "value": "foo" - } - ], - "actions": [ - { - "field_id": "api_id_2", - "hidden": true, - "type": "change-field-visibility" - } - ] - }, - { - "id": "rule_2", - "trigger_operator": "AND", - "triggers": [ - { - "id": "api_id_2", - "operator": "not", - "value": "bar" - } - ], - "actions": [ - { - "field_id": "api_id_3", - "hidden": true, - "type": "change-field-visibility" - } - ] - }, - { - "id": "rule_3", - "trigger_operator": "AND", - "triggers": [ - { - "id": "api_id_3", - "operator": "any", - "values": [ - "Option 1", - "Option 2" - ] - } - ], - "actions": [ - { - "group_id": "radio_group_1", - "hidden": true, - "type": "change-group-visibility" - } - ] - } - ], - "form_fields_per_document": [ - { - "document_index": 0, - "api_id": "api_id_1", - "name": "field_1", - "type": "text", - "x": 260, - "y": 315, - "width": 120, - "height": 30, - "required": true, - "signer": "1", - "page": 1, - "font_family": "roboto", - "font_size": 11 - }, - { - "document_index": 0, - "api_id": "api_id_2", - "name": "field_2", - "type": "text", - "x": 260, - "y": 315, - "width": 120, - "height": 30, - "required": true, - "signer": "1", - "page": 1, - "font_size": 12 - }, - { - "document_index": 0, - "api_id": "api_id_3", - "name": "field_3", - "type": "dropdown", - "options": [ - "Option 1", - "Option 2", - "Option 3" - ], - "x": 260, - "y": 315, - "width": 120, - "height": 30, - "required": true, - "signer": "1", - "page": 1, - "font_size": 12 - }, - { - "document_index": 0, - "api_id": "api_id_4", - "name": "field_4", - "type": "text", - "x": 260, - "y": 315, - "width": 120, - "height": 30, - "required": true, - "signer": "1", - "page": 1, - "font_size": 12 - }, - { - "document_index": 0, - "api_id": "api_id_5", - "name": "field_5", - "type": "radio", - "group": "radio_group_1", - "is_checked": true, - "x": 112, - "y": 328, - "width": 100, - "height": 16, - "required": false, - "signer": "1" - }, - { - "document_index": 0, - "api_id": "api_id_6", - "name": "field_6", - "type": "radio", - "group": "radio_group_1", - "is_checked": false, - "x": 112, - "y": 328, - "width": 100, - "height": 16, - "required": false, - "signer": "1" - } - ], - "hide_text_tags": true, - "is_qualified_signature": false, - "is_eid": false, - "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", - "metadata": { - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "grouped_signers": [ - { - "group": "Group #1", - "order": 0, - "signers": [ - { - "email_address": "jack@example.com", - "name": "Jack" - }, - { - "email_address": "jill@example.com", - "name": "Jill" - } - ] - }, - { - "group": "Group #2", - "order": 1, - "signers": [ - { - "email_address": "bob@example.com", - "name": "Bob" - }, - { - "email_address": "charlie@example.com", - "name": "Charlie" - } - ] - } - ], - "signing_options": { - "draw": true, - "type": true, - "upload": true, - "phone": false, - "default_type": "draw" - }, - "signing_redirect_url": "https://example.com/redirect", - "subject": "The NDA we talked about", - "test_mode": true, - "title": "NDA with Acme Co.", - "use_text_tags": true - } -} diff --git a/test_fixtures/SignatureRequestSendWithTemplateRequest.json b/test_fixtures/SignatureRequestSendWithTemplateRequest.json deleted file mode 100644 index 4d1cc86..0000000 --- a/test_fixtures/SignatureRequestSendWithTemplateRequest.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "default": { - "allow_decline": true, - "ccs": [ - { - "role": "Accounting", - "email_address": "accounting@example.com" - } - ], - "client_id": "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a", - "custom_fields": [ - { - "name": "Cost", - "value": "$20,000", - "editor": "Client", - "required": true - } - ], - "is_qualified_signature": false, - "is_eid": false, - "message": "Glad we could come to an agreement.", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "signers": [ - { - "role": "Client", - "name": "George", - "email_address": "george@example.com", - "sms_phone_number": "+14155550100", - "sms_phone_number_type": "delivery" - } - ], - "signing_options": { - "draw": true, - "type": true, - "upload": true, - "phone": false, - "default_type": "draw" - }, - "signing_redirect_url": "https://example.com/redirect", - "subject": "Purchase Order", - "template_ids": [ - "c26b8a16784a872da37ea946b9ddec7c1e11dff6" - ], - "test_mode": true, - "title": "NDA with Acme Co." - } -} diff --git a/test_fixtures/SignatureRequestUpdateRequest.json b/test_fixtures/SignatureRequestUpdateRequest.json deleted file mode 100644 index 92085a6..0000000 --- a/test_fixtures/SignatureRequestUpdateRequest.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "default": { - "email_address": "john@example.com", - "name": "New Signer 1", - "signature_id": "The signature ID for the recipient." - } -} diff --git a/test_fixtures/SubFormFieldsPerDocument.json b/test_fixtures/SubFormFieldsPerDocument.json deleted file mode 100644 index afcbcc2..0000000 --- a/test_fixtures/SubFormFieldsPerDocument.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "SubFormFieldsPerDocumentCheckbox": { - "type": "checkbox", - "document_index": 0, - "api_id": "api_id_1", - "required": false, - "signer": "1", - "width": 100, - "height": 16, - "x": 112, - "y": 328, - "is_checked": false - }, - "SubFormFieldsPerDocumentCheckboxMerge": { - "type" : "checkbox-merge", - "document_index": 0, - "api_id": "api_id_2", - "required": true, - "signer" : "1", - "width" : 100, - "height" : 16, - "x" : 112, - "y" : 328 - }, - "SubFormFieldsPerDocumentDropdown": { - "type" : "dropdown", - "document_index": 1, - "api_id": "api_id_3", - "required": false, - "signer": "1", - "width": 100, - "height": 16, - "x": 112, - "y": 328, - "options": ["foo"], - "font_size": 12 - }, - "SubFormFieldsPerDocumentHyperlink": { - "type" : "hyperlink", - "document_index": 1, - "api_id": "api_id_4", - "required": true, - "signer": "1", - "width": 100, - "height": 16, - "x": 112, - "y": 328, - "content": "Dropbox Sign", - "content_url": "https://dropboxsign.com", - "font_size": 12 - }, - "SubFormFieldsPerDocumentInitials": { - "type" : "initials", - "document_index": 0, - "api_id": "api_id_5", - "required": false, - "signer": "1", - "width": 100, - "height": 16, - "x": 112, - "y": 328 - }, - "SubFormFieldsPerDocumentRadio": { - "type" : "radio", - "document_index": 2, - "api_id": "api_id_6", - "required": false, - "signer": "1", - "width": 100, - "height": 16, - "x": 112, - "y": 328, - "group": "Radio Group", - "is_checked": false - }, - "SubFormFieldsPerDocumentSignature": { - "type" : "signature", - "document_index": 3, - "api_id": "api_id_7", - "required": false, - "signer": "1", - "width": 100, - "height": 16, - "x": 112, - "y": 328 - }, - "SubFormFieldsPerDocumentText": { - "type" : "text", - "document_index": 0, - "api_id": "api_id_8", - "required": false, - "signer": "1", - "width": 100, - "height": 16, - "x": 112, - "y": 328, - "font_size": 12 - }, - "SubFormFieldsPerDocumentTextMerge": { - "type" : "text-merge", - "document_index": 0, - "api_id": "api_id_9", - "required": false, - "signer": "1", - "width": 100, - "height": 16, - "x": 112, - "y": 328, - "font_size": 12 - } -} diff --git a/test_fixtures/TeamAddMemberRequest.json b/test_fixtures/TeamAddMemberRequest.json deleted file mode 100644 index df7a284..0000000 --- a/test_fixtures/TeamAddMemberRequest.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "default": { - "account_id": "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a", - "email_address": "george@example.com" - } -} diff --git a/test_fixtures/TeamCreateRequest.json b/test_fixtures/TeamCreateRequest.json deleted file mode 100644 index fe9514a..0000000 --- a/test_fixtures/TeamCreateRequest.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "default": { - "name": "Team America World Police" - } -} diff --git a/test_fixtures/TeamGetResponse.json b/test_fixtures/TeamGetResponse.json deleted file mode 100644 index 327d26c..0000000 --- a/test_fixtures/TeamGetResponse.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "default": { - "team": { - "name": "New Team Name", - "accounts": [ - { - "account_id": "5008b25c7f67153e57d5a357b1687968068fb465", - "email_address": "me@dropboxsign.com", - "is_locked": false, - "is_paid_hs": true, - "is_paid_hf": false, - "quotas": { - "api_signature_requests_left": 1250 - }, - "role_code": "a" - } - ], - "invited_accounts": [ - { - "account_id": "8e239b5a50eac117fdd9a0e2359620aa57cb2463", - "email_address": "george@hellofax.com", - "is_locked": false, - "is_paid_hs": false, - "is_paid_hf": false, - "quotas": { - "templates_left": 0, - "documents_left": 3, - "api_signature_requests_left": 0 - } - } - ], - "invited_emails": [ - "invite_1@example.com", - "invite_2@example.com", - "invite_3@example.com" - ] - } - } -} diff --git a/test_fixtures/TeamRemoveMemberRequest.json b/test_fixtures/TeamRemoveMemberRequest.json deleted file mode 100644 index 2dce810..0000000 --- a/test_fixtures/TeamRemoveMemberRequest.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "default": { - "account_id": "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a", - "email_address": "teammate@dropboxsign.com", - "new_owner_email_address": "new_teammate@dropboxsign.com" - } -} diff --git a/test_fixtures/TeamUpdateRequest.json b/test_fixtures/TeamUpdateRequest.json deleted file mode 100644 index 89d2534..0000000 --- a/test_fixtures/TeamUpdateRequest.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "default": { - "name": "New Team Name" - } -} diff --git a/test_fixtures/TemplateAddUserRequest.json b/test_fixtures/TemplateAddUserRequest.json deleted file mode 100644 index 7600d74..0000000 --- a/test_fixtures/TemplateAddUserRequest.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "default": { - "account_id": "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a", - "email_address": "george@dropboxsign.com", - "skip_notification": false - } -} diff --git a/test_fixtures/TemplateCreateEmbeddedDraftRequest.json b/test_fixtures/TemplateCreateEmbeddedDraftRequest.json deleted file mode 100644 index b293945..0000000 --- a/test_fixtures/TemplateCreateEmbeddedDraftRequest.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "default": { - "allow_ccs": true, - "allow_reassign": true, - "attachments": [ - { - "name": "Attachment1", - "signer_index": 1, - "instructions": "Upload your Driver's License", - "required": true - } - ], - "cc_roles": [ - "Manager" - ], - "client_id": "37dee8d8440c66d54cfa05d92c160882", - "editor_options": { - "allow_edit_signers": true, - "allow_edit_documents": false - }, - "field_options": { - "date_format": "DD - MM - YYYY" - }, - "file_urls": [ - "https://app.hellosign.com/docs/example_signature_request.pdf" - ], - "force_signer_roles": false, - "force_subject_message": false, - "form_field_groups": [ - { - "group_id": "RadioGroup1", - "group_label": "Radio Group 1", - "requirement": "require_0-1" - } - ], - "form_field_rules": [ - { - "id": "rule_1", - "trigger_operator": "AND", - "triggers": [ - { - "id": "uniqueIdHere_1", - "operator": "is", - "value": "foo" - } - ], - "actions": [ - { - "field_id": "uniqueIdHere_2", - "hidden": true, - "type": "change-field-visibility" - } - ] - } - ], - "form_fields_per_document": [ - { - "document_index": 0, - "api_id": "uniqueIdHere_1", - "name": "", - "type": "text", - "x": 112, - "y": 328, - "width": 100, - "height": 16, - "required": true, - "signer": "0", - "page": 1, - "validation_type": "numbers_only", - "font_family": "roboto", - "font_size": 11 - }, - { - "document_index": 0, - "api_id": "uniqueIdHere_2", - "name": "", - "type": "signature", - "x": 530, - "y": 415, - "width": 120, - "height": 30, - "required": true, - "signer": "0", - "page": 1 - } - ], - "merge_fields": [ - { - "name": "Full Name", - "type": "text" - }, - { - "name": "Is Registered?", - "type": "checkbox" - } - ], - "message": "For your approval", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "show_preview": true, - "show_progress_stepper": true, - "signer_roles": [ - { - "name": "Client", - "order": 0 - }, - { - "name": "Witness", - "order": 1 - } - ], - "skip_me_now": true, - "subject": "Please sign this document", - "test_mode": true, - "title": "Test Template", - "use_preexisting_fields": true - } -} diff --git a/test_fixtures/TemplateCreateEmbeddedDraftResponse.json b/test_fixtures/TemplateCreateEmbeddedDraftResponse.json deleted file mode 100644 index b14cdb8..0000000 --- a/test_fixtures/TemplateCreateEmbeddedDraftResponse.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "default": { - "template": { - "template_id": "61a832ff0d8423f91d503e76bfbcc750f7417c78", - "edit_url": "https://app.hellosign.com/editor/embeddedTemplate?token=8d80ead273a0405d6844005a20beb99b&root_snapshot_guids%5B0%5D=74cc144a76afa5bdca3378278e9a6ac3c2947c92&snapshot_access_guids%5B0%5D=9ceac764&guid=61a832ff0d8423f91d503e76bfbcc750f7417c78", - "expires_at": 1427306768 - } - } -} diff --git a/test_fixtures/TemplateCreateRequest.json b/test_fixtures/TemplateCreateRequest.json deleted file mode 100644 index b293945..0000000 --- a/test_fixtures/TemplateCreateRequest.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "default": { - "allow_ccs": true, - "allow_reassign": true, - "attachments": [ - { - "name": "Attachment1", - "signer_index": 1, - "instructions": "Upload your Driver's License", - "required": true - } - ], - "cc_roles": [ - "Manager" - ], - "client_id": "37dee8d8440c66d54cfa05d92c160882", - "editor_options": { - "allow_edit_signers": true, - "allow_edit_documents": false - }, - "field_options": { - "date_format": "DD - MM - YYYY" - }, - "file_urls": [ - "https://app.hellosign.com/docs/example_signature_request.pdf" - ], - "force_signer_roles": false, - "force_subject_message": false, - "form_field_groups": [ - { - "group_id": "RadioGroup1", - "group_label": "Radio Group 1", - "requirement": "require_0-1" - } - ], - "form_field_rules": [ - { - "id": "rule_1", - "trigger_operator": "AND", - "triggers": [ - { - "id": "uniqueIdHere_1", - "operator": "is", - "value": "foo" - } - ], - "actions": [ - { - "field_id": "uniqueIdHere_2", - "hidden": true, - "type": "change-field-visibility" - } - ] - } - ], - "form_fields_per_document": [ - { - "document_index": 0, - "api_id": "uniqueIdHere_1", - "name": "", - "type": "text", - "x": 112, - "y": 328, - "width": 100, - "height": 16, - "required": true, - "signer": "0", - "page": 1, - "validation_type": "numbers_only", - "font_family": "roboto", - "font_size": 11 - }, - { - "document_index": 0, - "api_id": "uniqueIdHere_2", - "name": "", - "type": "signature", - "x": 530, - "y": 415, - "width": 120, - "height": 30, - "required": true, - "signer": "0", - "page": 1 - } - ], - "merge_fields": [ - { - "name": "Full Name", - "type": "text" - }, - { - "name": "Is Registered?", - "type": "checkbox" - } - ], - "message": "For your approval", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "show_preview": true, - "show_progress_stepper": true, - "signer_roles": [ - { - "name": "Client", - "order": 0 - }, - { - "name": "Witness", - "order": 1 - } - ], - "skip_me_now": true, - "subject": "Please sign this document", - "test_mode": true, - "title": "Test Template", - "use_preexisting_fields": true - } -} diff --git a/test_fixtures/TemplateCreateResponse.json b/test_fixtures/TemplateCreateResponse.json deleted file mode 100644 index b1ad504..0000000 --- a/test_fixtures/TemplateCreateResponse.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "default": { - "template": { - "template_id": "21f920ec2b7f4b6bb64d3ed79f26303843046536" - } - } -} diff --git a/test_fixtures/TemplateGetResponse.json b/test_fixtures/TemplateGetResponse.json deleted file mode 100644 index 0961c0e..0000000 --- a/test_fixtures/TemplateGetResponse.json +++ /dev/null @@ -1,618 +0,0 @@ -{ - "default": { - "template": { - "template_id": "21f920ec2b7f4b6bb64d3ed79f26303843046536", - "title": "Mutual NDA", - "message": "Please sign this NDA as soon as possible.", - "updated_at": 1570471067, - "can_edit": true, - "is_creator": true, - "is_embedded": false, - "is_locked": false, - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "signer_roles": [ - { - "name": "Outside Vendor", - "order": 0 - }, - { - "name": "Internal Manager", - "order": 1 - } - ], - "cc_roles": [ - { - "name": "Corporate Attorney" - } - ], - "documents": [ - { - "index": 0, - "name": "mutual_nda.pdf", - "field_groups": [ - { - "name": "75a6e4b5fea47", - "rule": { - "requirement": "require_1", - "groupLabel": "CheckboxGroup1" - } - }, - { - "name": "0831822584086", - "rule": { - "requirement": "require_0-1", - "groupLabel": "RadioItemGroup1" - } - } - ], - "custom_fields": [ - { - "name": "merge_field_1", - "type": "text", - "x": 417, - "y": 219, - "width": 72, - "height": 15, - "required": false, - "api_id": "967c3e5f-2912-4f53-8ea3-c750652d29fc", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "merge_field_2", - "type": "checkbox", - "x": 515, - "y": 346, - "width": 18, - "height": 18, - "required": false, - "api_id": "5e8fe02f-51cf-4f0b-b1d9-2b1e4f6ad07f" - } - ], - "form_fields": [ - { - "name": "Signature1", - "type": "signature", - "signer": "1", - "x": 136, - "y": 17, - "width": 108, - "height": 27, - "required": true, - "api_id": "8b6d78a5-0870-4f46-af9c-b78b54a49348" - }, - { - "name": "Textbox1", - "type": "text", - "signer": "1", - "x": 328, - "y": 17, - "width": 144, - "height": 14, - "required": true, - "api_id": "7ec10d80-53c9-433b-b252-0b8daa90a8e0", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 38 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "Textbox2", - "type": "text", - "signer": "1", - "x": 328, - "y": 48, - "width": 144, - "height": 14, - "required": true, - "api_id": "6574e6ad-7dac-49a2-9d56-650d7c5ade6e", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 38 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "Initial1", - "type": "initials", - "signer": "1", - "x": 148, - "y": 66, - "width": 72, - "height": 27, - "required": true, - "api_id": "30f41f54-c7f3-46c3-a29a-bb76ec40b552" - }, - { - "name": "Checkbox1", - "type": "checkbox", - "signer": "1", - "x": 325, - "y": 111, - "width": 18, - "height": 18, - "required": false, - "api_id": "d4d6ada9-e1dc-419e-bc0d-1478da694449", - "group": "75a6e4b5fea47" - }, - { - "name": "Dropdown1", - "type": "dropdown", - "signer": "1", - "x": 423, - "y": 108, - "width": 70, - "height": 14, - "required": true, - "api_id": "5863be5e-ce5a-4c9d-aabe-c221914d73c2" - }, - { - "name": "DateSigned1", - "type": "date_signed", - "signer": "1", - "x": 150, - "y": 119, - "width": 105, - "height": 18, - "required": true, - "api_id": "9f6d3722-6db7-46da-8fac-3bc09f510262" - }, - { - "name": "Checkbox2", - "type": "checkbox", - "signer": "1", - "x": 325, - "y": 135, - "width": 18, - "height": 18, - "required": false, - "api_id": "edd732b8-b158-4714-a87b-503637d09ded", - "group": "75a6e4b5fea47" - }, - { - "name": "FullName1", - "type": "text", - "signer": "1", - "x": 144, - "y": 158, - "width": 72, - "height": 14, - "required": true, - "api_id": "62fd3f85-4808-4011-8eae-a14ebe9105ef", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "Email1", - "type": "text", - "signer": "1", - "x": 133, - "y": 191, - "width": 144, - "height": 14, - "required": true, - "api_id": "a1c9bc6b-d498-4787-86e0-30ea779f06a7", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 38 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "email_address" - }, - { - "name": "RadioItem1", - "type": "radio", - "signer": "1", - "x": 307, - "y": 211, - "width": 18, - "height": 18, - "required": false, - "api_id": "fc8a1277-f757-47a2-aeea-5113fa81f2d5", - "group": "0831822584086" - }, - { - "name": "Company1", - "type": "text", - "signer": "1", - "x": 128, - "y": 221, - "width": 144, - "height": 14, - "required": true, - "api_id": "279b4e7f-e71f-426d-845c-6308cddde379", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 38 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "Title1", - "type": "text", - "signer": "1", - "x": 127, - "y": 250, - "width": 144, - "height": 14, - "required": true, - "api_id": "8809e39a-a46c-4dae-aaf9-06fc6355d80f", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 38 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "RadioItem2", - "type": "radio", - "signer": "1", - "x": 307, - "y": 253, - "width": 18, - "height": 18, - "required": false, - "api_id": "f7b6b70d-0522-4ab7-bfec-b86f147c8be3", - "group": "0831822584086" - }, - { - "name": "Textbox3", - "type": "text", - "signer": "1", - "x": 410, - "y": 279, - "width": 144, - "height": 14, - "required": true, - "api_id": "bad7512a-e22b-46ed-ba03-123db0eda932", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 38 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "Textbox4", - "type": "text", - "signer": "1", - "x": 101, - "y": 314, - "width": 72, - "height": 14, - "required": true, - "api_id": "368ed029-bc93-4f92-8f7a-14c3bf8109b5", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "custom_regex" - }, - { - "name": "Textbox8", - "type": "text", - "signer": "1", - "x": 218, - "y": 313, - "width": 72, - "height": 14, - "required": true, - "api_id": "ecf2ae95-d2e6-41b2-819a-836a6fa8c7c5", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "bank_routing_number" - }, - { - "name": "Textbox12", - "type": "text", - "signer": "1", - "x": 339, - "y": 315, - "width": 72, - "height": 14, - "required": true, - "api_id": "3cb90a0a-a433-4f30-8af8-8fb4c747b704", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "social_security_number" - }, - { - "name": "Textbox9", - "type": "text", - "signer": "1", - "x": 224, - "y": 343, - "width": 72, - "height": 14, - "required": true, - "api_id": "5b9eb331-c97d-435b-a563-d936a9b930c0", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "bank_account_number" - }, - { - "name": "Textbox13", - "type": "text", - "signer": "1", - "x": 339, - "y": 345, - "width": 72, - "height": 14, - "required": true, - "api_id": "2b98ce7e-e53a-4cf8-a9f3-d7fb18d88631", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "employer_identification_number" - }, - { - "name": "Textbox5", - "type": "text", - "signer": "1", - "x": 113, - "y": 350, - "width": 72, - "height": 14, - "required": true, - "api_id": "5f52c011-2c5f-4143-bf04-4694fb4a0d3f", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "numbers_only" - }, - { - "name": "Textbox6", - "type": "text", - "signer": "1", - "x": 122, - "y": 374, - "width": 72, - "height": 14, - "required": true, - "api_id": "47457b7d-b1e8-41a0-93ad-60ba30e64bb1", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "letters_only" - }, - { - "name": "Textbox10", - "type": "text", - "signer": "1", - "x": 234, - "y": 373, - "width": 72, - "height": 14, - "required": true, - "api_id": "18e3f994-1675-4d58-9b4a-4f92a2614551", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "email_address" - }, - { - "name": "Textbox14", - "type": "text", - "signer": "1", - "x": 339, - "y": 376, - "width": 72, - "height": 14, - "required": true, - "api_id": "9ad4b8cc-bac9-432b-8836-9f80f86fc7e0", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "Textbox7", - "type": "text", - "signer": "1", - "x": 130, - "y": 401, - "width": 72, - "height": 14, - "required": true, - "api_id": "58c5f942-04fb-45f1-9703-5e8411f3a3bb", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "phone_number" - }, - { - "name": "me_now_hyperlink_1", - "type": "hyperlink", - "signer": "me_now", - "x": 434, - "y": 400, - "width": 112, - "height": 14, - "required": false, - "api_id": "fd928b56-cf59-40a4-9a90-62f97ffd0ddc", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 30 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "helvetica" - }, - { - "name": "Textbox11", - "type": "text", - "signer": "1", - "x": 237, - "y": 405, - "width": 72, - "height": 14, - "required": true, - "api_id": "e48c388d-8c26-4f20-848e-f8587a631746", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "zip_code" - } - ], - "static_fields": [ - { - "name": "me_now_signature_1", - "type": "signature", - "signer": "me_now", - "x": 535, - "y": 150, - "width": 108, - "height": 27, - "required": false, - "api_id": "988565fd-6f85-4081-9fa4-5ae51e16dfc9" - }, - { - "name": "me_now_radio_1", - "type": "checkbox", - "signer": "me_now", - "x": 450, - "y": 428, - "width": 18, - "height": 18, - "required": false, - "api_id": "f008a911-26c2-4d7c-baef-d82c7e180f7a" - }, - { - "name": "me_now_date_signed_1", - "type": "text", - "signer": "me_now", - "x": 491, - "y": 466, - "width": 86, - "height": 14, - "required": false, - "api_id": "1220d8b3-7b2c-4ea7-971a-333e03839922" - }, - { - "name": "me_now_text_1", - "type": "text", - "signer": "me_now", - "x": 343, - "y": 509, - "width": 101, - "height": 14, - "required": false, - "api_id": "0829b343-71d2-4719-b563-808b8997174f" - } - ] - } - ], - "accounts": [ - { - "account_id": "5008b25c7f67153e57d5a357b1687968068fb465", - "email_address": "me@dropboxsign.com", - "is_locked": false, - "is_paid_hs": false, - "is_paid_hf": false, - "quotas": { - "templates_left": 5, - "api_signature_requests_left": 5, - "documents_left": 5, - "sms_verifications_left": 0 - } - }, - { - "account_id": "", - "email_address": "teammate@dropboxsign.com", - "is_locked": false, - "is_paid_hs": false, - "is_paid_hf": false, - "quotas": { - "templates_left": 5, - "api_signature_requests_left": 5, - "documents_left": 5, - "sms_verifications_left": 0 - } - } - ], - "attachments": [ - { - "id": "attachment_1", - "signer": "Outside Vendor", - "name": "Attachment #1", - "required": true - } - ] - } - } -} diff --git a/test_fixtures/TemplateListResponse.json b/test_fixtures/TemplateListResponse.json deleted file mode 100644 index a4a144c..0000000 --- a/test_fixtures/TemplateListResponse.json +++ /dev/null @@ -1,619 +0,0 @@ -{ - "default": { - "list_info": { - "page": 1, - "num_pages": 1, - "num_results": 2, - "page_size": 20 - }, - "templates": [ - { - "template_id": "c26b8a16784a872da37ea946b9ddec7c1e11dff6", - "title": "Purchase order", - "message": "", - "updated_at": 1570471067, - "can_edit": true, - "is_creator": true, - "is_embedded": false, - "is_locked": false, - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "signer_roles": [ - { - "name": "Client", - "order": 0 - } - ], - "cc_roles": [ - { - "name": "Accounting" - } - ], - "documents": [ - { - "index": 0, - "name": "purchase_order.pdf", - "field_groups": [], - "form_fields": [], - "custom_fields": [ - { - "name": "merge_field_1", - "type": "text", - "x": 417, - "y": 219, - "width": 72, - "height": 15, - "required": false, - "api_id": "967c3e5f-2912-4f53-8ea3-c750652d29fc", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - } - ], - "static_fields": [] - } - ], - "accounts": [ - { - "account_id": "5008b25c7f67153e57d5a357b1687968068fb465", - "email_address": "me@dropboxsign.com", - "is_locked": false, - "is_paid_hs": false, - "is_paid_hf": false, - "quotas": { - "templates_left": 5, - "api_signature_requests_left": 5, - "documents_left": 5, - "sms_verifications_left": 0 - } - } - ], - "attachments": [ - { - "id": "attachment_1", - "signer": "Outside Vendor", - "name": "Attachment #1", - "required": true - } - ] - }, - { - "template_id": "21f920ec2b7f4b6bb64d3ed79f26303843046536", - "title": "Mutual NDA", - "message": "Please sign this NDA as soon as possible.", - "updated_at": 1329478947, - "can_edit": true, - "is_creator": true, - "is_embedded": false, - "is_locked": false, - "metadata": {}, - "signer_roles": [ - { - "name": "Outside Vendor", - "order": 0 - }, - { - "name": "Internal Manager", - "order": 1 - } - ], - "cc_roles": [ - { - "name": "Corporate Attorney" - } - ], - "documents": [ - { - "index": 0, - "name": "mutual_nda.pdf", - "field_groups": [], - "custom_fields": [ - { - "name": "merge_field_1", - "type": "text", - "x": 417, - "y": 219, - "width": 72, - "height": 15, - "required": false, - "api_id": "967c3e5f-2912-4f53-8ea3-c750652d29fc", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "merge_field_2", - "type": "checkbox", - "x": 515, - "y": 346, - "width": 18, - "height": 18, - "required": false, - "api_id": "5e8fe02f-51cf-4f0b-b1d9-2b1e4f6ad07f" - } - ], - "form_fields": [ - { - "name": "Signature1", - "type": "signature", - "signer": "1", - "x": 136, - "y": 17, - "width": 108, - "height": 27, - "required": true, - "api_id": "8b6d78a5-0870-4f46-af9c-b78b54a49348" - }, - { - "name": "Textbox1", - "type": "text", - "signer": "1", - "x": 328, - "y": 17, - "width": 144, - "height": 14, - "required": true, - "api_id": "7ec10d80-53c9-433b-b252-0b8daa90a8e0", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 38 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "Textbox2", - "type": "text", - "signer": "1", - "x": 328, - "y": 48, - "width": 144, - "height": 14, - "required": true, - "api_id": "6574e6ad-7dac-49a2-9d56-650d7c5ade6e", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 38 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "Initial1", - "type": "initials", - "signer": "1", - "x": 148, - "y": 66, - "width": 72, - "height": 27, - "required": true, - "api_id": "30f41f54-c7f3-46c3-a29a-bb76ec40b552" - }, - { - "name": "Checkbox1", - "type": "checkbox", - "signer": "1", - "x": 325, - "y": 111, - "width": 18, - "height": 18, - "required": false, - "api_id": "d4d6ada9-e1dc-419e-bc0d-1478da694449", - "group": "75a6e4b5fea47" - }, - { - "name": "Dropdown1", - "type": "dropdown", - "signer": "1", - "x": 423, - "y": 108, - "width": 70, - "height": 14, - "required": true, - "api_id": "5863be5e-ce5a-4c9d-aabe-c221914d73c2" - }, - { - "name": "DateSigned1", - "type": "date_signed", - "signer": "1", - "x": 150, - "y": 119, - "width": 105, - "height": 18, - "required": true, - "api_id": "9f6d3722-6db7-46da-8fac-3bc09f510262" - }, - { - "name": "Checkbox2", - "type": "checkbox", - "signer": "1", - "x": 325, - "y": 135, - "width": 18, - "height": 18, - "required": false, - "api_id": "edd732b8-b158-4714-a87b-503637d09ded", - "group": "75a6e4b5fea47" - }, - { - "name": "FullName1", - "type": "text", - "signer": "1", - "x": 144, - "y": 158, - "width": 72, - "height": 14, - "required": true, - "api_id": "62fd3f85-4808-4011-8eae-a14ebe9105ef", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "Email1", - "type": "text", - "signer": "1", - "x": 133, - "y": 191, - "width": 144, - "height": 14, - "required": true, - "api_id": "a1c9bc6b-d498-4787-86e0-30ea779f06a7", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 38 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "email_address" - }, - { - "name": "RadioItem1", - "type": "radio", - "signer": "1", - "x": 307, - "y": 211, - "width": 18, - "height": 18, - "required": false, - "api_id": "fc8a1277-f757-47a2-aeea-5113fa81f2d5", - "group": "0831822584086" - }, - { - "name": "Company1", - "type": "text", - "signer": "1", - "x": 128, - "y": 221, - "width": 144, - "height": 14, - "required": true, - "api_id": "279b4e7f-e71f-426d-845c-6308cddde379", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 38 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "Title1", - "type": "text", - "signer": "1", - "x": 127, - "y": 250, - "width": 144, - "height": 14, - "required": true, - "api_id": "8809e39a-a46c-4dae-aaf9-06fc6355d80f", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 38 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "RadioItem2", - "type": "radio", - "signer": "1", - "x": 307, - "y": 253, - "width": 18, - "height": 18, - "required": false, - "api_id": "f7b6b70d-0522-4ab7-bfec-b86f147c8be3", - "group": "0831822584086" - }, - { - "name": "Textbox3", - "type": "text", - "signer": "1", - "x": 410, - "y": 279, - "width": 144, - "height": 14, - "required": true, - "api_id": "bad7512a-e22b-46ed-ba03-123db0eda932", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 38 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "Textbox4", - "type": "text", - "signer": "1", - "x": 101, - "y": 314, - "width": 72, - "height": 14, - "required": true, - "api_id": "368ed029-bc93-4f92-8f7a-14c3bf8109b5", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "custom_regex" - }, - { - "name": "Textbox8", - "type": "text", - "signer": "1", - "x": 218, - "y": 313, - "width": 72, - "height": 14, - "required": true, - "api_id": "ecf2ae95-d2e6-41b2-819a-836a6fa8c7c5", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "bank_routing_number" - }, - { - "name": "Textbox12", - "type": "text", - "signer": "1", - "x": 339, - "y": 315, - "width": 72, - "height": 14, - "required": true, - "api_id": "3cb90a0a-a433-4f30-8af8-8fb4c747b704", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "social_security_number" - }, - { - "name": "Textbox9", - "type": "text", - "signer": "1", - "x": 224, - "y": 343, - "width": 72, - "height": 14, - "required": true, - "api_id": "5b9eb331-c97d-435b-a563-d936a9b930c0", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "bank_account_number" - }, - { - "name": "Textbox13", - "type": "text", - "signer": "1", - "x": 339, - "y": 345, - "width": 72, - "height": 14, - "required": true, - "api_id": "2b98ce7e-e53a-4cf8-a9f3-d7fb18d88631", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "employer_identification_number" - }, - { - "name": "Textbox5", - "type": "text", - "signer": "1", - "x": 113, - "y": 350, - "width": 72, - "height": 14, - "required": true, - "api_id": "5f52c011-2c5f-4143-bf04-4694fb4a0d3f", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "numbers_only" - }, - { - "name": "Textbox6", - "type": "text", - "signer": "1", - "x": 122, - "y": 374, - "width": 72, - "height": 14, - "required": true, - "api_id": "47457b7d-b1e8-41a0-93ad-60ba30e64bb1", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "letters_only" - }, - { - "name": "Textbox10", - "type": "text", - "signer": "1", - "x": 234, - "y": 373, - "width": 72, - "height": 14, - "required": true, - "api_id": "18e3f994-1675-4d58-9b4a-4f92a2614551", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "email_address" - }, - { - "name": "Textbox14", - "type": "text", - "signer": "1", - "x": 339, - "y": 376, - "width": 72, - "height": 14, - "required": true, - "api_id": "9ad4b8cc-bac9-432b-8836-9f80f86fc7e0", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial" - }, - { - "name": "Textbox7", - "type": "text", - "signer": "1", - "x": 130, - "y": 401, - "width": 72, - "height": 14, - "required": true, - "api_id": "58c5f942-04fb-45f1-9703-5e8411f3a3bb", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "phone_number" - }, - { - "name": "me_now_hyperlink_1", - "type": "hyperlink", - "signer": "me_now", - "x": 434, - "y": 400, - "width": 112, - "height": 14, - "required": false, - "api_id": "fd928b56-cf59-40a4-9a90-62f97ffd0ddc", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 30 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "helvetica" - }, - { - "name": "Textbox11", - "type": "text", - "signer": "1", - "x": 237, - "y": 405, - "width": 72, - "height": 14, - "required": true, - "api_id": "e48c388d-8c26-4f20-848e-f8587a631746", - "avg_text_length": { - "num_lines": 1, - "num_chars_per_line": 19 - }, - "isMultiline": false, - "originalFontSize": 12, - "fontFamily": "arial", - "validation_type": "zip_code" - } - ], - "static_fields": [] - } - ], - "accounts": [ - { - "account_id": "5008b25c7f67153e57d5a357b1687968068fb465", - "email_address": "me@dropboxsign.com", - "is_locked": false, - "is_paid_hs": false, - "is_paid_hf": false, - "quotas": { - "templates_left": 5, - "api_signature_requests_left": 5, - "documents_left": 5, - "sms_verifications_left": 0 - } - } - ], - "attachments": [] - } - ] - } -} diff --git a/test_fixtures/TemplateRemoveUserRequest.json b/test_fixtures/TemplateRemoveUserRequest.json deleted file mode 100644 index 3bf46ff..0000000 --- a/test_fixtures/TemplateRemoveUserRequest.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "default": { - "account_id": "37dee8d8440c66d54cfa05d92c160882", - "email_address": "george@dropboxsign.com" - } -} diff --git a/test_fixtures/TemplateUpdateFilesRequest.json b/test_fixtures/TemplateUpdateFilesRequest.json deleted file mode 100644 index a45f28a..0000000 --- a/test_fixtures/TemplateUpdateFilesRequest.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "default": { - "client_id": "37dee8d8440c66d54cfa05d92c160882", - "file_urls": [ - "https://app.hellosign.com/docs/example_signature_request.pdf" - ], - "message": "For your approval", - "subject": "Please sign this document", - "test_mode": true - } -} diff --git a/test_fixtures/TemplateUpdateFilesResponse.json b/test_fixtures/TemplateUpdateFilesResponse.json deleted file mode 100644 index f1a4864..0000000 --- a/test_fixtures/TemplateUpdateFilesResponse.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "default": { - "template": { - "template_id": "f57db65d3f933122019888057a36176831451a35" - } - } -} diff --git a/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json b/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json deleted file mode 100644 index e18890b..0000000 --- a/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "default": { - "allow_ccs": true, - "allow_decline": true, - "allow_reassign": true, - "attachments": [ - { - "name": "Attachment1", - "signer_index": 1, - "instructions": "Upload your Driver's License", - "required": true - } - ], - "cc_email_addresses": [ - "lawyer@dropboxsign.com", - "lawyer@example.com" - ], - "client_id": "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a", - "custom_fields": [ - { - "name": "Cost", - "value": "$20,000", - "editor": "Client", - "required": true - } - ], - "editor_options": { - "allow_edit_signers": true, - "allow_edit_documents": false - }, - "field_options": { - "date_format": "DD - MM - YYYY" - }, - "file_urls": [ - "https://app.hellosign.com/docs/example_signature_request.pdf" - ], - "force_signer_page": false, - "force_subject_message": false, - "form_field_groups": [ - { - "group_id": "RadioGroup1", - "group_label": "Radio Group 1", - "requirement": "require_0-1" - } - ], - "form_field_rules": [ - { - "id": "rule_1", - "trigger_operator": "AND", - "triggers": [ - { - "id": "uniqueIdHere_1", - "operator": "is", - "value": "foo" - } - ], - "actions": [ - { - "field_id": "uniqueIdHere_2", - "hidden": true, - "type": "change-field-visibility" - } - ] - } - ], - "form_fields_per_document": [ - { - "document_index": 0, - "api_id": "uniqueIdHere_1", - "name": "", - "type": "text", - "x": 112, - "y": 328, - "width": 100, - "height": 16, - "required": true, - "signer": "0", - "page": 1, - "validation_type": "numbers_only", - "font_family": "roboto", - "font_size": 11 - }, - { - "document_index": 0, - "api_id": "uniqueIdHere_2", - "name": "", - "type": "signature", - "x": 530, - "y": 415, - "width": 120, - "height": 30, - "required": true, - "signer": "0", - "page": 1 - } - ], - "hide_text_tags": true, - "hold_request": true, - "is_for_embedded_signing": true, - "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "populate_auto_fill_fields": false, - "requester_email_address": "jack@dropboxsign.com", - "show_preview": true, - "signers": [ - { - "email_address": "s1@example.com", - "name": "Signer 1", - "order": 0 - }, - { - "email_address": "s2@example.com", - "name": "Signer 2", - "order": 1 - } - ], - "signing_options": { - "draw": true, - "type": true, - "upload": true, - "phone": false, - "default_type": "draw" - }, - "signing_redirect_url": "https://example.com/redirect", - "show_progress_stepper": true, - "skip_me_now": true, - "subject": "The NDA we talked about", - "test_mode": true, - "type": "send_document", - "use_preexisting_fields": true, - "use_text_tags": true - } -} diff --git a/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json b/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json deleted file mode 100644 index 7c72649..0000000 --- a/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "default": { - "allow_decline": true, - "allow_reassign": true, - "ccs": [ - { - "role": "Accounting", - "email_address": "accounting@example.com" - } - ], - "client_id": "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a", - "custom_fields": [ - { - "name": "Cost", - "value": "$20,000", - "editor": "Client", - "required": true - } - ], - "editor_options": { - "allow_edit_signers": true, - "allow_edit_documents": false - }, - "field_options": { - "date_format": "DD - MM - YYYY" - }, - "file_urls": [ - "https://app.hellosign.com/docs/example_signature_request.pdf" - ], - "force_signer_roles": false, - "force_subject_message": false, - "hold_request": true, - "is_for_embedded_signing": true, - "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "populate_auto_fill_fields": false, - "preview_only": true, - "requester_email_address": "jack@dropboxsign.com", - "requesting_redirect_url": "https://example.com/redirect", - "show_preview": true, - "signers": [ - { - "role": "Client", - "name": "George", - "email_address": "george@example.com" - } - ], - "signing_options": { - "draw": true, - "type": true, - "upload": true, - "phone": false, - "default_type": "draw" - }, - "show_progress_stepper": true, - "skip_me_now": true, - "subject": "The NDA we talked about", - "template_ids": [ - "61a832ff0d8423f91d503e76bfbcc750f7417c78" - ], - "test_mode": false, - "title": "NDA with Acme Co.", - "allow_ccs": true - } -} diff --git a/test_fixtures/UnclaimedDraftCreateRequest.json b/test_fixtures/UnclaimedDraftCreateRequest.json deleted file mode 100644 index b74d377..0000000 --- a/test_fixtures/UnclaimedDraftCreateRequest.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "default": { - "allow_decline": true, - "attachments": [ - { - "name": "Attachment1", - "signer_index": 1, - "instructions": "Upload your Driver's License", - "required": true - } - ], - "cc_email_addresses": [ - "lawyer@dropboxsign.com", - "lawyer@example.com" - ], - "custom_fields": [ - { - "name": "Cost", - "value": "$20,000", - "editor": "Client", - "required": true - } - ], - "field_options": { - "date_format": "DD - MM - YYYY" - }, - "file_urls": [ - "https://app.hellosign.com/docs/example_signature_request.pdf" - ], - "form_field_groups": [ - { - "group_id": "RadioGroup1", - "group_label": "Radio Group 1", - "requirement": "require_0-1" - } - ], - "form_field_rules": [ - { - "id": "rule_1", - "trigger_operator": "AND", - "triggers": [ - { - "id": "uniqueIdHere_1", - "operator": "is", - "value": "foo" - } - ], - "actions": [ - { - "field_id": "uniqueIdHere_2", - "hidden": true, - "type": "change-field-visibility" - } - ] - } - ], - "form_fields_per_document": [ - { - "document_index": 0, - "api_id": "uniqueIdHere_1", - "name": "", - "type": "text", - "x": 112, - "y": 328, - "width": 100, - "height": 16, - "required": true, - "signer": "0", - "page": 1, - "validation_type": "numbers_only", - "font_family": "roboto", - "font_size": 11 - }, - { - "document_index": 0, - "api_id": "uniqueIdHere_2", - "name": "", - "type": "signature", - "x": 530, - "y": 415, - "width": 120, - "height": 30, - "required": true, - "signer": "0", - "page": 1 - } - ], - "hide_text_tags": true, - "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", - "metadata": { - "metadata_name_1": "metadata_value_1", - "metadata_name_2": { - "metadata_name_2_a": "metadata_value_2_a" - }, - "metadata_name_3": "metadata_value_3", - "custom_id": 1234, - "custom_text": "NDA #9" - }, - "show_progress_stepper": true, - "signers": [ - { - "email_address": "s1@example.com", - "name": "Signer 1", - "order": 0 - }, - { - "email_address": "s2@example.com", - "name": "Signer 2", - "order": 1 - } - ], - "signing_options": { - "draw": true, - "type": true, - "upload": true, - "phone": false, - "default_type": "draw" - }, - "signing_redirect_url": "https://example.com/redirect", - "subject": "The NDA we talked about", - "test_mode": true, - "type": "send_document", - "use_preexisting_fields": true, - "use_text_tags": true - } -} diff --git a/test_fixtures/UnclaimedDraftCreateResponse.json b/test_fixtures/UnclaimedDraftCreateResponse.json deleted file mode 100644 index 96176c0..0000000 --- a/test_fixtures/UnclaimedDraftCreateResponse.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "default": { - "unclaimed_draft": { - "claim_url": "https://app.hellosign.com/send/resendDocs?root_snapshot_guids[]=7f967b7d06e154394eab693febedf61e8ebe49eb&snapshot_access_guids[]=fb848631&root_snapshot_guids[]=7aedaf31e12edf9f2672a0b2ddf028aca670e101&snapshot_access_guids[]=f398ef87", - "expires_at": 1414093891, - "test_mode": true - } - } -} diff --git a/test_fixtures/UnclaimedDraftEditAndResendRequest.json b/test_fixtures/UnclaimedDraftEditAndResendRequest.json deleted file mode 100644 index b0174d2..0000000 --- a/test_fixtures/UnclaimedDraftEditAndResendRequest.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "default": { - "client_id": "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a", - "editor_options": { - "allow_edit_signers": true, - "allow_edit_documents": false - }, - "is_for_embedded_signing": false, - "requester_email_address": "jack@dropboxsign.com", - "requesting_redirect_url": "https://example.com/redirect", - "show_progress_stepper": true, - "signing_redirect_url": "https://example.com/redirect", - "test_mode": false - } -} diff --git a/test_fixtures/bulk-send-sample.csv b/test_fixtures/bulk-send-sample.csv deleted file mode 100644 index fbc5279..0000000 --- a/test_fixtures/bulk-send-sample.csv +++ /dev/null @@ -1,3 +0,0 @@ -"name","email_address" -"Bulk Send Signer 1","bulk-send-signer-1@example.com" -"Bulk Send Signer 2","bulk-send-signer-2@example.com" diff --git a/test_fixtures/pdf-sample-2.pdf b/test_fixtures/pdf-sample-2.pdf deleted file mode 100644 index f698ff5..0000000 Binary files a/test_fixtures/pdf-sample-2.pdf and /dev/null differ diff --git a/test_fixtures/pdf-sample.pdf b/test_fixtures/pdf-sample.pdf deleted file mode 100644 index f698ff5..0000000 Binary files a/test_fixtures/pdf-sample.pdf and /dev/null differ 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()