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/api/apis.ts b/api/apis.ts index 53fbc15..48bbc6b 100644 --- a/api/apis.ts +++ b/api/apis.ts @@ -38,7 +38,7 @@ export const queryParamsSerializer = (params) => { return Qs.stringify(params, { arrayFormat: "brackets" }); }; -export const USER_AGENT = "OpenAPI-Generator/1.9.0/node"; +export const USER_AGENT = "OpenAPI-Generator/1.10.0/node"; /** * Generates an object containing form data. diff --git a/dist/api.js b/dist/api.js index c385a9a..236f25a 100644 --- a/dist/api.js +++ b/dist/api.js @@ -19239,6 +19239,7 @@ var ReportCreateRequest = class _ReportCreateRequest { ((ReportTypeEnum2) => { ReportTypeEnum2["UserActivity"] = "user_activity"; ReportTypeEnum2["DocumentStatus"] = "document_status"; + ReportTypeEnum2["SmsActivity"] = "sms_activity"; })(ReportTypeEnum = ReportCreateRequest2.ReportTypeEnum || (ReportCreateRequest2.ReportTypeEnum = {})); })(ReportCreateRequest || (ReportCreateRequest = {})); @@ -19312,6 +19313,7 @@ var ReportResponse = class _ReportResponse { ((ReportTypeEnum2) => { ReportTypeEnum2["UserActivity"] = "user_activity"; ReportTypeEnum2["DocumentStatus"] = "document_status"; + ReportTypeEnum2["SmsActivity"] = "sms_activity"; })(ReportTypeEnum = ReportResponse2.ReportTypeEnum || (ReportResponse2.ReportTypeEnum = {})); })(ReportResponse || (ReportResponse = {})); @@ -25344,6 +25346,16 @@ var TemplateResponseDocumentFormFieldText = class _TemplateResponseDocumentFormF baseName: "validation_type", type: "TemplateResponseDocumentFormFieldText.ValidationTypeEnum" }, + { + name: "validationCustomRegex", + baseName: "validation_custom_regex", + type: "string" + }, + { + name: "validationCustomRegexFormatLabel", + baseName: "validation_custom_regex_format_label", + type: "string" + }, { name: "group", baseName: "group", @@ -36223,7 +36235,7 @@ var HttpError = class extends Error { var queryParamsSerializer = (params) => { return import_qs.default.stringify(params, { arrayFormat: "brackets" }); }; -var USER_AGENT = "OpenAPI-Generator/1.9.0/node"; +var USER_AGENT = "OpenAPI-Generator/1.10.0/node"; var generateFormData = (obj, typemap) => { const data = {}; let localVarUseFormData = false; diff --git a/docs/model/TemplateResponseDocumentFormFieldText.md b/docs/model/TemplateResponseDocumentFormFieldText.md index 25a86e8..07154a2 100644 --- a/docs/model/TemplateResponseDocumentFormFieldText.md +++ b/docs/model/TemplateResponseDocumentFormFieldText.md @@ -12,6 +12,8 @@ Name | Type | Description | Notes | `originalFontSize` | ```number``` | Original font size used in this form field's text. | | | `fontFamily` | ```string``` | Font family used in this form field's text. | | | `validationType` | ```string``` | 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. | | +| `validationCustomRegex` | ```string``` | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | | +| `validationCustomRegexFormatLabel` | ```string``` | 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` | ```string``` | 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#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/model/reportCreateRequest.ts b/model/reportCreateRequest.ts index 48960cc..de07444 100644 --- a/model/reportCreateRequest.ts +++ b/model/reportCreateRequest.ts @@ -72,5 +72,6 @@ export namespace ReportCreateRequest { export enum ReportTypeEnum { UserActivity = "user_activity", DocumentStatus = "document_status", + SmsActivity = "sms_activity", } } diff --git a/model/reportResponse.ts b/model/reportResponse.ts index 589ded1..e47c024 100644 --- a/model/reportResponse.ts +++ b/model/reportResponse.ts @@ -84,5 +84,6 @@ export namespace ReportResponse { export enum ReportTypeEnum { UserActivity = "user_activity", DocumentStatus = "document_status", + SmsActivity = "sms_activity", } } diff --git a/model/templateResponseDocumentFormFieldText.ts b/model/templateResponseDocumentFormFieldText.ts index e758496..a10ace9 100644 --- a/model/templateResponseDocumentFormFieldText.ts +++ b/model/templateResponseDocumentFormFieldText.ts @@ -51,6 +51,14 @@ export class TemplateResponseDocumentFormFieldText extends TemplateResponseDocum * 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. */ "validationType"?: TemplateResponseDocumentFormFieldText.ValidationTypeEnum; + /** + * When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. + */ + "validationCustomRegex"?: string | null; + /** + * 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. + */ + "validationCustomRegexFormatLabel"?: string | null; /** * The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. */ @@ -89,6 +97,16 @@ export class TemplateResponseDocumentFormFieldText extends TemplateResponseDocum baseName: "validation_type", type: "TemplateResponseDocumentFormFieldText.ValidationTypeEnum", }, + { + name: "validationCustomRegex", + baseName: "validation_custom_regex", + type: "string", + }, + { + name: "validationCustomRegexFormatLabel", + baseName: "validation_custom_regex_format_label", + type: "string", + }, { name: "group", baseName: "group", diff --git a/openapi-config.yaml b/openapi-config.yaml index 9741af3..933a975 100644 --- a/openapi-config.yaml +++ b/openapi-config.yaml @@ -2,7 +2,7 @@ generatorName: typescript-node typeMappings: {} additionalProperties: npmName: "@dropbox/sign" - npmVersion: 1.9.0 + npmVersion: 1.10.0 supportsES6: true apiDocPath: ./docs/api modelDocPath: ./docs/model 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/package-lock.json b/package-lock.json index 694968c..7e876d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dropbox/sign", - "version": "1.9.0", + "version": "1.10.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dropbox/sign", - "version": "1.9.0", + "version": "1.10.0", "dependencies": { "axios": "^1.8.2", "bluebird": "^3.7.2", diff --git a/package.json b/package.json index 3fadcbd..f53f401 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dropbox/sign", - "version": "1.9.0", + "version": "1.10.0", "description": "Official Node client for Dropbox Sign", "repository": { "type": "git", 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/api/faxApi.test.ts b/tests/api/faxApi.test.ts new file mode 100644 index 0000000..a943da1 --- /dev/null +++ b/tests/api/faxApi.test.ts @@ -0,0 +1,89 @@ +import 'jest'; + +import { FaxApi } from '../../api/'; +import * as m from '../../model/'; +import { + getFixtureData, + setExpectedResponse, + diffJson, +} from '../test_utils'; + +const axios = require('axios'); +const fs = require('fs'); +const MockAdapter = require('axios-mock-adapter'); + +describe('FaxApiTest', () => { + let mock: typeof MockAdapter; + + beforeEach(() => { + mock = new MockAdapter(axios); + }); + + const api = new FaxApi(); + const rootFilePath = __dirname + '/../../test_fixtures'; + + it('testFaxSend', () => { + const requestClass = 'FaxSendRequest'; + const requestData = getFixtureData(requestClass)['default']; + + const responseClass = 'FaxGetResponse'; + const responseData = getFixtureData(responseClass)['default']; + + setExpectedResponse(mock, responseData, 200); + + const obj = m.FaxSendRequest.init(requestData); + obj.files = [fs.createReadStream(`${rootFilePath}/pdf-sample.pdf`)]; + + api.faxSend(obj).then(response => { + const diff = diffJson( + response.body, + m.FaxGetResponse.init(responseData), + ); + + expect(response.body.constructor.name).toBe(responseClass); + expect(diff).toBeFalsy(); + }).catch(error => { + throw new Error('Should not have thrown error: ' + error); + }); + }); + + it('testFaxGet', () => { + const faxId = 'c2e9691c85d9d6fa6ae773842e3680b2b8650f1d'; + + const responseClass = 'FaxGetResponse'; + const responseData = getFixtureData(responseClass)['default']; + + setExpectedResponse(mock, responseData, 200); + + api.faxGet(faxId).then(response => { + const diff = diffJson( + response.body, + m.FaxGetResponse.init(responseData), + ); + + expect(response.body.constructor.name).toBe(responseClass); + expect(diff).toBeFalsy(); + }).catch(error => { + throw new Error('Should not have thrown error: ' + error); + }); + }); + + it('testFaxList', () => { + const responseClass = 'FaxListResponse'; + const responseData = getFixtureData(responseClass)['default']; + + setExpectedResponse(mock, responseData, 200); + + api.faxList().then(response => { + const diff = diffJson( + response.body, + m.FaxListResponse.init(responseData), + ); + + expect(response.body.constructor.name).toBe(responseClass); + expect(diff).toBeFalsy(); + }).catch(error => { + throw new Error('Should not have thrown error: ' + error); + }); + }); +}); diff --git a/tests/api/faxLineApi.test.ts b/tests/api/faxLineApi.test.ts new file mode 100644 index 0000000..2d0ff99 --- /dev/null +++ b/tests/api/faxLineApi.test.ts @@ -0,0 +1,86 @@ +import 'jest'; + +import { FaxLineApi } from '../../api/'; +import * as m from '../../model/'; +import { + getFixtureData, + setExpectedResponse, + diffJson, +} from '../test_utils'; + +const axios = require('axios'); +const fs = require('fs'); +const MockAdapter = require('axios-mock-adapter'); + +describe('FaxLineApiTest', () => { + let mock: typeof MockAdapter; + + beforeEach(() => { + mock = new MockAdapter(axios); + }); + + const api = new FaxLineApi(); + const rootFilePath = __dirname + '/../../test_fixtures'; + + it('testFaxLineCreate', () => { + const requestClass = 'FaxLineCreateRequest'; + const requestData = getFixtureData(requestClass)['default']; + + const responseClass = 'FaxLineResponse'; + const responseData = getFixtureData(responseClass)['default']; + + setExpectedResponse(mock, responseData, 200); + + api.faxLineCreate(requestData).then(response => { + const diff = diffJson( + response.body, + m.FaxLineResponse.init(responseData), + ); + + expect(response.body.constructor.name).toBe(responseClass); + expect(diff).toBeFalsy(); + }).catch(error => { + throw new Error('Should not have thrown error: ' + error); + }); + }); + + it('testFaxLineGet', () => { + const faxLineNumber = '14155557897'; + + const responseClass = 'FaxLineResponse'; + const responseData = getFixtureData(responseClass)['default']; + + setExpectedResponse(mock, responseData, 200); + + api.faxLineGet(faxLineNumber).then(response => { + const diff = diffJson( + response.body, + m.FaxLineResponse.init(responseData), + ); + + expect(response.body.constructor.name).toBe(responseClass); + expect(diff).toBeFalsy(); + }).catch(error => { + throw new Error('Should not have thrown error: ' + error); + }); + }); + + it('testFaxLineList', () => { + const responseClass = 'FaxLineListResponse'; + const responseData = getFixtureData(responseClass)['default']; + + setExpectedResponse(mock, responseData, 200); + + api.faxLineList().then(response => { + const diff = diffJson( + response.body, + m.FaxLineListResponse.init(responseData), + ); + + expect(response.body.constructor.name).toBe(responseClass); + expect(diff).toBeFalsy(); + }).catch(error => { + throw new Error('Should not have thrown error: ' + error); + }); + }); +}); diff --git a/types/api/apis.d.ts b/types/api/apis.d.ts index 30607a8..e76ddea 100644 --- a/types/api/apis.d.ts +++ b/types/api/apis.d.ts @@ -23,7 +23,7 @@ export interface returnTypeI { body?: any; } export declare const queryParamsSerializer: (params: any) => string; -export declare const USER_AGENT = "OpenAPI-Generator/1.9.0/node"; +export declare const USER_AGENT = "OpenAPI-Generator/1.10.0/node"; export declare const generateFormData: (obj: any, typemap: AttributeTypeMap) => { localVarUseFormData: boolean; data: object; diff --git a/types/model/reportCreateRequest.d.ts b/types/model/reportCreateRequest.d.ts index 7ccc67a..4bdd1f5 100644 --- a/types/model/reportCreateRequest.d.ts +++ b/types/model/reportCreateRequest.d.ts @@ -11,6 +11,7 @@ export declare class ReportCreateRequest { export declare namespace ReportCreateRequest { enum ReportTypeEnum { UserActivity = "user_activity", - DocumentStatus = "document_status" + DocumentStatus = "document_status", + SmsActivity = "sms_activity" } } diff --git a/types/model/reportResponse.d.ts b/types/model/reportResponse.d.ts index 88546b6..1490e79 100644 --- a/types/model/reportResponse.d.ts +++ b/types/model/reportResponse.d.ts @@ -12,6 +12,7 @@ export declare class ReportResponse { export declare namespace ReportResponse { enum ReportTypeEnum { UserActivity = "user_activity", - DocumentStatus = "document_status" + DocumentStatus = "document_status", + SmsActivity = "sms_activity" } } diff --git a/types/model/templateResponseDocumentFormFieldText.d.ts b/types/model/templateResponseDocumentFormFieldText.d.ts index 5f6dcb4..2509450 100644 --- a/types/model/templateResponseDocumentFormFieldText.d.ts +++ b/types/model/templateResponseDocumentFormFieldText.d.ts @@ -8,6 +8,8 @@ export declare class TemplateResponseDocumentFormFieldText extends TemplateRespo "originalFontSize"?: number; "fontFamily"?: string; "validationType"?: TemplateResponseDocumentFormFieldText.ValidationTypeEnum; + "validationCustomRegex"?: string | null; + "validationCustomRegexFormatLabel"?: string | null; "group"?: string | null; static discriminator: string | undefined; static attributeTypeMap: AttributeTypeMap;