docspring 4.4.0 → 4.6.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.
Files changed (439) hide show
  1. checksums.yaml +4 -4
  2. data/AGENTS.md +2 -0
  3. data/CHANGELOG.md +53 -0
  4. data/LICENSE +1 -1
  5. data/README.md +4 -1
  6. data/lib/docspring/api/client.rb +109 -100
  7. data/lib/docspring/api_client.rb +1 -1
  8. data/lib/docspring/models/combined_pdf.rb +1 -1
  9. data/lib/docspring/models/create_account_email_action_request.rb +1 -1
  10. data/lib/docspring/models/create_combined_pdf_request.rb +1 -1
  11. data/lib/docspring/models/create_email_action_request.rb +1 -1
  12. data/lib/docspring/models/create_submission_request.rb +6 -6
  13. data/lib/docspring/models/create_template_request.rb +122 -16
  14. data/lib/docspring/models/email_action.rb +1 -1
  15. data/lib/docspring/models/error_info.rb +26 -6
  16. data/lib/docspring/models/field.rb +166 -3
  17. data/lib/docspring/models/field_input.rb +77 -3
  18. data/lib/docspring/models/field_override.rb +55 -2
  19. data/lib/docspring/models/generated_file.rb +2 -2
  20. data/lib/docspring/models/html_engine_options.rb +4 -4
  21. data/lib/docspring/models/html_engine_options_input.rb +4 -4
  22. data/lib/docspring/models/number_part.rb +42 -0
  23. data/lib/docspring/models/predefined_field.rb +14 -1
  24. data/lib/docspring/models/predefined_field_input.rb +14 -1
  25. data/lib/docspring/models/signature_request.rb +3 -3
  26. data/lib/docspring/models/signature_request_input.rb +3 -10
  27. data/lib/docspring/models/submission.rb +3 -3
  28. data/lib/docspring/models/submission_files.rb +11 -1
  29. data/lib/docspring/models/submission_input.rb +3 -3
  30. data/lib/docspring/models/submission_summary.rb +1 -1
  31. data/lib/docspring/models/template.rb +237 -16
  32. data/lib/docspring/models/template_defaults.rb +1 -1
  33. data/lib/docspring/models/template_defaults_input.rb +1 -1
  34. data/lib/docspring/models/template_form_section.rb +254 -0
  35. data/lib/docspring/models/template_form_section_input.rb +252 -0
  36. data/lib/docspring/models/template_signer_role.rb +265 -0
  37. data/lib/docspring/models/template_signer_role_input.rb +227 -0
  38. data/lib/docspring/models/update_account_email_action_request.rb +1 -1
  39. data/lib/docspring/models/update_email_action_customization_request.rb +1 -1
  40. data/lib/docspring/models/update_email_action_request.rb +1 -1
  41. data/lib/docspring/models/update_template_document_request.rb +14 -4
  42. data/lib/docspring/models/update_template_request.rb +125 -17
  43. data/lib/docspring/models/validate_submission_request.rb +6 -6
  44. data/lib/docspring/request_schemas.json +362 -22
  45. data/lib/docspring/version.rb +1 -1
  46. data/lib/docspring.rb +5 -0
  47. metadata +7 -585
  48. data/.github/workflows/release.yml +0 -80
  49. data/.gitignore +0 -39
  50. data/.openapi-generator/FILES +0 -587
  51. data/.openapi-generator/VERSION +0 -1
  52. data/.openapi-generator-ignore +0 -23
  53. data/.rspec +0 -2
  54. data/.rubocop.yml +0 -148
  55. data/Gemfile +0 -9
  56. data/Gemfile.lock +0 -146
  57. data/Rakefile +0 -10
  58. data/docs/AddTemplateFieldsRequest.md +0 -18
  59. data/docs/AiFieldNamingLanguage.md +0 -15
  60. data/docs/AuthenticationCheck.md +0 -18
  61. data/docs/BarcodeSymbology.md +0 -15
  62. data/docs/CheckCharacter.md +0 -15
  63. data/docs/Client.md +0 -5888
  64. data/docs/CombinedFieldType.md +0 -15
  65. data/docs/CombinedPdf.md +0 -44
  66. data/docs/CombinedPdfFiles.md +0 -18
  67. data/docs/CombinedPdfList.md +0 -20
  68. data/docs/CombinedPdfSource.md +0 -26
  69. data/docs/CombinedPdfSourceInput.md +0 -88
  70. data/docs/CombinedPdfSourcePdf.md +0 -20
  71. data/docs/CombinedPdfSourceType.md +0 -15
  72. data/docs/CombinedPdfState.md +0 -15
  73. data/docs/CopyTemplateRequest.md +0 -22
  74. data/docs/CreateAccountEmailActionRequest.md +0 -54
  75. data/docs/CreateCombinedPdfRequest.md +0 -26
  76. data/docs/CreateCustomFileFromUploadRequest.md +0 -18
  77. data/docs/CreateEmailActionRequest.md +0 -50
  78. data/docs/CreateEmailDomainRequest.md +0 -18
  79. data/docs/CreateFolderRequest.md +0 -20
  80. data/docs/CreateSignatureRequestEventRequest.md +0 -24
  81. data/docs/CreateSignatureRequestTokenRequest.md +0 -18
  82. data/docs/CreateSubmissionBatchRequest.md +0 -28
  83. data/docs/CreateSubmissionRequest.md +0 -56
  84. data/docs/CreateTemplatePreviewRequest.md +0 -18
  85. data/docs/CreateTemplateRequest.md +0 -122
  86. data/docs/CreateWebhookRequest.md +0 -38
  87. data/docs/CustomFile.md +0 -28
  88. data/docs/CustomFileList.md +0 -20
  89. data/docs/CustomFileSourcePdf.md +0 -20
  90. data/docs/DnsRecordType.md +0 -15
  91. data/docs/EmailAction.md +0 -76
  92. data/docs/EmailActionConditions.md +0 -20
  93. data/docs/EmailActionConditionsInput.md +0 -20
  94. data/docs/EmailActionCustomization.md +0 -36
  95. data/docs/EmailActionDelivery.md +0 -15
  96. data/docs/EmailActionFileFormats.md +0 -15
  97. data/docs/EmailActionList.md +0 -20
  98. data/docs/EmailActionSetting.md +0 -15
  99. data/docs/EmailActionSubmissionType.md +0 -15
  100. data/docs/EmailActionTestEmail.md +0 -18
  101. data/docs/EmailDomain.md +0 -38
  102. data/docs/EmailDomainDnsRecord.md +0 -24
  103. data/docs/EmailDomainDnsRecordPurpose.md +0 -15
  104. data/docs/EmailDomainList.md +0 -20
  105. data/docs/EmailDomainRecordState.md +0 -15
  106. data/docs/EmailDomainState.md +0 -15
  107. data/docs/ErrorCode.md +0 -15
  108. data/docs/ErrorDetail.md +0 -26
  109. data/docs/ErrorInfo.md +0 -38
  110. data/docs/ErrorResponse.md +0 -18
  111. data/docs/ExpirationInterval.md +0 -15
  112. data/docs/Field.md +0 -198
  113. data/docs/FieldComparisonCondition.md +0 -22
  114. data/docs/FieldComparisonOperator.md +0 -15
  115. data/docs/FieldDependency.md +0 -22
  116. data/docs/FieldDependencyInput.md +0 -22
  117. data/docs/FieldDisplayType.md +0 -15
  118. data/docs/FieldEqualsCondition.md +0 -22
  119. data/docs/FieldEqualsOperator.md +0 -15
  120. data/docs/FieldGroup.md +0 -32
  121. data/docs/FieldGroupInput.md +0 -30
  122. data/docs/FieldGroupType.md +0 -15
  123. data/docs/FieldInCondition.md +0 -22
  124. data/docs/FieldInput.md +0 -196
  125. data/docs/FieldOverride.md +0 -142
  126. data/docs/FieldPresenceCondition.md +0 -20
  127. data/docs/FieldPresenceOperator.md +0 -15
  128. data/docs/FieldRangeCondition.md +0 -24
  129. data/docs/FieldReimportState.md +0 -15
  130. data/docs/FieldSetupLogic.md +0 -15
  131. data/docs/FieldSetupNaming.md +0 -15
  132. data/docs/FieldSetupSource.md +0 -15
  133. data/docs/FieldType.md +0 -15
  134. data/docs/Folder.md +0 -28
  135. data/docs/FolderList.md +0 -20
  136. data/docs/GenerateFilesFormat.md +0 -15
  137. data/docs/GenerateSubmissionFilesRequest.md +0 -18
  138. data/docs/GeneratedFile.md +0 -32
  139. data/docs/GeneratedFileState.md +0 -15
  140. data/docs/HtmlEngineOptions.md +0 -36
  141. data/docs/HtmlEngineOptionsInput.md +0 -36
  142. data/docs/ImageGravity.md +0 -15
  143. data/docs/ImageScaleType.md +0 -15
  144. data/docs/ModelCodeLanguage.md +0 -15
  145. data/docs/MoveFolderRequest.md +0 -18
  146. data/docs/MoveTemplateRequest.md +0 -18
  147. data/docs/NumberConditionType.md +0 -15
  148. data/docs/OutputFormat.md +0 -15
  149. data/docs/PageFormat.md +0 -15
  150. data/docs/PageImage.md +0 -34
  151. data/docs/PageImages.md +0 -24
  152. data/docs/PredefinedField.md +0 -30
  153. data/docs/PredefinedFieldInput.md +0 -30
  154. data/docs/PublishTemplateVersionRequest.md +0 -20
  155. data/docs/RemoveTemplateFieldsRequest.md +0 -18
  156. data/docs/RenameFolderRequest.md +0 -18
  157. data/docs/ReorderTemplateFieldsRequest.md +0 -18
  158. data/docs/RestoreTemplateVersionRequest.md +0 -18
  159. data/docs/SendAccountEmailActionTestEmailRequest.md +0 -18
  160. data/docs/ShapeType.md +0 -15
  161. data/docs/SignatureRequest.md +0 -74
  162. data/docs/SignatureRequestAuthSecondFactorType.md +0 -15
  163. data/docs/SignatureRequestAuthType.md +0 -15
  164. data/docs/SignatureRequestEmailAttachments.md +0 -15
  165. data/docs/SignatureRequestEmailStatus.md +0 -15
  166. data/docs/SignatureRequestEvent.md +0 -32
  167. data/docs/SignatureRequestEventType.md +0 -15
  168. data/docs/SignatureRequestInput.md +0 -50
  169. data/docs/SignatureRequestMessageType.md +0 -15
  170. data/docs/SignatureRequestReminders.md +0 -20
  171. data/docs/SignatureRequestState.md +0 -15
  172. data/docs/SignatureRequestToken.md +0 -30
  173. data/docs/SignatureRequestTokenType.md +0 -15
  174. data/docs/SigningOrder.md +0 -15
  175. data/docs/StringConditionType.md +0 -15
  176. data/docs/Submission.md +0 -68
  177. data/docs/SubmissionAction.md +0 -30
  178. data/docs/SubmissionActionState.md +0 -15
  179. data/docs/SubmissionActionType.md +0 -15
  180. data/docs/SubmissionBatch.md +0 -38
  181. data/docs/SubmissionBatchState.md +0 -15
  182. data/docs/SubmissionFiles.md +0 -28
  183. data/docs/SubmissionInput.md +0 -40
  184. data/docs/SubmissionList.md +0 -20
  185. data/docs/SubmissionSource.md +0 -15
  186. data/docs/SubmissionSourcePdf.md +0 -20
  187. data/docs/SubmissionState.md +0 -15
  188. data/docs/SubmissionSummary.md +0 -54
  189. data/docs/SubmissionValidation.md +0 -24
  190. data/docs/Template.md +0 -134
  191. data/docs/TemplateActor.md +0 -26
  192. data/docs/TemplateActorType.md +0 -15
  193. data/docs/TemplateDefaults.md +0 -56
  194. data/docs/TemplateDefaultsInput.md +0 -56
  195. data/docs/TemplateDiff.md +0 -30
  196. data/docs/TemplateDiffSummary.md +0 -28
  197. data/docs/TemplateDocument.md +0 -40
  198. data/docs/TemplateDocumentState.md +0 -15
  199. data/docs/TemplateDocumentSummary.md +0 -24
  200. data/docs/TemplateFieldChange.md +0 -24
  201. data/docs/TemplateFieldChanges.md +0 -24
  202. data/docs/TemplateFieldDependency.md +0 -26
  203. data/docs/TemplateFieldDependencyAction.md +0 -15
  204. data/docs/TemplateFieldDependencyCondition.md +0 -24
  205. data/docs/TemplateFieldDependencyConditionInput.md +0 -93
  206. data/docs/TemplateFieldDependencyInput.md +0 -26
  207. data/docs/TemplateFieldDependencyMatch.md +0 -15
  208. data/docs/TemplateFieldDependencyOperator.md +0 -15
  209. data/docs/TemplateFieldLogicStatus.md +0 -15
  210. data/docs/TemplateFieldMove.md +0 -22
  211. data/docs/TemplateFields.md +0 -22
  212. data/docs/TemplateFormMode.md +0 -15
  213. data/docs/TemplateModelCode.md +0 -22
  214. data/docs/TemplatePageAiError.md +0 -15
  215. data/docs/TemplatePageAiNamingStatus.md +0 -15
  216. data/docs/TemplatePageFieldsStatus.md +0 -15
  217. data/docs/TemplatePageImageStatus.md +0 -15
  218. data/docs/TemplatePageImages.md +0 -24
  219. data/docs/TemplatePageProcessingStatus.md +0 -26
  220. data/docs/TemplatePreview.md +0 -32
  221. data/docs/TemplatePreviewState.md +0 -15
  222. data/docs/TemplateSourcePdf.md +0 -24
  223. data/docs/TemplateSummary.md +0 -46
  224. data/docs/TemplateSummaryList.md +0 -20
  225. data/docs/TemplateType.md +0 -15
  226. data/docs/TemplateVersion.md +0 -24
  227. data/docs/TemplateVersionType.md +0 -15
  228. data/docs/TextAlignment.md +0 -15
  229. data/docs/TextOverflow.md +0 -15
  230. data/docs/TextVerticalAlignment.md +0 -15
  231. data/docs/Typeface.md +0 -15
  232. data/docs/UpdateAccountEmailActionRequest.md +0 -54
  233. data/docs/UpdateEmailActionCustomizationRequest.md +0 -46
  234. data/docs/UpdateEmailActionRequest.md +0 -50
  235. data/docs/UpdateSignatureRequestRequest.md +0 -34
  236. data/docs/UpdateTemplateDocumentRequest.md +0 -26
  237. data/docs/UpdateTemplateFieldsRequest.md +0 -18
  238. data/docs/UpdateTemplateRequest.md +0 -106
  239. data/docs/UpdateWebhookRequest.md +0 -38
  240. data/docs/UploadMethod.md +0 -15
  241. data/docs/UploadPresign.md +0 -24
  242. data/docs/UrlSourcePdf.md +0 -20
  243. data/docs/ValidateSubmissionRequest.md +0 -56
  244. data/docs/Webhook.md +0 -56
  245. data/docs/WebhookEventType.md +0 -15
  246. data/docs/WebhookList.md +0 -20
  247. data/docs/WebhookMode.md +0 -15
  248. data/docspring.gemspec +0 -40
  249. data/spec/api/client_spec.rb +0 -1102
  250. data/spec/models/add_template_fields_request_spec.rb +0 -36
  251. data/spec/models/ai_field_naming_language_spec.rb +0 -30
  252. data/spec/models/authentication_check_spec.rb +0 -36
  253. data/spec/models/barcode_symbology_spec.rb +0 -30
  254. data/spec/models/check_character_spec.rb +0 -30
  255. data/spec/models/combined_field_type_spec.rb +0 -30
  256. data/spec/models/combined_pdf_files_spec.rb +0 -36
  257. data/spec/models/combined_pdf_list_spec.rb +0 -42
  258. data/spec/models/combined_pdf_source_input_spec.rb +0 -44
  259. data/spec/models/combined_pdf_source_pdf_spec.rb +0 -42
  260. data/spec/models/combined_pdf_source_spec.rb +0 -60
  261. data/spec/models/combined_pdf_source_type_spec.rb +0 -30
  262. data/spec/models/combined_pdf_spec.rb +0 -114
  263. data/spec/models/combined_pdf_state_spec.rb +0 -30
  264. data/spec/models/copy_template_request_spec.rb +0 -48
  265. data/spec/models/create_account_email_action_request_spec.rb +0 -144
  266. data/spec/models/create_combined_pdf_request_spec.rb +0 -60
  267. data/spec/models/create_custom_file_from_upload_request_spec.rb +0 -36
  268. data/spec/models/create_email_action_request_spec.rb +0 -132
  269. data/spec/models/create_email_domain_request_spec.rb +0 -36
  270. data/spec/models/create_folder_request_spec.rb +0 -42
  271. data/spec/models/create_signature_request_event_request_spec.rb +0 -54
  272. data/spec/models/create_signature_request_token_request_spec.rb +0 -36
  273. data/spec/models/create_submission_batch_request_spec.rb +0 -66
  274. data/spec/models/create_submission_request_spec.rb +0 -150
  275. data/spec/models/create_template_preview_request_spec.rb +0 -36
  276. data/spec/models/create_template_request_spec.rb +0 -348
  277. data/spec/models/create_webhook_request_spec.rb +0 -96
  278. data/spec/models/custom_file_list_spec.rb +0 -42
  279. data/spec/models/custom_file_source_pdf_spec.rb +0 -42
  280. data/spec/models/custom_file_spec.rb +0 -66
  281. data/spec/models/dns_record_type_spec.rb +0 -30
  282. data/spec/models/email_action_conditions_input_spec.rb +0 -42
  283. data/spec/models/email_action_conditions_spec.rb +0 -42
  284. data/spec/models/email_action_customization_spec.rb +0 -90
  285. data/spec/models/email_action_delivery_spec.rb +0 -30
  286. data/spec/models/email_action_file_formats_spec.rb +0 -30
  287. data/spec/models/email_action_list_spec.rb +0 -42
  288. data/spec/models/email_action_setting_spec.rb +0 -30
  289. data/spec/models/email_action_spec.rb +0 -210
  290. data/spec/models/email_action_submission_type_spec.rb +0 -30
  291. data/spec/models/email_action_test_email_spec.rb +0 -36
  292. data/spec/models/email_domain_dns_record_purpose_spec.rb +0 -30
  293. data/spec/models/email_domain_dns_record_spec.rb +0 -54
  294. data/spec/models/email_domain_list_spec.rb +0 -42
  295. data/spec/models/email_domain_record_state_spec.rb +0 -30
  296. data/spec/models/email_domain_spec.rb +0 -96
  297. data/spec/models/email_domain_state_spec.rb +0 -30
  298. data/spec/models/error_code_spec.rb +0 -30
  299. data/spec/models/error_detail_spec.rb +0 -60
  300. data/spec/models/error_info_spec.rb +0 -96
  301. data/spec/models/error_response_spec.rb +0 -36
  302. data/spec/models/expiration_interval_spec.rb +0 -30
  303. data/spec/models/field_comparison_condition_spec.rb +0 -48
  304. data/spec/models/field_comparison_operator_spec.rb +0 -30
  305. data/spec/models/field_dependency_input_spec.rb +0 -48
  306. data/spec/models/field_dependency_spec.rb +0 -48
  307. data/spec/models/field_display_type_spec.rb +0 -30
  308. data/spec/models/field_equals_condition_spec.rb +0 -48
  309. data/spec/models/field_equals_operator_spec.rb +0 -30
  310. data/spec/models/field_group_input_spec.rb +0 -72
  311. data/spec/models/field_group_spec.rb +0 -78
  312. data/spec/models/field_group_type_spec.rb +0 -30
  313. data/spec/models/field_in_condition_spec.rb +0 -48
  314. data/spec/models/field_input_spec.rb +0 -570
  315. data/spec/models/field_override_spec.rb +0 -408
  316. data/spec/models/field_presence_condition_spec.rb +0 -42
  317. data/spec/models/field_presence_operator_spec.rb +0 -30
  318. data/spec/models/field_range_condition_spec.rb +0 -54
  319. data/spec/models/field_reimport_state_spec.rb +0 -30
  320. data/spec/models/field_setup_logic_spec.rb +0 -30
  321. data/spec/models/field_setup_naming_spec.rb +0 -30
  322. data/spec/models/field_setup_source_spec.rb +0 -30
  323. data/spec/models/field_spec.rb +0 -576
  324. data/spec/models/field_type_spec.rb +0 -30
  325. data/spec/models/folder_list_spec.rb +0 -42
  326. data/spec/models/folder_spec.rb +0 -66
  327. data/spec/models/generate_files_format_spec.rb +0 -30
  328. data/spec/models/generate_submission_files_request_spec.rb +0 -36
  329. data/spec/models/generated_file_spec.rb +0 -78
  330. data/spec/models/generated_file_state_spec.rb +0 -30
  331. data/spec/models/html_engine_options_input_spec.rb +0 -90
  332. data/spec/models/html_engine_options_spec.rb +0 -90
  333. data/spec/models/image_gravity_spec.rb +0 -30
  334. data/spec/models/image_scale_type_spec.rb +0 -30
  335. data/spec/models/model_code_language_spec.rb +0 -30
  336. data/spec/models/move_folder_request_spec.rb +0 -36
  337. data/spec/models/move_template_request_spec.rb +0 -36
  338. data/spec/models/number_condition_type_spec.rb +0 -30
  339. data/spec/models/output_format_spec.rb +0 -30
  340. data/spec/models/page_format_spec.rb +0 -30
  341. data/spec/models/page_image_spec.rb +0 -84
  342. data/spec/models/page_images_spec.rb +0 -54
  343. data/spec/models/predefined_field_input_spec.rb +0 -72
  344. data/spec/models/predefined_field_spec.rb +0 -72
  345. data/spec/models/publish_template_version_request_spec.rb +0 -42
  346. data/spec/models/remove_template_fields_request_spec.rb +0 -36
  347. data/spec/models/rename_folder_request_spec.rb +0 -36
  348. data/spec/models/reorder_template_fields_request_spec.rb +0 -36
  349. data/spec/models/restore_template_version_request_spec.rb +0 -36
  350. data/spec/models/send_account_email_action_test_email_request_spec.rb +0 -36
  351. data/spec/models/shape_type_spec.rb +0 -30
  352. data/spec/models/signature_request_auth_second_factor_type_spec.rb +0 -30
  353. data/spec/models/signature_request_auth_type_spec.rb +0 -30
  354. data/spec/models/signature_request_email_attachments_spec.rb +0 -30
  355. data/spec/models/signature_request_email_status_spec.rb +0 -30
  356. data/spec/models/signature_request_event_spec.rb +0 -78
  357. data/spec/models/signature_request_event_type_spec.rb +0 -30
  358. data/spec/models/signature_request_input_spec.rb +0 -132
  359. data/spec/models/signature_request_message_type_spec.rb +0 -30
  360. data/spec/models/signature_request_reminders_spec.rb +0 -42
  361. data/spec/models/signature_request_spec.rb +0 -204
  362. data/spec/models/signature_request_state_spec.rb +0 -30
  363. data/spec/models/signature_request_token_spec.rb +0 -72
  364. data/spec/models/signature_request_token_type_spec.rb +0 -30
  365. data/spec/models/signing_order_spec.rb +0 -30
  366. data/spec/models/string_condition_type_spec.rb +0 -30
  367. data/spec/models/submission_action_spec.rb +0 -72
  368. data/spec/models/submission_action_state_spec.rb +0 -30
  369. data/spec/models/submission_action_type_spec.rb +0 -30
  370. data/spec/models/submission_batch_spec.rb +0 -96
  371. data/spec/models/submission_batch_state_spec.rb +0 -30
  372. data/spec/models/submission_files_spec.rb +0 -66
  373. data/spec/models/submission_input_spec.rb +0 -102
  374. data/spec/models/submission_list_spec.rb +0 -42
  375. data/spec/models/submission_source_pdf_spec.rb +0 -42
  376. data/spec/models/submission_source_spec.rb +0 -30
  377. data/spec/models/submission_spec.rb +0 -186
  378. data/spec/models/submission_state_spec.rb +0 -30
  379. data/spec/models/submission_summary_spec.rb +0 -144
  380. data/spec/models/submission_validation_spec.rb +0 -54
  381. data/spec/models/template_actor_spec.rb +0 -60
  382. data/spec/models/template_actor_type_spec.rb +0 -30
  383. data/spec/models/template_defaults_input_spec.rb +0 -150
  384. data/spec/models/template_defaults_spec.rb +0 -150
  385. data/spec/models/template_diff_spec.rb +0 -72
  386. data/spec/models/template_diff_summary_spec.rb +0 -66
  387. data/spec/models/template_document_spec.rb +0 -102
  388. data/spec/models/template_document_state_spec.rb +0 -30
  389. data/spec/models/template_document_summary_spec.rb +0 -54
  390. data/spec/models/template_field_change_spec.rb +0 -54
  391. data/spec/models/template_field_changes_spec.rb +0 -54
  392. data/spec/models/template_field_dependency_action_spec.rb +0 -30
  393. data/spec/models/template_field_dependency_condition_input_spec.rb +0 -44
  394. data/spec/models/template_field_dependency_condition_spec.rb +0 -54
  395. data/spec/models/template_field_dependency_input_spec.rb +0 -60
  396. data/spec/models/template_field_dependency_match_spec.rb +0 -30
  397. data/spec/models/template_field_dependency_operator_spec.rb +0 -30
  398. data/spec/models/template_field_dependency_spec.rb +0 -60
  399. data/spec/models/template_field_logic_status_spec.rb +0 -30
  400. data/spec/models/template_field_move_spec.rb +0 -48
  401. data/spec/models/template_fields_spec.rb +0 -48
  402. data/spec/models/template_form_mode_spec.rb +0 -30
  403. data/spec/models/template_model_code_spec.rb +0 -48
  404. data/spec/models/template_page_ai_error_spec.rb +0 -30
  405. data/spec/models/template_page_ai_naming_status_spec.rb +0 -30
  406. data/spec/models/template_page_fields_status_spec.rb +0 -30
  407. data/spec/models/template_page_image_status_spec.rb +0 -30
  408. data/spec/models/template_page_images_spec.rb +0 -54
  409. data/spec/models/template_page_processing_status_spec.rb +0 -60
  410. data/spec/models/template_preview_spec.rb +0 -78
  411. data/spec/models/template_preview_state_spec.rb +0 -30
  412. data/spec/models/template_source_pdf_spec.rb +0 -54
  413. data/spec/models/template_spec.rb +0 -384
  414. data/spec/models/template_summary_list_spec.rb +0 -42
  415. data/spec/models/template_summary_spec.rb +0 -120
  416. data/spec/models/template_type_spec.rb +0 -30
  417. data/spec/models/template_version_spec.rb +0 -54
  418. data/spec/models/template_version_type_spec.rb +0 -30
  419. data/spec/models/text_alignment_spec.rb +0 -30
  420. data/spec/models/text_overflow_spec.rb +0 -30
  421. data/spec/models/text_vertical_alignment_spec.rb +0 -30
  422. data/spec/models/typeface_spec.rb +0 -30
  423. data/spec/models/update_account_email_action_request_spec.rb +0 -144
  424. data/spec/models/update_email_action_customization_request_spec.rb +0 -120
  425. data/spec/models/update_email_action_request_spec.rb +0 -132
  426. data/spec/models/update_signature_request_request_spec.rb +0 -84
  427. data/spec/models/update_template_document_request_spec.rb +0 -60
  428. data/spec/models/update_template_fields_request_spec.rb +0 -36
  429. data/spec/models/update_template_request_spec.rb +0 -300
  430. data/spec/models/update_webhook_request_spec.rb +0 -96
  431. data/spec/models/upload_method_spec.rb +0 -30
  432. data/spec/models/upload_presign_spec.rb +0 -54
  433. data/spec/models/url_source_pdf_spec.rb +0 -42
  434. data/spec/models/validate_submission_request_spec.rb +0 -150
  435. data/spec/models/webhook_event_type_spec.rb +0 -30
  436. data/spec/models/webhook_list_spec.rb +0 -42
  437. data/spec/models/webhook_mode_spec.rb +0 -30
  438. data/spec/models/webhook_spec.rb +0 -150
  439. data/spec/spec_helper.rb +0 -111
@@ -73,16 +73,19 @@ module DocSpring
73
73
  # Accept submission data with properties that aren't fields of the template.
74
74
  attr_accessor :allow_additional_properties
75
75
 
76
- # 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.
76
+ # Visual Forms JS 2.16.0 to 2.23.0 only: with it on, Continue takes the place of Next once the required fields are filled in. Later versions use `continue_before_optional_fields`.
77
77
  attr_accessor :allow_skipping_optional_fields
78
78
 
79
+ # Visual forms and signature request forms show the Continue button next to Next as soon as the required fields are filled in, without visiting each optional field. Turned off, Continue shows in place of Next only once every field has a value or has been visited. The `allowSkippingOptionalFields` embed option overrides it.
80
+ attr_accessor :continue_before_optional_fields
81
+
79
82
  # 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). Only PDF templates have a visual form, so other templates accept only `web`.
80
83
  attr_accessor :default_form_mode
81
84
 
82
85
  # Generate PDFs whose text and check fields stay fillable ("Generate Editable PDFs"). A submission's `editable` overrides it.
83
86
  attr_accessor :editable_submissions
84
87
 
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.
88
+ # The sites that can embed the template's live signature requests, its embedded template editor and its visual form: 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. Each one is stored in lowercase, without a trailing slash. 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. A visual form embedded with Visual Forms JS loads only on these sites, and on any site when the list is empty. Web Forms JS isn't restricted.
86
89
  attr_accessor :embed_domains
87
90
 
88
91
  # Allow the embedded template editor to change sensitive template settings (webhooks, redirect URL, encryption, public access, expiration and so on).
@@ -100,10 +103,10 @@ module DocSpring
100
103
  # Whether `encrypt_pdfs_password` is set.
101
104
  attr_accessor :has_encrypt_pdfs_password
102
105
 
103
- # Delete each submission's data and PDF after `expire_after` `expiration_interval`.
106
+ # Delete each submission's data and files after `expire_after` `expiration_interval`, when `override_account_expiry` is on.
104
107
  attr_accessor :expire_submissions
105
108
 
106
- # 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).
109
+ # How many `expiration_interval`s a submission's data and PDF are kept for, when `expire_submissions` and `override_account_expiry` are on. At most 5256000 (10 years in minutes).
107
110
  attr_accessor :expire_after
108
111
 
109
112
  # The unit of `expire_after`.
@@ -121,30 +124,42 @@ module DocSpring
121
124
  # Allow anyone to fill in the template's web form.
122
125
  attr_accessor :public_web_form
123
126
 
124
- # Where the web form sends people after they submit it.
127
+ # Where the web form sends people after they submit it, instead of showing its success screen. After its `?` or `#`, it can have variables such as `{{ data.first_name }}`, which the form fills in with what they submitted.
125
128
  attr_accessor :redirect_url
126
129
 
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.
130
+ # 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. A signature request uses the value it had when the request was created.
128
131
  attr_accessor :signature_request_email_attachments
129
132
 
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.
133
+ # 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.
131
134
  attr_accessor :signature_request_from_address
132
135
 
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.
136
+ # 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.
134
137
  attr_accessor :signature_request_include_signing_token
135
138
 
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.
139
+ # 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.
137
140
  attr_accessor :signature_request_from_name
138
141
 
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.
142
+ # 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.
140
143
  attr_accessor :signature_request_notification_emails
141
144
 
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.
145
+ # 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.
143
146
  attr_accessor :signature_request_reply_to
144
147
 
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.
148
+ # 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.
146
149
  attr_accessor :signature_request_signing_url
147
150
 
151
+ # The title of the web form's success screen. When it's null or empty, the screen says "Thanks for filling out" and the template's name. It can have variables such as `{{ data.first_name }}`.
152
+ attr_accessor :success_title
153
+
154
+ # A message under the title of the web form's success screen, as plain text. Line breaks show, and web addresses become links. It can have variables such as `{{ data.first_name }}`.
155
+ attr_accessor :success_message
156
+
157
+ # Whether the web form's success screen has a "Fill out again" button, which clears the form so someone can fill it in again.
158
+ attr_accessor :show_fill_again_button
159
+
160
+ # Whether a web form with sections makes people fill them out in order. When true, a later section stays locked until they reach it with Next. When false, they can open any section from the list, and Next and Submit still check their answers.
161
+ attr_accessor :form_sections_in_order
162
+
148
163
  # Whether `slack_webhook_url` is set.
149
164
  attr_accessor :has_slack_webhook_url
150
165
 
@@ -159,6 +174,15 @@ module DocSpring
159
174
  # The groups of the template's fields, with their settings. A field's name puts it in groups: `address/city` is in the group `address`, and `items/0/price` is in the list `items` and its items' group `items/~`.
160
175
  attr_accessor :field_groups
161
176
 
177
+ # The web form's sections, in order: Web Forms JS and the hosted web form show one section at a time. Empty when the template has none, and the web form shows all of its fields together, in the order the fields endpoint lists them. A field that no section lists (one added later) goes after the field before it in that order, in that field's section.
178
+ attr_accessor :form_sections
179
+
180
+ # The people who sign the template's submissions, in order. A field's `signer_role` says which signer fills it in or signs it, and a signature request's `role` says which signer it's for. Role N is also `Signer N`. Setting it replaces the whole list: a role left out is deleted, and its fields are left unassigned. Without roles (an empty list), a template's signers are Signer 1, Signer 2 and so on, and each signature request lists the fields its signer fills in or signs.
181
+ attr_accessor :signer_roles
182
+
183
+ # Who gets a copy of the completed document when DocSpring emails a submission's signers, with the submission's `cc`: email addresses, or `{{ variables }}` that name an address in the submission's data, such as `{{ agent.email }}`. A value the data doesn't have prints nothing, and an address that comes out blank is left out. The data has to have the value, so it's one of the template's fields (one the sender fills in) or the template allows additional properties: setting a variable that isn't a field is a `422` otherwise. They don't sign. Setting it replaces the whole list.
184
+ attr_accessor :signature_request_cc
185
+
162
186
  # The field names that people using the embedded template editor choose from, each with the data type and settings a field gets when it's given that name. Setting it replaces the whole list; an empty list turns them off.
163
187
  attr_accessor :predefined_fields
164
188
 
@@ -192,6 +216,9 @@ module DocSpring
192
216
  # The template's published versions, newest first (up to 100).
193
217
  attr_accessor :versions
194
218
 
219
+ # Whether the template's own expiry (`expire_submissions`, `expire_after` and `expiration_interval`) decides when all its submissions are deleted, with or without signature requests, including keeping them until you delete them. When false, the account's expiry settings do. Turning `expire_submissions` on also turns this on, unless the same request sets it, and so does creating a template with `expire_submissions` on or off.
220
+ attr_accessor :override_account_expiry
221
+
195
222
  class EnumAttributeValidator
196
223
  attr_reader :datatype
197
224
  attr_reader :allowable_values
@@ -237,6 +264,7 @@ module DocSpring
237
264
  :'ai_field_naming_language' => :'ai_field_naming_language',
238
265
  :'allow_additional_properties' => :'allow_additional_properties',
239
266
  :'allow_skipping_optional_fields' => :'allow_skipping_optional_fields',
267
+ :'continue_before_optional_fields' => :'continue_before_optional_fields',
240
268
  :'default_form_mode' => :'default_form_mode',
241
269
  :'editable_submissions' => :'editable_submissions',
242
270
  :'embed_domains' => :'embed_domains',
@@ -260,11 +288,18 @@ module DocSpring
260
288
  :'signature_request_notification_emails' => :'signature_request_notification_emails',
261
289
  :'signature_request_reply_to' => :'signature_request_reply_to',
262
290
  :'signature_request_signing_url' => :'signature_request_signing_url',
291
+ :'success_title' => :'success_title',
292
+ :'success_message' => :'success_message',
293
+ :'show_fill_again_button' => :'show_fill_again_button',
294
+ :'form_sections_in_order' => :'form_sections_in_order',
263
295
  :'has_slack_webhook_url' => :'has_slack_webhook_url',
264
296
  :'last_changed_by' => :'last_changed_by',
265
297
  :'defaults' => :'defaults',
266
298
  :'field_dependencies' => :'field_dependencies',
267
299
  :'field_groups' => :'field_groups',
300
+ :'form_sections' => :'form_sections',
301
+ :'signer_roles' => :'signer_roles',
302
+ :'signature_request_cc' => :'signature_request_cc',
268
303
  :'predefined_fields' => :'predefined_fields',
269
304
  :'predefined_fields_sample_data' => :'predefined_fields_sample_data',
270
305
  :'html' => :'html',
@@ -275,7 +310,8 @@ module DocSpring
275
310
  :'html_escape_data' => :'html_escape_data',
276
311
  :'layout' => :'layout',
277
312
  :'embed_edit_token' => :'embed_edit_token',
278
- :'versions' => :'versions'
313
+ :'versions' => :'versions',
314
+ :'override_account_expiry' => :'override_account_expiry'
279
315
  }
280
316
  end
281
317
 
@@ -312,6 +348,7 @@ module DocSpring
312
348
  :'ai_field_naming_language' => :'AiFieldNamingLanguage',
313
349
  :'allow_additional_properties' => :'Boolean',
314
350
  :'allow_skipping_optional_fields' => :'Boolean',
351
+ :'continue_before_optional_fields' => :'Boolean',
315
352
  :'default_form_mode' => :'TemplateFormMode',
316
353
  :'editable_submissions' => :'Boolean',
317
354
  :'embed_domains' => :'Array<String>',
@@ -335,11 +372,18 @@ module DocSpring
335
372
  :'signature_request_notification_emails' => :'Array<String>',
336
373
  :'signature_request_reply_to' => :'String',
337
374
  :'signature_request_signing_url' => :'String',
375
+ :'success_title' => :'String',
376
+ :'success_message' => :'String',
377
+ :'show_fill_again_button' => :'Boolean',
378
+ :'form_sections_in_order' => :'Boolean',
338
379
  :'has_slack_webhook_url' => :'Boolean',
339
380
  :'last_changed_by' => :'TemplateActor',
340
381
  :'defaults' => :'TemplateDefaults',
341
382
  :'field_dependencies' => :'Array<TemplateFieldDependency>',
342
383
  :'field_groups' => :'Array<FieldGroup>',
384
+ :'form_sections' => :'Array<TemplateFormSection>',
385
+ :'signer_roles' => :'Array<TemplateSignerRole>',
386
+ :'signature_request_cc' => :'Array<String>',
343
387
  :'predefined_fields' => :'Array<PredefinedField>',
344
388
  :'predefined_fields_sample_data' => :'Hash<String, Object>',
345
389
  :'html' => :'String',
@@ -350,7 +394,8 @@ module DocSpring
350
394
  :'html_escape_data' => :'Boolean',
351
395
  :'layout' => :'Hash<String, Object>',
352
396
  :'embed_edit_token' => :'String',
353
- :'versions' => :'Array<TemplateVersion>'
397
+ :'versions' => :'Array<TemplateVersion>',
398
+ :'override_account_expiry' => :'Boolean'
354
399
  }
355
400
  end
356
401
 
@@ -372,6 +417,8 @@ module DocSpring
372
417
  :'signature_request_from_name',
373
418
  :'signature_request_reply_to',
374
419
  :'signature_request_signing_url',
420
+ :'success_title',
421
+ :'success_message',
375
422
  :'last_changed_by',
376
423
  :'predefined_fields_sample_data',
377
424
  :'html',
@@ -531,6 +578,12 @@ module DocSpring
531
578
  self.allow_skipping_optional_fields = nil
532
579
  end
533
580
 
581
+ if attributes.key?(:'continue_before_optional_fields')
582
+ self.continue_before_optional_fields = attributes[:'continue_before_optional_fields']
583
+ else
584
+ self.continue_before_optional_fields = nil
585
+ end
586
+
534
587
  if attributes.key?(:'default_form_mode')
535
588
  self.default_form_mode = attributes[:'default_form_mode']
536
589
  else
@@ -673,6 +726,30 @@ module DocSpring
673
726
  self.signature_request_signing_url = nil
674
727
  end
675
728
 
729
+ if attributes.key?(:'success_title')
730
+ self.success_title = attributes[:'success_title']
731
+ else
732
+ self.success_title = nil
733
+ end
734
+
735
+ if attributes.key?(:'success_message')
736
+ self.success_message = attributes[:'success_message']
737
+ else
738
+ self.success_message = nil
739
+ end
740
+
741
+ if attributes.key?(:'show_fill_again_button')
742
+ self.show_fill_again_button = attributes[:'show_fill_again_button']
743
+ else
744
+ self.show_fill_again_button = nil
745
+ end
746
+
747
+ if attributes.key?(:'form_sections_in_order')
748
+ self.form_sections_in_order = attributes[:'form_sections_in_order']
749
+ else
750
+ self.form_sections_in_order = nil
751
+ end
752
+
676
753
  if attributes.key?(:'has_slack_webhook_url')
677
754
  self.has_slack_webhook_url = attributes[:'has_slack_webhook_url']
678
755
  else
@@ -707,6 +784,30 @@ module DocSpring
707
784
  self.field_groups = nil
708
785
  end
709
786
 
787
+ if attributes.key?(:'form_sections')
788
+ if (value = attributes[:'form_sections']).is_a?(Array)
789
+ self.form_sections = value
790
+ end
791
+ else
792
+ self.form_sections = nil
793
+ end
794
+
795
+ if attributes.key?(:'signer_roles')
796
+ if (value = attributes[:'signer_roles']).is_a?(Array)
797
+ self.signer_roles = value
798
+ end
799
+ else
800
+ self.signer_roles = nil
801
+ end
802
+
803
+ if attributes.key?(:'signature_request_cc')
804
+ if (value = attributes[:'signature_request_cc']).is_a?(Array)
805
+ self.signature_request_cc = value
806
+ end
807
+ else
808
+ self.signature_request_cc = nil
809
+ end
810
+
710
811
  if attributes.key?(:'predefined_fields')
711
812
  if (value = attributes[:'predefined_fields']).is_a?(Array)
712
813
  self.predefined_fields = value
@@ -780,6 +881,12 @@ module DocSpring
780
881
  else
781
882
  self.versions = nil
782
883
  end
884
+
885
+ if attributes.key?(:'override_account_expiry')
886
+ self.override_account_expiry = attributes[:'override_account_expiry']
887
+ else
888
+ self.override_account_expiry = nil
889
+ end
783
890
  end
784
891
 
785
892
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -831,6 +938,10 @@ module DocSpring
831
938
  invalid_properties.push('invalid value for "allow_skipping_optional_fields", allow_skipping_optional_fields cannot be nil.')
832
939
  end
833
940
 
941
+ if @continue_before_optional_fields.nil?
942
+ invalid_properties.push('invalid value for "continue_before_optional_fields", continue_before_optional_fields cannot be nil.')
943
+ end
944
+
834
945
  if @default_form_mode.nil?
835
946
  invalid_properties.push('invalid value for "default_form_mode", default_form_mode cannot be nil.')
836
947
  end
@@ -899,6 +1010,14 @@ module DocSpring
899
1010
  invalid_properties.push('invalid value for "signature_request_notification_emails", signature_request_notification_emails cannot be nil.')
900
1011
  end
901
1012
 
1013
+ if @show_fill_again_button.nil?
1014
+ invalid_properties.push('invalid value for "show_fill_again_button", show_fill_again_button cannot be nil.')
1015
+ end
1016
+
1017
+ if @form_sections_in_order.nil?
1018
+ invalid_properties.push('invalid value for "form_sections_in_order", form_sections_in_order cannot be nil.')
1019
+ end
1020
+
902
1021
  if @has_slack_webhook_url.nil?
903
1022
  invalid_properties.push('invalid value for "has_slack_webhook_url", has_slack_webhook_url cannot be nil.')
904
1023
  end
@@ -915,6 +1034,18 @@ module DocSpring
915
1034
  invalid_properties.push('invalid value for "field_groups", field_groups cannot be nil.')
916
1035
  end
917
1036
 
1037
+ if @form_sections.nil?
1038
+ invalid_properties.push('invalid value for "form_sections", form_sections cannot be nil.')
1039
+ end
1040
+
1041
+ if @signer_roles.nil?
1042
+ invalid_properties.push('invalid value for "signer_roles", signer_roles cannot be nil.')
1043
+ end
1044
+
1045
+ if @signature_request_cc.nil?
1046
+ invalid_properties.push('invalid value for "signature_request_cc", signature_request_cc cannot be nil.')
1047
+ end
1048
+
918
1049
  if @predefined_fields.nil?
919
1050
  invalid_properties.push('invalid value for "predefined_fields", predefined_fields cannot be nil.')
920
1051
  end
@@ -923,6 +1054,10 @@ module DocSpring
923
1054
  invalid_properties.push('invalid value for "versions", versions cannot be nil.')
924
1055
  end
925
1056
 
1057
+ if @override_account_expiry.nil?
1058
+ invalid_properties.push('invalid value for "override_account_expiry", override_account_expiry cannot be nil.')
1059
+ end
1060
+
926
1061
  invalid_properties
927
1062
  end
928
1063
 
@@ -941,6 +1076,7 @@ module DocSpring
941
1076
  return false if @add_signature_request_submission_id_footers.nil?
942
1077
  return false if @allow_additional_properties.nil?
943
1078
  return false if @allow_skipping_optional_fields.nil?
1079
+ return false if @continue_before_optional_fields.nil?
944
1080
  return false if @default_form_mode.nil?
945
1081
  return false if @editable_submissions.nil?
946
1082
  return false if @embed_domains.nil?
@@ -958,12 +1094,18 @@ module DocSpring
958
1094
  return false if @public_web_form.nil?
959
1095
  return false if @signature_request_include_signing_token.nil?
960
1096
  return false if @signature_request_notification_emails.nil?
1097
+ return false if @show_fill_again_button.nil?
1098
+ return false if @form_sections_in_order.nil?
961
1099
  return false if @has_slack_webhook_url.nil?
962
1100
  return false if @defaults.nil?
963
1101
  return false if @field_dependencies.nil?
964
1102
  return false if @field_groups.nil?
1103
+ return false if @form_sections.nil?
1104
+ return false if @signer_roles.nil?
1105
+ return false if @signature_request_cc.nil?
965
1106
  return false if @predefined_fields.nil?
966
1107
  return false if @versions.nil?
1108
+ return false if @override_account_expiry.nil?
967
1109
  true
968
1110
  end
969
1111
 
@@ -1077,6 +1219,16 @@ module DocSpring
1077
1219
  @allow_skipping_optional_fields = allow_skipping_optional_fields
1078
1220
  end
1079
1221
 
1222
+ # Custom attribute writer method with validation
1223
+ # @param [Object] continue_before_optional_fields Value to be assigned
1224
+ def continue_before_optional_fields=(continue_before_optional_fields)
1225
+ if continue_before_optional_fields.nil?
1226
+ fail ArgumentError, 'continue_before_optional_fields cannot be nil'
1227
+ end
1228
+
1229
+ @continue_before_optional_fields = continue_before_optional_fields
1230
+ end
1231
+
1080
1232
  # Custom attribute writer method with validation
1081
1233
  # @param [Object] default_form_mode Value to be assigned
1082
1234
  def default_form_mode=(default_form_mode)
@@ -1247,6 +1399,26 @@ module DocSpring
1247
1399
  @signature_request_notification_emails = signature_request_notification_emails
1248
1400
  end
1249
1401
 
1402
+ # Custom attribute writer method with validation
1403
+ # @param [Object] show_fill_again_button Value to be assigned
1404
+ def show_fill_again_button=(show_fill_again_button)
1405
+ if show_fill_again_button.nil?
1406
+ fail ArgumentError, 'show_fill_again_button cannot be nil'
1407
+ end
1408
+
1409
+ @show_fill_again_button = show_fill_again_button
1410
+ end
1411
+
1412
+ # Custom attribute writer method with validation
1413
+ # @param [Object] form_sections_in_order Value to be assigned
1414
+ def form_sections_in_order=(form_sections_in_order)
1415
+ if form_sections_in_order.nil?
1416
+ fail ArgumentError, 'form_sections_in_order cannot be nil'
1417
+ end
1418
+
1419
+ @form_sections_in_order = form_sections_in_order
1420
+ end
1421
+
1250
1422
  # Custom attribute writer method with validation
1251
1423
  # @param [Object] has_slack_webhook_url Value to be assigned
1252
1424
  def has_slack_webhook_url=(has_slack_webhook_url)
@@ -1287,6 +1459,36 @@ module DocSpring
1287
1459
  @field_groups = field_groups
1288
1460
  end
1289
1461
 
1462
+ # Custom attribute writer method with validation
1463
+ # @param [Object] form_sections Value to be assigned
1464
+ def form_sections=(form_sections)
1465
+ if form_sections.nil?
1466
+ fail ArgumentError, 'form_sections cannot be nil'
1467
+ end
1468
+
1469
+ @form_sections = form_sections
1470
+ end
1471
+
1472
+ # Custom attribute writer method with validation
1473
+ # @param [Object] signer_roles Value to be assigned
1474
+ def signer_roles=(signer_roles)
1475
+ if signer_roles.nil?
1476
+ fail ArgumentError, 'signer_roles cannot be nil'
1477
+ end
1478
+
1479
+ @signer_roles = signer_roles
1480
+ end
1481
+
1482
+ # Custom attribute writer method with validation
1483
+ # @param [Object] signature_request_cc Value to be assigned
1484
+ def signature_request_cc=(signature_request_cc)
1485
+ if signature_request_cc.nil?
1486
+ fail ArgumentError, 'signature_request_cc cannot be nil'
1487
+ end
1488
+
1489
+ @signature_request_cc = signature_request_cc
1490
+ end
1491
+
1290
1492
  # Custom attribute writer method with validation
1291
1493
  # @param [Object] predefined_fields Value to be assigned
1292
1494
  def predefined_fields=(predefined_fields)
@@ -1307,6 +1509,16 @@ module DocSpring
1307
1509
  @versions = versions
1308
1510
  end
1309
1511
 
1512
+ # Custom attribute writer method with validation
1513
+ # @param [Object] override_account_expiry Value to be assigned
1514
+ def override_account_expiry=(override_account_expiry)
1515
+ if override_account_expiry.nil?
1516
+ fail ArgumentError, 'override_account_expiry cannot be nil'
1517
+ end
1518
+
1519
+ @override_account_expiry = override_account_expiry
1520
+ end
1521
+
1310
1522
  # Checks equality by comparing each attribute.
1311
1523
  # @param [Object] Object to be compared
1312
1524
  def ==(o)
@@ -1332,6 +1544,7 @@ module DocSpring
1332
1544
  ai_field_naming_language == o.ai_field_naming_language &&
1333
1545
  allow_additional_properties == o.allow_additional_properties &&
1334
1546
  allow_skipping_optional_fields == o.allow_skipping_optional_fields &&
1547
+ continue_before_optional_fields == o.continue_before_optional_fields &&
1335
1548
  default_form_mode == o.default_form_mode &&
1336
1549
  editable_submissions == o.editable_submissions &&
1337
1550
  embed_domains == o.embed_domains &&
@@ -1355,11 +1568,18 @@ module DocSpring
1355
1568
  signature_request_notification_emails == o.signature_request_notification_emails &&
1356
1569
  signature_request_reply_to == o.signature_request_reply_to &&
1357
1570
  signature_request_signing_url == o.signature_request_signing_url &&
1571
+ success_title == o.success_title &&
1572
+ success_message == o.success_message &&
1573
+ show_fill_again_button == o.show_fill_again_button &&
1574
+ form_sections_in_order == o.form_sections_in_order &&
1358
1575
  has_slack_webhook_url == o.has_slack_webhook_url &&
1359
1576
  last_changed_by == o.last_changed_by &&
1360
1577
  defaults == o.defaults &&
1361
1578
  field_dependencies == o.field_dependencies &&
1362
1579
  field_groups == o.field_groups &&
1580
+ form_sections == o.form_sections &&
1581
+ signer_roles == o.signer_roles &&
1582
+ signature_request_cc == o.signature_request_cc &&
1363
1583
  predefined_fields == o.predefined_fields &&
1364
1584
  predefined_fields_sample_data == o.predefined_fields_sample_data &&
1365
1585
  html == o.html &&
@@ -1370,7 +1590,8 @@ module DocSpring
1370
1590
  html_escape_data == o.html_escape_data &&
1371
1591
  layout == o.layout &&
1372
1592
  embed_edit_token == o.embed_edit_token &&
1373
- versions == o.versions
1593
+ versions == o.versions &&
1594
+ override_account_expiry == o.override_account_expiry
1374
1595
  end
1375
1596
 
1376
1597
  # @see the `==` method
@@ -1382,7 +1603,7 @@ module DocSpring
1382
1603
  # Calculates hash code according to all attributes.
1383
1604
  # @return [Integer] Hash code
1384
1605
  def 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
1606
+ [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, continue_before_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, success_title, success_message, show_fill_again_button, form_sections_in_order, has_slack_webhook_url, last_changed_by, defaults, field_dependencies, field_groups, form_sections, signer_roles, signature_request_cc, predefined_fields, predefined_fields_sample_data, html, scss, header_html, footer_html, html_engine_options, html_escape_data, layout, embed_edit_token, versions, override_account_expiry].hash
1386
1607
  end
1387
1608
 
1388
1609
  # Builds the object from hash
@@ -46,7 +46,7 @@ module DocSpring
46
46
  # How date fields are printed, as a strftime format such as `%m/%d/%Y`.
47
47
  attr_accessor :date_format
48
48
 
49
- # How date-time fields are printed, as a strftime format such as `%m/%d/%Y %H:%M:%S`.
49
+ # How date-time fields are printed, as a strftime format such as `%m/%d/%Y %H:%M`.
50
50
  attr_accessor :date_time_format
51
51
 
52
52
  # The color of check marks, as 6 hex digits.
@@ -46,7 +46,7 @@ module DocSpring
46
46
  # How date fields are printed, as a strftime format such as `%m/%d/%Y`.
47
47
  attr_accessor :date_format
48
48
 
49
- # How date-time fields are printed, as a strftime format such as `%m/%d/%Y %H:%M:%S`.
49
+ # How date-time fields are printed, as a strftime format such as `%m/%d/%Y %H:%M`.
50
50
  attr_accessor :date_time_format
51
51
 
52
52
  # The color of check marks, as 6 hex digits.