docspring 4.3.0 → 4.4.0
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.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +80 -0
- data/.openapi-generator/FILES +84 -0
- data/CHANGELOG.md +55 -0
- data/Gemfile.lock +2 -2
- data/README.md +20 -1
- data/docs/AddTemplateFieldsRequest.md +1 -1
- data/docs/Client.md +2311 -766
- data/docs/CombinedPdfSource.md +1 -1
- data/docs/CreateAccountEmailActionRequest.md +54 -0
- data/docs/CreateEmailActionRequest.md +50 -0
- data/docs/CreateEmailDomainRequest.md +18 -0
- data/docs/CreateSubmissionBatchRequest.md +2 -2
- data/docs/CreateSubmissionRequest.md +22 -4
- data/docs/CreateTemplateRequest.md +22 -6
- data/docs/DnsRecordType.md +15 -0
- data/docs/EmailAction.md +76 -0
- data/docs/EmailActionConditions.md +20 -0
- data/docs/EmailActionConditionsInput.md +20 -0
- data/docs/EmailActionCustomization.md +36 -0
- data/docs/EmailActionDelivery.md +15 -0
- data/docs/EmailActionFileFormats.md +15 -0
- data/docs/EmailActionList.md +20 -0
- data/docs/EmailActionSetting.md +15 -0
- data/docs/EmailActionSubmissionType.md +15 -0
- data/docs/EmailActionTestEmail.md +18 -0
- data/docs/EmailDomain.md +38 -0
- data/docs/EmailDomainDnsRecord.md +24 -0
- data/docs/EmailDomainDnsRecordPurpose.md +15 -0
- data/docs/EmailDomainList.md +20 -0
- data/docs/EmailDomainRecordState.md +15 -0
- data/docs/EmailDomainState.md +15 -0
- data/docs/ErrorInfo.md +12 -6
- data/docs/Field.md +1 -1
- data/docs/FieldInput.md +1 -1
- data/docs/HtmlEngineOptions.md +1 -1
- data/docs/HtmlEngineOptionsInput.md +1 -1
- data/docs/SendAccountEmailActionTestEmailRequest.md +18 -0
- data/docs/SignatureRequest.md +9 -1
- data/docs/SignatureRequestEmailAttachments.md +15 -0
- data/docs/SignatureRequestEmailStatus.md +15 -0
- data/docs/SignatureRequestInput.md +7 -3
- data/docs/SignatureRequestReminders.md +20 -0
- data/docs/SigningOrder.md +15 -0
- data/docs/Submission.md +4 -2
- data/docs/SubmissionAction.md +5 -3
- data/docs/SubmissionInput.md +3 -3
- data/docs/SubmissionSummary.md +1 -1
- data/docs/Template.md +23 -7
- data/docs/TemplateSourcePdf.md +1 -1
- data/docs/TemplateSummary.md +4 -4
- data/docs/UpdateAccountEmailActionRequest.md +54 -0
- data/docs/UpdateEmailActionCustomizationRequest.md +46 -0
- data/docs/UpdateEmailActionRequest.md +50 -0
- data/docs/UpdateTemplateDocumentRequest.md +1 -1
- data/docs/UpdateTemplateRequest.md +21 -5
- data/docs/ValidateSubmissionRequest.md +22 -4
- data/lib/docspring/api/client.rb +1749 -314
- data/lib/docspring/api_client.rb +1 -1
- data/lib/docspring/models/add_template_fields_request.rb +1 -1
- data/lib/docspring/models/combined_pdf_source.rb +1 -1
- data/lib/docspring/models/create_account_email_action_request.rb +388 -0
- data/lib/docspring/models/create_email_action_request.rb +364 -0
- data/lib/docspring/models/create_email_domain_request.rb +185 -0
- data/lib/docspring/models/create_submission_batch_request.rb +2 -2
- data/lib/docspring/models/create_submission_request.rb +143 -7
- data/lib/docspring/models/create_template_request.rb +107 -7
- data/lib/docspring/models/dns_record_type.rb +42 -0
- data/lib/docspring/models/email_action.rb +790 -0
- data/lib/docspring/models/email_action_conditions.rb +219 -0
- data/lib/docspring/models/email_action_conditions_input.rb +219 -0
- data/lib/docspring/models/email_action_customization.rb +360 -0
- data/lib/docspring/models/email_action_delivery.rb +41 -0
- data/lib/docspring/models/email_action_file_formats.rb +43 -0
- data/lib/docspring/models/email_action_list.rb +200 -0
- data/lib/docspring/models/email_action_setting.rb +53 -0
- data/lib/docspring/models/email_action_submission_type.rb +42 -0
- data/lib/docspring/models/email_action_test_email.rb +185 -0
- data/lib/docspring/models/email_domain.rb +423 -0
- data/lib/docspring/models/email_domain_dns_record.rb +288 -0
- data/lib/docspring/models/email_domain_dns_record_purpose.rb +42 -0
- data/lib/docspring/models/email_domain_list.rb +200 -0
- data/lib/docspring/models/email_domain_record_state.rb +42 -0
- data/lib/docspring/models/email_domain_state.rb +42 -0
- data/lib/docspring/models/error_code.rb +3 -1
- data/lib/docspring/models/error_info.rb +39 -9
- data/lib/docspring/models/field.rb +1 -1
- data/lib/docspring/models/field_input.rb +1 -1
- data/lib/docspring/models/html_engine_options.rb +1 -1
- data/lib/docspring/models/html_engine_options_input.rb +1 -1
- data/lib/docspring/models/send_account_email_action_test_email_request.rb +168 -0
- data/lib/docspring/models/signature_request.rb +68 -2
- data/lib/docspring/models/signature_request_email_attachments.rb +41 -0
- data/lib/docspring/models/signature_request_email_status.rb +47 -0
- data/lib/docspring/models/signature_request_event_type.rb +3 -1
- data/lib/docspring/models/signature_request_input.rb +25 -22
- data/lib/docspring/models/signature_request_reminders.rb +212 -0
- data/lib/docspring/models/signing_order.rb +41 -0
- data/lib/docspring/models/string_condition_type.rb +8 -1
- data/lib/docspring/models/submission.rb +30 -3
- data/lib/docspring/models/submission_action.rb +18 -5
- data/lib/docspring/models/submission_input.rb +3 -3
- data/lib/docspring/models/submission_summary.rb +1 -1
- data/lib/docspring/models/template.rb +144 -8
- data/lib/docspring/models/template_source_pdf.rb +1 -1
- data/lib/docspring/models/template_summary.rb +4 -4
- data/lib/docspring/models/template_type.rb +2 -1
- data/lib/docspring/models/update_account_email_action_request.rb +388 -0
- data/lib/docspring/models/update_email_action_customization_request.rb +343 -0
- data/lib/docspring/models/update_email_action_request.rb +364 -0
- data/lib/docspring/models/update_template_document_request.rb +1 -1
- data/lib/docspring/models/update_template_request.rb +108 -8
- data/lib/docspring/models/validate_submission_request.rb +143 -7
- data/lib/docspring/models/webhook_event_type.rb +3 -1
- data/lib/docspring/request_schemas.json +1691 -145
- data/lib/docspring/request_validator.rb +4 -0
- data/lib/docspring/version.rb +1 -1
- data/lib/docspring.rb +28 -0
- data/spec/api/client_spec.rb +306 -18
- data/spec/models/create_account_email_action_request_spec.rb +144 -0
- data/spec/models/create_email_action_request_spec.rb +132 -0
- data/spec/models/create_email_domain_request_spec.rb +36 -0
- data/spec/models/create_submission_request_spec.rb +54 -0
- data/spec/models/create_template_request_spec.rb +48 -0
- data/spec/models/dns_record_type_spec.rb +30 -0
- data/spec/models/email_action_conditions_input_spec.rb +42 -0
- data/spec/models/email_action_conditions_spec.rb +42 -0
- data/spec/models/email_action_customization_spec.rb +90 -0
- data/spec/models/email_action_delivery_spec.rb +30 -0
- data/spec/models/email_action_file_formats_spec.rb +30 -0
- data/spec/models/email_action_list_spec.rb +42 -0
- data/spec/models/email_action_setting_spec.rb +30 -0
- data/spec/models/email_action_spec.rb +210 -0
- data/spec/models/email_action_submission_type_spec.rb +30 -0
- data/spec/models/email_action_test_email_spec.rb +36 -0
- data/spec/models/email_domain_dns_record_purpose_spec.rb +30 -0
- data/spec/models/email_domain_dns_record_spec.rb +54 -0
- data/spec/models/email_domain_list_spec.rb +42 -0
- data/spec/models/email_domain_record_state_spec.rb +30 -0
- data/spec/models/email_domain_spec.rb +96 -0
- data/spec/models/email_domain_state_spec.rb +30 -0
- data/spec/models/error_info_spec.rb +18 -0
- data/spec/models/send_account_email_action_test_email_request_spec.rb +36 -0
- data/spec/models/signature_request_email_attachments_spec.rb +30 -0
- data/spec/models/signature_request_email_status_spec.rb +30 -0
- data/spec/models/signature_request_input_spec.rb +12 -0
- data/spec/models/signature_request_reminders_spec.rb +42 -0
- data/spec/models/signature_request_spec.rb +24 -0
- data/spec/models/signing_order_spec.rb +30 -0
- data/spec/models/submission_action_spec.rb +6 -0
- data/spec/models/submission_spec.rb +6 -0
- data/spec/models/template_spec.rb +48 -0
- data/spec/models/update_account_email_action_request_spec.rb +144 -0
- data/spec/models/update_email_action_customization_request_spec.rb +120 -0
- data/spec/models/update_email_action_request_spec.rb +132 -0
- data/spec/models/update_template_request_spec.rb +48 -0
- data/spec/models/validate_submission_request_spec.rb +54 -0
- metadata +115 -4
- data/.gitlab-ci.yml +0 -26
- data/.travis.yml +0 -11
|
@@ -25,13 +25,13 @@ module DocSpring
|
|
|
25
25
|
# Shown under the template's name at the top of its hosted forms, and used as their meta description. Not shown on embedded forms or signature requests.
|
|
26
26
|
attr_accessor :description
|
|
27
27
|
|
|
28
|
-
# `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. `docx`: a Word document with tags where the data goes, which makes Word documents or PDFs. It can't be changed after the template is created.
|
|
28
|
+
# `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. `docx`: a Word document with tags where the data goes, which makes Word documents or PDFs. `page_designer`: a page design, a PDF laid out in the Page Designer from its `layout`. It can't be changed after the template is created.
|
|
29
29
|
attr_accessor :template_type
|
|
30
30
|
|
|
31
|
-
# What each submission makes unless its request sets `output_formats`: `docx` (a Word document), `odt` (an OpenDocument file, converted from the Word document) or `pdf`. A Word template's is chosen when it's created;
|
|
31
|
+
# What each submission makes unless its request sets `output_formats`: `docx` (a Word document), `odt` (an OpenDocument file, converted from the Word document) or `pdf`. A Word template's is chosen when it's created; other templates always make PDFs. A Word template that encrypts its PDFs makes PDFs, because Word documents and OpenDocument files can't be password-protected.
|
|
32
32
|
attr_accessor :output_format
|
|
33
33
|
|
|
34
|
-
# Whether the template can make documents. HTML templates are always ready. A PDF template is ready once DocSpring has stored its PDF, made an image of each page and finished looking for fields on each page, which can be after `document.state` becomes `processed`. A PDF template with no PDF (`document` is null) isn't ready. A Word template is ready once it has a Word document (a `document_url`'s has been downloaded).
|
|
34
|
+
# Whether the template can make documents. HTML templates and page designs are always ready. A PDF template is ready once DocSpring has stored its PDF, made an image of each page and finished looking for fields on each page, which can be after `document.state` becomes `processed`. A PDF template with no PDF (`document` is null) isn't ready. A Word template is ready once it has a Word document (a `document_url`'s has been downloaded).
|
|
35
35
|
attr_accessor :ready
|
|
36
36
|
|
|
37
37
|
# The PDF of a PDF template, or the Word document of a Word template. Null for HTML templates, and for a PDF template that has no PDF yet. A template created from a `document_url` has one, with no file, while it's downloaded.
|
|
@@ -82,7 +82,7 @@ module DocSpring
|
|
|
82
82
|
# Generate PDFs whose text and check fields stay fillable ("Generate Editable PDFs"). A submission's `editable` overrides it.
|
|
83
83
|
attr_accessor :editable_submissions
|
|
84
84
|
|
|
85
|
-
# The sites that can embed the template's live signature requests and its embedded template editor: a host such as `app.example.com`, with an optional leading wildcard (`*.example.com`), port (`localhost:3000`) or scheme (`https://app.example.com`; without one, `http` and `https` both work). Browsers open a live signature request in a frame only on these sites (and DocSpring's), so with an empty list it can't be embedded anywhere; a test signature request can be embedded on any site. The embedded template editor loads only for a page on one of these sites (by its Referer or Origin header), and on any site when the list is empty. Forms embedded on a page (Visual Forms JS and the simple form) aren't restricted.
|
|
85
|
+
# The sites that can embed the template's live signature requests and its embedded template editor: a host such as `app.example.com`, with an optional leading wildcard (`*.example.com`), port (`localhost:3000`) or scheme (`https://app.example.com`; without one, `http` and `https` both work), without a path. Browsers open a live signature request in a frame only on these sites (and DocSpring's), so with an empty list it can't be embedded anywhere; a test signature request can be embedded on any site. The embedded template editor loads only for a page on one of these sites (by its Referer or Origin header), and on any site when the list is empty. Forms embedded on a page (Visual Forms JS and the simple form) aren't restricted.
|
|
86
86
|
attr_accessor :embed_domains
|
|
87
87
|
|
|
88
88
|
# Allow the embedded template editor to change sensitive template settings (webhooks, redirect URL, encryption, public access, expiration and so on).
|
|
@@ -124,6 +124,27 @@ module DocSpring
|
|
|
124
124
|
# Where the web form sends people after they submit it.
|
|
125
125
|
attr_accessor :redirect_url
|
|
126
126
|
|
|
127
|
+
# How DocSpring's completed emails send the signed PDF to your signers and CCs: `attachment` (attached, or a download link when it's too big to attach) or `link` (a download link). Null uses your account's rule: a link if your account has signed a BAA, otherwise attached. PDF templates only. A signature request uses the value it had when the request was created.
|
|
128
|
+
attr_accessor :signature_request_email_attachments
|
|
129
|
+
|
|
130
|
+
# The address DocSpring's emails to your signers come from: an address at one of your verified email domains, on the Growth plan or higher. Null sends them from DocSpring's shared address, with "via DocSpring" after the sender name. PDF templates only.
|
|
131
|
+
attr_accessor :signature_request_from_address
|
|
132
|
+
|
|
133
|
+
# Puts a signing token in `signature_request_signing_url`, as `{{ token_id }}` and `{{ token_secret }}`, so your page can open the signing form without creating a token itself. The email then carries a credential: anyone who has it can open the form and sign. PDF templates only.
|
|
134
|
+
attr_accessor :signature_request_include_signing_token
|
|
135
|
+
|
|
136
|
+
# The sender name on the emails DocSpring sends your signers, as in "Acme via DocSpring". It can't contain an email address, a website or quotes. Null uses your account's name. PDF templates only.
|
|
137
|
+
attr_accessor :signature_request_from_name
|
|
138
|
+
|
|
139
|
+
# Who DocSpring tells when a signature request's document is completed or declined, or an email bounces or can't be sent: members of your DocSpring team or addresses at your verified email domains. Empty means your account's owner. A submission's `notification_emails` replaces them. PDF templates only.
|
|
140
|
+
attr_accessor :signature_request_notification_emails
|
|
141
|
+
|
|
142
|
+
# Where your signers' replies to DocSpring's emails go: a member of your DocSpring team or an address at one of your verified email domains. Null means your account's owner. A submission's `reply_to` replaces it. PDF templates only.
|
|
143
|
+
attr_accessor :signature_request_reply_to
|
|
144
|
+
|
|
145
|
+
# A page on your own site that the button in DocSpring's email to a signer opens, instead of DocSpring's signing page: an https URL on one of your verified email domains or a subdomain of one, on the Growth plan or higher. It must include `{{ signature_request_id }}`. Your page authenticates the signer, creates a token for the signature request, and opens the signing form with it. Null links to DocSpring's signing page. PDF templates only.
|
|
146
|
+
attr_accessor :signature_request_signing_url
|
|
147
|
+
|
|
127
148
|
# Whether `slack_webhook_url` is set.
|
|
128
149
|
attr_accessor :has_slack_webhook_url
|
|
129
150
|
|
|
@@ -144,7 +165,7 @@ module DocSpring
|
|
|
144
165
|
# Sample submission data that sets `predefined_fields`: each value becomes a predefined field, with a type that fits it (`string`, `number`, `boolean`, `date`, `email` or `url`) and `required_in_template` true. Nested objects and arrays become names with `/`, such as `customer/email`. Without `predefined_fields` in the same request, it replaces them; with them, it adds to them and sets the types of the ones it has values for.
|
|
145
166
|
attr_accessor :predefined_fields_sample_data
|
|
146
167
|
|
|
147
|
-
# The HTML of an HTML template, as a Liquid template. Null for
|
|
168
|
+
# The HTML of an HTML template, as a Liquid template. Null for other templates.
|
|
148
169
|
attr_accessor :html
|
|
149
170
|
|
|
150
171
|
# The SCSS of an HTML template.
|
|
@@ -156,12 +177,15 @@ module DocSpring
|
|
|
156
177
|
# The HTML printed at the bottom of each page of an HTML template.
|
|
157
178
|
attr_accessor :footer_html
|
|
158
179
|
|
|
159
|
-
# How an HTML template's PDFs are printed. Null for
|
|
180
|
+
# How an HTML template's PDFs are printed. Null for other templates. Setting it replaces the whole object: options left out use their defaults.
|
|
160
181
|
attr_accessor :html_engine_options
|
|
161
182
|
|
|
162
|
-
# Whether an HTML template HTML-escapes the values it prints. When true, `{{ value }}` prints a value as text, so a `<` or `&` in it is printed as that character, and `{{ value | raw }}` prints a value as HTML. New HTML templates default to true. Templates created before October 2026, or with API v1, default to false, which prints every value as HTML. Null for
|
|
183
|
+
# Whether an HTML template HTML-escapes the values it prints. When true, `{{ value }}` prints a value as text, so a `<` or `&` in it is printed as that character, and `{{ value | raw }}` prints a value as HTML. New HTML templates default to true. Templates created before October 2026, or with API v1, default to false, which prints every value as HTML. Null for other templates.
|
|
163
184
|
attr_accessor :html_escape_data
|
|
164
185
|
|
|
186
|
+
# A page design's layout: its page setup, its sections and the elements placed in them, in the Page Designer layout format (https://docspring.com/docs/page-designer/layout-format/). Its JSON Schema is at https://docspring.com/schemas/page-designer/layout.v1.json. Null for other templates. Setting it replaces the whole layout, and DocSpring adds a field for each value it reads. Left out when a page design is created, it starts with an empty page.
|
|
187
|
+
attr_accessor :layout
|
|
188
|
+
|
|
165
189
|
# The token that opens the template in the embedded template editor.
|
|
166
190
|
attr_accessor :embed_edit_token
|
|
167
191
|
|
|
@@ -229,6 +253,13 @@ module DocSpring
|
|
|
229
253
|
:'public_submissions' => :'public_submissions',
|
|
230
254
|
:'public_web_form' => :'public_web_form',
|
|
231
255
|
:'redirect_url' => :'redirect_url',
|
|
256
|
+
:'signature_request_email_attachments' => :'signature_request_email_attachments',
|
|
257
|
+
:'signature_request_from_address' => :'signature_request_from_address',
|
|
258
|
+
:'signature_request_include_signing_token' => :'signature_request_include_signing_token',
|
|
259
|
+
:'signature_request_from_name' => :'signature_request_from_name',
|
|
260
|
+
:'signature_request_notification_emails' => :'signature_request_notification_emails',
|
|
261
|
+
:'signature_request_reply_to' => :'signature_request_reply_to',
|
|
262
|
+
:'signature_request_signing_url' => :'signature_request_signing_url',
|
|
232
263
|
:'has_slack_webhook_url' => :'has_slack_webhook_url',
|
|
233
264
|
:'last_changed_by' => :'last_changed_by',
|
|
234
265
|
:'defaults' => :'defaults',
|
|
@@ -242,6 +273,7 @@ module DocSpring
|
|
|
242
273
|
:'footer_html' => :'footer_html',
|
|
243
274
|
:'html_engine_options' => :'html_engine_options',
|
|
244
275
|
:'html_escape_data' => :'html_escape_data',
|
|
276
|
+
:'layout' => :'layout',
|
|
245
277
|
:'embed_edit_token' => :'embed_edit_token',
|
|
246
278
|
:'versions' => :'versions'
|
|
247
279
|
}
|
|
@@ -296,6 +328,13 @@ module DocSpring
|
|
|
296
328
|
:'public_submissions' => :'Boolean',
|
|
297
329
|
:'public_web_form' => :'Boolean',
|
|
298
330
|
:'redirect_url' => :'String',
|
|
331
|
+
:'signature_request_email_attachments' => :'SignatureRequestEmailAttachments',
|
|
332
|
+
:'signature_request_from_address' => :'String',
|
|
333
|
+
:'signature_request_include_signing_token' => :'Boolean',
|
|
334
|
+
:'signature_request_from_name' => :'String',
|
|
335
|
+
:'signature_request_notification_emails' => :'Array<String>',
|
|
336
|
+
:'signature_request_reply_to' => :'String',
|
|
337
|
+
:'signature_request_signing_url' => :'String',
|
|
299
338
|
:'has_slack_webhook_url' => :'Boolean',
|
|
300
339
|
:'last_changed_by' => :'TemplateActor',
|
|
301
340
|
:'defaults' => :'TemplateDefaults',
|
|
@@ -309,6 +348,7 @@ module DocSpring
|
|
|
309
348
|
:'footer_html' => :'String',
|
|
310
349
|
:'html_engine_options' => :'HtmlEngineOptions',
|
|
311
350
|
:'html_escape_data' => :'Boolean',
|
|
351
|
+
:'layout' => :'Hash<String, Object>',
|
|
312
352
|
:'embed_edit_token' => :'String',
|
|
313
353
|
:'versions' => :'Array<TemplateVersion>'
|
|
314
354
|
}
|
|
@@ -327,6 +367,11 @@ module DocSpring
|
|
|
327
367
|
:'version',
|
|
328
368
|
:'ai_field_naming_language',
|
|
329
369
|
:'redirect_url',
|
|
370
|
+
:'signature_request_email_attachments',
|
|
371
|
+
:'signature_request_from_address',
|
|
372
|
+
:'signature_request_from_name',
|
|
373
|
+
:'signature_request_reply_to',
|
|
374
|
+
:'signature_request_signing_url',
|
|
330
375
|
:'last_changed_by',
|
|
331
376
|
:'predefined_fields_sample_data',
|
|
332
377
|
:'html',
|
|
@@ -335,6 +380,7 @@ module DocSpring
|
|
|
335
380
|
:'footer_html',
|
|
336
381
|
:'html_engine_options',
|
|
337
382
|
:'html_escape_data',
|
|
383
|
+
:'layout',
|
|
338
384
|
:'embed_edit_token',
|
|
339
385
|
])
|
|
340
386
|
end
|
|
@@ -583,6 +629,50 @@ module DocSpring
|
|
|
583
629
|
self.redirect_url = nil
|
|
584
630
|
end
|
|
585
631
|
|
|
632
|
+
if attributes.key?(:'signature_request_email_attachments')
|
|
633
|
+
self.signature_request_email_attachments = attributes[:'signature_request_email_attachments']
|
|
634
|
+
else
|
|
635
|
+
self.signature_request_email_attachments = nil
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
if attributes.key?(:'signature_request_from_address')
|
|
639
|
+
self.signature_request_from_address = attributes[:'signature_request_from_address']
|
|
640
|
+
else
|
|
641
|
+
self.signature_request_from_address = nil
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
if attributes.key?(:'signature_request_include_signing_token')
|
|
645
|
+
self.signature_request_include_signing_token = attributes[:'signature_request_include_signing_token']
|
|
646
|
+
else
|
|
647
|
+
self.signature_request_include_signing_token = nil
|
|
648
|
+
end
|
|
649
|
+
|
|
650
|
+
if attributes.key?(:'signature_request_from_name')
|
|
651
|
+
self.signature_request_from_name = attributes[:'signature_request_from_name']
|
|
652
|
+
else
|
|
653
|
+
self.signature_request_from_name = nil
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
if attributes.key?(:'signature_request_notification_emails')
|
|
657
|
+
if (value = attributes[:'signature_request_notification_emails']).is_a?(Array)
|
|
658
|
+
self.signature_request_notification_emails = value
|
|
659
|
+
end
|
|
660
|
+
else
|
|
661
|
+
self.signature_request_notification_emails = nil
|
|
662
|
+
end
|
|
663
|
+
|
|
664
|
+
if attributes.key?(:'signature_request_reply_to')
|
|
665
|
+
self.signature_request_reply_to = attributes[:'signature_request_reply_to']
|
|
666
|
+
else
|
|
667
|
+
self.signature_request_reply_to = nil
|
|
668
|
+
end
|
|
669
|
+
|
|
670
|
+
if attributes.key?(:'signature_request_signing_url')
|
|
671
|
+
self.signature_request_signing_url = attributes[:'signature_request_signing_url']
|
|
672
|
+
else
|
|
673
|
+
self.signature_request_signing_url = nil
|
|
674
|
+
end
|
|
675
|
+
|
|
586
676
|
if attributes.key?(:'has_slack_webhook_url')
|
|
587
677
|
self.has_slack_webhook_url = attributes[:'has_slack_webhook_url']
|
|
588
678
|
else
|
|
@@ -669,6 +759,14 @@ module DocSpring
|
|
|
669
759
|
self.html_escape_data = nil
|
|
670
760
|
end
|
|
671
761
|
|
|
762
|
+
if attributes.key?(:'layout')
|
|
763
|
+
if (value = attributes[:'layout']).is_a?(Hash) || value.nil?
|
|
764
|
+
self.layout = value
|
|
765
|
+
end
|
|
766
|
+
else
|
|
767
|
+
self.layout = nil
|
|
768
|
+
end
|
|
769
|
+
|
|
672
770
|
if attributes.key?(:'embed_edit_token')
|
|
673
771
|
self.embed_edit_token = attributes[:'embed_edit_token']
|
|
674
772
|
else
|
|
@@ -793,6 +891,14 @@ module DocSpring
|
|
|
793
891
|
invalid_properties.push('invalid value for "public_web_form", public_web_form cannot be nil.')
|
|
794
892
|
end
|
|
795
893
|
|
|
894
|
+
if @signature_request_include_signing_token.nil?
|
|
895
|
+
invalid_properties.push('invalid value for "signature_request_include_signing_token", signature_request_include_signing_token cannot be nil.')
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
if @signature_request_notification_emails.nil?
|
|
899
|
+
invalid_properties.push('invalid value for "signature_request_notification_emails", signature_request_notification_emails cannot be nil.')
|
|
900
|
+
end
|
|
901
|
+
|
|
796
902
|
if @has_slack_webhook_url.nil?
|
|
797
903
|
invalid_properties.push('invalid value for "has_slack_webhook_url", has_slack_webhook_url cannot be nil.')
|
|
798
904
|
end
|
|
@@ -850,6 +956,8 @@ module DocSpring
|
|
|
850
956
|
return false if @parse_dates_using_template_date_format.nil?
|
|
851
957
|
return false if @public_submissions.nil?
|
|
852
958
|
return false if @public_web_form.nil?
|
|
959
|
+
return false if @signature_request_include_signing_token.nil?
|
|
960
|
+
return false if @signature_request_notification_emails.nil?
|
|
853
961
|
return false if @has_slack_webhook_url.nil?
|
|
854
962
|
return false if @defaults.nil?
|
|
855
963
|
return false if @field_dependencies.nil?
|
|
@@ -1119,6 +1227,26 @@ module DocSpring
|
|
|
1119
1227
|
@public_web_form = public_web_form
|
|
1120
1228
|
end
|
|
1121
1229
|
|
|
1230
|
+
# Custom attribute writer method with validation
|
|
1231
|
+
# @param [Object] signature_request_include_signing_token Value to be assigned
|
|
1232
|
+
def signature_request_include_signing_token=(signature_request_include_signing_token)
|
|
1233
|
+
if signature_request_include_signing_token.nil?
|
|
1234
|
+
fail ArgumentError, 'signature_request_include_signing_token cannot be nil'
|
|
1235
|
+
end
|
|
1236
|
+
|
|
1237
|
+
@signature_request_include_signing_token = signature_request_include_signing_token
|
|
1238
|
+
end
|
|
1239
|
+
|
|
1240
|
+
# Custom attribute writer method with validation
|
|
1241
|
+
# @param [Object] signature_request_notification_emails Value to be assigned
|
|
1242
|
+
def signature_request_notification_emails=(signature_request_notification_emails)
|
|
1243
|
+
if signature_request_notification_emails.nil?
|
|
1244
|
+
fail ArgumentError, 'signature_request_notification_emails cannot be nil'
|
|
1245
|
+
end
|
|
1246
|
+
|
|
1247
|
+
@signature_request_notification_emails = signature_request_notification_emails
|
|
1248
|
+
end
|
|
1249
|
+
|
|
1122
1250
|
# Custom attribute writer method with validation
|
|
1123
1251
|
# @param [Object] has_slack_webhook_url Value to be assigned
|
|
1124
1252
|
def has_slack_webhook_url=(has_slack_webhook_url)
|
|
@@ -1220,6 +1348,13 @@ module DocSpring
|
|
|
1220
1348
|
public_submissions == o.public_submissions &&
|
|
1221
1349
|
public_web_form == o.public_web_form &&
|
|
1222
1350
|
redirect_url == o.redirect_url &&
|
|
1351
|
+
signature_request_email_attachments == o.signature_request_email_attachments &&
|
|
1352
|
+
signature_request_from_address == o.signature_request_from_address &&
|
|
1353
|
+
signature_request_include_signing_token == o.signature_request_include_signing_token &&
|
|
1354
|
+
signature_request_from_name == o.signature_request_from_name &&
|
|
1355
|
+
signature_request_notification_emails == o.signature_request_notification_emails &&
|
|
1356
|
+
signature_request_reply_to == o.signature_request_reply_to &&
|
|
1357
|
+
signature_request_signing_url == o.signature_request_signing_url &&
|
|
1223
1358
|
has_slack_webhook_url == o.has_slack_webhook_url &&
|
|
1224
1359
|
last_changed_by == o.last_changed_by &&
|
|
1225
1360
|
defaults == o.defaults &&
|
|
@@ -1233,6 +1368,7 @@ module DocSpring
|
|
|
1233
1368
|
footer_html == o.footer_html &&
|
|
1234
1369
|
html_engine_options == o.html_engine_options &&
|
|
1235
1370
|
html_escape_data == o.html_escape_data &&
|
|
1371
|
+
layout == o.layout &&
|
|
1236
1372
|
embed_edit_token == o.embed_edit_token &&
|
|
1237
1373
|
versions == o.versions
|
|
1238
1374
|
end
|
|
@@ -1246,7 +1382,7 @@ module DocSpring
|
|
|
1246
1382
|
# Calculates hash code according to all attributes.
|
|
1247
1383
|
# @return [Integer] Hash code
|
|
1248
1384
|
def hash
|
|
1249
|
-
[id, name, description, template_type, output_format, ready, document, parent_folder_id, path, latest_version, version_published_at, locked, last_changed_at, created_at, updated_at, version, add_signature_request_submission_id_footers, ai_field_naming_language, allow_additional_properties, allow_skipping_optional_fields, default_form_mode, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs, has_encrypt_pdfs_password, expire_submissions, expire_after, expiration_interval, merge_audit_trail_pdf, parse_dates_using_template_date_format, public_submissions, public_web_form, redirect_url, has_slack_webhook_url, last_changed_by, defaults, field_dependencies, field_groups, predefined_fields, predefined_fields_sample_data, html, scss, header_html, footer_html, html_engine_options, html_escape_data, embed_edit_token, versions].hash
|
|
1385
|
+
[id, name, description, template_type, output_format, ready, document, parent_folder_id, path, latest_version, version_published_at, locked, last_changed_at, created_at, updated_at, version, add_signature_request_submission_id_footers, ai_field_naming_language, allow_additional_properties, allow_skipping_optional_fields, default_form_mode, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs, has_encrypt_pdfs_password, expire_submissions, expire_after, expiration_interval, merge_audit_trail_pdf, parse_dates_using_template_date_format, public_submissions, public_web_form, redirect_url, signature_request_email_attachments, signature_request_from_address, signature_request_include_signing_token, signature_request_from_name, signature_request_notification_emails, signature_request_reply_to, signature_request_signing_url, has_slack_webhook_url, last_changed_by, defaults, field_dependencies, field_groups, predefined_fields, predefined_fields_sample_data, html, scss, header_html, footer_html, html_engine_options, html_escape_data, layout, embed_edit_token, versions].hash
|
|
1250
1386
|
end
|
|
1251
1387
|
|
|
1252
1388
|
# Builds the object from hash
|
|
@@ -22,7 +22,7 @@ module DocSpring
|
|
|
22
22
|
# The ID of the submission, combined PDF, template or custom file.
|
|
23
23
|
attr_accessor :id
|
|
24
24
|
|
|
25
|
-
# For a `template` source, the version to use: a published version (`1.2.0`, or `1` for the latest 1.x.x), `latest`
|
|
25
|
+
# For a `template` source, the version to use: a published version (`1.2.0`, or `1` for the latest 1.x.x), `latest` (the newest published version, or the draft when none has been published) or `draft`. Default `latest`.
|
|
26
26
|
attr_accessor :template_version
|
|
27
27
|
|
|
28
28
|
# For a `template` source: true (the default) merges the template's processed PDF, which is the PDF submissions are filled in on (decrypted, with its form fields removed). false merges the PDF as it was uploaded.
|
|
@@ -25,16 +25,16 @@ module DocSpring
|
|
|
25
25
|
# Shown under the template's name at the top of its hosted forms, and used as their meta description. Not shown on embedded forms or signature requests.
|
|
26
26
|
attr_accessor :description
|
|
27
27
|
|
|
28
|
-
# `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. `docx`: a Word document with tags where the data goes, which makes Word documents or PDFs. It can't be changed after the template is created.
|
|
28
|
+
# `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. `docx`: a Word document with tags where the data goes, which makes Word documents or PDFs. `page_designer`: a page design, a PDF laid out in the Page Designer from its `layout`. It can't be changed after the template is created.
|
|
29
29
|
attr_accessor :template_type
|
|
30
30
|
|
|
31
|
-
# What each submission makes unless its request sets `output_formats`: `docx` (a Word document), `odt` (an OpenDocument file, converted from the Word document) or `pdf`. A Word template's is chosen when it's created;
|
|
31
|
+
# What each submission makes unless its request sets `output_formats`: `docx` (a Word document), `odt` (an OpenDocument file, converted from the Word document) or `pdf`. A Word template's is chosen when it's created; other templates always make PDFs. A Word template that encrypts its PDFs makes PDFs, because Word documents and OpenDocument files can't be password-protected.
|
|
32
32
|
attr_accessor :output_format
|
|
33
33
|
|
|
34
|
-
# Whether the template can make documents. HTML templates are always ready. A PDF template is ready once DocSpring has stored its PDF, made an image of each page and finished looking for fields on each page, which can be after `document.state` becomes `processed`. A PDF template with no PDF (`document` is null) isn't ready. A Word template is ready once it has a Word document (a `document_url`'s has been downloaded).
|
|
34
|
+
# Whether the template can make documents. HTML templates and page designs are always ready. A PDF template is ready once DocSpring has stored its PDF, made an image of each page and finished looking for fields on each page, which can be after `document.state` becomes `processed`. A PDF template with no PDF (`document` is null) isn't ready. A Word template is ready once it has a Word document (a `document_url`'s has been downloaded).
|
|
35
35
|
attr_accessor :ready
|
|
36
36
|
|
|
37
|
-
# The PDF of a PDF template, or the Word document of a Word template: its file name, page count and processing state. Null for HTML templates, and for a PDF template that has no PDF yet. A template created from a `document_url`, or a Word template created from an OpenDocument file (.odt), has one, with no file, while it's downloaded or converted.
|
|
37
|
+
# The PDF of a PDF template, or the Word document of a Word template: its file name, page count and processing state. Null for HTML templates and page designs, and for a PDF template that has no PDF yet. A template created from a `document_url`, or a Word template created from an OpenDocument file (.odt), has one, with no file, while it's downloaded or converted.
|
|
38
38
|
attr_accessor :document
|
|
39
39
|
|
|
40
40
|
# The ID of the folder the template is in. Null for a template at the root. Setting it moves the template and all of its published versions.
|
|
@@ -18,9 +18,10 @@ module DocSpring
|
|
|
18
18
|
PDF = "pdf".freeze
|
|
19
19
|
HTML = "html".freeze
|
|
20
20
|
DOCX = "docx".freeze
|
|
21
|
+
PAGE_DESIGNER = "page_designer".freeze
|
|
21
22
|
|
|
22
23
|
def self.all_vars
|
|
23
|
-
@all_vars ||= [PDF, HTML, DOCX].freeze
|
|
24
|
+
@all_vars ||= [PDF, HTML, DOCX, PAGE_DESIGNER].freeze
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
# Builds the enum from string
|