dropbox-sign 1.1.2 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -3
  3. data/README.md +9 -4
  4. data/VERSION +1 -1
  5. data/docs/BulkSendJobGetResponseSignatureRequests.md +1 -0
  6. data/docs/EmbeddedEditUrlRequest.md +1 -1
  7. data/docs/EventCallbackRequestEvent.md +1 -1
  8. data/docs/OAuthApi.md +0 -16
  9. data/docs/SignatureRequestApi.md +11 -10
  10. data/docs/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md +1 -1
  11. data/docs/SignatureRequestBulkSendWithTemplateRequest.md +1 -1
  12. data/docs/SignatureRequestCreateEmbeddedRequest.md +4 -4
  13. data/docs/SignatureRequestCreateEmbeddedWithTemplateRequest.md +1 -1
  14. data/docs/SignatureRequestResponse.md +2 -0
  15. data/docs/SignatureRequestSendRequest.md +5 -4
  16. data/docs/SignatureRequestSendWithTemplateRequest.md +2 -1
  17. data/docs/SignatureRequestUpdateRequest.md +2 -2
  18. data/docs/SubAttachment.md +1 -1
  19. data/docs/SubCustomField.md +1 -1
  20. data/docs/SubFieldOptions.md +1 -1
  21. data/docs/SubFormFieldsPerDocumentBase.md +2 -2
  22. data/docs/SubFormFieldsPerDocumentDateSigned.md +2 -0
  23. data/docs/SubFormFieldsPerDocumentDropdown.md +2 -0
  24. data/docs/SubFormFieldsPerDocumentFontEnum.md +9 -0
  25. data/docs/SubFormFieldsPerDocumentHyperlink.md +2 -0
  26. data/docs/SubFormFieldsPerDocumentText.md +4 -1
  27. data/docs/SubFormFieldsPerDocumentTextMerge.md +2 -0
  28. data/docs/SubSignatureRequestGroupedSigners.md +1 -1
  29. data/docs/SubSignatureRequestSigner.md +1 -1
  30. data/docs/SubSignatureRequestTemplateSigner.md +1 -1
  31. data/docs/SubSigningOptions.md +1 -1
  32. data/docs/SubWhiteLabelingOptions.md +1 -1
  33. data/docs/TeamAddMemberRequest.md +1 -1
  34. data/docs/TeamRemoveMemberRequest.md +2 -2
  35. data/docs/TemplateAddUserRequest.md +2 -2
  36. data/docs/TemplateApi.md +106 -3
  37. data/docs/TemplateCreateEmbeddedDraftRequest.md +2 -2
  38. data/docs/TemplateCreateRequest.md +27 -0
  39. data/docs/TemplateCreateResponse.md +11 -0
  40. data/docs/TemplateCreateResponseTemplate.md +10 -0
  41. data/docs/TemplateResponseDocument.md +1 -1
  42. data/docs/TemplateResponseDocumentStaticFieldBase.md +1 -1
  43. data/docs/UnclaimedDraftApi.md +3 -3
  44. data/docs/UnclaimedDraftCreateEmbeddedRequest.md +4 -4
  45. data/docs/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md +4 -3
  46. data/docs/UnclaimedDraftCreateRequest.md +2 -2
  47. data/examples/OauthTokenGenerate.rb +0 -8
  48. data/examples/OauthTokenRefresh.rb +0 -8
  49. data/examples/SignatureRequestEdit.rb +58 -0
  50. data/examples/SignatureRequestEditEmbedded.rb +48 -0
  51. data/examples/SignatureRequestEditEmbeddedWithTemplate.rb +41 -0
  52. data/examples/SignatureRequestEditWithTemplate.rb +52 -0
  53. data/examples/TemplateCreate.rb +49 -0
  54. data/lib/dropbox-sign/api/api_app_api.rb +1 -1
  55. data/lib/dropbox-sign/api/signature_request_api.rb +17 -14
  56. data/lib/dropbox-sign/api/team_api.rb +1 -1
  57. data/lib/dropbox-sign/api/template_api.rb +112 -0
  58. data/lib/dropbox-sign/api/unclaimed_draft_api.rb +6 -6
  59. data/lib/dropbox-sign/event_callback_helper.rb +1 -1
  60. data/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb +13 -1
  61. data/lib/dropbox-sign/models/embedded_edit_url_request.rb +1 -1
  62. data/lib/dropbox-sign/models/event_callback_request_event.rb +2 -7
  63. data/lib/dropbox-sign/models/signature_request_bulk_create_embedded_with_template_request.rb +1 -1
  64. data/lib/dropbox-sign/models/signature_request_bulk_send_with_template_request.rb +1 -1
  65. data/lib/dropbox-sign/models/signature_request_create_embedded_request.rb +4 -4
  66. data/lib/dropbox-sign/models/signature_request_create_embedded_with_template_request.rb +1 -1
  67. data/lib/dropbox-sign/models/signature_request_response.rb +28 -4
  68. data/lib/dropbox-sign/models/signature_request_send_request.rb +18 -5
  69. data/lib/dropbox-sign/models/signature_request_send_with_template_request.rb +15 -2
  70. data/lib/dropbox-sign/models/signature_request_update_request.rb +2 -2
  71. data/lib/dropbox-sign/models/sub_attachment.rb +1 -1
  72. data/lib/dropbox-sign/models/sub_custom_field.rb +1 -1
  73. data/lib/dropbox-sign/models/sub_field_options.rb +1 -1
  74. data/lib/dropbox-sign/models/sub_form_fields_per_document_base.rb +2 -2
  75. data/lib/dropbox-sign/models/sub_form_fields_per_document_date_signed.rb +62 -4
  76. data/lib/dropbox-sign/models/sub_form_fields_per_document_dropdown.rb +62 -4
  77. data/lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb +54 -0
  78. data/lib/dropbox-sign/models/sub_form_fields_per_document_hyperlink.rb +62 -4
  79. data/lib/dropbox-sign/models/sub_form_fields_per_document_text.rb +52 -5
  80. data/lib/dropbox-sign/models/sub_form_fields_per_document_text_merge.rb +62 -4
  81. data/lib/dropbox-sign/models/sub_signature_request_grouped_signers.rb +1 -1
  82. data/lib/dropbox-sign/models/sub_signature_request_signer.rb +1 -1
  83. data/lib/dropbox-sign/models/sub_signature_request_template_signer.rb +1 -1
  84. data/lib/dropbox-sign/models/sub_signing_options.rb +1 -1
  85. data/lib/dropbox-sign/models/sub_white_labeling_options.rb +1 -1
  86. data/lib/dropbox-sign/models/team_add_member_request.rb +1 -1
  87. data/lib/dropbox-sign/models/team_remove_member_request.rb +2 -2
  88. data/lib/dropbox-sign/models/template_add_user_request.rb +2 -2
  89. data/lib/dropbox-sign/models/template_create_embedded_draft_request.rb +2 -2
  90. data/lib/dropbox-sign/models/template_create_request.rb +509 -0
  91. data/lib/dropbox-sign/models/template_create_response.rb +263 -0
  92. data/lib/dropbox-sign/models/template_create_response_template.rb +252 -0
  93. data/lib/dropbox-sign/models/template_response_document.rb +1 -1
  94. data/lib/dropbox-sign/models/template_response_document_static_field_base.rb +1 -1
  95. data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb +4 -4
  96. data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_with_template_request.rb +20 -7
  97. data/lib/dropbox-sign/models/unclaimed_draft_create_request.rb +2 -2
  98. data/lib/dropbox-sign/version.rb +1 -1
  99. data/lib/dropbox-sign.rb +4 -0
  100. data/openapi-config.yaml +1 -1
  101. data/openapi-sdk.yaml +1010 -499
  102. data/spec/event_callback_helper_spec.rb +17 -3
  103. data/templates/event_callback_helper.mustache +1 -1
  104. data/test_fixtures/EventCallbackHelper_AccountCallbacks.json +82 -0
  105. data/test_fixtures/{EventCallbackHelper.json → EventCallbackHelper_AppCallbacks.json} +8 -4
  106. data/test_fixtures/SignatureRequestCreateEmbeddedRequest.json +6 -2
  107. data/test_fixtures/SignatureRequestSendRequest.json +20 -8
  108. data/test_fixtures/SignatureRequestSendWithTemplateRequest.json +1 -0
  109. data/test_fixtures/SubFormFieldsPerDocument.json +8 -4
  110. data/test_fixtures/TemplateCreateEmbeddedDraftRequest.json +3 -1
  111. data/test_fixtures/TemplateCreateRequest.json +120 -0
  112. data/test_fixtures/TemplateCreateResponse.json +7 -0
  113. data/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json +3 -1
  114. data/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json +2 -1
  115. data/test_fixtures/UnclaimedDraftCreateRequest.json +3 -1
  116. metadata +27 -11
@@ -8,7 +8,7 @@
8
8
  | ---- | ---- | ----------- | ----- |
9
9
  | `account_id` | ```String``` | **account_id** or **email_address** is required. If both are provided, the account id prevails.<br><br>Account id to remove from your Team. | |
10
10
  | `email_address` | ```String``` | **account_id** or **email_address** is required. If both are provided, the account id prevails.<br><br>Email address of the Account to remove from your Team. | |
11
- | `new_owner_email_address` | ```String``` | The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account.<br><br>**Note**: Only available for Enterprise plans. | |
11
+ | `new_owner_email_address` | ```String``` | The email address of an Account on this Team to receive all documents, templates, and API apps (if applicable) from the removed Account. If not provided, and on an Enterprise plan, this data will remain with the removed Account.<br><br>**NOTE:** Only available for Enterprise plans. | |
12
12
  | `new_team_id` | ```String``` | Id of the new Team. | |
13
- | `new_role` | ```String``` | A new role member will take in a new Team.<br><br>**Note**: This parameter is used only if `new_team_id` is provided. | |
13
+ | `new_role` | ```String``` | A new role member will take in a new Team.<br><br>**NOTE:** This parameter is used only if `new_team_id` is provided. | |
14
14
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  | Name | Type | Description | Notes |
8
8
  | ---- | ---- | ----------- | ----- |
9
- | `account_id` | ```String``` | The id of the Account to give access to the Template. &lt;b&gt;Note&lt;/b&gt; The account id prevails if email address is also provided. | |
10
- | `email_address` | ```String``` | The email address of the Account to give access to the Template. &lt;b&gt;Note&lt;/b&gt; The account id prevails if it is also provided. | |
9
+ | `account_id` | ```String``` | The id of the Account to give access to the Template.<br>**NOTE:** The account id prevails if email address is also provided. | |
10
+ | `email_address` | ```String``` | The email address of the Account to give access to the Template.<br>**NOTE:** The account id prevails if it is also provided. | |
11
11
  | `skip_notification` | ```Boolean``` | If set to `true`, the user does not receive an email notification when a template has been shared with them. Defaults to `false`. | [default to false] |
12
12
 
data/docs/TemplateApi.md CHANGED
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.hellosign.com/v3*
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
7
  | [`template_add_user`](TemplateApi.md#template_add_user) | **POST** `/template/add_user/{template_id}` | Add User to Template |
8
+ | [`template_create`](TemplateApi.md#template_create) | **POST** `/template/create` | Create Template |
8
9
  | [`template_create_embedded_draft`](TemplateApi.md#template_create_embedded_draft) | **POST** `/template/create_embedded_draft` | Create Embedded Template Draft |
9
10
  | [`template_delete`](TemplateApi.md#template_delete) | **POST** `/template/delete/{template_id}` | Delete Template |
10
11
  | [`template_files`](TemplateApi.md#template_files) | **GET** `/template/files/{template_id}` | Get Template Files |
@@ -92,6 +93,107 @@ end
92
93
  - **Accept**: application/json
93
94
 
94
95
 
96
+ ## `template_create`
97
+
98
+ > `<TemplateCreateResponse> template_create(template_create_request)`
99
+
100
+ Create Template
101
+
102
+ Creates a template that can then be used.
103
+
104
+ ### Examples
105
+
106
+ ```ruby
107
+ require "dropbox-sign"
108
+
109
+ Dropbox::Sign.configure do |config|
110
+ # Configure HTTP basic authorization: api_key
111
+ config.username = "YOUR_API_KEY"
112
+
113
+ # or, configure Bearer (JWT) authorization: oauth2
114
+ # config.access_token = "YOUR_ACCESS_TOKEN"
115
+ end
116
+
117
+ template_api = Dropbox::Sign::TemplateApi.new
118
+
119
+ role_1 = Dropbox::Sign::SubTemplateRole.new
120
+ role_1.name = "Client"
121
+ role_1.order = 0
122
+
123
+ role_2 = Dropbox::Sign::SubTemplateRole.new
124
+ role_2.name = "Witness"
125
+ role_2.order = 1
126
+
127
+ merge_field_1 = Dropbox::Sign::SubMergeField.new
128
+ merge_field_1.name = "Full Name"
129
+ merge_field_1.type = "text"
130
+
131
+ merge_field_2 = Dropbox::Sign::SubMergeField.new
132
+ merge_field_2.name = "Is Registered?"
133
+ merge_field_2.type = "checkbox"
134
+
135
+ field_options = Dropbox::Sign::SubFieldOptions.new
136
+ field_options.date_format = "DD - MM - YYYY"
137
+
138
+ data = Dropbox::Sign::TemplateCreateRequest.new
139
+ data.client_id = "37dee8d8440c66d54cfa05d92c160882"
140
+ data.files = [File.new("example_signature_request.pdf", "r")]
141
+ data.title = "Test Template"
142
+ data.subject = "Please sign this document"
143
+ data.message = "For your approval"
144
+ data.signer_roles = [role_1, role_2]
145
+ data.cc_roles = ["Manager"]
146
+ data.merge_fields = [merge_field_1, merge_field_2]
147
+ data.field_options = field_options
148
+ data.test_mode = true
149
+
150
+ begin
151
+ result = template_api.template_create(data)
152
+ p result
153
+ rescue Dropbox::Sign::ApiError => e
154
+ puts "Exception when calling Dropbox Sign API: #{e}"
155
+ end
156
+
157
+ ```
158
+
159
+ #### Using the `template_create_with_http_info` variant
160
+
161
+ This returns an Array which contains the response data, status code and headers.
162
+
163
+ > `<Array(<TemplateCreateResponse>, Integer, Hash)> template_create_with_http_info(template_create_request)`
164
+
165
+ ```ruby
166
+ begin
167
+ # Create Template
168
+ data, status_code, headers = api_instance.template_create_with_http_info(template_create_request)
169
+ p status_code # => 2xx
170
+ p headers # => { ... }
171
+ p data # => <TemplateCreateResponse>
172
+ rescue Dropbox::Sign::ApiError => e
173
+ puts "Error when calling TemplateApi->template_create_with_http_info: #{e}"
174
+ end
175
+ ```
176
+
177
+ ### Parameters
178
+
179
+ | Name | Type | Description | Notes |
180
+ | ---- | ---- | ----------- | ----- |
181
+ | `template_create_request` | [**TemplateCreateRequest**](TemplateCreateRequest.md) | | |
182
+
183
+ ### Return type
184
+
185
+ [**TemplateCreateResponse**](TemplateCreateResponse.md)
186
+
187
+ ### Authorization
188
+
189
+ [api_key](../README.md#api_key), [oauth2](../README.md#oauth2)
190
+
191
+ ### HTTP request headers
192
+
193
+ - **Content-Type**: application/json, multipart/form-data
194
+ - **Accept**: application/json
195
+
196
+
95
197
  ## `template_create_embedded_draft`
96
198
 
97
199
  > `<TemplateCreateEmbeddedDraftResponse> template_create_embedded_draft(template_create_embedded_draft_request)`
@@ -412,7 +514,7 @@ end
412
514
 
413
515
  ## `template_files_as_file_url`
414
516
 
415
- > `<FileResponse> template_files_as_file_url(template_id)`
517
+ > `<FileResponse> template_files_as_file_url(template_id, opts)`
416
518
 
417
519
  Get Template Files as File Url
418
520
 
@@ -448,12 +550,12 @@ end
448
550
 
449
551
  This returns an Array which contains the response data, status code and headers.
450
552
 
451
- > `<Array(<FileResponse>, Integer, Hash)> template_files_as_file_url_with_http_info(template_id)`
553
+ > `<Array(<FileResponse>, Integer, Hash)> template_files_as_file_url_with_http_info(template_id, opts)`
452
554
 
453
555
  ```ruby
454
556
  begin
455
557
  # Get Template Files as File Url
456
- data, status_code, headers = api_instance.template_files_as_file_url_with_http_info(template_id)
558
+ data, status_code, headers = api_instance.template_files_as_file_url_with_http_info(template_id, opts)
457
559
  p status_code # => 2xx
458
560
  p headers # => { ... }
459
561
  p data # => <FileResponse>
@@ -467,6 +569,7 @@ end
467
569
  | Name | Type | Description | Notes |
468
570
  | ---- | ---- | ----------- | ----- |
469
571
  | `template_id` | **String** | The id of the template files to retrieve. | |
572
+ | `force_download` | **Integer** | By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. | [optional][default to 1] |
470
573
 
471
574
  ### Return type
472
575
 
@@ -10,7 +10,7 @@
10
10
  | `files` | ```Array<File>``` | Use `files[]` to indicate the uploaded file(s) to send for signature.<br><br>This endpoint requires either **files** or **file_urls[]**, but not both. | |
11
11
  | `file_urls` | ```Array<String>``` | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.<br><br>This endpoint requires either **files** or **file_urls[]**, but not both. | |
12
12
  | `allow_ccs` | ```Boolean``` | This allows the requester to specify whether the user is allowed to provide email addresses to CC when creating a template. | [default to true] |
13
- | `allow_reassign` | ```Boolean``` | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.<br><br>**Note**: Only available for Premium plan and higher. | [default to false] |
13
+ | `allow_reassign` | ```Boolean``` | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.<br><br>**NOTE:** Only available for Premium plan and higher. | [default to false] |
14
14
  | `attachments` | [```Array<SubAttachment>```](SubAttachment.md) | A list describing the attachments | |
15
15
  | `cc_roles` | ```Array<String>``` | The CC roles that must be assigned when using the template to send a signature request | |
16
16
  | `editor_options` | [```SubEditorOptions```](SubEditorOptions.md) | | |
@@ -19,7 +19,7 @@
19
19
  | `force_subject_message` | ```Boolean``` | Provide users the ability to review/edit the template subject and message. | [default to false] |
20
20
  | `form_field_groups` | [```Array<SubFormFieldGroup>```](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | |
21
21
  | `form_field_rules` | [```Array<SubFormFieldRule>```](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | |
22
- | `form_fields_per_document` | [```Array<SubFormFieldsPerDocumentBase>```](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)<br><br>**NOTE**: Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.<br><br>* Text Field use `SubFormFieldsPerDocumentText`<br>* Dropdown Field use `SubFormFieldsPerDocumentDropdown`<br>* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`<br>* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`<br>* Radio Field use `SubFormFieldsPerDocumentRadio`<br>* Signature Field use `SubFormFieldsPerDocumentSignature`<br>* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`<br>* Initials Field use `SubFormFieldsPerDocumentInitials`<br>* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`<br>* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | |
22
+ | `form_fields_per_document` | [```Array<SubFormFieldsPerDocumentBase>```](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)<br><br>**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.<br><br>* Text Field use `SubFormFieldsPerDocumentText`<br>* Dropdown Field use `SubFormFieldsPerDocumentDropdown`<br>* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`<br>* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`<br>* Radio Field use `SubFormFieldsPerDocumentRadio`<br>* Signature Field use `SubFormFieldsPerDocumentSignature`<br>* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`<br>* Initials Field use `SubFormFieldsPerDocumentInitials`<br>* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`<br>* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | |
23
23
  | `merge_fields` | [```Array<SubMergeField>```](SubMergeField.md) | Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. | |
24
24
  | `message` | ```String``` | The default template email message. | |
25
25
  | `metadata` | ```Hash<String, Object>``` | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer&#39;s order number for look up when receiving events for the signature request.<br><br>Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | |
@@ -0,0 +1,27 @@
1
+ # Dropbox::Sign::TemplateCreateRequest
2
+
3
+
4
+
5
+ ## Properties
6
+
7
+ | Name | Type | Description | Notes |
8
+ | ---- | ---- | ----------- | ----- |
9
+ | `form_fields_per_document`<sup>*_required_</sup> | [```Array<SubFormFieldsPerDocumentBase>```](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)<br><br>**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.<br><br>* Text Field use `SubFormFieldsPerDocumentText`<br>* Dropdown Field use `SubFormFieldsPerDocumentDropdown`<br>* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`<br>* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`<br>* Radio Field use `SubFormFieldsPerDocumentRadio`<br>* Signature Field use `SubFormFieldsPerDocumentSignature`<br>* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`<br>* Initials Field use `SubFormFieldsPerDocumentInitials`<br>* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`<br>* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | |
10
+ | `signer_roles`<sup>*_required_</sup> | [```Array<SubTemplateRole>```](SubTemplateRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | |
11
+ | `files` | ```Array<File>``` | Use `files[]` to indicate the uploaded file(s) to send for signature.<br><br>This endpoint requires either **files** or **file_urls[]**, but not both. | |
12
+ | `file_urls` | ```Array<String>``` | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.<br><br>This endpoint requires either **files** or **file_urls[]**, but not both. | |
13
+ | `allow_reassign` | ```Boolean``` | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.<br><br>**NOTE:** Only available for Premium plan and higher. | [default to false] |
14
+ | `attachments` | [```Array<SubAttachment>```](SubAttachment.md) | A list describing the attachments | |
15
+ | `cc_roles` | ```Array<String>``` | The CC roles that must be assigned when using the template to send a signature request | |
16
+ | `client_id` | ```String``` | Client id of the app you&#39;re using to create this draft. Used to apply the branding and callback url defined for the app. | |
17
+ | `field_options` | [```SubFieldOptions```](SubFieldOptions.md) | | |
18
+ | `form_field_groups` | [```Array<SubFormFieldGroup>```](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | |
19
+ | `form_field_rules` | [```Array<SubFormFieldRule>```](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | |
20
+ | `merge_fields` | [```Array<SubMergeField>```](SubMergeField.md) | Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the `custom_fields` parameter. If the signature request using that template *does not* pass a value into a merge field, then an empty field remains in the document. | |
21
+ | `message` | ```String``` | The default template email message. | |
22
+ | `metadata` | ```Hash<String, Object>``` | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer&#39;s order number for look up when receiving events for the signature request.<br><br>Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | |
23
+ | `subject` | ```String``` | The template title (alias). | |
24
+ | `test_mode` | ```Boolean``` | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [default to false] |
25
+ | `title` | ```String``` | The title you want to assign to the SignatureRequest. | |
26
+ | `use_preexisting_fields` | ```Boolean``` | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | [default to false] |
27
+
@@ -0,0 +1,11 @@
1
+ # Dropbox::Sign::TemplateCreateResponse
2
+
3
+
4
+
5
+ ## Properties
6
+
7
+ | Name | Type | Description | Notes |
8
+ | ---- | ---- | ----------- | ----- |
9
+ | `template` | [```TemplateCreateResponseTemplate```](TemplateCreateResponseTemplate.md) | | |
10
+ | `warnings` | [```Array<WarningResponse>```](WarningResponse.md) | A list of warnings. | |
11
+
@@ -0,0 +1,10 @@
1
+ # Dropbox::Sign::TemplateCreateResponseTemplate
2
+
3
+ Template object with parameters: `template_id`.
4
+
5
+ ## Properties
6
+
7
+ | Name | Type | Description | Notes |
8
+ | ---- | ---- | ----------- | ----- |
9
+ | `template_id` | ```String``` | The id of the Template. | |
10
+
@@ -11,5 +11,5 @@
11
11
  | `field_groups` | [```Array<TemplateResponseDocumentFieldGroup>```](TemplateResponseDocumentFieldGroup.md) | An array of Form Field Group objects. | |
12
12
  | `form_fields` | [```Array<TemplateResponseDocumentFormFieldBase>```](TemplateResponseDocumentFormFieldBase.md) | An array of Form Field objects containing the name and type of each named field. | |
13
13
  | `custom_fields` | [```Array<TemplateResponseDocumentCustomFieldBase>```](TemplateResponseDocumentCustomFieldBase.md) | An array of Form Field objects containing the name and type of each named field. | |
14
- | `static_fields` | [```Array<TemplateResponseDocumentStaticFieldBase>```](TemplateResponseDocumentStaticFieldBase.md) | An array describing static overlay fields. **Note** only available for certain subscriptions. | |
14
+ | `static_fields` | [```Array<TemplateResponseDocumentStaticFieldBase>```](TemplateResponseDocumentStaticFieldBase.md) | An array describing static overlay fields. **NOTE:** Only available for certain subscriptions. | |
15
15
 
@@ -1,6 +1,6 @@
1
1
  # Dropbox::Sign::TemplateResponseDocumentStaticFieldBase
2
2
 
3
- An array describing static overlay fields. **Note** only available for certain subscriptions.
3
+ An array describing static overlay fields. **NOTE:** Only available for certain subscriptions.
4
4
 
5
5
  ## Properties
6
6
 
@@ -124,7 +124,7 @@ end
124
124
 
125
125
  Create Embedded Unclaimed Draft
126
126
 
127
- Creates a new Draft that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE**: Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
127
+ Creates a new Draft that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
128
128
 
129
129
  ### Examples
130
130
 
@@ -200,7 +200,7 @@ end
200
200
 
201
201
  Create Embedded Unclaimed Draft with Template
202
202
 
203
- Creates a new Draft with a previously saved template(s) that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE**: Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
203
+ Creates a new Draft with a previously saved template(s) that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
204
204
 
205
205
  ### Examples
206
206
 
@@ -287,7 +287,7 @@ end
287
287
 
288
288
  Edit and Resend Unclaimed Draft
289
289
 
290
- Creates a new signature request from an embedded request that can be edited prior to being sent to the recipients. Parameter `test_mode` can be edited prior to request. Signers can be edited in embedded editor. Requester's email address will remain unchanged if `requester_email_address` parameter is not set. **NOTE**: Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
290
+ Creates a new signature request from an embedded request that can be edited prior to being sent to the recipients. Parameter `test_mode` can be edited prior to request. Signers can be edited in embedded editor. Requester's email address will remain unchanged if `requester_email_address` parameter is not set. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
291
291
 
292
292
  ### Examples
293
293
 
@@ -12,7 +12,7 @@
12
12
  | `file_urls` | ```Array<String>``` | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.<br><br>This endpoint requires either **files** or **file_urls[]**, but not both. | |
13
13
  | `allow_ccs` | ```Boolean``` | This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. | [default to true] |
14
14
  | `allow_decline` | ```Boolean``` | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [default to false] |
15
- | `allow_reassign` | ```Boolean``` | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.<br><br>**Note**: Only available for Premium plan and higher. | [default to false] |
15
+ | `allow_reassign` | ```Boolean``` | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.<br><br>**NOTE:** Only available for Premium plan and higher. | [default to false] |
16
16
  | `attachments` | [```Array<SubAttachment>```](SubAttachment.md) | A list describing the attachments | |
17
17
  | `cc_email_addresses` | ```Array<String>``` | The email addresses that should be CCed. | |
18
18
  | `custom_fields` | [```Array<SubCustomField>```](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.<br><br>Pre-filled data can be used with &quot;send-once&quot; signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.<br><br>For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | |
@@ -22,7 +22,7 @@
22
22
  | `force_subject_message` | ```Boolean``` | Provide users the ability to review/edit the subject and message. | [default to false] |
23
23
  | `form_field_groups` | [```Array<SubFormFieldGroup>```](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | |
24
24
  | `form_field_rules` | [```Array<SubFormFieldRule>```](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | |
25
- | `form_fields_per_document` | [```Array<SubFormFieldsPerDocumentBase>```](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)<br><br>**NOTE**: Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.<br><br>* Text Field use `SubFormFieldsPerDocumentText`<br>* Dropdown Field use `SubFormFieldsPerDocumentDropdown`<br>* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`<br>* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`<br>* Radio Field use `SubFormFieldsPerDocumentRadio`<br>* Signature Field use `SubFormFieldsPerDocumentSignature`<br>* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`<br>* Initials Field use `SubFormFieldsPerDocumentInitials`<br>* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`<br>* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | |
25
+ | `form_fields_per_document` | [```Array<SubFormFieldsPerDocumentBase>```](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)<br><br>**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.<br><br>* Text Field use `SubFormFieldsPerDocumentText`<br>* Dropdown Field use `SubFormFieldsPerDocumentDropdown`<br>* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`<br>* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`<br>* Radio Field use `SubFormFieldsPerDocumentRadio`<br>* Signature Field use `SubFormFieldsPerDocumentSignature`<br>* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`<br>* Initials Field use `SubFormFieldsPerDocumentInitials`<br>* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`<br>* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | |
26
26
  | `hide_text_tags` | ```Boolean``` | Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. | [default to false] |
27
27
  | `hold_request` | ```Boolean``` | The request from this draft will not automatically send to signers post-claim if set to `true`. Requester must [release](/api/reference/operation/signatureRequestReleaseHold/) the request from hold when ready to send. Defaults to `false`. | [default to false] |
28
28
  | `is_for_embedded_signing` | ```Boolean``` | The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. | [default to false] |
@@ -40,6 +40,6 @@
40
40
  | `type` | ```String``` | The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. | [default to 'request_signature'] |
41
41
  | `use_preexisting_fields` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | [default to false] |
42
42
  | `use_text_tags` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | [default to false] |
43
- | `populate_auto_fill_fields` | ```Boolean``` | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer&#39;s information during signing.<br><br>⚠️ **Note** ⚠️: Keep your signer&#39;s information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [default to false] |
44
- | `expires_at` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.<br><br>**Note**: This does not correspond to the **expires_at** returned in the response. | |
43
+ | `populate_auto_fill_fields` | ```Boolean``` | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer&#39;s information during signing.<br><br>**NOTE:** Keep your signer&#39;s information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [default to false] |
44
+ | `expires_at` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.<br><br>**NOTE:** This does not correspond to the **expires_at** returned in the response. | |
45
45
 
@@ -10,7 +10,7 @@
10
10
  | `requester_email_address`<sup>*_required_</sup> | ```String``` | The email address of the user that should be designated as the requester of this draft. | |
11
11
  | `template_ids`<sup>*_required_</sup> | ```Array<String>``` | Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the templates will be used. | |
12
12
  | `allow_decline` | ```Boolean``` | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [default to false] |
13
- | `allow_reassign` | ```Boolean``` | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.<br><br>**Note**: Only available for Premium plan and higher. | [default to false] |
13
+ | `allow_reassign` | ```Boolean``` | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.<br><br>**NOTE:** Only available for Premium plan and higher. | [default to false] |
14
14
  | `ccs` | [```Array<SubCC>```](SubCC.md) | Add CC email recipients. Required when a CC role exists for the Template. | |
15
15
  | `custom_fields` | [```Array<SubCustomField>```](SubCustomField.md) | An array defining values and options for custom fields. Required when a custom field exists in the Template. | |
16
16
  | `editor_options` | [```SubEditorOptions```](SubEditorOptions.md) | | |
@@ -23,7 +23,7 @@
23
23
  | `is_for_embedded_signing` | ```Boolean``` | The request created from this draft will also be signable in embedded mode if set to `true`. Defaults to `false`. | [default to false] |
24
24
  | `message` | ```String``` | The custom message in the email that will be sent to the signers. | |
25
25
  | `metadata` | ```Hash<String, Object>``` | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer&#39;s order number for look up when receiving events for the signature request.<br><br>Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | |
26
- | `preview_only` | ```Boolean``` | This allows the requester to enable the preview experience (i.e. does not allow the requester&#39;s end user to add any additional fields via the editor).<br><br>- `preview_only&#x3D;true`: Allows requesters to enable the preview only experience. - `preview_only&#x3D;false`: Allows requesters to disable the preview only experience.<br><br>**Note**: This parameter overwrites `show_preview&#x3D;1` (if set). | [default to false] |
26
+ | `preview_only` | ```Boolean``` | This allows the requester to enable the preview experience (i.e. does not allow the requester&#39;s end user to add any additional fields via the editor).<br><br>- `preview_only&#x3D;true`: Allows requesters to enable the preview only experience. - `preview_only&#x3D;false`: Allows requesters to disable the preview only experience.<br><br>**NOTE:** This parameter overwrites `show_preview&#x3D;1` (if set). | [default to false] |
27
27
  | `requesting_redirect_url` | ```String``` | The URL you want signers redirected to after they successfully request a signature. | |
28
28
  | `show_preview` | ```Boolean``` | This allows the requester to enable the editor/preview experience.<br><br>- `show_preview&#x3D;true`: Allows requesters to enable the editor/preview experience. - `show_preview&#x3D;false`: Allows requesters to disable the editor/preview experience. | [default to false] |
29
29
  | `show_progress_stepper` | ```Boolean``` | When only one step remains in the signature request process and this parameter is set to `false` then the progress stepper will be hidden. | [default to true] |
@@ -34,5 +34,6 @@
34
34
  | `subject` | ```String``` | The subject in the email that will be sent to the signers. | |
35
35
  | `test_mode` | ```Boolean``` | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [default to false] |
36
36
  | `title` | ```String``` | The title you want to assign to the SignatureRequest. | |
37
- | `populate_auto_fill_fields` | ```Boolean``` | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer&#39;s information during signing.<br><br>⚠️ **Note** ⚠️: Keep your signer&#39;s information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [default to false] |
37
+ | `populate_auto_fill_fields` | ```Boolean``` | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer&#39;s information during signing.<br><br>**NOTE:** Keep your signer&#39;s information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [default to false] |
38
+ | `allow_ccs` | ```Boolean``` | This allows the requester to specify whether the user is allowed to provide email addresses to CC when claiming the draft. | [default to false] |
38
39
 
@@ -17,7 +17,7 @@
17
17
  | `field_options` | [```SubFieldOptions```](SubFieldOptions.md) | | |
18
18
  | `form_field_groups` | [```Array<SubFormFieldGroup>```](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | |
19
19
  | `form_field_rules` | [```Array<SubFormFieldRule>```](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | |
20
- | `form_fields_per_document` | [```Array<SubFormFieldsPerDocumentBase>```](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)<br><br>**NOTE**: Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.<br><br>* Text Field use `SubFormFieldsPerDocumentText`<br>* Dropdown Field use `SubFormFieldsPerDocumentDropdown`<br>* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`<br>* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`<br>* Radio Field use `SubFormFieldsPerDocumentRadio`<br>* Signature Field use `SubFormFieldsPerDocumentSignature`<br>* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`<br>* Initials Field use `SubFormFieldsPerDocumentInitials`<br>* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`<br>* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | |
20
+ | `form_fields_per_document` | [```Array<SubFormFieldsPerDocumentBase>```](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)<br><br>**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.<br><br>* Text Field use `SubFormFieldsPerDocumentText`<br>* Dropdown Field use `SubFormFieldsPerDocumentDropdown`<br>* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`<br>* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`<br>* Radio Field use `SubFormFieldsPerDocumentRadio`<br>* Signature Field use `SubFormFieldsPerDocumentSignature`<br>* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`<br>* Initials Field use `SubFormFieldsPerDocumentInitials`<br>* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`<br>* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | |
21
21
  | `hide_text_tags` | ```Boolean``` | Send with a value of `true` if you wish to enable automatic Text Tag removal. Defaults to `false`. When using Text Tags it is preferred that you set this to `false` and hide your tags with white text or something similar because the automatic removal system can cause unwanted clipping. See the [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) walkthrough for more details. | [default to false] |
22
22
  | `message` | ```String``` | The custom message in the email that will be sent to the signers. | |
23
23
  | `metadata` | ```Hash<String, Object>``` | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer&#39;s order number for look up when receiving events for the signature request.<br><br>Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | |
@@ -29,5 +29,5 @@
29
29
  | `test_mode` | ```Boolean``` | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | [default to false] |
30
30
  | `use_preexisting_fields` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | [default to false] |
31
31
  | `use_text_tags` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | [default to false] |
32
- | `expires_at` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.<br><br>**Note**: This does not correspond to the **expires_at** returned in the response. | |
32
+ | `expires_at` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.<br><br>**NOTE:** This does not correspond to the **expires_at** returned in the response. | |
33
33
 
@@ -1,13 +1,5 @@
1
1
  require "dropbox-sign"
2
2
 
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
3
  oauth_api = Dropbox::Sign::OAuthApi.new
12
4
 
13
5
  data = Dropbox::Sign::OAuthTokenGenerateRequest.new
@@ -1,13 +1,5 @@
1
1
  require "dropbox-sign"
2
2
 
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
3
  oauth_api = Dropbox::Sign::OAuthApi.new
12
4
 
13
5
  data = Dropbox::Sign::OAuthTokenRefreshRequest.new
@@ -0,0 +1,58 @@
1
+ require "dropbox-sign"
2
+
3
+ Dropbox::Sign.configure do |config|
4
+ # Configure HTTP basic authorization: api_key
5
+ config.username = "YOUR_API_KEY"
6
+
7
+ # or, configure Bearer (JWT) authorization: oauth2
8
+ # config.access_token = "YOUR_ACCESS_TOKEN"
9
+ end
10
+
11
+ signature_request_api = Dropbox::Sign::SignatureRequestApi.new
12
+
13
+ signer_1 = Dropbox::Sign::SubSignatureRequestSigner.new
14
+ signer_1.email_address = "jack@example.com"
15
+ signer_1.name = "Jack"
16
+ signer_1.order = 0
17
+
18
+ signer_2 = Dropbox::Sign::SubSignatureRequestSigner.new
19
+ signer_2.email_address = "jill@example.com"
20
+ signer_2.name = "Jill"
21
+ signer_2.order = 1
22
+
23
+ signing_options = Dropbox::Sign::SubSigningOptions.new
24
+ signing_options.draw = true
25
+ signing_options.type = true
26
+ signing_options.upload = true
27
+ signing_options.phone = true
28
+ signing_options.default_type = "draw"
29
+
30
+ field_options = Dropbox::Sign::SubFieldOptions.new
31
+ field_options.date_format = "DD - MM - YYYY"
32
+
33
+ data = Dropbox::Sign::SignatureRequestEditRequest.new
34
+ data.title = "NDA with Acme Co."
35
+ data.subject = "The NDA we talked about"
36
+ data.message = "Please sign this NDA and then we can discuss more. Let me know if you have any questions."
37
+ data.signers = [signer_1, signer_2]
38
+ data.cc_email_addresses = [
39
+ "lawyer1@dropboxsign.com",
40
+ "lawyer2@dropboxsign.com",
41
+ ]
42
+ data.files = [File.new("example_signature_request.pdf", "r")]
43
+ data.metadata = {
44
+ custom_id: 1234,
45
+ custom_text: "NDA #9",
46
+ }
47
+ data.signing_options = signing_options
48
+ data.field_options = field_options
49
+ data.test_mode = true
50
+
51
+ signature_request_id = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"
52
+
53
+ begin
54
+ result = signature_request_api.signature_request_edit(signature_request_id, data)
55
+ p result
56
+ rescue Dropbox::Sign::ApiError => e
57
+ puts "Exception when calling Dropbox Sign API: #{e}"
58
+ end
@@ -0,0 +1,48 @@
1
+ require "dropbox-sign"
2
+
3
+ Dropbox::Sign.configure do |config|
4
+ # Configure HTTP basic authorization: api_key
5
+ config.username = "YOUR_API_KEY"
6
+
7
+ # or, configure Bearer (JWT) authorization: oauth2
8
+ # config.access_token = "YOUR_ACCESS_TOKEN"
9
+ end
10
+
11
+ signature_request_api = Dropbox::Sign::SignatureRequestApi.new
12
+
13
+ signer_1 = Dropbox::Sign::SubSignatureRequestSigner.new
14
+ signer_1.email_address = "jack@example.com"
15
+ signer_1.name = "Jack"
16
+ signer_1.order = 0
17
+
18
+ signer_2 = Dropbox::Sign::SubSignatureRequestSigner.new
19
+ signer_2.email_address = "jill@example.com"
20
+ signer_2.name = "Jill"
21
+ signer_2.order = 1
22
+
23
+ signing_options = Dropbox::Sign::SubSigningOptions.new
24
+ signing_options.draw = true
25
+ signing_options.type = true
26
+ signing_options.upload = true
27
+ signing_options.phone = true
28
+ signing_options.default_type = "draw"
29
+
30
+ data = Dropbox::Sign::SignatureRequestEditEmbeddedRequest.new
31
+ data.client_id = "ec64a202072370a737edf4a0eb7f4437"
32
+ data.title = "NDA with Acme Co."
33
+ data.subject = "The NDA we talked about"
34
+ data.message = "Please sign this NDA and then we can discuss more. Let me know if you have any questions."
35
+ data.signers = [signer_1, signer_2]
36
+ data.cc_email_addresses = ["lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"]
37
+ data.files = [File.new("example_signature_request.pdf", "r")]
38
+ data.signing_options = signing_options
39
+ data.test_mode = true
40
+
41
+ signature_request_id = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"
42
+
43
+ begin
44
+ result = signature_request_api.signature_request_edit_embedded(signature_request_id, data)
45
+ p result
46
+ rescue Dropbox::Sign::ApiError => e
47
+ puts "Exception when calling Dropbox Sign API: #{e}"
48
+ end
@@ -0,0 +1,41 @@
1
+ require "dropbox-sign"
2
+
3
+ Dropbox::Sign.configure do |config|
4
+ # Configure HTTP basic authorization: api_key
5
+ config.username = "YOUR_API_KEY"
6
+
7
+ # or, configure Bearer (JWT) authorization: oauth2
8
+ # config.access_token = "YOUR_ACCESS_TOKEN"
9
+ end
10
+
11
+ signature_request_api = Dropbox::Sign::SignatureRequestApi.new
12
+
13
+ signer_1 = Dropbox::Sign::SubSignatureRequestTemplateSigner.new
14
+ signer_1.role = "Client"
15
+ signer_1.email_address = "jack@example.com"
16
+ signer_1.name = "Jack"
17
+
18
+ signing_options = Dropbox::Sign::SubSigningOptions.new
19
+ signing_options.draw = true
20
+ signing_options.type = true
21
+ signing_options.upload = true
22
+ signing_options.phone = true
23
+ signing_options.default_type = "draw"
24
+
25
+ data = Dropbox::Sign::SignatureRequestEditEmbeddedWithTemplateRequest.new
26
+ data.client_id = "ec64a202072370a737edf4a0eb7f4437"
27
+ data.template_ids = ["c26b8a16784a872da37ea946b9ddec7c1e11dff6"]
28
+ data.subject = "Purchase Order"
29
+ data.message = "Glad we could come to an agreement."
30
+ data.signers = [signer_1]
31
+ data.signing_options = signing_options
32
+ data.test_mode = true
33
+
34
+ signature_request_id = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"
35
+
36
+ begin
37
+ result = signature_request_api.signature_request_edit_embedded_with_template(signature_request_id, data)
38
+ p result
39
+ rescue Dropbox::Sign::ApiError => e
40
+ puts "Exception when calling Dropbox Sign API: #{e}"
41
+ end
@@ -0,0 +1,52 @@
1
+ require "dropbox-sign"
2
+
3
+ Dropbox::Sign.configure do |config|
4
+ # Configure HTTP basic authorization: api_key
5
+ config.username = "YOUR_API_KEY"
6
+
7
+ # or, configure Bearer (JWT) authorization: oauth2
8
+ # config.access_token = "YOUR_ACCESS_TOKEN"
9
+ end
10
+
11
+ signature_request_api = Dropbox::Sign::SignatureRequestApi.new
12
+
13
+ signer_1 = Dropbox::Sign::SubSignatureRequestTemplateSigner.new
14
+ signer_1.role = "Client"
15
+ signer_1.email_address = "george@example.com"
16
+ signer_1.name = "George"
17
+
18
+ cc_1 = Dropbox::Sign::SubCC.new
19
+ cc_1.role = "Accounting"
20
+ cc_1.email_address = "accounting@example.com"
21
+
22
+ custom_field_1 = Dropbox::Sign::SubCustomField.new
23
+ custom_field_1.name = "Cost"
24
+ custom_field_1.value = "$20,000"
25
+ custom_field_1.editor = "Client"
26
+ custom_field_1.required = true
27
+
28
+ signing_options = Dropbox::Sign::SubSigningOptions.new
29
+ signing_options.draw = true
30
+ signing_options.type = true
31
+ signing_options.upload = true
32
+ signing_options.phone = false
33
+ signing_options.default_type = "draw"
34
+
35
+ data = Dropbox::Sign::SignatureRequestSendWithTemplateRequest.new
36
+ data.template_ids = ["c26b8a16784a872da37ea946b9ddec7c1e11dff6"]
37
+ data.subject = "Purchase Order"
38
+ data.message = "Glad we could come to an agreement."
39
+ data.signers = [signer_1]
40
+ data.ccs = [cc_1]
41
+ data.custom_fields = [custom_field_1]
42
+ data.signing_options = signing_options
43
+ data.test_mode = true
44
+
45
+ signature_request_id = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"
46
+
47
+ begin
48
+ result = signature_request_api.signature_request_edit_with_template(signature_request_id, data)
49
+ p result
50
+ rescue Dropbox::Sign::ApiError => e
51
+ puts "Exception when calling Dropbox Sign API: #{e}"
52
+ end