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
@@ -0,0 +1,254 @@
1
+ =begin
2
+ #DocSpring API
3
+
4
+ #Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
5
+
6
+ The version of the OpenAPI document: v2
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.26.0-DOCSPRING
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module DocSpring
17
+ # A section of the template's web form, with its fields in order.
18
+ class TemplateFormSection < ApiModelBase
19
+ # The section's ID, unique among the template's sections. Any string you choose.
20
+ attr_accessor :id
21
+
22
+ # The section's heading on the web form.
23
+ attr_accessor :title
24
+
25
+ # Text shown under the section's heading. Null for none.
26
+ attr_accessor :description
27
+
28
+ # The IDs of the section's fields (Field's `id`), in the order the web form shows them. A field can be in one section only.
29
+ attr_accessor :field_ids
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'id' => :'id',
35
+ :'title' => :'title',
36
+ :'description' => :'description',
37
+ :'field_ids' => :'field_ids'
38
+ }
39
+ end
40
+
41
+ # Returns attribute mapping this model knows about
42
+ def self.acceptable_attribute_map
43
+ attribute_map
44
+ end
45
+
46
+ # Returns all the JSON keys this model knows about
47
+ def self.acceptable_attributes
48
+ acceptable_attribute_map.values
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.openapi_types
53
+ {
54
+ :'id' => :'String',
55
+ :'title' => :'String',
56
+ :'description' => :'String',
57
+ :'field_ids' => :'Array<Integer>'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ :'description',
65
+ ])
66
+ end
67
+
68
+ # Returns attribute type mapping
69
+ def self.acceptable_openapi_types
70
+ openapi_types
71
+ end
72
+
73
+ # Returns the nullable attributes
74
+ def self.acceptable_openapi_nullable
75
+ openapi_nullable
76
+ end
77
+
78
+ # Initializes the object
79
+ # @param [Hash] attributes Model attributes in the form of hash
80
+ def initialize(attributes = {})
81
+ if (!attributes.is_a?(Hash))
82
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DocSpring::TemplateFormSection` initialize method"
83
+ end
84
+
85
+ # check to see if the attribute exists and convert string to symbol for hash key
86
+ acceptable_attribute_map = self.class.acceptable_attribute_map
87
+ attributes = attributes.each_with_object({}) { |(k, v), h|
88
+ if (!acceptable_attribute_map.key?(k.to_sym))
89
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DocSpring::TemplateFormSection`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
90
+ end
91
+ h[k.to_sym] = v
92
+ }
93
+
94
+ if attributes.key?(:'id')
95
+ self.id = attributes[:'id']
96
+ else
97
+ self.id = nil
98
+ end
99
+
100
+ if attributes.key?(:'title')
101
+ self.title = attributes[:'title']
102
+ else
103
+ self.title = nil
104
+ end
105
+
106
+ if attributes.key?(:'description')
107
+ self.description = attributes[:'description']
108
+ else
109
+ self.description = nil
110
+ end
111
+
112
+ if attributes.key?(:'field_ids')
113
+ if (value = attributes[:'field_ids']).is_a?(Array)
114
+ self.field_ids = value
115
+ end
116
+ else
117
+ self.field_ids = nil
118
+ end
119
+ end
120
+
121
+ # Show invalid properties with the reasons. Usually used together with valid?
122
+ # @return Array for valid properties with the reasons
123
+ def list_invalid_properties
124
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
125
+ invalid_properties = Array.new
126
+ if @id.nil?
127
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
128
+ end
129
+
130
+ if @title.nil?
131
+ invalid_properties.push('invalid value for "title", title cannot be nil.')
132
+ end
133
+
134
+ if @field_ids.nil?
135
+ invalid_properties.push('invalid value for "field_ids", field_ids cannot be nil.')
136
+ end
137
+
138
+ invalid_properties
139
+ end
140
+
141
+ # Check to see if the all the properties in the model are valid
142
+ # @return true if the model is valid
143
+ def valid?
144
+ warn '[DEPRECATED] the `valid?` method is obsolete'
145
+ return false if @id.nil?
146
+ return false if @title.nil?
147
+ return false if @field_ids.nil?
148
+ true
149
+ end
150
+
151
+ # Custom attribute writer method with validation
152
+ # @param [Object] id Value to be assigned
153
+ def id=(id)
154
+ if id.nil?
155
+ fail ArgumentError, 'id cannot be nil'
156
+ end
157
+
158
+ @id = id
159
+ end
160
+
161
+ # Custom attribute writer method with validation
162
+ # @param [Object] title Value to be assigned
163
+ def title=(title)
164
+ if title.nil?
165
+ fail ArgumentError, 'title cannot be nil'
166
+ end
167
+
168
+ @title = title
169
+ end
170
+
171
+ # Custom attribute writer method with validation
172
+ # @param [Object] field_ids Value to be assigned
173
+ def field_ids=(field_ids)
174
+ if field_ids.nil?
175
+ fail ArgumentError, 'field_ids cannot be nil'
176
+ end
177
+
178
+ @field_ids = field_ids
179
+ end
180
+
181
+ # Checks equality by comparing each attribute.
182
+ # @param [Object] Object to be compared
183
+ def ==(o)
184
+ return true if self.equal?(o)
185
+ self.class == o.class &&
186
+ id == o.id &&
187
+ title == o.title &&
188
+ description == o.description &&
189
+ field_ids == o.field_ids
190
+ end
191
+
192
+ # @see the `==` method
193
+ # @param [Object] Object to be compared
194
+ def eql?(o)
195
+ self == o
196
+ end
197
+
198
+ # Calculates hash code according to all attributes.
199
+ # @return [Integer] Hash code
200
+ def hash
201
+ [id, title, description, field_ids].hash
202
+ end
203
+
204
+ # Builds the object from hash
205
+ # @param [Hash] attributes Model attributes in the form of hash
206
+ # @return [Object] Returns the model itself
207
+ def self.build_from_hash(attributes)
208
+ return nil unless attributes.is_a?(Hash)
209
+ attributes = attributes.transform_keys(&:to_sym)
210
+ # include attributes inherited from allOf parents (the nearest declaration wins)
211
+ map = acceptable_attribute_map
212
+ transformed_hash = {}
213
+ acceptable_openapi_types.each_pair do |key, type|
214
+ if attributes.key?(map[key]) && attributes[map[key]].nil?
215
+ transformed_hash["#{key}"] = nil
216
+ elsif type =~ /\AArray<(.*)>/i
217
+ # check to ensure the input is an array given that the attribute
218
+ # is documented as an array but the input is not
219
+ if attributes[map[key]].is_a?(Array)
220
+ transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
221
+ end
222
+ elsif !attributes[map[key]].nil?
223
+ transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
224
+ end
225
+ end
226
+ # Responses can include enum values added after this client was released, so the enum setters
227
+ # accept any value while the model is built from a response
228
+ allocate.tap do |model|
229
+ model.instance_variable_set(:@_skip_enum_validation, true)
230
+ model.send(:initialize, transformed_hash)
231
+ model.remove_instance_variable(:@_skip_enum_validation)
232
+ end
233
+ end
234
+
235
+ # Returns the object in the form of hash
236
+ # @return [Hash] Returns the object in the form of hash
237
+ def to_hash
238
+ hash = {}
239
+ # include attributes inherited from allOf parents (the nearest declaration wins)
240
+ self.class.acceptable_attribute_map.each_pair do |attr, param|
241
+ value = self.send(attr)
242
+ if value.nil?
243
+ is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
244
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
245
+ end
246
+
247
+ hash[param] = _to_hash(value)
248
+ end
249
+ hash
250
+ end
251
+
252
+ end
253
+
254
+ end
@@ -0,0 +1,252 @@
1
+ =begin
2
+ #DocSpring API
3
+
4
+ #Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
5
+
6
+ The version of the OpenAPI document: v2
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.26.0-DOCSPRING
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module DocSpring
17
+ # A section of the template's web form, with its fields in order.
18
+ class TemplateFormSectionInput < ApiModelBase
19
+ # The section's ID, unique among the template's sections. Any string you choose.
20
+ attr_accessor :id
21
+
22
+ # The section's heading on the web form.
23
+ attr_accessor :title
24
+
25
+ # Text shown under the section's heading. Null for none.
26
+ attr_accessor :description
27
+
28
+ # The IDs of the section's fields (Field's `id`), in the order the web form shows them. A field can be in one section only.
29
+ attr_accessor :field_ids
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'id' => :'id',
35
+ :'title' => :'title',
36
+ :'description' => :'description',
37
+ :'field_ids' => :'field_ids'
38
+ }
39
+ end
40
+
41
+ # Returns attribute mapping this model knows about
42
+ def self.acceptable_attribute_map
43
+ attribute_map
44
+ end
45
+
46
+ # Returns all the JSON keys this model knows about
47
+ def self.acceptable_attributes
48
+ acceptable_attribute_map.values
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.openapi_types
53
+ {
54
+ :'id' => :'String',
55
+ :'title' => :'String',
56
+ :'description' => :'String',
57
+ :'field_ids' => :'Array<Integer>'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ :'description',
65
+ ])
66
+ end
67
+
68
+ # Returns attribute type mapping
69
+ def self.acceptable_openapi_types
70
+ openapi_types
71
+ end
72
+
73
+ # Returns the nullable attributes
74
+ def self.acceptable_openapi_nullable
75
+ openapi_nullable
76
+ end
77
+
78
+ # Initializes the object
79
+ # @param [Hash] attributes Model attributes in the form of hash
80
+ def initialize(attributes = {})
81
+ if (!attributes.is_a?(Hash))
82
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DocSpring::TemplateFormSectionInput` initialize method"
83
+ end
84
+
85
+ # check to see if the attribute exists and convert string to symbol for hash key
86
+ acceptable_attribute_map = self.class.acceptable_attribute_map
87
+ attributes = attributes.each_with_object({}) { |(k, v), h|
88
+ if (!acceptable_attribute_map.key?(k.to_sym))
89
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DocSpring::TemplateFormSectionInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
90
+ end
91
+ h[k.to_sym] = v
92
+ }
93
+
94
+ if attributes.key?(:'id')
95
+ self.id = attributes[:'id']
96
+ else
97
+ self.id = nil
98
+ end
99
+
100
+ if attributes.key?(:'title')
101
+ self.title = attributes[:'title']
102
+ else
103
+ self.title = nil
104
+ end
105
+
106
+ if attributes.key?(:'description')
107
+ self.description = attributes[:'description']
108
+ end
109
+
110
+ if attributes.key?(:'field_ids')
111
+ if (value = attributes[:'field_ids']).is_a?(Array)
112
+ self.field_ids = value
113
+ end
114
+ else
115
+ self.field_ids = nil
116
+ end
117
+ end
118
+
119
+ # Show invalid properties with the reasons. Usually used together with valid?
120
+ # @return Array for valid properties with the reasons
121
+ def list_invalid_properties
122
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
123
+ invalid_properties = Array.new
124
+ if @id.nil?
125
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
126
+ end
127
+
128
+ if @title.nil?
129
+ invalid_properties.push('invalid value for "title", title cannot be nil.')
130
+ end
131
+
132
+ if @field_ids.nil?
133
+ invalid_properties.push('invalid value for "field_ids", field_ids cannot be nil.')
134
+ end
135
+
136
+ invalid_properties
137
+ end
138
+
139
+ # Check to see if the all the properties in the model are valid
140
+ # @return true if the model is valid
141
+ def valid?
142
+ warn '[DEPRECATED] the `valid?` method is obsolete'
143
+ return false if @id.nil?
144
+ return false if @title.nil?
145
+ return false if @field_ids.nil?
146
+ true
147
+ end
148
+
149
+ # Custom attribute writer method with validation
150
+ # @param [Object] id Value to be assigned
151
+ def id=(id)
152
+ if id.nil?
153
+ fail ArgumentError, 'id cannot be nil'
154
+ end
155
+
156
+ @id = id
157
+ end
158
+
159
+ # Custom attribute writer method with validation
160
+ # @param [Object] title Value to be assigned
161
+ def title=(title)
162
+ if title.nil?
163
+ fail ArgumentError, 'title cannot be nil'
164
+ end
165
+
166
+ @title = title
167
+ end
168
+
169
+ # Custom attribute writer method with validation
170
+ # @param [Object] field_ids Value to be assigned
171
+ def field_ids=(field_ids)
172
+ if field_ids.nil?
173
+ fail ArgumentError, 'field_ids cannot be nil'
174
+ end
175
+
176
+ @field_ids = field_ids
177
+ end
178
+
179
+ # Checks equality by comparing each attribute.
180
+ # @param [Object] Object to be compared
181
+ def ==(o)
182
+ return true if self.equal?(o)
183
+ self.class == o.class &&
184
+ id == o.id &&
185
+ title == o.title &&
186
+ description == o.description &&
187
+ field_ids == o.field_ids
188
+ end
189
+
190
+ # @see the `==` method
191
+ # @param [Object] Object to be compared
192
+ def eql?(o)
193
+ self == o
194
+ end
195
+
196
+ # Calculates hash code according to all attributes.
197
+ # @return [Integer] Hash code
198
+ def hash
199
+ [id, title, description, field_ids].hash
200
+ end
201
+
202
+ # Builds the object from hash
203
+ # @param [Hash] attributes Model attributes in the form of hash
204
+ # @return [Object] Returns the model itself
205
+ def self.build_from_hash(attributes)
206
+ return nil unless attributes.is_a?(Hash)
207
+ attributes = attributes.transform_keys(&:to_sym)
208
+ # include attributes inherited from allOf parents (the nearest declaration wins)
209
+ map = acceptable_attribute_map
210
+ transformed_hash = {}
211
+ acceptable_openapi_types.each_pair do |key, type|
212
+ if attributes.key?(map[key]) && attributes[map[key]].nil?
213
+ transformed_hash["#{key}"] = nil
214
+ elsif type =~ /\AArray<(.*)>/i
215
+ # check to ensure the input is an array given that the attribute
216
+ # is documented as an array but the input is not
217
+ if attributes[map[key]].is_a?(Array)
218
+ transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
219
+ end
220
+ elsif !attributes[map[key]].nil?
221
+ transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
222
+ end
223
+ end
224
+ # Responses can include enum values added after this client was released, so the enum setters
225
+ # accept any value while the model is built from a response
226
+ allocate.tap do |model|
227
+ model.instance_variable_set(:@_skip_enum_validation, true)
228
+ model.send(:initialize, transformed_hash)
229
+ model.remove_instance_variable(:@_skip_enum_validation)
230
+ end
231
+ end
232
+
233
+ # Returns the object in the form of hash
234
+ # @return [Hash] Returns the object in the form of hash
235
+ def to_hash
236
+ hash = {}
237
+ # include attributes inherited from allOf parents (the nearest declaration wins)
238
+ self.class.acceptable_attribute_map.each_pair do |attr, param|
239
+ value = self.send(attr)
240
+ if value.nil?
241
+ is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
242
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
243
+ end
244
+
245
+ hash[param] = _to_hash(value)
246
+ end
247
+ hash
248
+ end
249
+
250
+ end
251
+
252
+ end