docspring 3.5.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +361 -150
- data/.openapi-generator/VERSION +1 -1
- data/.rubocop.yml +1 -1
- data/.travis.yml +1 -1
- data/AGENTS.md +79 -19
- data/CHANGELOG.md +123 -0
- data/Gemfile.lock +7 -7
- data/README.md +60 -53
- data/docs/{RenameFolderData.md → AiFieldNamingLanguage.md} +2 -5
- data/docs/AuthenticationCheck.md +18 -0
- data/docs/{CreateFolderData.md → BarcodeSymbology.md} +2 -5
- data/docs/{CreateWebhookData.md → CheckCharacter.md} +2 -5
- data/docs/Client.md +890 -777
- data/docs/{UpdateWebhookData.md → CombinedFieldType.md} +2 -5
- data/docs/CombinedPdf.md +44 -0
- data/docs/CombinedPdfFiles.md +18 -0
- data/docs/CombinedPdfList.md +20 -0
- data/docs/CombinedPdfSource.md +26 -0
- data/docs/CombinedPdfSourceInput.md +88 -0
- data/docs/CombinedPdfSourcePdf.md +20 -0
- data/docs/CombinedPdfSourceType.md +15 -0
- data/docs/CombinedPdfState.md +15 -0
- data/docs/CopyTemplateRequest.md +22 -0
- data/docs/CreateCombinedPdfRequest.md +26 -0
- data/docs/CreateCustomFileFromUploadRequest.md +18 -0
- data/docs/CreateFolderRequest.md +20 -0
- data/docs/CreateSignatureRequestEventRequest.md +24 -0
- data/docs/CreateSignatureRequestTokenRequest.md +18 -0
- data/docs/CreateSubmissionBatchRequest.md +26 -0
- data/docs/CreateSubmissionRequest.md +36 -0
- data/docs/CreateTemplateRequest.md +94 -0
- data/docs/CreateWebhookRequest.md +38 -0
- data/docs/CustomFile.md +11 -3
- data/docs/CustomFileList.md +20 -0
- data/docs/CustomFileSourcePdf.md +20 -0
- data/docs/ErrorCode.md +15 -0
- data/docs/ErrorDetail.md +26 -0
- data/docs/ErrorInfo.md +32 -0
- data/docs/ErrorResponse.md +1 -3
- data/docs/ExpirationInterval.md +15 -0
- data/docs/FieldComparisonCondition.md +22 -0
- data/docs/FieldComparisonOperator.md +15 -0
- data/docs/FieldDisplayType.md +15 -0
- data/docs/FieldEqualsCondition.md +22 -0
- data/docs/FieldEqualsOperator.md +15 -0
- data/docs/FieldInCondition.md +22 -0
- data/docs/FieldOverride.md +142 -0
- data/docs/FieldPresenceCondition.md +20 -0
- data/docs/FieldPresenceOperator.md +15 -0
- data/docs/FieldRangeCondition.md +24 -0
- data/docs/FieldReimportState.md +15 -0
- data/docs/FieldSetupLogic.md +15 -0
- data/docs/FieldSetupNaming.md +15 -0
- data/docs/FieldSetupSource.md +15 -0
- data/docs/Folder.md +9 -5
- data/docs/FolderList.md +20 -0
- data/docs/GeneratedFile.md +32 -0
- data/docs/GeneratedFileState.md +15 -0
- data/docs/HtmlEngineOptions.md +36 -0
- data/docs/HtmlEngineOptionsInput.md +36 -0
- data/docs/ImageGravity.md +15 -0
- data/docs/ImageScaleType.md +15 -0
- data/docs/ModelCodeLanguage.md +15 -0
- data/docs/MoveFolderRequest.md +18 -0
- data/docs/MoveTemplateRequest.md +18 -0
- data/docs/NumberConditionType.md +15 -0
- data/docs/PageFormat.md +15 -0
- data/docs/PublishTemplateVersionRequest.md +20 -0
- data/docs/RenameFolderRequest.md +18 -0
- data/docs/RestoreTemplateVersionRequest.md +18 -0
- data/docs/ShapeType.md +15 -0
- data/docs/SignatureRequest.md +66 -0
- data/docs/SignatureRequestAuthSecondFactorType.md +15 -0
- data/docs/SignatureRequestAuthType.md +15 -0
- data/docs/SignatureRequestEvent.md +32 -0
- data/docs/SignatureRequestEventType.md +15 -0
- data/docs/SignatureRequestInput.md +46 -0
- data/docs/SignatureRequestMessageType.md +15 -0
- data/docs/SignatureRequestState.md +15 -0
- data/docs/SignatureRequestToken.md +30 -0
- data/docs/SignatureRequestTokenType.md +15 -0
- data/docs/StringConditionType.md +15 -0
- data/docs/Submission.md +41 -47
- data/docs/SubmissionAction.md +6 -8
- data/docs/SubmissionActionState.md +15 -0
- data/docs/SubmissionActionType.md +15 -0
- data/docs/SubmissionBatch.md +16 -10
- data/docs/SubmissionBatchState.md +15 -0
- data/docs/SubmissionFiles.md +22 -0
- data/docs/SubmissionInput.md +38 -0
- data/docs/SubmissionList.md +20 -0
- data/docs/SubmissionSource.md +15 -0
- data/docs/SubmissionSourcePdf.md +20 -0
- data/docs/SubmissionState.md +15 -0
- data/docs/Template.md +73 -107
- data/docs/TemplateActor.md +26 -0
- data/docs/TemplateActorType.md +15 -0
- data/docs/TemplateDefaults.md +56 -0
- data/docs/TemplateDefaultsInput.md +56 -0
- data/docs/TemplateDocument.md +40 -0
- data/docs/TemplateDocumentState.md +15 -0
- data/docs/TemplateFieldDependency.md +26 -0
- data/docs/TemplateFieldDependencyAction.md +15 -0
- data/docs/TemplateFieldDependencyCondition.md +24 -0
- data/docs/TemplateFieldDependencyConditionInput.md +93 -0
- data/docs/TemplateFieldDependencyInput.md +26 -0
- data/docs/TemplateFieldDependencyMatch.md +15 -0
- data/docs/TemplateFieldDependencyOperator.md +15 -0
- data/docs/TemplateFieldLogicStatus.md +15 -0
- data/docs/TemplateFormMode.md +15 -0
- data/docs/TemplateModelCode.md +22 -0
- data/docs/TemplatePageAiError.md +15 -0
- data/docs/TemplatePageAiNamingStatus.md +15 -0
- data/docs/TemplatePageFieldsStatus.md +15 -0
- data/docs/TemplatePageImageStatus.md +15 -0
- data/docs/TemplatePageProcessingStatus.md +26 -0
- data/docs/TemplateSourcePdf.md +24 -0
- data/docs/TemplateSummary.md +90 -0
- data/docs/TemplateSummaryList.md +20 -0
- data/docs/TemplateType.md +15 -0
- data/docs/TemplateVersion.md +24 -0
- data/docs/TemplateVersionType.md +15 -0
- data/docs/TextAlignment.md +15 -0
- data/docs/TextOverflow.md +15 -0
- data/docs/TextVerticalAlignment.md +15 -0
- data/docs/Typeface.md +15 -0
- data/docs/UpdateSignatureRequestRequest.md +34 -0
- data/docs/UpdateTemplateDocumentRequest.md +22 -0
- data/docs/UpdateTemplateRequest.md +80 -0
- data/docs/UpdateWebhookRequest.md +38 -0
- data/docs/UploadMethod.md +15 -0
- data/docs/UploadPresign.md +24 -0
- data/docs/UrlSourcePdf.md +20 -0
- data/docs/Webhook.md +20 -20
- data/docs/WebhookEventType.md +15 -0
- data/docs/WebhookList.md +20 -0
- data/docs/WebhookMode.md +15 -0
- data/docspring.gemspec +3 -3
- data/lib/docspring/api/client.rb +995 -942
- data/lib/docspring/api_client.rb +14 -6
- data/lib/docspring/api_error.rb +3 -3
- data/lib/docspring/api_model_base.rb +88 -0
- data/lib/docspring/configuration.rb +12 -7
- data/lib/docspring/models/ai_field_naming_language.rb +42 -0
- data/lib/docspring/models/authentication_check.rb +185 -0
- data/lib/docspring/models/barcode_symbology.rb +47 -0
- data/lib/docspring/models/check_character.rb +44 -0
- data/lib/docspring/models/combined_field_type.rb +41 -0
- data/lib/docspring/models/{combined_submission.rb → combined_pdf.rb} +228 -206
- data/lib/docspring/models/combined_pdf_files.rb +167 -0
- data/lib/docspring/models/combined_pdf_list.rb +200 -0
- data/lib/docspring/models/{update_webhook_data.rb → combined_pdf_source.rb} +107 -103
- data/lib/docspring/models/combined_pdf_source_input.rb +62 -0
- data/lib/docspring/models/combined_pdf_source_pdf.rb +212 -0
- data/lib/docspring/models/combined_pdf_source_type.rb +44 -0
- data/lib/docspring/models/combined_pdf_state.rb +44 -0
- data/lib/docspring/models/{copy_template_options.rb → copy_template_request.rb} +32 -87
- data/lib/docspring/models/{combine_pdfs_data.rb → create_combined_pdf_request.rb} +60 -123
- data/lib/docspring/models/{create_custom_file_data.rb → create_custom_file_from_upload_request.rb} +29 -96
- data/lib/docspring/models/{move_template_data.rb → create_folder_request.rb} +60 -102
- data/lib/docspring/models/{create_submission_data_request_event_request.rb → create_signature_request_event_request.rb} +50 -122
- data/lib/docspring/models/create_signature_request_token_request.rb +190 -0
- data/lib/docspring/models/{submission_batch_data.rb → create_submission_batch_request.rb} +53 -108
- data/lib/docspring/models/{create_pdf_submission_data.rb → create_submission_request.rb} +97 -149
- data/lib/docspring/models/create_template_request.rb +601 -0
- data/lib/docspring/models/create_webhook_request.rb +368 -0
- data/lib/docspring/models/custom_file.rb +132 -95
- data/lib/docspring/models/custom_file_list.rb +200 -0
- data/lib/docspring/models/custom_file_source_pdf.rb +212 -0
- data/lib/docspring/models/error_code.rb +60 -0
- data/lib/docspring/models/error_detail.rb +242 -0
- data/lib/docspring/models/error_info.rb +316 -0
- data/lib/docspring/models/error_response.rb +28 -138
- data/lib/docspring/models/expiration_interval.rb +42 -0
- data/lib/docspring/models/field_comparison_condition.rb +247 -0
- data/lib/docspring/models/field_comparison_operator.rb +43 -0
- data/lib/docspring/models/field_display_type.rb +45 -0
- data/lib/docspring/models/field_equals_condition.rb +247 -0
- data/lib/docspring/models/field_equals_operator.rb +41 -0
- data/lib/docspring/models/{create_folder_data.rb → field_in_condition.rb} +101 -103
- data/lib/docspring/models/field_override.rb +829 -0
- data/lib/docspring/models/field_presence_condition.rb +234 -0
- data/lib/docspring/models/field_presence_operator.rb +41 -0
- data/lib/docspring/models/field_range_condition.rb +234 -0
- data/lib/docspring/models/field_reimport_state.rb +43 -0
- data/lib/docspring/models/field_setup_logic.rb +41 -0
- data/lib/docspring/models/field_setup_naming.rb +41 -0
- data/lib/docspring/models/field_setup_source.rb +42 -0
- data/lib/docspring/models/folder.rb +134 -93
- data/lib/docspring/models/folder_list.rb +200 -0
- data/lib/docspring/models/generated_file.rb +326 -0
- data/lib/docspring/models/generated_file_state.rb +42 -0
- data/lib/docspring/models/html_engine_options.rb +416 -0
- data/lib/docspring/models/html_engine_options_input.rb +280 -0
- data/lib/docspring/models/image_gravity.rb +48 -0
- data/lib/docspring/models/image_scale_type.rb +42 -0
- data/lib/docspring/models/model_code_language.rb +48 -0
- data/lib/docspring/models/{move_folder_data.rb → move_folder_request.rb} +31 -87
- data/lib/docspring/models/move_template_request.rb +171 -0
- data/lib/docspring/models/number_condition_type.rb +45 -0
- data/lib/docspring/models/page_format.rb +52 -0
- data/lib/docspring/models/{publish_version_data.rb → publish_template_version_request.rb} +64 -99
- data/lib/docspring/models/{rename_folder_data.rb → rename_folder_request.rb} +29 -87
- data/lib/docspring/models/{restore_version_data.rb → restore_template_version_request.rb} +29 -87
- data/lib/docspring/models/shape_type.rb +45 -0
- data/lib/docspring/models/{submission_data_request_show.rb → signature_request.rb} +240 -171
- data/lib/docspring/models/signature_request_auth_second_factor_type.rb +45 -0
- data/lib/docspring/models/signature_request_auth_type.rb +46 -0
- data/lib/docspring/models/{submission_data_request_event.rb → signature_request_event.rb} +137 -122
- data/lib/docspring/models/signature_request_event_type.rb +45 -0
- data/lib/docspring/models/{update_submission_data_request_data.rb → signature_request_input.rb} +156 -173
- data/lib/docspring/models/signature_request_message_type.rb +48 -0
- data/lib/docspring/models/signature_request_state.rb +42 -0
- data/lib/docspring/models/signature_request_token.rb +369 -0
- data/lib/docspring/models/signature_request_token_type.rb +41 -0
- data/lib/docspring/models/string_condition_type.rb +44 -0
- data/lib/docspring/models/submission.rb +374 -339
- data/lib/docspring/models/submission_action.rb +64 -136
- data/lib/docspring/models/submission_action_state.rb +43 -0
- data/lib/docspring/models/submission_action_type.rb +46 -0
- data/lib/docspring/models/submission_batch.rb +157 -112
- data/lib/docspring/models/submission_batch_state.rb +42 -0
- data/lib/docspring/models/submission_files.rb +188 -0
- data/lib/docspring/models/submission_input.rb +274 -0
- data/lib/docspring/models/submission_list.rb +200 -0
- data/lib/docspring/models/submission_source.rb +43 -0
- data/lib/docspring/models/submission_source_pdf.rb +212 -0
- data/lib/docspring/models/submission_state.rb +52 -0
- data/lib/docspring/models/template.rb +485 -766
- data/lib/docspring/models/{add_fields_data.rb → template_actor.rb} +119 -105
- data/lib/docspring/models/template_actor_type.rb +42 -0
- data/lib/docspring/models/template_defaults.rb +395 -0
- data/lib/docspring/models/template_defaults_input.rb +395 -0
- data/lib/docspring/models/template_document.rb +396 -0
- data/lib/docspring/models/template_document_state.rb +44 -0
- data/lib/docspring/models/{success_error_response.rb → template_field_dependency.rb} +122 -114
- data/lib/docspring/models/template_field_dependency_action.rb +42 -0
- data/lib/docspring/models/{create_pdf_template.rb → template_field_dependency_condition.rb} +116 -103
- data/lib/docspring/models/template_field_dependency_condition_input.rb +67 -0
- data/lib/docspring/models/template_field_dependency_input.rb +285 -0
- data/lib/docspring/models/template_field_dependency_match.rb +41 -0
- data/lib/docspring/models/template_field_dependency_operator.rb +49 -0
- data/lib/docspring/models/template_field_logic_status.rb +44 -0
- data/lib/docspring/models/template_form_mode.rb +42 -0
- data/lib/docspring/models/{template_model_code_response.rb → template_model_code.rb} +37 -96
- data/lib/docspring/models/template_page_ai_error.rb +43 -0
- data/lib/docspring/models/template_page_ai_naming_status.rb +41 -0
- data/lib/docspring/models/template_page_fields_status.rb +44 -0
- data/lib/docspring/models/template_page_image_status.rb +41 -0
- data/lib/docspring/models/template_page_processing_status.rb +275 -0
- data/lib/docspring/models/{create_webhook_data.rb → template_source_pdf.rb} +92 -103
- data/lib/docspring/models/{template_preview.rb → template_summary.rb} +436 -589
- data/lib/docspring/models/template_summary_list.rb +200 -0
- data/lib/docspring/models/template_type.rb +41 -0
- data/lib/docspring/models/template_version.rb +238 -0
- data/lib/docspring/models/template_version_type.rb +42 -0
- data/lib/docspring/models/text_alignment.rb +43 -0
- data/lib/docspring/models/text_overflow.rb +41 -0
- data/lib/docspring/models/text_vertical_alignment.rb +42 -0
- data/lib/docspring/models/typeface.rb +56 -0
- data/lib/docspring/models/{create_submission_data_request_data.rb → update_signature_request_request.rb} +72 -196
- data/lib/docspring/models/update_template_document_request.rb +205 -0
- data/lib/docspring/models/update_template_request.rb +514 -0
- data/lib/docspring/models/update_webhook_request.rb +344 -0
- data/lib/docspring/models/upload_method.rb +40 -0
- data/lib/docspring/models/{upload_presign_response.rb → upload_presign.rb} +93 -140
- data/lib/docspring/models/url_source_pdf.rb +212 -0
- data/lib/docspring/models/webhook.rb +97 -107
- data/lib/docspring/models/webhook_event_type.rb +64 -0
- data/lib/docspring/models/webhook_list.rb +200 -0
- data/lib/docspring/models/webhook_mode.rb +41 -0
- data/lib/docspring/request_schemas.json +3187 -0
- data/lib/docspring/request_validator.rb +396 -0
- data/lib/docspring/version.rb +4 -4
- data/lib/docspring.rb +125 -53
- data/spec/api/client_spec.rb +304 -277
- data/spec/models/ai_field_naming_language_spec.rb +30 -0
- data/spec/models/authentication_check_spec.rb +36 -0
- data/spec/models/barcode_symbology_spec.rb +30 -0
- data/spec/models/check_character_spec.rb +30 -0
- data/spec/models/combined_field_type_spec.rb +30 -0
- data/spec/models/combined_pdf_files_spec.rb +36 -0
- data/spec/models/combined_pdf_list_spec.rb +42 -0
- data/spec/models/combined_pdf_source_input_spec.rb +44 -0
- data/spec/models/combined_pdf_source_pdf_spec.rb +42 -0
- data/spec/models/{submission_data_request_token_spec.rb → combined_pdf_source_spec.rb} +18 -12
- data/spec/models/combined_pdf_source_type_spec.rb +30 -0
- data/spec/models/{combined_submission_spec.rb → combined_pdf_spec.rb} +20 -24
- data/spec/models/combined_pdf_state_spec.rb +30 -0
- data/spec/models/{copy_template_options_spec.rb → copy_template_request_spec.rb} +9 -9
- data/spec/models/{combine_pdfs_data_spec.rb → create_combined_pdf_request_spec.rb} +12 -18
- data/spec/models/{create_custom_file_data_spec.rb → create_custom_file_from_upload_request_spec.rb} +9 -9
- data/spec/models/{move_template_data_spec.rb → create_folder_request_spec.rb} +11 -11
- data/spec/models/{list_submissions_response_spec.rb → create_signature_request_event_request_spec.rb} +18 -12
- data/spec/models/create_signature_request_token_request_spec.rb +36 -0
- data/spec/models/{submission_batch_data_spec.rb → create_submission_batch_request_spec.rb} +13 -13
- data/spec/models/{create_pdf_submission_data_spec.rb → create_submission_request_spec.rb} +24 -18
- data/spec/models/{template_preview_spec.rb → create_template_request_spec.rb} +40 -118
- data/spec/models/create_webhook_request_spec.rb +96 -0
- data/spec/models/custom_file_list_spec.rb +42 -0
- data/spec/models/custom_file_source_pdf_spec.rb +42 -0
- data/spec/models/custom_file_spec.rb +29 -5
- data/spec/models/error_code_spec.rb +30 -0
- data/spec/models/{create_submission_response_spec.rb → error_detail_spec.rb} +14 -18
- data/spec/models/{batch_generate_pdfs201_response_spec.rb → error_info_spec.rb} +27 -19
- data/spec/models/error_response_spec.rb +4 -14
- data/spec/models/expiration_interval_spec.rb +30 -0
- data/spec/models/field_comparison_condition_spec.rb +48 -0
- data/spec/models/field_comparison_operator_spec.rb +30 -0
- data/spec/models/field_display_type_spec.rb +30 -0
- data/spec/models/field_equals_condition_spec.rb +48 -0
- data/spec/models/field_equals_operator_spec.rb +30 -0
- data/spec/models/field_in_condition_spec.rb +48 -0
- data/spec/models/field_override_spec.rb +408 -0
- data/spec/models/field_presence_condition_spec.rb +42 -0
- data/spec/models/field_presence_operator_spec.rb +30 -0
- data/spec/models/field_range_condition_spec.rb +54 -0
- data/spec/models/field_reimport_state_spec.rb +30 -0
- data/spec/models/field_setup_logic_spec.rb +30 -0
- data/spec/models/field_setup_naming_spec.rb +30 -0
- data/spec/models/field_setup_source_spec.rb +30 -0
- data/spec/models/folder_list_spec.rb +42 -0
- data/spec/models/folder_spec.rb +16 -4
- data/spec/models/generated_file_spec.rb +78 -0
- data/spec/models/generated_file_state_spec.rb +30 -0
- data/spec/models/html_engine_options_input_spec.rb +90 -0
- data/spec/models/html_engine_options_spec.rb +90 -0
- data/spec/models/image_gravity_spec.rb +30 -0
- data/spec/models/image_scale_type_spec.rb +30 -0
- data/spec/models/model_code_language_spec.rb +30 -0
- data/spec/models/move_folder_request_spec.rb +36 -0
- data/spec/models/move_template_request_spec.rb +36 -0
- data/spec/models/number_condition_type_spec.rb +30 -0
- data/spec/models/page_format_spec.rb +30 -0
- data/spec/models/{publish_version_data_spec.rb → publish_template_version_request_spec.rb} +11 -11
- data/spec/models/{rename_folder_data_spec.rb → rename_folder_request_spec.rb} +9 -9
- data/spec/models/restore_template_version_request_spec.rb +36 -0
- data/spec/models/shape_type_spec.rb +30 -0
- data/spec/models/signature_request_auth_second_factor_type_spec.rb +30 -0
- data/spec/models/signature_request_auth_type_spec.rb +30 -0
- data/spec/models/{submission_data_request_event_spec.rb → signature_request_event_spec.rb} +16 -18
- data/spec/models/signature_request_event_type_spec.rb +30 -0
- data/spec/models/{create_submission_data_request_data_spec.rb → signature_request_input_spec.rb} +28 -30
- data/spec/models/signature_request_message_type_spec.rb +30 -0
- data/spec/models/{submission_data_request_show_spec.rb → signature_request_spec.rb} +31 -31
- data/spec/models/signature_request_state_spec.rb +30 -0
- data/spec/models/signature_request_token_spec.rb +72 -0
- data/spec/models/signature_request_token_type_spec.rb +30 -0
- data/spec/models/string_condition_type_spec.rb +30 -0
- data/spec/models/submission_action_spec.rb +4 -22
- data/spec/models/submission_action_state_spec.rb +30 -0
- data/spec/models/submission_action_type_spec.rb +30 -0
- data/spec/models/submission_batch_spec.rb +27 -13
- data/spec/models/submission_batch_state_spec.rb +30 -0
- data/spec/models/submission_files_spec.rb +48 -0
- data/spec/models/submission_input_spec.rb +96 -0
- data/spec/models/submission_list_spec.rb +42 -0
- data/spec/models/submission_source_pdf_spec.rb +42 -0
- data/spec/models/submission_source_spec.rb +30 -0
- data/spec/models/submission_spec.rb +26 -56
- data/spec/models/submission_state_spec.rb +30 -0
- data/spec/models/template_actor_spec.rb +60 -0
- data/spec/models/template_actor_type_spec.rb +30 -0
- data/spec/models/{submission_data_request_spec.rb → template_defaults_input_spec.rb} +29 -53
- data/spec/models/template_defaults_spec.rb +150 -0
- data/spec/models/{json_schema_spec.rb → template_document_spec.rb} +21 -21
- data/spec/models/template_document_state_spec.rb +30 -0
- data/spec/models/template_field_dependency_action_spec.rb +30 -0
- data/spec/models/template_field_dependency_condition_input_spec.rb +44 -0
- data/spec/models/template_field_dependency_condition_spec.rb +54 -0
- data/spec/models/template_field_dependency_input_spec.rb +60 -0
- data/spec/models/template_field_dependency_match_spec.rb +30 -0
- data/spec/models/template_field_dependency_operator_spec.rb +30 -0
- data/spec/models/template_field_dependency_spec.rb +60 -0
- data/spec/models/template_field_logic_status_spec.rb +30 -0
- data/spec/models/template_form_mode_spec.rb +30 -0
- data/spec/models/{template_model_code_response_spec.rb → template_model_code_spec.rb} +9 -13
- data/spec/models/template_page_ai_error_spec.rb +30 -0
- data/spec/models/template_page_ai_naming_status_spec.rb +30 -0
- data/spec/models/template_page_fields_status_spec.rb +30 -0
- data/spec/models/template_page_image_status_spec.rb +30 -0
- data/spec/models/template_page_processing_status_spec.rb +60 -0
- data/spec/models/template_source_pdf_spec.rb +54 -0
- data/spec/models/template_spec.rb +40 -154
- data/spec/models/template_summary_list_spec.rb +42 -0
- data/spec/models/template_summary_spec.rb +252 -0
- data/spec/models/template_type_spec.rb +30 -0
- data/spec/models/template_version_spec.rb +54 -0
- data/spec/models/template_version_type_spec.rb +30 -0
- data/spec/models/text_alignment_spec.rb +30 -0
- data/spec/models/text_overflow_spec.rb +30 -0
- data/spec/models/text_vertical_alignment_spec.rb +30 -0
- data/spec/models/typeface_spec.rb +30 -0
- data/spec/models/{submission_batch_with_submissions_spec.rb → update_signature_request_request_spec.rb} +18 -22
- data/spec/models/update_template_document_request_spec.rb +48 -0
- data/spec/models/{submission_preview_spec.rb → update_template_request_spec.rb} +81 -41
- data/spec/models/update_webhook_request_spec.rb +96 -0
- data/spec/models/upload_method_spec.rb +30 -0
- data/spec/models/{upload_presign_response_spec.rb → upload_presign_spec.rb} +13 -17
- data/spec/models/url_source_pdf_spec.rb +42 -0
- data/spec/models/webhook_event_type_spec.rb +30 -0
- data/spec/models/webhook_list_spec.rb +42 -0
- data/spec/models/webhook_mode_spec.rb +30 -0
- data/spec/models/webhook_spec.rb +4 -8
- data/spec/spec_helper.rb +3 -3
- metadata +485 -202
- data/docs/AddFieldsData.md +0 -18
- data/docs/BatchGeneratePdfs201Response.md +0 -28
- data/docs/CombinePdfsData.md +0 -28
- data/docs/CombinedSubmission.md +0 -44
- data/docs/CombinedSubmissionAction.md +0 -30
- data/docs/CopyTemplateOptions.md +0 -22
- data/docs/CreateCombinedSubmissionResponse.md +0 -26
- data/docs/CreateCustomFileData.md +0 -18
- data/docs/CreateCustomFileResponse.md +0 -24
- data/docs/CreateHtmlTemplate.md +0 -18
- data/docs/CreatePdfSubmissionData.md +0 -34
- data/docs/CreatePdfTemplate.md +0 -18
- data/docs/CreateSubmissionDataRequestData.md +0 -44
- data/docs/CreateSubmissionDataRequestEventRequest.md +0 -24
- data/docs/CreateSubmissionDataRequestEventResponse.md +0 -24
- data/docs/CreateSubmissionDataRequestResponse.md +0 -24
- data/docs/CreateSubmissionDataRequestTokenResponse.md +0 -24
- data/docs/CreateSubmissionResponse.md +0 -26
- data/docs/ErrorOrMultipleErrorsResponse.md +0 -22
- data/docs/ForbiddenErrorResponse.md +0 -22
- data/docs/JsonSchema.md +0 -40
- data/docs/ListSubmissionsResponse.md +0 -22
- data/docs/MoveFolderData.md +0 -18
- data/docs/MoveTemplateData.md +0 -20
- data/docs/MultipleErrorsResponse.md +0 -20
- data/docs/PublishVersionData.md +0 -20
- data/docs/RestoreVersionData.md +0 -18
- data/docs/Submission422Response.md +0 -24
- data/docs/SubmissionBatchData.md +0 -26
- data/docs/SubmissionBatchWithSubmissions.md +0 -34
- data/docs/SubmissionDataRequest.md +0 -60
- data/docs/SubmissionDataRequestEvent.md +0 -30
- data/docs/SubmissionDataRequestShow.md +0 -62
- data/docs/SubmissionDataRequestToken.md +0 -24
- data/docs/SubmissionPreview.md +0 -64
- data/docs/SuccessErrorResponse.md +0 -20
- data/docs/SuccessMultipleErrorsResponse.md +0 -20
- data/docs/TemplateAddFieldsResponse.md +0 -22
- data/docs/TemplateDeleteResponse.md +0 -24
- data/docs/TemplateModelCodeResponse.md +0 -22
- data/docs/TemplatePreview.md +0 -116
- data/docs/TemplatePublishVersionResponse.md +0 -22
- data/docs/UpdateHtmlTemplate.md +0 -18
- data/docs/UpdatePdfTemplate.md +0 -18
- data/docs/UpdateSubmissionDataRequestData.md +0 -42
- data/docs/UploadPresignResponse.md +0 -24
- data/lib/docspring/models/batch_generate_pdfs201_response.rb +0 -352
- data/lib/docspring/models/combined_submission_action.rb +0 -384
- data/lib/docspring/models/create_combined_submission_response.rb +0 -324
- data/lib/docspring/models/create_custom_file_response.rb +0 -314
- data/lib/docspring/models/create_html_template.rb +0 -243
- data/lib/docspring/models/create_submission_data_request_event_response.rb +0 -314
- data/lib/docspring/models/create_submission_data_request_response.rb +0 -314
- data/lib/docspring/models/create_submission_data_request_token_response.rb +0 -314
- data/lib/docspring/models/create_submission_response.rb +0 -324
- data/lib/docspring/models/error_or_multiple_errors_response.rb +0 -290
- data/lib/docspring/models/forbidden_error_response.rb +0 -323
- data/lib/docspring/models/json_schema.rb +0 -329
- data/lib/docspring/models/list_submissions_response.rb +0 -283
- data/lib/docspring/models/multiple_errors_response.rb +0 -296
- data/lib/docspring/models/submission422_response.rb +0 -299
- data/lib/docspring/models/submission_batch_with_submissions.rb +0 -433
- data/lib/docspring/models/submission_data_request.rb +0 -570
- data/lib/docspring/models/submission_data_request_token.rb +0 -279
- data/lib/docspring/models/submission_preview.rb +0 -637
- data/lib/docspring/models/success_multiple_errors_response.rb +0 -279
- data/lib/docspring/models/template_add_fields_response.rb +0 -290
- data/lib/docspring/models/template_delete_response.rb +0 -300
- data/lib/docspring/models/template_publish_version_response.rb +0 -305
- data/lib/docspring/models/update_html_template.rb +0 -243
- data/lib/docspring/models/update_pdf_template.rb +0 -243
- data/spec/models/add_fields_data_spec.rb +0 -36
- data/spec/models/combined_submission_action_spec.rb +0 -84
- data/spec/models/create_combined_submission_response_spec.rb +0 -64
- data/spec/models/create_custom_file_response_spec.rb +0 -58
- data/spec/models/create_folder_data_spec.rb +0 -36
- data/spec/models/create_html_template_spec.rb +0 -36
- data/spec/models/create_pdf_template_spec.rb +0 -36
- data/spec/models/create_submission_data_request_event_request_spec.rb +0 -62
- data/spec/models/create_submission_data_request_event_response_spec.rb +0 -58
- data/spec/models/create_submission_data_request_response_spec.rb +0 -58
- data/spec/models/create_submission_data_request_token_response_spec.rb +0 -58
- data/spec/models/create_webhook_data_spec.rb +0 -36
- data/spec/models/error_or_multiple_errors_response_spec.rb +0 -52
- data/spec/models/forbidden_error_response_spec.rb +0 -56
- data/spec/models/move_folder_data_spec.rb +0 -36
- data/spec/models/multiple_errors_response_spec.rb +0 -46
- data/spec/models/restore_version_data_spec.rb +0 -36
- data/spec/models/submission422_response_spec.rb +0 -58
- data/spec/models/success_error_response_spec.rb +0 -46
- data/spec/models/success_multiple_errors_response_spec.rb +0 -46
- data/spec/models/template_add_fields_response_spec.rb +0 -52
- data/spec/models/template_delete_response_spec.rb +0 -58
- data/spec/models/template_publish_version_response_spec.rb +0 -52
- data/spec/models/update_html_template_spec.rb +0 -36
- data/spec/models/update_pdf_template_spec.rb +0 -36
- data/spec/models/update_submission_data_request_data_spec.rb +0 -116
- data/spec/models/update_webhook_data_spec.rb +0 -36
data/lib/docspring/models/{update_submission_data_request_data.rb → signature_request_input.rb}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: v2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0-DOCSPRING
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,32 +14,52 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DocSpring
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
# A request for someone to fill in their fields of a submission and sign it. Someone who only fills in fields for the people who sign later (such as an employer's section) has a signature request too. The submission's PDF is generated once every signature request is completed.
|
|
18
|
+
class SignatureRequestInput < ApiModelBase
|
|
19
|
+
# The name of the person the request is for.
|
|
20
|
+
attr_accessor :name
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
# Their email address.
|
|
23
|
+
attr_accessor :email
|
|
24
|
+
|
|
25
|
+
# The fields this person fills in. Each field can only be in one signature request, and a field that `data` fills in needs `prefilled_values_editable`.
|
|
26
|
+
attr_accessor :fields
|
|
27
|
+
|
|
28
|
+
# Your own data about the signature request, such as an ID from your app.
|
|
29
|
+
attr_accessor :metadata
|
|
21
30
|
|
|
31
|
+
# Which of the template's signers the person is: `Signer 1`, `Signer 2` and so on, up to `Signer 100`, until templates have roles of their own. Either every signature request has a `role` or none does, and each role can only have one.
|
|
32
|
+
attr_accessor :role
|
|
33
|
+
|
|
34
|
+
# How your app authenticated the person before it showed them the signature request.
|
|
35
|
+
attr_accessor :auth_type
|
|
36
|
+
|
|
37
|
+
# The second factor your app authenticated them with, if any.
|
|
22
38
|
attr_accessor :auth_second_factor_type
|
|
23
39
|
|
|
24
|
-
|
|
40
|
+
# The service that authenticated them, such as `google`. Required when `auth_type` is `oauth`.
|
|
41
|
+
attr_accessor :auth_provider
|
|
25
42
|
|
|
43
|
+
# When your app authenticated them. Set for you with `email_link`.
|
|
26
44
|
attr_accessor :auth_session_started_at
|
|
27
45
|
|
|
28
|
-
|
|
46
|
+
# A hash of your app's session ID, for the audit trail.
|
|
47
|
+
attr_accessor :auth_session_id_hash
|
|
29
48
|
|
|
49
|
+
# Their user ID in your app, or a SHA-256 hash of a salt and the user ID.
|
|
30
50
|
attr_accessor :auth_user_id_hash
|
|
31
51
|
|
|
52
|
+
# Their username in your app, or a SHA-256 hash of a salt and the username.
|
|
32
53
|
attr_accessor :auth_username_hash
|
|
33
54
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
attr_accessor :fields
|
|
37
|
-
|
|
38
|
-
attr_accessor :metadata
|
|
55
|
+
# The phone number they authenticated with, or a SHA-256 hash of a salt and the phone number.
|
|
56
|
+
attr_accessor :auth_phone_number_hash
|
|
39
57
|
|
|
40
|
-
|
|
58
|
+
# Leave out names in `fields` that the template doesn't have, for one field list that you send with several templates. Without it, an unknown name makes the submission `invalid_data`.
|
|
59
|
+
attr_accessor :ignore_unknown_fields
|
|
41
60
|
|
|
42
|
-
|
|
61
|
+
# Let the person change the values that `data` already has for fields in `fields`. Without it, those fields are a 422.
|
|
62
|
+
attr_accessor :prefilled_values_editable
|
|
43
63
|
|
|
44
64
|
class EnumAttributeValidator
|
|
45
65
|
attr_reader :datatype
|
|
@@ -66,19 +86,21 @@ module DocSpring
|
|
|
66
86
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
67
87
|
def self.attribute_map
|
|
68
88
|
{
|
|
69
|
-
:'
|
|
70
|
-
:'
|
|
89
|
+
:'name' => :'name',
|
|
90
|
+
:'email' => :'email',
|
|
91
|
+
:'fields' => :'fields',
|
|
92
|
+
:'metadata' => :'metadata',
|
|
93
|
+
:'role' => :'role',
|
|
94
|
+
:'auth_type' => :'auth_type',
|
|
71
95
|
:'auth_second_factor_type' => :'auth_second_factor_type',
|
|
72
|
-
:'
|
|
96
|
+
:'auth_provider' => :'auth_provider',
|
|
73
97
|
:'auth_session_started_at' => :'auth_session_started_at',
|
|
74
|
-
:'
|
|
98
|
+
:'auth_session_id_hash' => :'auth_session_id_hash',
|
|
75
99
|
:'auth_user_id_hash' => :'auth_user_id_hash',
|
|
76
100
|
:'auth_username_hash' => :'auth_username_hash',
|
|
77
|
-
:'
|
|
78
|
-
:'
|
|
79
|
-
:'
|
|
80
|
-
:'name' => :'name',
|
|
81
|
-
:'order' => :'order'
|
|
101
|
+
:'auth_phone_number_hash' => :'auth_phone_number_hash',
|
|
102
|
+
:'ignore_unknown_fields' => :'ignore_unknown_fields',
|
|
103
|
+
:'prefilled_values_editable' => :'prefilled_values_editable'
|
|
82
104
|
}
|
|
83
105
|
end
|
|
84
106
|
|
|
@@ -95,75 +117,110 @@ module DocSpring
|
|
|
95
117
|
# Attribute type mapping.
|
|
96
118
|
def self.openapi_types
|
|
97
119
|
{
|
|
98
|
-
:'
|
|
120
|
+
:'name' => :'String',
|
|
121
|
+
:'email' => :'String',
|
|
122
|
+
:'fields' => :'Array<String>',
|
|
123
|
+
:'metadata' => :'Hash<String, Object>',
|
|
124
|
+
:'role' => :'String',
|
|
125
|
+
:'auth_type' => :'SignatureRequestAuthType',
|
|
126
|
+
:'auth_second_factor_type' => :'SignatureRequestAuthSecondFactorType',
|
|
99
127
|
:'auth_provider' => :'String',
|
|
100
|
-
:'
|
|
128
|
+
:'auth_session_started_at' => :'Time',
|
|
101
129
|
:'auth_session_id_hash' => :'String',
|
|
102
|
-
:'auth_session_started_at' => :'String',
|
|
103
|
-
:'auth_type' => :'String',
|
|
104
130
|
:'auth_user_id_hash' => :'String',
|
|
105
131
|
:'auth_username_hash' => :'String',
|
|
106
|
-
:'
|
|
107
|
-
:'
|
|
108
|
-
:'
|
|
109
|
-
:'name' => :'String',
|
|
110
|
-
:'order' => :'Integer'
|
|
132
|
+
:'auth_phone_number_hash' => :'String',
|
|
133
|
+
:'ignore_unknown_fields' => :'Boolean',
|
|
134
|
+
:'prefilled_values_editable' => :'Boolean'
|
|
111
135
|
}
|
|
112
136
|
end
|
|
113
137
|
|
|
114
138
|
# List of attributes with nullable: true
|
|
115
139
|
def self.openapi_nullable
|
|
116
140
|
Set.new([
|
|
117
|
-
:'
|
|
141
|
+
:'name',
|
|
142
|
+
:'email',
|
|
118
143
|
:'auth_provider',
|
|
119
|
-
:'auth_second_factor_type',
|
|
120
|
-
:'auth_session_id_hash',
|
|
121
144
|
:'auth_session_started_at',
|
|
145
|
+
:'auth_session_id_hash',
|
|
122
146
|
:'auth_user_id_hash',
|
|
123
147
|
:'auth_username_hash',
|
|
124
|
-
:'
|
|
125
|
-
:'name',
|
|
148
|
+
:'auth_phone_number_hash',
|
|
126
149
|
])
|
|
127
150
|
end
|
|
128
151
|
|
|
152
|
+
# Returns attribute type mapping
|
|
153
|
+
def self.acceptable_openapi_types
|
|
154
|
+
openapi_types
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Returns the nullable attributes
|
|
158
|
+
def self.acceptable_openapi_nullable
|
|
159
|
+
openapi_nullable
|
|
160
|
+
end
|
|
161
|
+
|
|
129
162
|
# Initializes the object
|
|
130
163
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
164
|
def initialize(attributes = {})
|
|
132
165
|
if (!attributes.is_a?(Hash))
|
|
133
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DocSpring::
|
|
166
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DocSpring::SignatureRequestInput` initialize method"
|
|
134
167
|
end
|
|
135
168
|
|
|
136
169
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
137
170
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
138
171
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
139
172
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
140
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DocSpring::
|
|
173
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DocSpring::SignatureRequestInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
141
174
|
end
|
|
142
175
|
h[k.to_sym] = v
|
|
143
176
|
}
|
|
144
177
|
|
|
145
|
-
if attributes.key?(:'
|
|
146
|
-
self.
|
|
178
|
+
if attributes.key?(:'name')
|
|
179
|
+
self.name = attributes[:'name']
|
|
147
180
|
end
|
|
148
181
|
|
|
149
|
-
if attributes.key?(:'
|
|
150
|
-
self.
|
|
182
|
+
if attributes.key?(:'email')
|
|
183
|
+
self.email = attributes[:'email']
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.key?(:'fields')
|
|
187
|
+
if (value = attributes[:'fields']).is_a?(Array)
|
|
188
|
+
self.fields = value
|
|
189
|
+
end
|
|
190
|
+
else
|
|
191
|
+
self.fields = nil
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if attributes.key?(:'metadata')
|
|
195
|
+
if (value = attributes[:'metadata']).is_a?(Hash)
|
|
196
|
+
self.metadata = value
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'role')
|
|
201
|
+
self.role = attributes[:'role']
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'auth_type')
|
|
205
|
+
self.auth_type = attributes[:'auth_type']
|
|
206
|
+
else
|
|
207
|
+
self.auth_type = nil
|
|
151
208
|
end
|
|
152
209
|
|
|
153
210
|
if attributes.key?(:'auth_second_factor_type')
|
|
154
211
|
self.auth_second_factor_type = attributes[:'auth_second_factor_type']
|
|
155
212
|
end
|
|
156
213
|
|
|
157
|
-
if attributes.key?(:'
|
|
158
|
-
self.
|
|
214
|
+
if attributes.key?(:'auth_provider')
|
|
215
|
+
self.auth_provider = attributes[:'auth_provider']
|
|
159
216
|
end
|
|
160
217
|
|
|
161
218
|
if attributes.key?(:'auth_session_started_at')
|
|
162
219
|
self.auth_session_started_at = attributes[:'auth_session_started_at']
|
|
163
220
|
end
|
|
164
221
|
|
|
165
|
-
if attributes.key?(:'
|
|
166
|
-
self.
|
|
222
|
+
if attributes.key?(:'auth_session_id_hash')
|
|
223
|
+
self.auth_session_id_hash = attributes[:'auth_session_id_hash']
|
|
167
224
|
end
|
|
168
225
|
|
|
169
226
|
if attributes.key?(:'auth_user_id_hash')
|
|
@@ -174,26 +231,16 @@ module DocSpring
|
|
|
174
231
|
self.auth_username_hash = attributes[:'auth_username_hash']
|
|
175
232
|
end
|
|
176
233
|
|
|
177
|
-
if attributes.key?(:'
|
|
178
|
-
self.
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
if attributes.key?(:'fields')
|
|
182
|
-
if (value = attributes[:'fields']).is_a?(Array)
|
|
183
|
-
self.fields = value
|
|
184
|
-
end
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
if attributes.key?(:'metadata')
|
|
188
|
-
self.metadata = attributes[:'metadata']
|
|
234
|
+
if attributes.key?(:'auth_phone_number_hash')
|
|
235
|
+
self.auth_phone_number_hash = attributes[:'auth_phone_number_hash']
|
|
189
236
|
end
|
|
190
237
|
|
|
191
|
-
if attributes.key?(:'
|
|
192
|
-
self.
|
|
238
|
+
if attributes.key?(:'ignore_unknown_fields')
|
|
239
|
+
self.ignore_unknown_fields = attributes[:'ignore_unknown_fields']
|
|
193
240
|
end
|
|
194
241
|
|
|
195
|
-
if attributes.key?(:'
|
|
196
|
-
self.
|
|
242
|
+
if attributes.key?(:'prefilled_values_editable')
|
|
243
|
+
self.prefilled_values_editable = attributes[:'prefilled_values_editable']
|
|
197
244
|
end
|
|
198
245
|
end
|
|
199
246
|
|
|
@@ -202,6 +249,14 @@ module DocSpring
|
|
|
202
249
|
def list_invalid_properties
|
|
203
250
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
204
251
|
invalid_properties = Array.new
|
|
252
|
+
if @fields.nil?
|
|
253
|
+
invalid_properties.push('invalid value for "fields", fields cannot be nil.')
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
if @auth_type.nil?
|
|
257
|
+
invalid_properties.push('invalid value for "auth_type", auth_type cannot be nil.')
|
|
258
|
+
end
|
|
259
|
+
|
|
205
260
|
invalid_properties
|
|
206
261
|
end
|
|
207
262
|
|
|
@@ -209,32 +264,28 @@ module DocSpring
|
|
|
209
264
|
# @return true if the model is valid
|
|
210
265
|
def valid?
|
|
211
266
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
212
|
-
|
|
213
|
-
return false
|
|
214
|
-
auth_type_validator = EnumAttributeValidator.new('String', ["none", "password", "oauth", "email_link", "phone_number", "ldap", "saml"])
|
|
215
|
-
return false unless auth_type_validator.valid?(@auth_type)
|
|
267
|
+
return false if @fields.nil?
|
|
268
|
+
return false if @auth_type.nil?
|
|
216
269
|
true
|
|
217
270
|
end
|
|
218
271
|
|
|
219
|
-
# Custom attribute writer method
|
|
220
|
-
# @param [Object]
|
|
221
|
-
def
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
unless defined?(@_skip_enum_validation) || validator.valid?(auth_second_factor_type)
|
|
225
|
-
fail ArgumentError, "invalid value for \"auth_second_factor_type\", must be one of #{validator.allowable_values}."
|
|
272
|
+
# Custom attribute writer method with validation
|
|
273
|
+
# @param [Object] fields Value to be assigned
|
|
274
|
+
def fields=(fields)
|
|
275
|
+
if fields.nil?
|
|
276
|
+
fail ArgumentError, 'fields cannot be nil'
|
|
226
277
|
end
|
|
227
|
-
|
|
278
|
+
|
|
279
|
+
@fields = fields
|
|
228
280
|
end
|
|
229
281
|
|
|
230
|
-
# Custom attribute writer method
|
|
231
|
-
# @param [Object] auth_type
|
|
282
|
+
# Custom attribute writer method with validation
|
|
283
|
+
# @param [Object] auth_type Value to be assigned
|
|
232
284
|
def auth_type=(auth_type)
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
unless defined?(@_skip_enum_validation) || validator.valid?(auth_type)
|
|
236
|
-
fail ArgumentError, "invalid value for \"auth_type\", must be one of #{validator.allowable_values}."
|
|
285
|
+
if auth_type.nil?
|
|
286
|
+
fail ArgumentError, 'auth_type cannot be nil'
|
|
237
287
|
end
|
|
288
|
+
|
|
238
289
|
@auth_type = auth_type
|
|
239
290
|
end
|
|
240
291
|
|
|
@@ -243,19 +294,21 @@ module DocSpring
|
|
|
243
294
|
def ==(o)
|
|
244
295
|
return true if self.equal?(o)
|
|
245
296
|
self.class == o.class &&
|
|
246
|
-
|
|
247
|
-
|
|
297
|
+
name == o.name &&
|
|
298
|
+
email == o.email &&
|
|
299
|
+
fields == o.fields &&
|
|
300
|
+
metadata == o.metadata &&
|
|
301
|
+
role == o.role &&
|
|
302
|
+
auth_type == o.auth_type &&
|
|
248
303
|
auth_second_factor_type == o.auth_second_factor_type &&
|
|
249
|
-
|
|
304
|
+
auth_provider == o.auth_provider &&
|
|
250
305
|
auth_session_started_at == o.auth_session_started_at &&
|
|
251
|
-
|
|
306
|
+
auth_session_id_hash == o.auth_session_id_hash &&
|
|
252
307
|
auth_user_id_hash == o.auth_user_id_hash &&
|
|
253
308
|
auth_username_hash == o.auth_username_hash &&
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
name == o.name &&
|
|
258
|
-
order == o.order
|
|
309
|
+
auth_phone_number_hash == o.auth_phone_number_hash &&
|
|
310
|
+
ignore_unknown_fields == o.ignore_unknown_fields &&
|
|
311
|
+
prefilled_values_editable == o.prefilled_values_editable
|
|
259
312
|
end
|
|
260
313
|
|
|
261
314
|
# @see the `==` method
|
|
@@ -267,7 +320,7 @@ module DocSpring
|
|
|
267
320
|
# Calculates hash code according to all attributes.
|
|
268
321
|
# @return [Integer] Hash code
|
|
269
322
|
def hash
|
|
270
|
-
[
|
|
323
|
+
[name, email, fields, metadata, role, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ignore_unknown_fields, prefilled_values_editable].hash
|
|
271
324
|
end
|
|
272
325
|
|
|
273
326
|
# Builds the object from hash
|
|
@@ -276,18 +329,20 @@ module DocSpring
|
|
|
276
329
|
def self.build_from_hash(attributes)
|
|
277
330
|
return nil unless attributes.is_a?(Hash)
|
|
278
331
|
attributes = attributes.transform_keys(&:to_sym)
|
|
332
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
333
|
+
map = acceptable_attribute_map
|
|
279
334
|
transformed_hash = {}
|
|
280
|
-
|
|
281
|
-
if attributes.key?(
|
|
335
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
336
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
282
337
|
transformed_hash["#{key}"] = nil
|
|
283
338
|
elsif type =~ /\AArray<(.*)>/i
|
|
284
339
|
# check to ensure the input is an array given that the attribute
|
|
285
340
|
# is documented as an array but the input is not
|
|
286
|
-
if attributes[
|
|
287
|
-
transformed_hash["#{key}"] = attributes[
|
|
341
|
+
if attributes[map[key]].is_a?(Array)
|
|
342
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
288
343
|
end
|
|
289
|
-
elsif !attributes[
|
|
290
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[
|
|
344
|
+
elsif !attributes[map[key]].nil?
|
|
345
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
291
346
|
end
|
|
292
347
|
end
|
|
293
348
|
# Responses can include enum values added after this client was released, so the enum setters
|
|
@@ -299,69 +354,15 @@ module DocSpring
|
|
|
299
354
|
end
|
|
300
355
|
end
|
|
301
356
|
|
|
302
|
-
# Deserializes the data based on type
|
|
303
|
-
# @param string type Data type
|
|
304
|
-
# @param string value Value to be deserialized
|
|
305
|
-
# @return [Object] Deserialized data
|
|
306
|
-
def self._deserialize(type, value)
|
|
307
|
-
case type.to_sym
|
|
308
|
-
when :Time
|
|
309
|
-
Time.parse(value)
|
|
310
|
-
when :Date
|
|
311
|
-
Date.parse(value)
|
|
312
|
-
when :String
|
|
313
|
-
value.to_s
|
|
314
|
-
when :Integer
|
|
315
|
-
value.to_i
|
|
316
|
-
when :Float
|
|
317
|
-
value.to_f
|
|
318
|
-
when :Boolean
|
|
319
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
320
|
-
true
|
|
321
|
-
else
|
|
322
|
-
false
|
|
323
|
-
end
|
|
324
|
-
when :Object
|
|
325
|
-
# generic object (usually a Hash), return directly
|
|
326
|
-
value
|
|
327
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
328
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
329
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
330
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
331
|
-
k_type = Regexp.last_match[:k_type]
|
|
332
|
-
v_type = Regexp.last_match[:v_type]
|
|
333
|
-
{}.tap do |hash|
|
|
334
|
-
value.each do |k, v|
|
|
335
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
336
|
-
end
|
|
337
|
-
end
|
|
338
|
-
else # model
|
|
339
|
-
# models (e.g. Pet) or oneOf
|
|
340
|
-
klass = DocSpring.const_get(type)
|
|
341
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
342
|
-
end
|
|
343
|
-
end
|
|
344
|
-
|
|
345
|
-
# Returns the string representation of the object
|
|
346
|
-
# @return [String] String presentation of the object
|
|
347
|
-
def to_s
|
|
348
|
-
to_hash.to_s
|
|
349
|
-
end
|
|
350
|
-
|
|
351
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
352
|
-
# @return [Hash] Returns the object in the form of hash
|
|
353
|
-
def to_body
|
|
354
|
-
to_hash
|
|
355
|
-
end
|
|
356
|
-
|
|
357
357
|
# Returns the object in the form of hash
|
|
358
358
|
# @return [Hash] Returns the object in the form of hash
|
|
359
359
|
def to_hash
|
|
360
360
|
hash = {}
|
|
361
|
-
|
|
361
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
362
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
362
363
|
value = self.send(attr)
|
|
363
364
|
if value.nil?
|
|
364
|
-
is_nullable = self.class.
|
|
365
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
365
366
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
366
367
|
end
|
|
367
368
|
|
|
@@ -370,24 +371,6 @@ module DocSpring
|
|
|
370
371
|
hash
|
|
371
372
|
end
|
|
372
373
|
|
|
373
|
-
# Outputs non-array value in the form of hash
|
|
374
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
375
|
-
# @param [Object] value Any valid value
|
|
376
|
-
# @return [Hash] Returns the value in the form of hash
|
|
377
|
-
def _to_hash(value)
|
|
378
|
-
if value.is_a?(Array)
|
|
379
|
-
value.compact.map { |v| _to_hash(v) }
|
|
380
|
-
elsif value.is_a?(Hash)
|
|
381
|
-
{}.tap do |hash|
|
|
382
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
383
|
-
end
|
|
384
|
-
elsif value.respond_to? :to_hash
|
|
385
|
-
value.to_hash
|
|
386
|
-
else
|
|
387
|
-
value
|
|
388
|
-
end
|
|
389
|
-
end
|
|
390
|
-
|
|
391
374
|
end
|
|
392
375
|
|
|
393
376
|
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#DocSpring API
|
|
3
|
+
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or 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 SignatureRequestMessageType
|
|
18
|
+
EMAIL = "email".freeze
|
|
19
|
+
SMS = "sms".freeze
|
|
20
|
+
FAX = "fax".freeze
|
|
21
|
+
MAIL = "mail".freeze
|
|
22
|
+
SLACK = "slack".freeze
|
|
23
|
+
MSTEAMS = "msteams".freeze
|
|
24
|
+
DISCORD = "discord".freeze
|
|
25
|
+
TELEGRAM = "telegram".freeze
|
|
26
|
+
WHATSAPP = "whatsapp".freeze
|
|
27
|
+
|
|
28
|
+
def self.all_vars
|
|
29
|
+
@all_vars ||= [EMAIL, SMS, FAX, MAIL, SLACK, MSTEAMS, DISCORD, TELEGRAM, WHATSAPP].freeze
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Builds the enum from string
|
|
33
|
+
# @param [String] The enum value in the form of the string
|
|
34
|
+
# @return [String] The enum value
|
|
35
|
+
def self.build_from_hash(value)
|
|
36
|
+
new.build_from_hash(value)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Builds the enum from string
|
|
40
|
+
# @param [String] The enum value in the form of the string
|
|
41
|
+
# @return [String] The enum value
|
|
42
|
+
def build_from_hash(value)
|
|
43
|
+
# Only responses are built from hashes, and a value added to the API after this client was released is kept as it
|
|
44
|
+
# is: the constants are the values this client knows
|
|
45
|
+
value
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#DocSpring API
|
|
3
|
+
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or 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 SignatureRequestState
|
|
18
|
+
PENDING = "pending".freeze
|
|
19
|
+
COMPLETED = "completed".freeze
|
|
20
|
+
DECLINED = "declined".freeze
|
|
21
|
+
|
|
22
|
+
def self.all_vars
|
|
23
|
+
@all_vars ||= [PENDING, COMPLETED, DECLINED].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
|