docspring 4.5.0 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +47 -0
- data/README.md +8 -1
- data/lib/docspring/api/client.rb +504 -4
- data/lib/docspring/api_client.rb +1 -1
- data/lib/docspring/models/ask_support_help_request.rb +217 -0
- data/lib/docspring/models/combined_pdf.rb +1 -1
- data/lib/docspring/models/create_account_email_action_request.rb +1 -1
- data/lib/docspring/models/create_combined_pdf_request.rb +1 -1
- data/lib/docspring/models/create_email_action_request.rb +1 -1
- data/lib/docspring/models/create_submission_request.rb +5 -5
- data/lib/docspring/models/create_template_request.rb +76 -12
- data/lib/docspring/models/email_action.rb +1 -1
- data/lib/docspring/models/error_code.rb +4 -1
- data/lib/docspring/models/error_info.rb +12 -2
- data/lib/docspring/models/field.rb +166 -3
- data/lib/docspring/models/field_input.rb +77 -3
- data/lib/docspring/models/field_override.rb +55 -2
- data/lib/docspring/models/generated_file.rb +2 -2
- data/lib/docspring/models/number_part.rb +42 -0
- data/lib/docspring/models/open_support_ticket_request.rb +363 -0
- data/lib/docspring/models/predefined_field.rb +14 -1
- data/lib/docspring/models/predefined_field_input.rb +14 -1
- data/lib/docspring/models/reply_to_support_ticket_request.rb +217 -0
- data/lib/docspring/models/send_support_feedback_request.rb +363 -0
- data/lib/docspring/models/signature_request.rb +3 -3
- data/lib/docspring/models/signature_request_input.rb +3 -10
- data/lib/docspring/models/submission.rb +3 -3
- data/lib/docspring/models/submission_files.rb +11 -1
- data/lib/docspring/models/submission_input.rb +2 -2
- data/lib/docspring/models/submission_summary.rb +1 -1
- data/lib/docspring/models/support_feedback.rb +239 -0
- data/lib/docspring/models/support_help.rb +316 -0
- data/lib/docspring/models/support_help_source.rb +212 -0
- data/lib/docspring/models/support_help_state.rb +42 -0
- data/lib/docspring/models/support_help_turn.rb +234 -0
- data/lib/docspring/models/support_help_turn_role.rb +41 -0
- data/lib/docspring/models/support_message.rb +301 -0
- data/lib/docspring/models/support_message_author.rb +42 -0
- data/lib/docspring/models/support_report_agent.rb +188 -0
- data/lib/docspring/models/support_report_category.rb +57 -0
- data/lib/docspring/models/support_report_impact.rb +42 -0
- data/lib/docspring/models/support_report_kind.rb +47 -0
- data/lib/docspring/models/support_report_source.rb +41 -0
- data/lib/docspring/models/support_ticket.rb +637 -0
- data/lib/docspring/models/support_ticket_list.rb +200 -0
- data/lib/docspring/models/support_ticket_list_status.rb +42 -0
- data/lib/docspring/models/support_ticket_notifications.rb +197 -0
- data/lib/docspring/models/support_ticket_reply.rb +210 -0
- data/lib/docspring/models/support_ticket_reply_outcome.rb +41 -0
- data/lib/docspring/models/support_ticket_resolution.rb +45 -0
- data/lib/docspring/models/support_ticket_status.rb +43 -0
- data/lib/docspring/models/support_ticket_watch.rb +239 -0
- data/lib/docspring/models/template.rb +154 -15
- data/lib/docspring/models/template_defaults.rb +1 -1
- data/lib/docspring/models/template_defaults_input.rb +1 -1
- data/lib/docspring/models/template_signer_role.rb +265 -0
- data/lib/docspring/models/template_signer_role_input.rb +227 -0
- data/lib/docspring/models/update_account_email_action_request.rb +1 -1
- data/lib/docspring/models/update_email_action_customization_request.rb +1 -1
- data/lib/docspring/models/update_email_action_request.rb +1 -1
- data/lib/docspring/models/update_template_document_request.rb +14 -4
- data/lib/docspring/models/update_template_request.rb +80 -16
- data/lib/docspring/models/validate_submission_request.rb +5 -5
- data/lib/docspring/request_schemas.json +704 -12
- data/lib/docspring/version.rb +1 -1
- data/lib/docspring.rb +29 -0
- metadata +31 -591
- data/.github/workflows/release.yml +0 -80
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -593
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -23
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/Gemfile +0 -9
- data/Gemfile.lock +0 -146
- data/Rakefile +0 -10
- data/docs/AddTemplateFieldsRequest.md +0 -18
- data/docs/AiFieldNamingLanguage.md +0 -15
- data/docs/AuthenticationCheck.md +0 -18
- data/docs/BarcodeSymbology.md +0 -15
- data/docs/CheckCharacter.md +0 -15
- data/docs/Client.md +0 -5890
- data/docs/CombinedFieldType.md +0 -15
- data/docs/CombinedPdf.md +0 -44
- data/docs/CombinedPdfFiles.md +0 -18
- data/docs/CombinedPdfList.md +0 -20
- data/docs/CombinedPdfSource.md +0 -26
- data/docs/CombinedPdfSourceInput.md +0 -88
- data/docs/CombinedPdfSourcePdf.md +0 -20
- data/docs/CombinedPdfSourceType.md +0 -15
- data/docs/CombinedPdfState.md +0 -15
- data/docs/CopyTemplateRequest.md +0 -22
- data/docs/CreateAccountEmailActionRequest.md +0 -54
- data/docs/CreateCombinedPdfRequest.md +0 -26
- data/docs/CreateCustomFileFromUploadRequest.md +0 -18
- data/docs/CreateEmailActionRequest.md +0 -50
- data/docs/CreateEmailDomainRequest.md +0 -18
- data/docs/CreateFolderRequest.md +0 -20
- data/docs/CreateSignatureRequestEventRequest.md +0 -24
- data/docs/CreateSignatureRequestTokenRequest.md +0 -18
- data/docs/CreateSubmissionBatchRequest.md +0 -28
- data/docs/CreateSubmissionRequest.md +0 -56
- data/docs/CreateTemplatePreviewRequest.md +0 -18
- data/docs/CreateTemplateRequest.md +0 -130
- data/docs/CreateWebhookRequest.md +0 -38
- data/docs/CustomFile.md +0 -28
- data/docs/CustomFileList.md +0 -20
- data/docs/CustomFileSourcePdf.md +0 -20
- data/docs/DnsRecordType.md +0 -15
- data/docs/EmailAction.md +0 -76
- data/docs/EmailActionConditions.md +0 -20
- data/docs/EmailActionConditionsInput.md +0 -20
- data/docs/EmailActionCustomization.md +0 -36
- data/docs/EmailActionDelivery.md +0 -15
- data/docs/EmailActionFileFormats.md +0 -15
- data/docs/EmailActionList.md +0 -20
- data/docs/EmailActionSetting.md +0 -15
- data/docs/EmailActionSubmissionType.md +0 -15
- data/docs/EmailActionTestEmail.md +0 -18
- data/docs/EmailDomain.md +0 -38
- data/docs/EmailDomainDnsRecord.md +0 -24
- data/docs/EmailDomainDnsRecordPurpose.md +0 -15
- data/docs/EmailDomainList.md +0 -20
- data/docs/EmailDomainRecordState.md +0 -15
- data/docs/EmailDomainState.md +0 -15
- data/docs/ErrorCode.md +0 -15
- data/docs/ErrorDetail.md +0 -26
- data/docs/ErrorInfo.md +0 -42
- data/docs/ErrorResponse.md +0 -18
- data/docs/ExpirationInterval.md +0 -15
- data/docs/Field.md +0 -198
- data/docs/FieldComparisonCondition.md +0 -22
- data/docs/FieldComparisonOperator.md +0 -15
- data/docs/FieldDependency.md +0 -22
- data/docs/FieldDependencyInput.md +0 -22
- data/docs/FieldDisplayType.md +0 -15
- data/docs/FieldEqualsCondition.md +0 -22
- data/docs/FieldEqualsOperator.md +0 -15
- data/docs/FieldGroup.md +0 -32
- data/docs/FieldGroupInput.md +0 -30
- data/docs/FieldGroupType.md +0 -15
- data/docs/FieldInCondition.md +0 -22
- data/docs/FieldInput.md +0 -196
- data/docs/FieldOverride.md +0 -142
- data/docs/FieldPresenceCondition.md +0 -20
- data/docs/FieldPresenceOperator.md +0 -15
- data/docs/FieldRangeCondition.md +0 -24
- data/docs/FieldReimportState.md +0 -15
- data/docs/FieldSetupLogic.md +0 -15
- data/docs/FieldSetupNaming.md +0 -15
- data/docs/FieldSetupSource.md +0 -15
- data/docs/FieldType.md +0 -15
- data/docs/Folder.md +0 -28
- data/docs/FolderList.md +0 -20
- data/docs/GenerateFilesFormat.md +0 -15
- data/docs/GenerateSubmissionFilesRequest.md +0 -18
- data/docs/GeneratedFile.md +0 -32
- data/docs/GeneratedFileState.md +0 -15
- data/docs/HtmlEngineOptions.md +0 -36
- data/docs/HtmlEngineOptionsInput.md +0 -36
- data/docs/ImageGravity.md +0 -15
- data/docs/ImageScaleType.md +0 -15
- data/docs/ModelCodeLanguage.md +0 -15
- data/docs/MoveFolderRequest.md +0 -18
- data/docs/MoveTemplateRequest.md +0 -18
- data/docs/NumberConditionType.md +0 -15
- data/docs/OutputFormat.md +0 -15
- data/docs/PageFormat.md +0 -15
- data/docs/PageImage.md +0 -34
- data/docs/PageImages.md +0 -24
- data/docs/PredefinedField.md +0 -30
- data/docs/PredefinedFieldInput.md +0 -30
- data/docs/PublishTemplateVersionRequest.md +0 -20
- data/docs/RemoveTemplateFieldsRequest.md +0 -18
- data/docs/RenameFolderRequest.md +0 -18
- data/docs/ReorderTemplateFieldsRequest.md +0 -18
- data/docs/RestoreTemplateVersionRequest.md +0 -18
- data/docs/SendAccountEmailActionTestEmailRequest.md +0 -18
- data/docs/ShapeType.md +0 -15
- data/docs/SignatureRequest.md +0 -74
- data/docs/SignatureRequestAuthSecondFactorType.md +0 -15
- data/docs/SignatureRequestAuthType.md +0 -15
- data/docs/SignatureRequestEmailAttachments.md +0 -15
- data/docs/SignatureRequestEmailStatus.md +0 -15
- data/docs/SignatureRequestEvent.md +0 -32
- data/docs/SignatureRequestEventType.md +0 -15
- data/docs/SignatureRequestInput.md +0 -50
- data/docs/SignatureRequestMessageType.md +0 -15
- data/docs/SignatureRequestReminders.md +0 -20
- data/docs/SignatureRequestState.md +0 -15
- data/docs/SignatureRequestToken.md +0 -30
- data/docs/SignatureRequestTokenType.md +0 -15
- data/docs/SigningOrder.md +0 -15
- data/docs/StringConditionType.md +0 -15
- data/docs/Submission.md +0 -68
- data/docs/SubmissionAction.md +0 -30
- data/docs/SubmissionActionState.md +0 -15
- data/docs/SubmissionActionType.md +0 -15
- data/docs/SubmissionBatch.md +0 -38
- data/docs/SubmissionBatchState.md +0 -15
- data/docs/SubmissionFiles.md +0 -28
- data/docs/SubmissionInput.md +0 -40
- data/docs/SubmissionList.md +0 -20
- data/docs/SubmissionSource.md +0 -15
- data/docs/SubmissionSourcePdf.md +0 -20
- data/docs/SubmissionState.md +0 -15
- data/docs/SubmissionSummary.md +0 -54
- data/docs/SubmissionValidation.md +0 -24
- data/docs/Template.md +0 -142
- data/docs/TemplateActor.md +0 -26
- data/docs/TemplateActorType.md +0 -15
- data/docs/TemplateDefaults.md +0 -56
- data/docs/TemplateDefaultsInput.md +0 -56
- data/docs/TemplateDiff.md +0 -30
- data/docs/TemplateDiffSummary.md +0 -28
- data/docs/TemplateDocument.md +0 -40
- data/docs/TemplateDocumentState.md +0 -15
- data/docs/TemplateDocumentSummary.md +0 -24
- data/docs/TemplateFieldChange.md +0 -24
- data/docs/TemplateFieldChanges.md +0 -24
- data/docs/TemplateFieldDependency.md +0 -26
- data/docs/TemplateFieldDependencyAction.md +0 -15
- data/docs/TemplateFieldDependencyCondition.md +0 -24
- data/docs/TemplateFieldDependencyConditionInput.md +0 -93
- data/docs/TemplateFieldDependencyInput.md +0 -26
- data/docs/TemplateFieldDependencyMatch.md +0 -15
- data/docs/TemplateFieldDependencyOperator.md +0 -15
- data/docs/TemplateFieldLogicStatus.md +0 -15
- data/docs/TemplateFieldMove.md +0 -22
- data/docs/TemplateFields.md +0 -22
- data/docs/TemplateFormMode.md +0 -15
- data/docs/TemplateFormSection.md +0 -24
- data/docs/TemplateFormSectionInput.md +0 -24
- data/docs/TemplateModelCode.md +0 -22
- data/docs/TemplatePageAiError.md +0 -15
- data/docs/TemplatePageAiNamingStatus.md +0 -15
- data/docs/TemplatePageFieldsStatus.md +0 -15
- data/docs/TemplatePageImageStatus.md +0 -15
- data/docs/TemplatePageImages.md +0 -24
- data/docs/TemplatePageProcessingStatus.md +0 -26
- data/docs/TemplatePreview.md +0 -32
- data/docs/TemplatePreviewState.md +0 -15
- data/docs/TemplateSourcePdf.md +0 -24
- data/docs/TemplateSummary.md +0 -46
- data/docs/TemplateSummaryList.md +0 -20
- data/docs/TemplateType.md +0 -15
- data/docs/TemplateVersion.md +0 -24
- data/docs/TemplateVersionType.md +0 -15
- data/docs/TextAlignment.md +0 -15
- data/docs/TextOverflow.md +0 -15
- data/docs/TextVerticalAlignment.md +0 -15
- data/docs/Typeface.md +0 -15
- data/docs/UpdateAccountEmailActionRequest.md +0 -54
- data/docs/UpdateEmailActionCustomizationRequest.md +0 -46
- data/docs/UpdateEmailActionRequest.md +0 -50
- data/docs/UpdateSignatureRequestRequest.md +0 -34
- data/docs/UpdateTemplateDocumentRequest.md +0 -26
- data/docs/UpdateTemplateFieldsRequest.md +0 -18
- data/docs/UpdateTemplateRequest.md +0 -114
- data/docs/UpdateWebhookRequest.md +0 -38
- data/docs/UploadMethod.md +0 -15
- data/docs/UploadPresign.md +0 -24
- data/docs/UrlSourcePdf.md +0 -20
- data/docs/ValidateSubmissionRequest.md +0 -56
- data/docs/Webhook.md +0 -56
- data/docs/WebhookEventType.md +0 -15
- data/docs/WebhookList.md +0 -20
- data/docs/WebhookMode.md +0 -15
- data/docspring.gemspec +0 -40
- data/spec/api/client_spec.rb +0 -1103
- data/spec/models/add_template_fields_request_spec.rb +0 -36
- data/spec/models/ai_field_naming_language_spec.rb +0 -30
- data/spec/models/authentication_check_spec.rb +0 -36
- data/spec/models/barcode_symbology_spec.rb +0 -30
- data/spec/models/check_character_spec.rb +0 -30
- data/spec/models/combined_field_type_spec.rb +0 -30
- data/spec/models/combined_pdf_files_spec.rb +0 -36
- data/spec/models/combined_pdf_list_spec.rb +0 -42
- data/spec/models/combined_pdf_source_input_spec.rb +0 -44
- data/spec/models/combined_pdf_source_pdf_spec.rb +0 -42
- data/spec/models/combined_pdf_source_spec.rb +0 -60
- data/spec/models/combined_pdf_source_type_spec.rb +0 -30
- data/spec/models/combined_pdf_spec.rb +0 -114
- data/spec/models/combined_pdf_state_spec.rb +0 -30
- data/spec/models/copy_template_request_spec.rb +0 -48
- data/spec/models/create_account_email_action_request_spec.rb +0 -144
- data/spec/models/create_combined_pdf_request_spec.rb +0 -60
- data/spec/models/create_custom_file_from_upload_request_spec.rb +0 -36
- data/spec/models/create_email_action_request_spec.rb +0 -132
- data/spec/models/create_email_domain_request_spec.rb +0 -36
- data/spec/models/create_folder_request_spec.rb +0 -42
- data/spec/models/create_signature_request_event_request_spec.rb +0 -54
- data/spec/models/create_signature_request_token_request_spec.rb +0 -36
- data/spec/models/create_submission_batch_request_spec.rb +0 -66
- data/spec/models/create_submission_request_spec.rb +0 -150
- data/spec/models/create_template_preview_request_spec.rb +0 -36
- data/spec/models/create_template_request_spec.rb +0 -372
- data/spec/models/create_webhook_request_spec.rb +0 -96
- data/spec/models/custom_file_list_spec.rb +0 -42
- data/spec/models/custom_file_source_pdf_spec.rb +0 -42
- data/spec/models/custom_file_spec.rb +0 -66
- data/spec/models/dns_record_type_spec.rb +0 -30
- data/spec/models/email_action_conditions_input_spec.rb +0 -42
- data/spec/models/email_action_conditions_spec.rb +0 -42
- data/spec/models/email_action_customization_spec.rb +0 -90
- data/spec/models/email_action_delivery_spec.rb +0 -30
- data/spec/models/email_action_file_formats_spec.rb +0 -30
- data/spec/models/email_action_list_spec.rb +0 -42
- data/spec/models/email_action_setting_spec.rb +0 -30
- data/spec/models/email_action_spec.rb +0 -210
- data/spec/models/email_action_submission_type_spec.rb +0 -30
- data/spec/models/email_action_test_email_spec.rb +0 -36
- data/spec/models/email_domain_dns_record_purpose_spec.rb +0 -30
- data/spec/models/email_domain_dns_record_spec.rb +0 -54
- data/spec/models/email_domain_list_spec.rb +0 -42
- data/spec/models/email_domain_record_state_spec.rb +0 -30
- data/spec/models/email_domain_spec.rb +0 -96
- data/spec/models/email_domain_state_spec.rb +0 -30
- data/spec/models/error_code_spec.rb +0 -30
- data/spec/models/error_detail_spec.rb +0 -60
- data/spec/models/error_info_spec.rb +0 -108
- data/spec/models/error_response_spec.rb +0 -36
- data/spec/models/expiration_interval_spec.rb +0 -30
- data/spec/models/field_comparison_condition_spec.rb +0 -48
- data/spec/models/field_comparison_operator_spec.rb +0 -30
- data/spec/models/field_dependency_input_spec.rb +0 -48
- data/spec/models/field_dependency_spec.rb +0 -48
- data/spec/models/field_display_type_spec.rb +0 -30
- data/spec/models/field_equals_condition_spec.rb +0 -48
- data/spec/models/field_equals_operator_spec.rb +0 -30
- data/spec/models/field_group_input_spec.rb +0 -72
- data/spec/models/field_group_spec.rb +0 -78
- data/spec/models/field_group_type_spec.rb +0 -30
- data/spec/models/field_in_condition_spec.rb +0 -48
- data/spec/models/field_input_spec.rb +0 -570
- data/spec/models/field_override_spec.rb +0 -408
- data/spec/models/field_presence_condition_spec.rb +0 -42
- data/spec/models/field_presence_operator_spec.rb +0 -30
- data/spec/models/field_range_condition_spec.rb +0 -54
- data/spec/models/field_reimport_state_spec.rb +0 -30
- data/spec/models/field_setup_logic_spec.rb +0 -30
- data/spec/models/field_setup_naming_spec.rb +0 -30
- data/spec/models/field_setup_source_spec.rb +0 -30
- data/spec/models/field_spec.rb +0 -576
- data/spec/models/field_type_spec.rb +0 -30
- data/spec/models/folder_list_spec.rb +0 -42
- data/spec/models/folder_spec.rb +0 -66
- data/spec/models/generate_files_format_spec.rb +0 -30
- data/spec/models/generate_submission_files_request_spec.rb +0 -36
- data/spec/models/generated_file_spec.rb +0 -78
- data/spec/models/generated_file_state_spec.rb +0 -30
- data/spec/models/html_engine_options_input_spec.rb +0 -90
- data/spec/models/html_engine_options_spec.rb +0 -90
- data/spec/models/image_gravity_spec.rb +0 -30
- data/spec/models/image_scale_type_spec.rb +0 -30
- data/spec/models/model_code_language_spec.rb +0 -30
- data/spec/models/move_folder_request_spec.rb +0 -36
- data/spec/models/move_template_request_spec.rb +0 -36
- data/spec/models/number_condition_type_spec.rb +0 -30
- data/spec/models/output_format_spec.rb +0 -30
- data/spec/models/page_format_spec.rb +0 -30
- data/spec/models/page_image_spec.rb +0 -84
- data/spec/models/page_images_spec.rb +0 -54
- data/spec/models/predefined_field_input_spec.rb +0 -72
- data/spec/models/predefined_field_spec.rb +0 -72
- data/spec/models/publish_template_version_request_spec.rb +0 -42
- data/spec/models/remove_template_fields_request_spec.rb +0 -36
- data/spec/models/rename_folder_request_spec.rb +0 -36
- data/spec/models/reorder_template_fields_request_spec.rb +0 -36
- data/spec/models/restore_template_version_request_spec.rb +0 -36
- data/spec/models/send_account_email_action_test_email_request_spec.rb +0 -36
- data/spec/models/shape_type_spec.rb +0 -30
- data/spec/models/signature_request_auth_second_factor_type_spec.rb +0 -30
- data/spec/models/signature_request_auth_type_spec.rb +0 -30
- data/spec/models/signature_request_email_attachments_spec.rb +0 -30
- data/spec/models/signature_request_email_status_spec.rb +0 -30
- data/spec/models/signature_request_event_spec.rb +0 -78
- data/spec/models/signature_request_event_type_spec.rb +0 -30
- data/spec/models/signature_request_input_spec.rb +0 -132
- data/spec/models/signature_request_message_type_spec.rb +0 -30
- data/spec/models/signature_request_reminders_spec.rb +0 -42
- data/spec/models/signature_request_spec.rb +0 -204
- data/spec/models/signature_request_state_spec.rb +0 -30
- data/spec/models/signature_request_token_spec.rb +0 -72
- data/spec/models/signature_request_token_type_spec.rb +0 -30
- data/spec/models/signing_order_spec.rb +0 -30
- data/spec/models/string_condition_type_spec.rb +0 -30
- data/spec/models/submission_action_spec.rb +0 -72
- data/spec/models/submission_action_state_spec.rb +0 -30
- data/spec/models/submission_action_type_spec.rb +0 -30
- data/spec/models/submission_batch_spec.rb +0 -96
- data/spec/models/submission_batch_state_spec.rb +0 -30
- data/spec/models/submission_files_spec.rb +0 -66
- data/spec/models/submission_input_spec.rb +0 -102
- data/spec/models/submission_list_spec.rb +0 -42
- data/spec/models/submission_source_pdf_spec.rb +0 -42
- data/spec/models/submission_source_spec.rb +0 -30
- data/spec/models/submission_spec.rb +0 -186
- data/spec/models/submission_state_spec.rb +0 -30
- data/spec/models/submission_summary_spec.rb +0 -144
- data/spec/models/submission_validation_spec.rb +0 -54
- data/spec/models/template_actor_spec.rb +0 -60
- data/spec/models/template_actor_type_spec.rb +0 -30
- data/spec/models/template_defaults_input_spec.rb +0 -150
- data/spec/models/template_defaults_spec.rb +0 -150
- data/spec/models/template_diff_spec.rb +0 -72
- data/spec/models/template_diff_summary_spec.rb +0 -66
- data/spec/models/template_document_spec.rb +0 -102
- data/spec/models/template_document_state_spec.rb +0 -30
- data/spec/models/template_document_summary_spec.rb +0 -54
- data/spec/models/template_field_change_spec.rb +0 -54
- data/spec/models/template_field_changes_spec.rb +0 -54
- data/spec/models/template_field_dependency_action_spec.rb +0 -30
- data/spec/models/template_field_dependency_condition_input_spec.rb +0 -44
- data/spec/models/template_field_dependency_condition_spec.rb +0 -54
- data/spec/models/template_field_dependency_input_spec.rb +0 -60
- data/spec/models/template_field_dependency_match_spec.rb +0 -30
- data/spec/models/template_field_dependency_operator_spec.rb +0 -30
- data/spec/models/template_field_dependency_spec.rb +0 -60
- data/spec/models/template_field_logic_status_spec.rb +0 -30
- data/spec/models/template_field_move_spec.rb +0 -48
- data/spec/models/template_fields_spec.rb +0 -48
- data/spec/models/template_form_mode_spec.rb +0 -30
- data/spec/models/template_form_section_input_spec.rb +0 -54
- data/spec/models/template_form_section_spec.rb +0 -54
- data/spec/models/template_model_code_spec.rb +0 -48
- data/spec/models/template_page_ai_error_spec.rb +0 -30
- data/spec/models/template_page_ai_naming_status_spec.rb +0 -30
- data/spec/models/template_page_fields_status_spec.rb +0 -30
- data/spec/models/template_page_image_status_spec.rb +0 -30
- data/spec/models/template_page_images_spec.rb +0 -54
- data/spec/models/template_page_processing_status_spec.rb +0 -60
- data/spec/models/template_preview_spec.rb +0 -78
- data/spec/models/template_preview_state_spec.rb +0 -30
- data/spec/models/template_source_pdf_spec.rb +0 -54
- data/spec/models/template_spec.rb +0 -408
- data/spec/models/template_summary_list_spec.rb +0 -42
- data/spec/models/template_summary_spec.rb +0 -120
- data/spec/models/template_type_spec.rb +0 -30
- data/spec/models/template_version_spec.rb +0 -54
- data/spec/models/template_version_type_spec.rb +0 -30
- data/spec/models/text_alignment_spec.rb +0 -30
- data/spec/models/text_overflow_spec.rb +0 -30
- data/spec/models/text_vertical_alignment_spec.rb +0 -30
- data/spec/models/typeface_spec.rb +0 -30
- data/spec/models/update_account_email_action_request_spec.rb +0 -144
- data/spec/models/update_email_action_customization_request_spec.rb +0 -120
- data/spec/models/update_email_action_request_spec.rb +0 -132
- data/spec/models/update_signature_request_request_spec.rb +0 -84
- data/spec/models/update_template_document_request_spec.rb +0 -60
- data/spec/models/update_template_fields_request_spec.rb +0 -36
- data/spec/models/update_template_request_spec.rb +0 -324
- data/spec/models/update_webhook_request_spec.rb +0 -96
- data/spec/models/upload_method_spec.rb +0 -30
- data/spec/models/upload_presign_spec.rb +0 -54
- data/spec/models/url_source_pdf_spec.rb +0 -42
- data/spec/models/validate_submission_request_spec.rb +0 -150
- data/spec/models/webhook_event_type_spec.rb +0 -30
- data/spec/models/webhook_list_spec.rb +0 -42
- data/spec/models/webhook_mode_spec.rb +0 -30
- data/spec/models/webhook_spec.rb +0 -150
- data/spec/spec_helper.rb +0 -111
|
@@ -52,6 +52,12 @@ module DocSpring
|
|
|
52
52
|
# String fields only: a comma-separated list of the values the field accepts. It's added to the template's data schema as an `enum`, forms show it as a select list, and an `editable` field becomes a dropdown. Shared by every field with the same `name`.
|
|
53
53
|
attr_accessor :option_list
|
|
54
54
|
|
|
55
|
+
# With `option_list`: the label forms show for each option, keyed by its value, such as `{"head_of_household": "Head of household"}`. The data, the API and webhooks keep the value, and the PDF prints it unless `print_option_labels` is set. An option without a label shows its value, or its sentence case when the options are lowercase words joined by underscores (`head_of_household` shows as "Head of household"). The template's data schema has them as `x-option-labels`. Each key must be one of the options, and each label must have some text. Shared by every field with the same `name`.
|
|
56
|
+
attr_accessor :option_labels
|
|
57
|
+
|
|
58
|
+
# Text display, with `option_labels`: the PDF prints the chosen option's label instead of its value, and an `editable` field's dropdown lists the labels. Shared by every field with the same `name`.
|
|
59
|
+
attr_accessor :print_option_labels
|
|
60
|
+
|
|
55
61
|
# Combined fields only: a comma-separated list of the names of the fields whose values are combined, in order. Shared by every field with the same `name`.
|
|
56
62
|
attr_accessor :combined_field_names
|
|
57
63
|
|
|
@@ -91,6 +97,15 @@ module DocSpring
|
|
|
91
97
|
# Barcode fields only: the barcode format, which the value must match. `code_128` and `pdf417` take any ASCII text; `code_39` and `code_93` take capital letters, digits, spaces and `- . $ / + %`; `code_25` takes digits; `ean_13` takes 12 digits, `ean_8` 7 digits and `upc_a` 11 digits (the check digit is added). Shared by every field with the same `name`.
|
|
92
98
|
attr_accessor :barcode_symbology
|
|
93
99
|
|
|
100
|
+
# With `comb`: the value fills the last boxes of the comb fields with this name, padded on the left with spaces, or with zeros with `comb_pad_with_zeros`, as amounts are written on paper forms. A number with `decimal_places` in one row of boxes lines up on its decimal point, which takes no box: the decimal places fill the last boxes. Date fields ignore it: a date prints in its format. Shared by every field with the same `name`.
|
|
101
|
+
attr_accessor :comb_fill_from_right
|
|
102
|
+
|
|
103
|
+
# With `comb_fill_from_right`: pads the value on the left with zeros instead of spaces, such as `000123`. A negative number keeps its minus sign in the first box. Shared by every field with the same `name`.
|
|
104
|
+
attr_accessor :comb_pad_with_zeros
|
|
105
|
+
|
|
106
|
+
# With `comb`, for string fields: only the value's digits print, one in each box, and any punctuation is left out, so `123-45-6789` fills the 9 boxes of an SSN. The template's data schema accepts as many digits as the boxes hold, with anything but letters between them. Number and date fields ignore it. Shared by every field with the same `name`.
|
|
107
|
+
attr_accessor :print_digits_only
|
|
108
|
+
|
|
94
109
|
# Leaves the field off the PDF. It stays in the template's data schema (marked `x-hidden`) and on forms, so other fields, such as combined fields, can use its value. A hidden static check mark or shape isn't printed.
|
|
95
110
|
attr_accessor :hidden
|
|
96
111
|
|
|
@@ -184,10 +199,10 @@ module DocSpring
|
|
|
184
199
|
# Text display only: splits the field into `comb_number_of_cells` boxes of equal width and prints one character, centered, in each.
|
|
185
200
|
attr_accessor :comb
|
|
186
201
|
|
|
187
|
-
# With `comb`: how many boxes the field has. The value's maximum length in the template's data schema is
|
|
202
|
+
# With `comb`: how many boxes the field has, up to 10,000. The value's maximum length in the template's data schema is the furthest that a comb field of its name reaches: its `comb_value_offset` plus its boxes. With `print_digits_only`, that many digits. A number field is split from its printed form (with `decimal_places`), and a number with a digit that no box prints (more digits than the boxes, or a digit where the offsets leave a gap) is a data error.
|
|
188
203
|
attr_accessor :comb_number_of_cells
|
|
189
204
|
|
|
190
|
-
# With `comb`: the
|
|
205
|
+
# With `comb`: how many boxes of the value's row come before this field, from 0 to 10,000. The comb fields that share a name make one row of boxes, and each prints the row's characters from its offset. For an SSN printed in boxes of 3, 2 and 4 digits, three fields named `ssn` use offsets 0, 3 and 5. The fields that print a number's whole part (`number_part`) make a row of their own, and so do the ones that print its decimal places.
|
|
191
206
|
attr_accessor :comb_value_offset
|
|
192
207
|
|
|
193
208
|
# Shape display only: `square`, `rectangle`, `circle`, `ellipse`, `triangle` or `polygon`. A square or circle uses the smaller of `width` and `height`.
|
|
@@ -274,12 +289,18 @@ module DocSpring
|
|
|
274
289
|
# Number fields with text display: prints the number with this many decimal places, from 0 (rounds to a whole number) to 99. Empty prints the number as it was sent.
|
|
275
290
|
attr_accessor :decimal_places
|
|
276
291
|
|
|
292
|
+
# Number fields with text display: which part of the number this field prints. `all` prints the whole number, `whole` only the part before the decimal point (with a minus sign) and `decimals` only the decimal places. For an amount printed as `$ ____ . __`, two fields with the same name: one `whole`, and one `decimals` with `decimal_places` 2. The number is rounded once, to the `decimals` field's decimal places (2 when it sets none).
|
|
293
|
+
attr_accessor :number_part
|
|
294
|
+
|
|
277
295
|
# Image fields only: how the image is resized to the field. `fit` keeps its proportions and fits it inside the field, which can leave empty space; `fill` keeps its proportions and crops it to fill the field; `stretch` stretches it to the field's size. Signatures and initials always fit.
|
|
278
296
|
attr_accessor :image_scale_type
|
|
279
297
|
|
|
280
298
|
# Image, signature and initials fields: where the image sits in the field with `fit`, or which part is kept with `fill`: `NorthWest` (top left), `North`, `NorthEast`, `West`, `Center`, `East`, `SouthWest`, `South` or `SouthEast` (bottom right). It also aligns typed signatures, and isn't used with `stretch`.
|
|
281
299
|
attr_accessor :image_gravity
|
|
282
300
|
|
|
301
|
+
# Who fills in or signs the field when a submission has signature requests: one of the template's `signer_roles`, by its key, or `sender` for a field that submission data fills in, which no signer is asked for. Null when it has no role: a submission's only signer fills it in when data doesn't, and with two or more signature requests one of them has to list it in its `fields`. In an HTML or Word template, a field whose tag gives it a role (`{% form_field tenant_name, role: tenant %}`) has that one, which only the code can change. Shared by every field with the same `name`.
|
|
302
|
+
attr_accessor :signer_role
|
|
303
|
+
|
|
283
304
|
# The field's own conditional logic rule: when other fields' values meet its conditions, the field is shown, made required, or both. Null when it has none. The template's rules (`field_dependencies`) can apply to the field too. Shared by every field with the same `name`.
|
|
284
305
|
attr_accessor :dependencies
|
|
285
306
|
|
|
@@ -323,6 +344,8 @@ module DocSpring
|
|
|
323
344
|
:'metadata' => :'metadata',
|
|
324
345
|
:'required' => :'required',
|
|
325
346
|
:'option_list' => :'option_list',
|
|
347
|
+
:'option_labels' => :'option_labels',
|
|
348
|
+
:'print_option_labels' => :'print_option_labels',
|
|
326
349
|
:'combined_field_names' => :'combined_field_names',
|
|
327
350
|
:'combined_field_type' => :'combined_field_type',
|
|
328
351
|
:'combined_field_separator' => :'combined_field_separator',
|
|
@@ -336,6 +359,9 @@ module DocSpring
|
|
|
336
359
|
:'signature_allow_draw' => :'signature_allow_draw',
|
|
337
360
|
:'signature_allow_type' => :'signature_allow_type',
|
|
338
361
|
:'barcode_symbology' => :'barcode_symbology',
|
|
362
|
+
:'comb_fill_from_right' => :'comb_fill_from_right',
|
|
363
|
+
:'comb_pad_with_zeros' => :'comb_pad_with_zeros',
|
|
364
|
+
:'print_digits_only' => :'print_digits_only',
|
|
339
365
|
:'hidden' => :'hidden',
|
|
340
366
|
:'x' => :'x',
|
|
341
367
|
:'y' => :'y',
|
|
@@ -397,8 +423,10 @@ module DocSpring
|
|
|
397
423
|
:'invert_boolean_condition' => :'invert_boolean_condition',
|
|
398
424
|
:'currency' => :'currency',
|
|
399
425
|
:'decimal_places' => :'decimal_places',
|
|
426
|
+
:'number_part' => :'number_part',
|
|
400
427
|
:'image_scale_type' => :'image_scale_type',
|
|
401
428
|
:'image_gravity' => :'image_gravity',
|
|
429
|
+
:'signer_role' => :'signer_role',
|
|
402
430
|
:'dependencies' => :'dependencies',
|
|
403
431
|
:'id' => :'id'
|
|
404
432
|
}
|
|
@@ -429,6 +457,8 @@ module DocSpring
|
|
|
429
457
|
:'metadata' => :'String',
|
|
430
458
|
:'required' => :'Boolean',
|
|
431
459
|
:'option_list' => :'String',
|
|
460
|
+
:'option_labels' => :'Hash<String, String>',
|
|
461
|
+
:'print_option_labels' => :'Boolean',
|
|
432
462
|
:'combined_field_names' => :'String',
|
|
433
463
|
:'combined_field_type' => :'CombinedFieldType',
|
|
434
464
|
:'combined_field_separator' => :'String',
|
|
@@ -442,6 +472,9 @@ module DocSpring
|
|
|
442
472
|
:'signature_allow_draw' => :'Boolean',
|
|
443
473
|
:'signature_allow_type' => :'Boolean',
|
|
444
474
|
:'barcode_symbology' => :'BarcodeSymbology',
|
|
475
|
+
:'comb_fill_from_right' => :'Boolean',
|
|
476
|
+
:'comb_pad_with_zeros' => :'Boolean',
|
|
477
|
+
:'print_digits_only' => :'Boolean',
|
|
445
478
|
:'hidden' => :'Boolean',
|
|
446
479
|
:'x' => :'Float',
|
|
447
480
|
:'y' => :'Float',
|
|
@@ -503,8 +536,10 @@ module DocSpring
|
|
|
503
536
|
:'invert_boolean_condition' => :'Boolean',
|
|
504
537
|
:'currency' => :'Boolean',
|
|
505
538
|
:'decimal_places' => :'Integer',
|
|
539
|
+
:'number_part' => :'NumberPart',
|
|
506
540
|
:'image_scale_type' => :'ImageScaleType',
|
|
507
541
|
:'image_gravity' => :'ImageGravity',
|
|
542
|
+
:'signer_role' => :'String',
|
|
508
543
|
:'dependencies' => :'FieldDependencyInput',
|
|
509
544
|
:'id' => :'Integer'
|
|
510
545
|
}
|
|
@@ -516,6 +551,7 @@ module DocSpring
|
|
|
516
551
|
:'name',
|
|
517
552
|
:'default',
|
|
518
553
|
:'option_list',
|
|
554
|
+
:'option_labels',
|
|
519
555
|
:'minimum',
|
|
520
556
|
:'maximum',
|
|
521
557
|
:'include_time',
|
|
@@ -541,6 +577,7 @@ module DocSpring
|
|
|
541
577
|
:'number_condition_range_min',
|
|
542
578
|
:'number_condition_range_max',
|
|
543
579
|
:'decimal_places',
|
|
580
|
+
:'signer_role',
|
|
544
581
|
:'dependencies',
|
|
545
582
|
])
|
|
546
583
|
end
|
|
@@ -619,6 +656,16 @@ module DocSpring
|
|
|
619
656
|
self.option_list = attributes[:'option_list']
|
|
620
657
|
end
|
|
621
658
|
|
|
659
|
+
if attributes.key?(:'option_labels')
|
|
660
|
+
if (value = attributes[:'option_labels']).is_a?(Hash) || value.nil?
|
|
661
|
+
self.option_labels = value
|
|
662
|
+
end
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
if attributes.key?(:'print_option_labels')
|
|
666
|
+
self.print_option_labels = attributes[:'print_option_labels']
|
|
667
|
+
end
|
|
668
|
+
|
|
622
669
|
if attributes.key?(:'combined_field_names')
|
|
623
670
|
self.combined_field_names = attributes[:'combined_field_names']
|
|
624
671
|
end
|
|
@@ -671,6 +718,18 @@ module DocSpring
|
|
|
671
718
|
self.barcode_symbology = attributes[:'barcode_symbology']
|
|
672
719
|
end
|
|
673
720
|
|
|
721
|
+
if attributes.key?(:'comb_fill_from_right')
|
|
722
|
+
self.comb_fill_from_right = attributes[:'comb_fill_from_right']
|
|
723
|
+
end
|
|
724
|
+
|
|
725
|
+
if attributes.key?(:'comb_pad_with_zeros')
|
|
726
|
+
self.comb_pad_with_zeros = attributes[:'comb_pad_with_zeros']
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
if attributes.key?(:'print_digits_only')
|
|
730
|
+
self.print_digits_only = attributes[:'print_digits_only']
|
|
731
|
+
end
|
|
732
|
+
|
|
674
733
|
if attributes.key?(:'hidden')
|
|
675
734
|
self.hidden = attributes[:'hidden']
|
|
676
735
|
end
|
|
@@ -915,6 +974,10 @@ module DocSpring
|
|
|
915
974
|
self.decimal_places = attributes[:'decimal_places']
|
|
916
975
|
end
|
|
917
976
|
|
|
977
|
+
if attributes.key?(:'number_part')
|
|
978
|
+
self.number_part = attributes[:'number_part']
|
|
979
|
+
end
|
|
980
|
+
|
|
918
981
|
if attributes.key?(:'image_scale_type')
|
|
919
982
|
self.image_scale_type = attributes[:'image_scale_type']
|
|
920
983
|
end
|
|
@@ -923,6 +986,10 @@ module DocSpring
|
|
|
923
986
|
self.image_gravity = attributes[:'image_gravity']
|
|
924
987
|
end
|
|
925
988
|
|
|
989
|
+
if attributes.key?(:'signer_role')
|
|
990
|
+
self.signer_role = attributes[:'signer_role']
|
|
991
|
+
end
|
|
992
|
+
|
|
926
993
|
if attributes.key?(:'dependencies')
|
|
927
994
|
self.dependencies = attributes[:'dependencies']
|
|
928
995
|
end
|
|
@@ -964,6 +1031,8 @@ module DocSpring
|
|
|
964
1031
|
metadata == o.metadata &&
|
|
965
1032
|
required == o.required &&
|
|
966
1033
|
option_list == o.option_list &&
|
|
1034
|
+
option_labels == o.option_labels &&
|
|
1035
|
+
print_option_labels == o.print_option_labels &&
|
|
967
1036
|
combined_field_names == o.combined_field_names &&
|
|
968
1037
|
combined_field_type == o.combined_field_type &&
|
|
969
1038
|
combined_field_separator == o.combined_field_separator &&
|
|
@@ -977,6 +1046,9 @@ module DocSpring
|
|
|
977
1046
|
signature_allow_draw == o.signature_allow_draw &&
|
|
978
1047
|
signature_allow_type == o.signature_allow_type &&
|
|
979
1048
|
barcode_symbology == o.barcode_symbology &&
|
|
1049
|
+
comb_fill_from_right == o.comb_fill_from_right &&
|
|
1050
|
+
comb_pad_with_zeros == o.comb_pad_with_zeros &&
|
|
1051
|
+
print_digits_only == o.print_digits_only &&
|
|
980
1052
|
hidden == o.hidden &&
|
|
981
1053
|
x == o.x &&
|
|
982
1054
|
y == o.y &&
|
|
@@ -1038,8 +1110,10 @@ module DocSpring
|
|
|
1038
1110
|
invert_boolean_condition == o.invert_boolean_condition &&
|
|
1039
1111
|
currency == o.currency &&
|
|
1040
1112
|
decimal_places == o.decimal_places &&
|
|
1113
|
+
number_part == o.number_part &&
|
|
1041
1114
|
image_scale_type == o.image_scale_type &&
|
|
1042
1115
|
image_gravity == o.image_gravity &&
|
|
1116
|
+
signer_role == o.signer_role &&
|
|
1043
1117
|
dependencies == o.dependencies &&
|
|
1044
1118
|
id == o.id
|
|
1045
1119
|
end
|
|
@@ -1053,7 +1127,7 @@ module DocSpring
|
|
|
1053
1127
|
# Calculates hash code according to all attributes.
|
|
1054
1128
|
# @return [Integer] Hash code
|
|
1055
1129
|
def hash
|
|
1056
|
-
[name, page, type, static, editable, default, title, description, placeholder, metadata, required, option_list, combined_field_names, combined_field_type, combined_field_separator, combined_field_format, integer, minimum, maximum, exclusive_minimum, exclusive_maximum, include_time, signature_allow_draw, signature_allow_type, barcode_symbology, hidden, x, y, width, height, rotation, display_type, opacity, date_time_format, typeface, font_size, character_spacing, bold, uppercase, strikethrough, keep_leading_spaces, overflow, multiline, multiline_lines, min_length, max_length, auto_calculate_max_length, color, color_field_name, color_field_required, background_color, background_color_field_name, background_color_field_required, alignment, v_alignment, comb, comb_number_of_cells, comb_value_offset, shape_type, shape_sides, shape_border_width, shape_border_color, shape_border_color_field_name, shape_border_color_field_required, shape_fill_color, shape_fill_color_field_name, shape_fill_color_field_required, check_character, check_color, check_color_field_name, check_color_field_required, qrcode_color, qrcode_color_field_name, qrcode_color_field_required, true_text, false_text, condition, string_condition_type, number_condition_type, number_condition_range_min, number_condition_range_max, number_condition_range_exclusive_min, number_condition_range_exclusive_max, invert_boolean_condition, currency, decimal_places, image_scale_type, image_gravity, dependencies, id].hash
|
|
1130
|
+
[name, page, type, static, editable, default, title, description, placeholder, metadata, required, option_list, option_labels, print_option_labels, combined_field_names, combined_field_type, combined_field_separator, combined_field_format, integer, minimum, maximum, exclusive_minimum, exclusive_maximum, include_time, signature_allow_draw, signature_allow_type, barcode_symbology, comb_fill_from_right, comb_pad_with_zeros, print_digits_only, hidden, x, y, width, height, rotation, display_type, opacity, date_time_format, typeface, font_size, character_spacing, bold, uppercase, strikethrough, keep_leading_spaces, overflow, multiline, multiline_lines, min_length, max_length, auto_calculate_max_length, color, color_field_name, color_field_required, background_color, background_color_field_name, background_color_field_required, alignment, v_alignment, comb, comb_number_of_cells, comb_value_offset, shape_type, shape_sides, shape_border_width, shape_border_color, shape_border_color_field_name, shape_border_color_field_required, shape_fill_color, shape_fill_color_field_name, shape_fill_color_field_required, check_character, check_color, check_color_field_name, check_color_field_required, qrcode_color, qrcode_color_field_name, qrcode_color_field_required, true_text, false_text, condition, string_condition_type, number_condition_type, number_condition_range_min, number_condition_range_max, number_condition_range_exclusive_min, number_condition_range_exclusive_max, invert_boolean_condition, currency, decimal_places, number_part, image_scale_type, image_gravity, signer_role, dependencies, id].hash
|
|
1057
1131
|
end
|
|
1058
1132
|
|
|
1059
1133
|
# Builds the object from hash
|
|
@@ -34,6 +34,12 @@ module DocSpring
|
|
|
34
34
|
# The values the field can take, separated by commas, such as `Yes,No`. Null allows any value.
|
|
35
35
|
attr_accessor :option_list
|
|
36
36
|
|
|
37
|
+
# The label forms show for each option, keyed by its value, such as `{"no": "No, I don't"}`. Each key must be one of the options.
|
|
38
|
+
attr_accessor :option_labels
|
|
39
|
+
|
|
40
|
+
# Print the chosen option's label instead of its value.
|
|
41
|
+
attr_accessor :print_option_labels
|
|
42
|
+
|
|
37
43
|
# The names of the fields a combined field joins, separated by commas.
|
|
38
44
|
attr_accessor :combined_field_names
|
|
39
45
|
|
|
@@ -61,6 +67,12 @@ module DocSpring
|
|
|
61
67
|
# The kind of barcode a field with display_type `barcode` prints.
|
|
62
68
|
attr_accessor :barcode_symbology
|
|
63
69
|
|
|
70
|
+
# Fill the last boxes of the field's comb fields, padding the value on the left, as amounts are written on paper forms.
|
|
71
|
+
attr_accessor :comb_fill_from_right
|
|
72
|
+
|
|
73
|
+
# With `comb_fill_from_right`, pad the value with zeros instead of spaces.
|
|
74
|
+
attr_accessor :comb_pad_with_zeros
|
|
75
|
+
|
|
64
76
|
# Leave the field off the PDF. Its value is still in the data, and combined fields can use it.
|
|
65
77
|
attr_accessor :hidden
|
|
66
78
|
|
|
@@ -139,7 +151,7 @@ module DocSpring
|
|
|
139
151
|
# The number of boxes in a comb field.
|
|
140
152
|
attr_accessor :comb_number_of_cells
|
|
141
153
|
|
|
142
|
-
#
|
|
154
|
+
# How many boxes of the value's row come before this field, for a value split over several comb fields (such as the parts of a Social Security number).
|
|
143
155
|
attr_accessor :comb_value_offset
|
|
144
156
|
|
|
145
157
|
# The shape a field with display_type `shape` draws.
|
|
@@ -199,6 +211,9 @@ module DocSpring
|
|
|
199
211
|
# The number of decimal places a number field prints. Null prints the value as it was sent.
|
|
200
212
|
attr_accessor :decimal_places
|
|
201
213
|
|
|
214
|
+
# Which part of a number field's number this field prints: the whole number, only the part before the decimal point, or only the decimal places.
|
|
215
|
+
attr_accessor :number_part
|
|
216
|
+
|
|
202
217
|
# How an image is resized to its field.
|
|
203
218
|
attr_accessor :image_scale_type
|
|
204
219
|
|
|
@@ -236,6 +251,8 @@ module DocSpring
|
|
|
236
251
|
:'title' => :'title',
|
|
237
252
|
:'required' => :'required',
|
|
238
253
|
:'option_list' => :'option_list',
|
|
254
|
+
:'option_labels' => :'option_labels',
|
|
255
|
+
:'print_option_labels' => :'print_option_labels',
|
|
239
256
|
:'combined_field_names' => :'combined_field_names',
|
|
240
257
|
:'combined_field_type' => :'combined_field_type',
|
|
241
258
|
:'combined_field_separator' => :'combined_field_separator',
|
|
@@ -245,6 +262,8 @@ module DocSpring
|
|
|
245
262
|
:'signature_allow_draw' => :'signature_allow_draw',
|
|
246
263
|
:'signature_allow_type' => :'signature_allow_type',
|
|
247
264
|
:'barcode_symbology' => :'barcode_symbology',
|
|
265
|
+
:'comb_fill_from_right' => :'comb_fill_from_right',
|
|
266
|
+
:'comb_pad_with_zeros' => :'comb_pad_with_zeros',
|
|
248
267
|
:'hidden' => :'hidden',
|
|
249
268
|
:'x' => :'x',
|
|
250
269
|
:'y' => :'y',
|
|
@@ -291,6 +310,7 @@ module DocSpring
|
|
|
291
310
|
:'number_condition_range_exclusive_max' => :'number_condition_range_exclusive_max',
|
|
292
311
|
:'invert_boolean_condition' => :'invert_boolean_condition',
|
|
293
312
|
:'decimal_places' => :'decimal_places',
|
|
313
|
+
:'number_part' => :'number_part',
|
|
294
314
|
:'image_scale_type' => :'image_scale_type',
|
|
295
315
|
:'image_gravity' => :'image_gravity'
|
|
296
316
|
}
|
|
@@ -315,6 +335,8 @@ module DocSpring
|
|
|
315
335
|
:'title' => :'String',
|
|
316
336
|
:'required' => :'Boolean',
|
|
317
337
|
:'option_list' => :'String',
|
|
338
|
+
:'option_labels' => :'Hash<String, String>',
|
|
339
|
+
:'print_option_labels' => :'Boolean',
|
|
318
340
|
:'combined_field_names' => :'String',
|
|
319
341
|
:'combined_field_type' => :'CombinedFieldType',
|
|
320
342
|
:'combined_field_separator' => :'String',
|
|
@@ -324,6 +346,8 @@ module DocSpring
|
|
|
324
346
|
:'signature_allow_draw' => :'Boolean',
|
|
325
347
|
:'signature_allow_type' => :'Boolean',
|
|
326
348
|
:'barcode_symbology' => :'BarcodeSymbology',
|
|
349
|
+
:'comb_fill_from_right' => :'Boolean',
|
|
350
|
+
:'comb_pad_with_zeros' => :'Boolean',
|
|
327
351
|
:'hidden' => :'Boolean',
|
|
328
352
|
:'x' => :'Float',
|
|
329
353
|
:'y' => :'Float',
|
|
@@ -370,6 +394,7 @@ module DocSpring
|
|
|
370
394
|
:'number_condition_range_exclusive_max' => :'Boolean',
|
|
371
395
|
:'invert_boolean_condition' => :'Boolean',
|
|
372
396
|
:'decimal_places' => :'Integer',
|
|
397
|
+
:'number_part' => :'NumberPart',
|
|
373
398
|
:'image_scale_type' => :'ImageScaleType',
|
|
374
399
|
:'image_gravity' => :'ImageGravity'
|
|
375
400
|
}
|
|
@@ -380,6 +405,7 @@ module DocSpring
|
|
|
380
405
|
Set.new([
|
|
381
406
|
:'default',
|
|
382
407
|
:'option_list',
|
|
408
|
+
:'option_labels',
|
|
383
409
|
:'include_time',
|
|
384
410
|
:'date_time_format',
|
|
385
411
|
:'typeface',
|
|
@@ -450,6 +476,16 @@ module DocSpring
|
|
|
450
476
|
self.option_list = attributes[:'option_list']
|
|
451
477
|
end
|
|
452
478
|
|
|
479
|
+
if attributes.key?(:'option_labels')
|
|
480
|
+
if (value = attributes[:'option_labels']).is_a?(Hash) || value.nil?
|
|
481
|
+
self.option_labels = value
|
|
482
|
+
end
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
if attributes.key?(:'print_option_labels')
|
|
486
|
+
self.print_option_labels = attributes[:'print_option_labels']
|
|
487
|
+
end
|
|
488
|
+
|
|
453
489
|
if attributes.key?(:'combined_field_names')
|
|
454
490
|
self.combined_field_names = attributes[:'combined_field_names']
|
|
455
491
|
end
|
|
@@ -486,6 +522,14 @@ module DocSpring
|
|
|
486
522
|
self.barcode_symbology = attributes[:'barcode_symbology']
|
|
487
523
|
end
|
|
488
524
|
|
|
525
|
+
if attributes.key?(:'comb_fill_from_right')
|
|
526
|
+
self.comb_fill_from_right = attributes[:'comb_fill_from_right']
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
if attributes.key?(:'comb_pad_with_zeros')
|
|
530
|
+
self.comb_pad_with_zeros = attributes[:'comb_pad_with_zeros']
|
|
531
|
+
end
|
|
532
|
+
|
|
489
533
|
if attributes.key?(:'hidden')
|
|
490
534
|
self.hidden = attributes[:'hidden']
|
|
491
535
|
end
|
|
@@ -670,6 +714,10 @@ module DocSpring
|
|
|
670
714
|
self.decimal_places = attributes[:'decimal_places']
|
|
671
715
|
end
|
|
672
716
|
|
|
717
|
+
if attributes.key?(:'number_part')
|
|
718
|
+
self.number_part = attributes[:'number_part']
|
|
719
|
+
end
|
|
720
|
+
|
|
673
721
|
if attributes.key?(:'image_scale_type')
|
|
674
722
|
self.image_scale_type = attributes[:'image_scale_type']
|
|
675
723
|
end
|
|
@@ -705,6 +753,8 @@ module DocSpring
|
|
|
705
753
|
title == o.title &&
|
|
706
754
|
required == o.required &&
|
|
707
755
|
option_list == o.option_list &&
|
|
756
|
+
option_labels == o.option_labels &&
|
|
757
|
+
print_option_labels == o.print_option_labels &&
|
|
708
758
|
combined_field_names == o.combined_field_names &&
|
|
709
759
|
combined_field_type == o.combined_field_type &&
|
|
710
760
|
combined_field_separator == o.combined_field_separator &&
|
|
@@ -714,6 +764,8 @@ module DocSpring
|
|
|
714
764
|
signature_allow_draw == o.signature_allow_draw &&
|
|
715
765
|
signature_allow_type == o.signature_allow_type &&
|
|
716
766
|
barcode_symbology == o.barcode_symbology &&
|
|
767
|
+
comb_fill_from_right == o.comb_fill_from_right &&
|
|
768
|
+
comb_pad_with_zeros == o.comb_pad_with_zeros &&
|
|
717
769
|
hidden == o.hidden &&
|
|
718
770
|
x == o.x &&
|
|
719
771
|
y == o.y &&
|
|
@@ -760,6 +812,7 @@ module DocSpring
|
|
|
760
812
|
number_condition_range_exclusive_max == o.number_condition_range_exclusive_max &&
|
|
761
813
|
invert_boolean_condition == o.invert_boolean_condition &&
|
|
762
814
|
decimal_places == o.decimal_places &&
|
|
815
|
+
number_part == o.number_part &&
|
|
763
816
|
image_scale_type == o.image_scale_type &&
|
|
764
817
|
image_gravity == o.image_gravity
|
|
765
818
|
end
|
|
@@ -773,7 +826,7 @@ module DocSpring
|
|
|
773
826
|
# Calculates hash code according to all attributes.
|
|
774
827
|
# @return [Integer] Hash code
|
|
775
828
|
def hash
|
|
776
|
-
[static, editable, default, title, required, option_list, combined_field_names, combined_field_type, combined_field_separator, combined_field_format, integer, include_time, signature_allow_draw, signature_allow_type, barcode_symbology, hidden, x, y, width, height, rotation, display_type, opacity, date_time_format, typeface, font_size, character_spacing, bold, uppercase, strikethrough, keep_leading_spaces, overflow, multiline, multiline_lines, max_length, color, background_color, alignment, v_alignment, comb, comb_number_of_cells, comb_value_offset, shape_type, shape_sides, shape_border_width, shape_border_color, shape_fill_color, check_character, check_color, qrcode_color, true_text, false_text, condition, string_condition_type, number_condition_type, number_condition_range_min, number_condition_range_max, number_condition_range_exclusive_min, number_condition_range_exclusive_max, invert_boolean_condition, decimal_places, image_scale_type, image_gravity].hash
|
|
829
|
+
[static, editable, default, title, required, option_list, option_labels, print_option_labels, combined_field_names, combined_field_type, combined_field_separator, combined_field_format, integer, include_time, signature_allow_draw, signature_allow_type, barcode_symbology, comb_fill_from_right, comb_pad_with_zeros, hidden, x, y, width, height, rotation, display_type, opacity, date_time_format, typeface, font_size, character_spacing, bold, uppercase, strikethrough, keep_leading_spaces, overflow, multiline, multiline_lines, max_length, color, background_color, alignment, v_alignment, comb, comb_number_of_cells, comb_value_offset, shape_type, shape_sides, shape_border_width, shape_border_color, shape_fill_color, check_character, check_color, qrcode_color, true_text, false_text, condition, string_condition_type, number_condition_type, number_condition_range_min, number_condition_range_max, number_condition_range_exclusive_min, number_condition_range_exclusive_max, invert_boolean_condition, decimal_places, number_part, image_scale_type, image_gravity].hash
|
|
777
830
|
end
|
|
778
831
|
|
|
779
832
|
# Builds the object from hash
|
|
@@ -25,13 +25,13 @@ module DocSpring
|
|
|
25
25
|
# A temporary link to download the file. Null until the file has been made, and when your account turns off download links for submissions.
|
|
26
26
|
attr_accessor :download_url
|
|
27
27
|
|
|
28
|
-
# A link to download the file that doesn't expire: it redirects to a new temporary link. It needs your API token or a signed-in session, except for a submission of a template that makes its submissions public. Null until the file has been made.
|
|
28
|
+
# A link to download the file that doesn't expire: it redirects to a new temporary link. It needs your API token or a signed-in session, except for a submission of a template that makes its submissions public (a signing manifest's link always needs one). Null until the file has been made.
|
|
29
29
|
attr_accessor :permanent_url
|
|
30
30
|
|
|
31
31
|
# The file's name, such as `sub_123.pdf`, `sub_123.docx` or `sub_123.odt`.
|
|
32
32
|
attr_accessor :filename
|
|
33
33
|
|
|
34
|
-
# The file's media type: `application/pdf`, `application/vnd.openxmlformats-officedocument.wordprocessingml.document` for a Word document, or `application/vnd.oasis.opendocument.text` for an OpenDocument file.
|
|
34
|
+
# The file's media type: `application/pdf`, `application/vnd.openxmlformats-officedocument.wordprocessingml.document` for a Word document, or `application/vnd.oasis.opendocument.text` for an OpenDocument file, or `application/json` for a signing manifest.
|
|
35
35
|
attr_accessor :content_type
|
|
36
36
|
|
|
37
37
|
# The file's size in bytes. Null until the file has been made.
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
class NumberPart
|
|
18
|
+
ALL = "all".freeze
|
|
19
|
+
WHOLE = "whole".freeze
|
|
20
|
+
DECIMALS = "decimals".freeze
|
|
21
|
+
|
|
22
|
+
def self.all_vars
|
|
23
|
+
@all_vars ||= [ALL, WHOLE, DECIMALS].freeze
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Builds the enum from string
|
|
27
|
+
# @param [String] The enum value in the form of the string
|
|
28
|
+
# @return [String] The enum value
|
|
29
|
+
def self.build_from_hash(value)
|
|
30
|
+
new.build_from_hash(value)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Builds the enum from string
|
|
34
|
+
# @param [String] The enum value in the form of the string
|
|
35
|
+
# @return [String] The enum value
|
|
36
|
+
def build_from_hash(value)
|
|
37
|
+
# Only responses are built from hashes, and a value added to the API after this client was released is kept as it
|
|
38
|
+
# is: the constants are the values this client knows
|
|
39
|
+
value
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|