docspring 4.1.0 → 4.2.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/.openapi-generator/FILES +15 -0
- data/.travis.yml +1 -1
- data/AGENTS.md +3 -2
- data/CHANGELOG.md +40 -0
- data/Gemfile.lock +9 -9
- data/README.md +5 -1
- data/docs/Client.md +176 -10
- data/docs/CombinedPdf.md +1 -1
- data/docs/CreateCombinedPdfRequest.md +1 -1
- data/docs/CreateSubmissionRequest.md +2 -2
- data/docs/CreateTemplatePreviewRequest.md +18 -0
- data/docs/CreateTemplateRequest.md +3 -1
- data/docs/ErrorDetail.md +1 -1
- data/docs/ErrorInfo.md +4 -4
- data/docs/Submission.md +15 -15
- data/docs/SubmissionInput.md +2 -2
- data/docs/SubmissionList.md +1 -1
- data/docs/SubmissionSummary.md +54 -0
- data/docs/Template.md +12 -10
- data/docs/TemplateActor.md +1 -1
- data/docs/TemplateDocument.md +5 -5
- data/docs/TemplateDocumentSummary.md +24 -0
- data/docs/TemplatePreview.md +32 -0
- data/docs/TemplatePreviewState.md +15 -0
- data/docs/TemplateSummary.md +2 -48
- data/docs/UpdateTemplateRequest.md +4 -2
- data/docs/ValidateSubmissionRequest.md +2 -2
- data/lib/docspring/api/client.rb +178 -8
- data/lib/docspring/api_client.rb +4 -2
- data/lib/docspring/date_time_values.rb +33 -0
- data/lib/docspring/models/combined_pdf.rb +1 -1
- data/lib/docspring/models/create_combined_pdf_request.rb +1 -1
- data/lib/docspring/models/create_submission_request.rb +2 -2
- data/lib/docspring/models/create_template_preview_request.rb +187 -0
- data/lib/docspring/models/create_template_request.rb +12 -2
- data/lib/docspring/models/error_code.rb +3 -1
- data/lib/docspring/models/error_detail.rb +1 -1
- data/lib/docspring/models/error_info.rb +4 -4
- data/lib/docspring/models/submission.rb +140 -140
- data/lib/docspring/models/submission_input.rb +2 -2
- data/lib/docspring/models/submission_list.rb +1 -1
- data/lib/docspring/models/submission_summary.rb +601 -0
- data/lib/docspring/models/template.rb +96 -83
- data/lib/docspring/models/template_actor.rb +1 -1
- data/lib/docspring/models/template_document.rb +42 -42
- data/lib/docspring/models/template_document_summary.rb +260 -0
- data/lib/docspring/models/template_preview.rb +356 -0
- data/lib/docspring/models/template_preview_state.rb +42 -0
- data/lib/docspring/models/template_summary.rb +5 -572
- data/lib/docspring/models/update_template_request.rb +16 -6
- data/lib/docspring/models/validate_submission_request.rb +2 -2
- data/lib/docspring/request_schemas.json +105 -8
- data/lib/docspring/version.rb +1 -1
- data/lib/docspring/webhook_signature.rb +45 -0
- data/lib/docspring.rb +6 -0
- data/spec/api/client_spec.rb +39 -4
- data/spec/models/create_template_preview_request_spec.rb +36 -0
- data/spec/models/create_template_request_spec.rb +6 -0
- data/spec/models/submission_spec.rb +12 -12
- data/spec/models/submission_summary_spec.rb +144 -0
- data/spec/models/template_document_spec.rb +5 -5
- data/spec/models/template_document_summary_spec.rb +54 -0
- data/spec/models/template_preview_spec.rb +78 -0
- data/spec/models/template_preview_state_spec.rb +30 -0
- data/spec/models/template_spec.rb +28 -22
- data/spec/models/template_summary_spec.rb +0 -138
- data/spec/models/update_template_request_spec.rb +6 -0
- metadata +23 -1
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DocSpring
|
|
17
|
-
# A template in a list. Get a template by its ID for its HTML, defaults, field dependency rules and published versions.
|
|
17
|
+
# A template in a list: its name, type, folder, latest published version and whether it's ready. Get a template by its ID for its settings, its PDF in full, its HTML, defaults, field dependency rules and published versions.
|
|
18
18
|
class TemplateSummary < ApiModelBase
|
|
19
19
|
# The template's ID.
|
|
20
20
|
attr_accessor :id
|
|
@@ -28,10 +28,10 @@ module DocSpring
|
|
|
28
28
|
# `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. It can't be changed after the template is created.
|
|
29
29
|
attr_accessor :template_type
|
|
30
30
|
|
|
31
|
-
# Whether the template can generate PDFs. HTML templates are always ready. A PDF template is ready once its
|
|
31
|
+
# Whether the template can generate PDFs. 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.
|
|
32
32
|
attr_accessor :ready
|
|
33
33
|
|
|
34
|
-
# The PDF of a PDF template. Null for HTML templates, and for a PDF template that has no PDF yet.
|
|
34
|
+
# The PDF of a PDF template: its file name, page count and processing state. Null for HTML templates, and for a PDF template that has no PDF yet.
|
|
35
35
|
attr_accessor :document
|
|
36
36
|
|
|
37
37
|
# 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.
|
|
@@ -40,9 +40,6 @@ module DocSpring
|
|
|
40
40
|
# The path of the folder the template is in, such as `/Contracts`. `/` for a template at the root.
|
|
41
41
|
attr_accessor :path
|
|
42
42
|
|
|
43
|
-
# The published version this is, such as `1.2.0`. Null for the draft.
|
|
44
|
-
attr_accessor :version
|
|
45
|
-
|
|
46
43
|
# The template's latest published version. Null if no version has been published.
|
|
47
44
|
attr_accessor :latest_version
|
|
48
45
|
|
|
@@ -52,75 +49,9 @@ module DocSpring
|
|
|
52
49
|
# A locked template can't be changed or deleted until it's unlocked (`locked` can always be changed).
|
|
53
50
|
attr_accessor :locked
|
|
54
51
|
|
|
55
|
-
# Print the submission ID in the footer of each page of PDFs signed through signature requests.
|
|
56
|
-
attr_accessor :add_signature_request_submission_id_footers
|
|
57
|
-
|
|
58
|
-
# The language AI field setup names fields in: `auto` uses the form's language when it's written in the Latin alphabet without accents, and English otherwise; `english` always uses English; `form_language` uses the form's language and script. New templates take it from your account's template settings. Null for HTML templates.
|
|
59
|
-
attr_accessor :ai_field_naming_language
|
|
60
|
-
|
|
61
|
-
# Accept submission data with properties that aren't fields of the template.
|
|
62
|
-
attr_accessor :allow_additional_properties
|
|
63
|
-
|
|
64
|
-
# Visual forms and signature request forms show the Continue button as soon as the required fields are filled in, without visiting each optional field. The `allowSkippingOptionalFields` embed option overrides it.
|
|
65
|
-
attr_accessor :allow_skipping_optional_fields
|
|
66
|
-
|
|
67
|
-
# The hosted form that /templates/{template_id}/form shows when its URL has no `mode` parameter: `web` (the web form), `visual` (the visual form, where fields are filled in on the PDF) or `dual` (both, in tabs). HTML templates have no visual form, so `web` is the only value they accept.
|
|
68
|
-
attr_accessor :default_form_mode
|
|
69
|
-
|
|
70
|
-
# Generate PDFs whose text and check fields stay fillable ("Generate Editable PDFs"). A submission's `editable` overrides it.
|
|
71
|
-
attr_accessor :editable_submissions
|
|
72
|
-
|
|
73
|
-
# The sites where the template's signature requests, forms and embedded template editor can be loaded: 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). When it's empty, live signature requests don't load on any site, and the embedded template editor loads on every site.
|
|
74
|
-
attr_accessor :embed_domains
|
|
75
|
-
|
|
76
|
-
# Allow the embedded template editor to change sensitive template settings (webhooks, redirect URL, encryption, public access, expiration and so on).
|
|
77
|
-
attr_accessor :embed_edit_allow_settings
|
|
78
|
-
|
|
79
|
-
# Allow the embedded template editor to publish, restore, compare and delete published versions.
|
|
80
|
-
attr_accessor :embed_edit_allow_versioning
|
|
81
|
-
|
|
82
|
-
# Allow the embedded template editor to replace the template's PDF.
|
|
83
|
-
attr_accessor :embed_edit_allow_document_replacement
|
|
84
|
-
|
|
85
|
-
# Encrypt generated PDFs with `encrypt_pdfs_password`.
|
|
86
|
-
attr_accessor :encrypt_pdfs
|
|
87
|
-
|
|
88
|
-
# Whether `encrypt_pdfs_password` is set.
|
|
89
|
-
attr_accessor :has_encrypt_pdfs_password
|
|
90
|
-
|
|
91
|
-
# Delete each submission's data and PDF after `expire_after` `expiration_interval`.
|
|
92
|
-
attr_accessor :expire_submissions
|
|
93
|
-
|
|
94
|
-
# How many `expiration_interval`s a submission's data and PDF are kept for, when `expire_submissions` is on. At most 5256000 (10 years in minutes).
|
|
95
|
-
attr_accessor :expire_after
|
|
96
|
-
|
|
97
|
-
# The unit of `expire_after`.
|
|
98
|
-
attr_accessor :expiration_interval
|
|
99
|
-
|
|
100
|
-
# Add the audit trail to the end of PDFs signed through signature requests.
|
|
101
|
-
attr_accessor :merge_audit_trail_pdf
|
|
102
|
-
|
|
103
|
-
# Date fields also accept NN/NN/YYYY dates (with slashes, dashes or dots), read in the order of the template's default date format: month first for %m/%d/%Y, day first for %d/%m/%Y. When false, date fields only accept YYYY-MM-DD. Applies to PDF templates: an HTML template's date fields only accept YYYY-MM-DD. Date fields that include a time take RFC 3339 date-times either way.
|
|
104
|
-
attr_accessor :parse_dates_using_template_date_format
|
|
105
|
-
|
|
106
|
-
# Allow anyone with a submission's ID to download its PDF.
|
|
107
|
-
attr_accessor :public_submissions
|
|
108
|
-
|
|
109
|
-
# Allow anyone to fill in the template's web form.
|
|
110
|
-
attr_accessor :public_web_form
|
|
111
|
-
|
|
112
|
-
# Where the web form sends people after they submit it.
|
|
113
|
-
attr_accessor :redirect_url
|
|
114
|
-
|
|
115
|
-
# Whether `slack_webhook_url` is set.
|
|
116
|
-
attr_accessor :has_slack_webhook_url
|
|
117
|
-
|
|
118
52
|
# When the draft was last changed.
|
|
119
53
|
attr_accessor :last_changed_at
|
|
120
54
|
|
|
121
|
-
# Who last changed the draft: a user in your account, an API token, or someone using the embedded template editor. Null if no change has been recorded.
|
|
122
|
-
attr_accessor :last_changed_by
|
|
123
|
-
|
|
124
55
|
# When the template was created.
|
|
125
56
|
attr_accessor :created_at
|
|
126
57
|
|
|
@@ -160,33 +91,10 @@ module DocSpring
|
|
|
160
91
|
:'document' => :'document',
|
|
161
92
|
:'parent_folder_id' => :'parent_folder_id',
|
|
162
93
|
:'path' => :'path',
|
|
163
|
-
:'version' => :'version',
|
|
164
94
|
:'latest_version' => :'latest_version',
|
|
165
95
|
:'version_published_at' => :'version_published_at',
|
|
166
96
|
:'locked' => :'locked',
|
|
167
|
-
:'add_signature_request_submission_id_footers' => :'add_signature_request_submission_id_footers',
|
|
168
|
-
:'ai_field_naming_language' => :'ai_field_naming_language',
|
|
169
|
-
:'allow_additional_properties' => :'allow_additional_properties',
|
|
170
|
-
:'allow_skipping_optional_fields' => :'allow_skipping_optional_fields',
|
|
171
|
-
:'default_form_mode' => :'default_form_mode',
|
|
172
|
-
:'editable_submissions' => :'editable_submissions',
|
|
173
|
-
:'embed_domains' => :'embed_domains',
|
|
174
|
-
:'embed_edit_allow_settings' => :'embed_edit_allow_settings',
|
|
175
|
-
:'embed_edit_allow_versioning' => :'embed_edit_allow_versioning',
|
|
176
|
-
:'embed_edit_allow_document_replacement' => :'embed_edit_allow_document_replacement',
|
|
177
|
-
:'encrypt_pdfs' => :'encrypt_pdfs',
|
|
178
|
-
:'has_encrypt_pdfs_password' => :'has_encrypt_pdfs_password',
|
|
179
|
-
:'expire_submissions' => :'expire_submissions',
|
|
180
|
-
:'expire_after' => :'expire_after',
|
|
181
|
-
:'expiration_interval' => :'expiration_interval',
|
|
182
|
-
:'merge_audit_trail_pdf' => :'merge_audit_trail_pdf',
|
|
183
|
-
:'parse_dates_using_template_date_format' => :'parse_dates_using_template_date_format',
|
|
184
|
-
:'public_submissions' => :'public_submissions',
|
|
185
|
-
:'public_web_form' => :'public_web_form',
|
|
186
|
-
:'redirect_url' => :'redirect_url',
|
|
187
|
-
:'has_slack_webhook_url' => :'has_slack_webhook_url',
|
|
188
97
|
:'last_changed_at' => :'last_changed_at',
|
|
189
|
-
:'last_changed_by' => :'last_changed_by',
|
|
190
98
|
:'created_at' => :'created_at',
|
|
191
99
|
:'updated_at' => :'updated_at'
|
|
192
100
|
}
|
|
@@ -210,36 +118,13 @@ module DocSpring
|
|
|
210
118
|
:'description' => :'String',
|
|
211
119
|
:'template_type' => :'TemplateType',
|
|
212
120
|
:'ready' => :'Boolean',
|
|
213
|
-
:'document' => :'
|
|
121
|
+
:'document' => :'TemplateDocumentSummary',
|
|
214
122
|
:'parent_folder_id' => :'String',
|
|
215
123
|
:'path' => :'String',
|
|
216
|
-
:'version' => :'String',
|
|
217
124
|
:'latest_version' => :'String',
|
|
218
125
|
:'version_published_at' => :'Time',
|
|
219
126
|
:'locked' => :'Boolean',
|
|
220
|
-
:'add_signature_request_submission_id_footers' => :'Boolean',
|
|
221
|
-
:'ai_field_naming_language' => :'AiFieldNamingLanguage',
|
|
222
|
-
:'allow_additional_properties' => :'Boolean',
|
|
223
|
-
:'allow_skipping_optional_fields' => :'Boolean',
|
|
224
|
-
:'default_form_mode' => :'TemplateFormMode',
|
|
225
|
-
:'editable_submissions' => :'Boolean',
|
|
226
|
-
:'embed_domains' => :'Array<String>',
|
|
227
|
-
:'embed_edit_allow_settings' => :'Boolean',
|
|
228
|
-
:'embed_edit_allow_versioning' => :'Boolean',
|
|
229
|
-
:'embed_edit_allow_document_replacement' => :'Boolean',
|
|
230
|
-
:'encrypt_pdfs' => :'Boolean',
|
|
231
|
-
:'has_encrypt_pdfs_password' => :'Boolean',
|
|
232
|
-
:'expire_submissions' => :'Boolean',
|
|
233
|
-
:'expire_after' => :'Integer',
|
|
234
|
-
:'expiration_interval' => :'ExpirationInterval',
|
|
235
|
-
:'merge_audit_trail_pdf' => :'Boolean',
|
|
236
|
-
:'parse_dates_using_template_date_format' => :'Boolean',
|
|
237
|
-
:'public_submissions' => :'Boolean',
|
|
238
|
-
:'public_web_form' => :'Boolean',
|
|
239
|
-
:'redirect_url' => :'String',
|
|
240
|
-
:'has_slack_webhook_url' => :'Boolean',
|
|
241
127
|
:'last_changed_at' => :'Time',
|
|
242
|
-
:'last_changed_by' => :'TemplateActor',
|
|
243
128
|
:'created_at' => :'Time',
|
|
244
129
|
:'updated_at' => :'Time'
|
|
245
130
|
}
|
|
@@ -252,13 +137,9 @@ module DocSpring
|
|
|
252
137
|
:'description',
|
|
253
138
|
:'document',
|
|
254
139
|
:'parent_folder_id',
|
|
255
|
-
:'version',
|
|
256
140
|
:'latest_version',
|
|
257
141
|
:'version_published_at',
|
|
258
|
-
:'ai_field_naming_language',
|
|
259
|
-
:'redirect_url',
|
|
260
142
|
:'last_changed_at',
|
|
261
|
-
:'last_changed_by',
|
|
262
143
|
])
|
|
263
144
|
end
|
|
264
145
|
|
|
@@ -336,12 +217,6 @@ module DocSpring
|
|
|
336
217
|
self.path = nil
|
|
337
218
|
end
|
|
338
219
|
|
|
339
|
-
if attributes.key?(:'version')
|
|
340
|
-
self.version = attributes[:'version']
|
|
341
|
-
else
|
|
342
|
-
self.version = nil
|
|
343
|
-
end
|
|
344
|
-
|
|
345
220
|
if attributes.key?(:'latest_version')
|
|
346
221
|
self.latest_version = attributes[:'latest_version']
|
|
347
222
|
else
|
|
@@ -360,146 +235,12 @@ module DocSpring
|
|
|
360
235
|
self.locked = nil
|
|
361
236
|
end
|
|
362
237
|
|
|
363
|
-
if attributes.key?(:'add_signature_request_submission_id_footers')
|
|
364
|
-
self.add_signature_request_submission_id_footers = attributes[:'add_signature_request_submission_id_footers']
|
|
365
|
-
else
|
|
366
|
-
self.add_signature_request_submission_id_footers = nil
|
|
367
|
-
end
|
|
368
|
-
|
|
369
|
-
if attributes.key?(:'ai_field_naming_language')
|
|
370
|
-
self.ai_field_naming_language = attributes[:'ai_field_naming_language']
|
|
371
|
-
else
|
|
372
|
-
self.ai_field_naming_language = nil
|
|
373
|
-
end
|
|
374
|
-
|
|
375
|
-
if attributes.key?(:'allow_additional_properties')
|
|
376
|
-
self.allow_additional_properties = attributes[:'allow_additional_properties']
|
|
377
|
-
else
|
|
378
|
-
self.allow_additional_properties = nil
|
|
379
|
-
end
|
|
380
|
-
|
|
381
|
-
if attributes.key?(:'allow_skipping_optional_fields')
|
|
382
|
-
self.allow_skipping_optional_fields = attributes[:'allow_skipping_optional_fields']
|
|
383
|
-
else
|
|
384
|
-
self.allow_skipping_optional_fields = nil
|
|
385
|
-
end
|
|
386
|
-
|
|
387
|
-
if attributes.key?(:'default_form_mode')
|
|
388
|
-
self.default_form_mode = attributes[:'default_form_mode']
|
|
389
|
-
else
|
|
390
|
-
self.default_form_mode = nil
|
|
391
|
-
end
|
|
392
|
-
|
|
393
|
-
if attributes.key?(:'editable_submissions')
|
|
394
|
-
self.editable_submissions = attributes[:'editable_submissions']
|
|
395
|
-
else
|
|
396
|
-
self.editable_submissions = nil
|
|
397
|
-
end
|
|
398
|
-
|
|
399
|
-
if attributes.key?(:'embed_domains')
|
|
400
|
-
if (value = attributes[:'embed_domains']).is_a?(Array)
|
|
401
|
-
self.embed_domains = value
|
|
402
|
-
end
|
|
403
|
-
else
|
|
404
|
-
self.embed_domains = nil
|
|
405
|
-
end
|
|
406
|
-
|
|
407
|
-
if attributes.key?(:'embed_edit_allow_settings')
|
|
408
|
-
self.embed_edit_allow_settings = attributes[:'embed_edit_allow_settings']
|
|
409
|
-
else
|
|
410
|
-
self.embed_edit_allow_settings = nil
|
|
411
|
-
end
|
|
412
|
-
|
|
413
|
-
if attributes.key?(:'embed_edit_allow_versioning')
|
|
414
|
-
self.embed_edit_allow_versioning = attributes[:'embed_edit_allow_versioning']
|
|
415
|
-
else
|
|
416
|
-
self.embed_edit_allow_versioning = nil
|
|
417
|
-
end
|
|
418
|
-
|
|
419
|
-
if attributes.key?(:'embed_edit_allow_document_replacement')
|
|
420
|
-
self.embed_edit_allow_document_replacement = attributes[:'embed_edit_allow_document_replacement']
|
|
421
|
-
else
|
|
422
|
-
self.embed_edit_allow_document_replacement = nil
|
|
423
|
-
end
|
|
424
|
-
|
|
425
|
-
if attributes.key?(:'encrypt_pdfs')
|
|
426
|
-
self.encrypt_pdfs = attributes[:'encrypt_pdfs']
|
|
427
|
-
else
|
|
428
|
-
self.encrypt_pdfs = nil
|
|
429
|
-
end
|
|
430
|
-
|
|
431
|
-
if attributes.key?(:'has_encrypt_pdfs_password')
|
|
432
|
-
self.has_encrypt_pdfs_password = attributes[:'has_encrypt_pdfs_password']
|
|
433
|
-
else
|
|
434
|
-
self.has_encrypt_pdfs_password = nil
|
|
435
|
-
end
|
|
436
|
-
|
|
437
|
-
if attributes.key?(:'expire_submissions')
|
|
438
|
-
self.expire_submissions = attributes[:'expire_submissions']
|
|
439
|
-
else
|
|
440
|
-
self.expire_submissions = nil
|
|
441
|
-
end
|
|
442
|
-
|
|
443
|
-
if attributes.key?(:'expire_after')
|
|
444
|
-
self.expire_after = attributes[:'expire_after']
|
|
445
|
-
else
|
|
446
|
-
self.expire_after = nil
|
|
447
|
-
end
|
|
448
|
-
|
|
449
|
-
if attributes.key?(:'expiration_interval')
|
|
450
|
-
self.expiration_interval = attributes[:'expiration_interval']
|
|
451
|
-
else
|
|
452
|
-
self.expiration_interval = nil
|
|
453
|
-
end
|
|
454
|
-
|
|
455
|
-
if attributes.key?(:'merge_audit_trail_pdf')
|
|
456
|
-
self.merge_audit_trail_pdf = attributes[:'merge_audit_trail_pdf']
|
|
457
|
-
else
|
|
458
|
-
self.merge_audit_trail_pdf = nil
|
|
459
|
-
end
|
|
460
|
-
|
|
461
|
-
if attributes.key?(:'parse_dates_using_template_date_format')
|
|
462
|
-
self.parse_dates_using_template_date_format = attributes[:'parse_dates_using_template_date_format']
|
|
463
|
-
else
|
|
464
|
-
self.parse_dates_using_template_date_format = nil
|
|
465
|
-
end
|
|
466
|
-
|
|
467
|
-
if attributes.key?(:'public_submissions')
|
|
468
|
-
self.public_submissions = attributes[:'public_submissions']
|
|
469
|
-
else
|
|
470
|
-
self.public_submissions = nil
|
|
471
|
-
end
|
|
472
|
-
|
|
473
|
-
if attributes.key?(:'public_web_form')
|
|
474
|
-
self.public_web_form = attributes[:'public_web_form']
|
|
475
|
-
else
|
|
476
|
-
self.public_web_form = nil
|
|
477
|
-
end
|
|
478
|
-
|
|
479
|
-
if attributes.key?(:'redirect_url')
|
|
480
|
-
self.redirect_url = attributes[:'redirect_url']
|
|
481
|
-
else
|
|
482
|
-
self.redirect_url = nil
|
|
483
|
-
end
|
|
484
|
-
|
|
485
|
-
if attributes.key?(:'has_slack_webhook_url')
|
|
486
|
-
self.has_slack_webhook_url = attributes[:'has_slack_webhook_url']
|
|
487
|
-
else
|
|
488
|
-
self.has_slack_webhook_url = nil
|
|
489
|
-
end
|
|
490
|
-
|
|
491
238
|
if attributes.key?(:'last_changed_at')
|
|
492
239
|
self.last_changed_at = attributes[:'last_changed_at']
|
|
493
240
|
else
|
|
494
241
|
self.last_changed_at = nil
|
|
495
242
|
end
|
|
496
243
|
|
|
497
|
-
if attributes.key?(:'last_changed_by')
|
|
498
|
-
self.last_changed_by = attributes[:'last_changed_by']
|
|
499
|
-
else
|
|
500
|
-
self.last_changed_by = nil
|
|
501
|
-
end
|
|
502
|
-
|
|
503
244
|
if attributes.key?(:'created_at')
|
|
504
245
|
self.created_at = attributes[:'created_at']
|
|
505
246
|
else
|
|
@@ -538,82 +279,6 @@ module DocSpring
|
|
|
538
279
|
invalid_properties.push('invalid value for "locked", locked cannot be nil.')
|
|
539
280
|
end
|
|
540
281
|
|
|
541
|
-
if @add_signature_request_submission_id_footers.nil?
|
|
542
|
-
invalid_properties.push('invalid value for "add_signature_request_submission_id_footers", add_signature_request_submission_id_footers cannot be nil.')
|
|
543
|
-
end
|
|
544
|
-
|
|
545
|
-
if @allow_additional_properties.nil?
|
|
546
|
-
invalid_properties.push('invalid value for "allow_additional_properties", allow_additional_properties cannot be nil.')
|
|
547
|
-
end
|
|
548
|
-
|
|
549
|
-
if @allow_skipping_optional_fields.nil?
|
|
550
|
-
invalid_properties.push('invalid value for "allow_skipping_optional_fields", allow_skipping_optional_fields cannot be nil.')
|
|
551
|
-
end
|
|
552
|
-
|
|
553
|
-
if @default_form_mode.nil?
|
|
554
|
-
invalid_properties.push('invalid value for "default_form_mode", default_form_mode cannot be nil.')
|
|
555
|
-
end
|
|
556
|
-
|
|
557
|
-
if @editable_submissions.nil?
|
|
558
|
-
invalid_properties.push('invalid value for "editable_submissions", editable_submissions cannot be nil.')
|
|
559
|
-
end
|
|
560
|
-
|
|
561
|
-
if @embed_domains.nil?
|
|
562
|
-
invalid_properties.push('invalid value for "embed_domains", embed_domains cannot be nil.')
|
|
563
|
-
end
|
|
564
|
-
|
|
565
|
-
if @embed_edit_allow_settings.nil?
|
|
566
|
-
invalid_properties.push('invalid value for "embed_edit_allow_settings", embed_edit_allow_settings cannot be nil.')
|
|
567
|
-
end
|
|
568
|
-
|
|
569
|
-
if @embed_edit_allow_versioning.nil?
|
|
570
|
-
invalid_properties.push('invalid value for "embed_edit_allow_versioning", embed_edit_allow_versioning cannot be nil.')
|
|
571
|
-
end
|
|
572
|
-
|
|
573
|
-
if @embed_edit_allow_document_replacement.nil?
|
|
574
|
-
invalid_properties.push('invalid value for "embed_edit_allow_document_replacement", embed_edit_allow_document_replacement cannot be nil.')
|
|
575
|
-
end
|
|
576
|
-
|
|
577
|
-
if @encrypt_pdfs.nil?
|
|
578
|
-
invalid_properties.push('invalid value for "encrypt_pdfs", encrypt_pdfs cannot be nil.')
|
|
579
|
-
end
|
|
580
|
-
|
|
581
|
-
if @has_encrypt_pdfs_password.nil?
|
|
582
|
-
invalid_properties.push('invalid value for "has_encrypt_pdfs_password", has_encrypt_pdfs_password cannot be nil.')
|
|
583
|
-
end
|
|
584
|
-
|
|
585
|
-
if @expire_submissions.nil?
|
|
586
|
-
invalid_properties.push('invalid value for "expire_submissions", expire_submissions cannot be nil.')
|
|
587
|
-
end
|
|
588
|
-
|
|
589
|
-
if @expire_after.nil?
|
|
590
|
-
invalid_properties.push('invalid value for "expire_after", expire_after cannot be nil.')
|
|
591
|
-
end
|
|
592
|
-
|
|
593
|
-
if @expiration_interval.nil?
|
|
594
|
-
invalid_properties.push('invalid value for "expiration_interval", expiration_interval cannot be nil.')
|
|
595
|
-
end
|
|
596
|
-
|
|
597
|
-
if @merge_audit_trail_pdf.nil?
|
|
598
|
-
invalid_properties.push('invalid value for "merge_audit_trail_pdf", merge_audit_trail_pdf cannot be nil.')
|
|
599
|
-
end
|
|
600
|
-
|
|
601
|
-
if @parse_dates_using_template_date_format.nil?
|
|
602
|
-
invalid_properties.push('invalid value for "parse_dates_using_template_date_format", parse_dates_using_template_date_format cannot be nil.')
|
|
603
|
-
end
|
|
604
|
-
|
|
605
|
-
if @public_submissions.nil?
|
|
606
|
-
invalid_properties.push('invalid value for "public_submissions", public_submissions cannot be nil.')
|
|
607
|
-
end
|
|
608
|
-
|
|
609
|
-
if @public_web_form.nil?
|
|
610
|
-
invalid_properties.push('invalid value for "public_web_form", public_web_form cannot be nil.')
|
|
611
|
-
end
|
|
612
|
-
|
|
613
|
-
if @has_slack_webhook_url.nil?
|
|
614
|
-
invalid_properties.push('invalid value for "has_slack_webhook_url", has_slack_webhook_url cannot be nil.')
|
|
615
|
-
end
|
|
616
|
-
|
|
617
282
|
if @created_at.nil?
|
|
618
283
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
619
284
|
end
|
|
@@ -634,25 +299,6 @@ module DocSpring
|
|
|
634
299
|
return false if @ready.nil?
|
|
635
300
|
return false if @path.nil?
|
|
636
301
|
return false if @locked.nil?
|
|
637
|
-
return false if @add_signature_request_submission_id_footers.nil?
|
|
638
|
-
return false if @allow_additional_properties.nil?
|
|
639
|
-
return false if @allow_skipping_optional_fields.nil?
|
|
640
|
-
return false if @default_form_mode.nil?
|
|
641
|
-
return false if @editable_submissions.nil?
|
|
642
|
-
return false if @embed_domains.nil?
|
|
643
|
-
return false if @embed_edit_allow_settings.nil?
|
|
644
|
-
return false if @embed_edit_allow_versioning.nil?
|
|
645
|
-
return false if @embed_edit_allow_document_replacement.nil?
|
|
646
|
-
return false if @encrypt_pdfs.nil?
|
|
647
|
-
return false if @has_encrypt_pdfs_password.nil?
|
|
648
|
-
return false if @expire_submissions.nil?
|
|
649
|
-
return false if @expire_after.nil?
|
|
650
|
-
return false if @expiration_interval.nil?
|
|
651
|
-
return false if @merge_audit_trail_pdf.nil?
|
|
652
|
-
return false if @parse_dates_using_template_date_format.nil?
|
|
653
|
-
return false if @public_submissions.nil?
|
|
654
|
-
return false if @public_web_form.nil?
|
|
655
|
-
return false if @has_slack_webhook_url.nil?
|
|
656
302
|
return false if @created_at.nil?
|
|
657
303
|
return false if @updated_at.nil?
|
|
658
304
|
true
|
|
@@ -708,196 +354,6 @@ module DocSpring
|
|
|
708
354
|
@locked = locked
|
|
709
355
|
end
|
|
710
356
|
|
|
711
|
-
# Custom attribute writer method with validation
|
|
712
|
-
# @param [Object] add_signature_request_submission_id_footers Value to be assigned
|
|
713
|
-
def add_signature_request_submission_id_footers=(add_signature_request_submission_id_footers)
|
|
714
|
-
if add_signature_request_submission_id_footers.nil?
|
|
715
|
-
fail ArgumentError, 'add_signature_request_submission_id_footers cannot be nil'
|
|
716
|
-
end
|
|
717
|
-
|
|
718
|
-
@add_signature_request_submission_id_footers = add_signature_request_submission_id_footers
|
|
719
|
-
end
|
|
720
|
-
|
|
721
|
-
# Custom attribute writer method with validation
|
|
722
|
-
# @param [Object] allow_additional_properties Value to be assigned
|
|
723
|
-
def allow_additional_properties=(allow_additional_properties)
|
|
724
|
-
if allow_additional_properties.nil?
|
|
725
|
-
fail ArgumentError, 'allow_additional_properties cannot be nil'
|
|
726
|
-
end
|
|
727
|
-
|
|
728
|
-
@allow_additional_properties = allow_additional_properties
|
|
729
|
-
end
|
|
730
|
-
|
|
731
|
-
# Custom attribute writer method with validation
|
|
732
|
-
# @param [Object] allow_skipping_optional_fields Value to be assigned
|
|
733
|
-
def allow_skipping_optional_fields=(allow_skipping_optional_fields)
|
|
734
|
-
if allow_skipping_optional_fields.nil?
|
|
735
|
-
fail ArgumentError, 'allow_skipping_optional_fields cannot be nil'
|
|
736
|
-
end
|
|
737
|
-
|
|
738
|
-
@allow_skipping_optional_fields = allow_skipping_optional_fields
|
|
739
|
-
end
|
|
740
|
-
|
|
741
|
-
# Custom attribute writer method with validation
|
|
742
|
-
# @param [Object] default_form_mode Value to be assigned
|
|
743
|
-
def default_form_mode=(default_form_mode)
|
|
744
|
-
if default_form_mode.nil?
|
|
745
|
-
fail ArgumentError, 'default_form_mode cannot be nil'
|
|
746
|
-
end
|
|
747
|
-
|
|
748
|
-
@default_form_mode = default_form_mode
|
|
749
|
-
end
|
|
750
|
-
|
|
751
|
-
# Custom attribute writer method with validation
|
|
752
|
-
# @param [Object] editable_submissions Value to be assigned
|
|
753
|
-
def editable_submissions=(editable_submissions)
|
|
754
|
-
if editable_submissions.nil?
|
|
755
|
-
fail ArgumentError, 'editable_submissions cannot be nil'
|
|
756
|
-
end
|
|
757
|
-
|
|
758
|
-
@editable_submissions = editable_submissions
|
|
759
|
-
end
|
|
760
|
-
|
|
761
|
-
# Custom attribute writer method with validation
|
|
762
|
-
# @param [Object] embed_domains Value to be assigned
|
|
763
|
-
def embed_domains=(embed_domains)
|
|
764
|
-
if embed_domains.nil?
|
|
765
|
-
fail ArgumentError, 'embed_domains cannot be nil'
|
|
766
|
-
end
|
|
767
|
-
|
|
768
|
-
@embed_domains = embed_domains
|
|
769
|
-
end
|
|
770
|
-
|
|
771
|
-
# Custom attribute writer method with validation
|
|
772
|
-
# @param [Object] embed_edit_allow_settings Value to be assigned
|
|
773
|
-
def embed_edit_allow_settings=(embed_edit_allow_settings)
|
|
774
|
-
if embed_edit_allow_settings.nil?
|
|
775
|
-
fail ArgumentError, 'embed_edit_allow_settings cannot be nil'
|
|
776
|
-
end
|
|
777
|
-
|
|
778
|
-
@embed_edit_allow_settings = embed_edit_allow_settings
|
|
779
|
-
end
|
|
780
|
-
|
|
781
|
-
# Custom attribute writer method with validation
|
|
782
|
-
# @param [Object] embed_edit_allow_versioning Value to be assigned
|
|
783
|
-
def embed_edit_allow_versioning=(embed_edit_allow_versioning)
|
|
784
|
-
if embed_edit_allow_versioning.nil?
|
|
785
|
-
fail ArgumentError, 'embed_edit_allow_versioning cannot be nil'
|
|
786
|
-
end
|
|
787
|
-
|
|
788
|
-
@embed_edit_allow_versioning = embed_edit_allow_versioning
|
|
789
|
-
end
|
|
790
|
-
|
|
791
|
-
# Custom attribute writer method with validation
|
|
792
|
-
# @param [Object] embed_edit_allow_document_replacement Value to be assigned
|
|
793
|
-
def embed_edit_allow_document_replacement=(embed_edit_allow_document_replacement)
|
|
794
|
-
if embed_edit_allow_document_replacement.nil?
|
|
795
|
-
fail ArgumentError, 'embed_edit_allow_document_replacement cannot be nil'
|
|
796
|
-
end
|
|
797
|
-
|
|
798
|
-
@embed_edit_allow_document_replacement = embed_edit_allow_document_replacement
|
|
799
|
-
end
|
|
800
|
-
|
|
801
|
-
# Custom attribute writer method with validation
|
|
802
|
-
# @param [Object] encrypt_pdfs Value to be assigned
|
|
803
|
-
def encrypt_pdfs=(encrypt_pdfs)
|
|
804
|
-
if encrypt_pdfs.nil?
|
|
805
|
-
fail ArgumentError, 'encrypt_pdfs cannot be nil'
|
|
806
|
-
end
|
|
807
|
-
|
|
808
|
-
@encrypt_pdfs = encrypt_pdfs
|
|
809
|
-
end
|
|
810
|
-
|
|
811
|
-
# Custom attribute writer method with validation
|
|
812
|
-
# @param [Object] has_encrypt_pdfs_password Value to be assigned
|
|
813
|
-
def has_encrypt_pdfs_password=(has_encrypt_pdfs_password)
|
|
814
|
-
if has_encrypt_pdfs_password.nil?
|
|
815
|
-
fail ArgumentError, 'has_encrypt_pdfs_password cannot be nil'
|
|
816
|
-
end
|
|
817
|
-
|
|
818
|
-
@has_encrypt_pdfs_password = has_encrypt_pdfs_password
|
|
819
|
-
end
|
|
820
|
-
|
|
821
|
-
# Custom attribute writer method with validation
|
|
822
|
-
# @param [Object] expire_submissions Value to be assigned
|
|
823
|
-
def expire_submissions=(expire_submissions)
|
|
824
|
-
if expire_submissions.nil?
|
|
825
|
-
fail ArgumentError, 'expire_submissions cannot be nil'
|
|
826
|
-
end
|
|
827
|
-
|
|
828
|
-
@expire_submissions = expire_submissions
|
|
829
|
-
end
|
|
830
|
-
|
|
831
|
-
# Custom attribute writer method with validation
|
|
832
|
-
# @param [Object] expire_after Value to be assigned
|
|
833
|
-
def expire_after=(expire_after)
|
|
834
|
-
if expire_after.nil?
|
|
835
|
-
fail ArgumentError, 'expire_after cannot be nil'
|
|
836
|
-
end
|
|
837
|
-
|
|
838
|
-
@expire_after = expire_after
|
|
839
|
-
end
|
|
840
|
-
|
|
841
|
-
# Custom attribute writer method with validation
|
|
842
|
-
# @param [Object] expiration_interval Value to be assigned
|
|
843
|
-
def expiration_interval=(expiration_interval)
|
|
844
|
-
if expiration_interval.nil?
|
|
845
|
-
fail ArgumentError, 'expiration_interval cannot be nil'
|
|
846
|
-
end
|
|
847
|
-
|
|
848
|
-
@expiration_interval = expiration_interval
|
|
849
|
-
end
|
|
850
|
-
|
|
851
|
-
# Custom attribute writer method with validation
|
|
852
|
-
# @param [Object] merge_audit_trail_pdf Value to be assigned
|
|
853
|
-
def merge_audit_trail_pdf=(merge_audit_trail_pdf)
|
|
854
|
-
if merge_audit_trail_pdf.nil?
|
|
855
|
-
fail ArgumentError, 'merge_audit_trail_pdf cannot be nil'
|
|
856
|
-
end
|
|
857
|
-
|
|
858
|
-
@merge_audit_trail_pdf = merge_audit_trail_pdf
|
|
859
|
-
end
|
|
860
|
-
|
|
861
|
-
# Custom attribute writer method with validation
|
|
862
|
-
# @param [Object] parse_dates_using_template_date_format Value to be assigned
|
|
863
|
-
def parse_dates_using_template_date_format=(parse_dates_using_template_date_format)
|
|
864
|
-
if parse_dates_using_template_date_format.nil?
|
|
865
|
-
fail ArgumentError, 'parse_dates_using_template_date_format cannot be nil'
|
|
866
|
-
end
|
|
867
|
-
|
|
868
|
-
@parse_dates_using_template_date_format = parse_dates_using_template_date_format
|
|
869
|
-
end
|
|
870
|
-
|
|
871
|
-
# Custom attribute writer method with validation
|
|
872
|
-
# @param [Object] public_submissions Value to be assigned
|
|
873
|
-
def public_submissions=(public_submissions)
|
|
874
|
-
if public_submissions.nil?
|
|
875
|
-
fail ArgumentError, 'public_submissions cannot be nil'
|
|
876
|
-
end
|
|
877
|
-
|
|
878
|
-
@public_submissions = public_submissions
|
|
879
|
-
end
|
|
880
|
-
|
|
881
|
-
# Custom attribute writer method with validation
|
|
882
|
-
# @param [Object] public_web_form Value to be assigned
|
|
883
|
-
def public_web_form=(public_web_form)
|
|
884
|
-
if public_web_form.nil?
|
|
885
|
-
fail ArgumentError, 'public_web_form cannot be nil'
|
|
886
|
-
end
|
|
887
|
-
|
|
888
|
-
@public_web_form = public_web_form
|
|
889
|
-
end
|
|
890
|
-
|
|
891
|
-
# Custom attribute writer method with validation
|
|
892
|
-
# @param [Object] has_slack_webhook_url Value to be assigned
|
|
893
|
-
def has_slack_webhook_url=(has_slack_webhook_url)
|
|
894
|
-
if has_slack_webhook_url.nil?
|
|
895
|
-
fail ArgumentError, 'has_slack_webhook_url cannot be nil'
|
|
896
|
-
end
|
|
897
|
-
|
|
898
|
-
@has_slack_webhook_url = has_slack_webhook_url
|
|
899
|
-
end
|
|
900
|
-
|
|
901
357
|
# Custom attribute writer method with validation
|
|
902
358
|
# @param [Object] created_at Value to be assigned
|
|
903
359
|
def created_at=(created_at)
|
|
@@ -931,33 +387,10 @@ module DocSpring
|
|
|
931
387
|
document == o.document &&
|
|
932
388
|
parent_folder_id == o.parent_folder_id &&
|
|
933
389
|
path == o.path &&
|
|
934
|
-
version == o.version &&
|
|
935
390
|
latest_version == o.latest_version &&
|
|
936
391
|
version_published_at == o.version_published_at &&
|
|
937
392
|
locked == o.locked &&
|
|
938
|
-
add_signature_request_submission_id_footers == o.add_signature_request_submission_id_footers &&
|
|
939
|
-
ai_field_naming_language == o.ai_field_naming_language &&
|
|
940
|
-
allow_additional_properties == o.allow_additional_properties &&
|
|
941
|
-
allow_skipping_optional_fields == o.allow_skipping_optional_fields &&
|
|
942
|
-
default_form_mode == o.default_form_mode &&
|
|
943
|
-
editable_submissions == o.editable_submissions &&
|
|
944
|
-
embed_domains == o.embed_domains &&
|
|
945
|
-
embed_edit_allow_settings == o.embed_edit_allow_settings &&
|
|
946
|
-
embed_edit_allow_versioning == o.embed_edit_allow_versioning &&
|
|
947
|
-
embed_edit_allow_document_replacement == o.embed_edit_allow_document_replacement &&
|
|
948
|
-
encrypt_pdfs == o.encrypt_pdfs &&
|
|
949
|
-
has_encrypt_pdfs_password == o.has_encrypt_pdfs_password &&
|
|
950
|
-
expire_submissions == o.expire_submissions &&
|
|
951
|
-
expire_after == o.expire_after &&
|
|
952
|
-
expiration_interval == o.expiration_interval &&
|
|
953
|
-
merge_audit_trail_pdf == o.merge_audit_trail_pdf &&
|
|
954
|
-
parse_dates_using_template_date_format == o.parse_dates_using_template_date_format &&
|
|
955
|
-
public_submissions == o.public_submissions &&
|
|
956
|
-
public_web_form == o.public_web_form &&
|
|
957
|
-
redirect_url == o.redirect_url &&
|
|
958
|
-
has_slack_webhook_url == o.has_slack_webhook_url &&
|
|
959
393
|
last_changed_at == o.last_changed_at &&
|
|
960
|
-
last_changed_by == o.last_changed_by &&
|
|
961
394
|
created_at == o.created_at &&
|
|
962
395
|
updated_at == o.updated_at
|
|
963
396
|
end
|
|
@@ -971,7 +404,7 @@ module DocSpring
|
|
|
971
404
|
# Calculates hash code according to all attributes.
|
|
972
405
|
# @return [Integer] Hash code
|
|
973
406
|
def hash
|
|
974
|
-
[id, name, description, template_type, ready, document, parent_folder_id, path,
|
|
407
|
+
[id, name, description, template_type, ready, document, parent_folder_id, path, latest_version, version_published_at, locked, last_changed_at, created_at, updated_at].hash
|
|
975
408
|
end
|
|
976
409
|
|
|
977
410
|
# Builds the object from hash
|