dropbox-sign 1.0.0.pre.beta2301
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +78 -0
- data/LICENSE +21 -0
- data/README.md +333 -0
- data/Rakefile +10 -0
- data/bin/generate-examples.php +269 -0
- data/bin/php +16 -0
- data/bin/replace +11 -0
- data/bin/ruby +16 -0
- data/bin/scan_for +32 -0
- data/composer.json +10 -0
- data/composer.lock +246 -0
- data/docs/AccountApi.md +301 -0
- data/docs/AccountCreateRequest.md +13 -0
- data/docs/AccountCreateResponse.md +12 -0
- data/docs/AccountGetResponse.md +11 -0
- data/docs/AccountResponse.md +19 -0
- data/docs/AccountResponseQuotas.md +14 -0
- data/docs/AccountUpdateRequest.md +12 -0
- data/docs/AccountVerifyRequest.md +10 -0
- data/docs/AccountVerifyResponse.md +11 -0
- data/docs/AccountVerifyResponseAccount.md +10 -0
- data/docs/ApiAppApi.md +402 -0
- data/docs/ApiAppCreateRequest.md +16 -0
- data/docs/ApiAppGetResponse.md +11 -0
- data/docs/ApiAppListResponse.md +12 -0
- data/docs/ApiAppResponse.md +19 -0
- data/docs/ApiAppResponseOAuth.md +13 -0
- data/docs/ApiAppResponseOptions.md +10 -0
- data/docs/ApiAppResponseOwnerAccount.md +11 -0
- data/docs/ApiAppResponseWhiteLabelingOptions.md +23 -0
- data/docs/ApiAppUpdateRequest.md +16 -0
- data/docs/BulkSendJobApi.md +155 -0
- data/docs/BulkSendJobGetResponse.md +13 -0
- data/docs/BulkSendJobGetResponseSignatureRequests.md +33 -0
- data/docs/BulkSendJobListResponse.md +12 -0
- data/docs/BulkSendJobResponse.md +13 -0
- data/docs/BulkSendJobSendResponse.md +11 -0
- data/docs/EmbeddedApi.md +158 -0
- data/docs/EmbeddedEditUrlRequest.md +19 -0
- data/docs/EmbeddedEditUrlResponse.md +11 -0
- data/docs/EmbeddedEditUrlResponseEmbedded.md +11 -0
- data/docs/EmbeddedSignUrlResponse.md +11 -0
- data/docs/EmbeddedSignUrlResponseEmbedded.md +11 -0
- data/docs/ErrorResponse.md +10 -0
- data/docs/ErrorResponseError.md +12 -0
- data/docs/EventCallbackRequest.md +13 -0
- data/docs/EventCallbackRequestEvent.md +13 -0
- data/docs/EventCallbackRequestEventMetadata.md +13 -0
- data/docs/FileResponse.md +11 -0
- data/docs/FileResponseDataUri.md +10 -0
- data/docs/ListInfoResponse.md +13 -0
- data/docs/OAuthApi.md +158 -0
- data/docs/OAuthTokenGenerateRequest.md +14 -0
- data/docs/OAuthTokenRefreshRequest.md +11 -0
- data/docs/OAuthTokenResponse.md +14 -0
- data/docs/ReportApi.md +83 -0
- data/docs/ReportCreateRequest.md +12 -0
- data/docs/ReportCreateResponse.md +11 -0
- data/docs/ReportResponse.md +13 -0
- data/docs/SignatureRequestApi.md +1377 -0
- data/docs/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md +22 -0
- data/docs/SignatureRequestBulkSendWithTemplateRequest.md +22 -0
- data/docs/SignatureRequestCreateEmbeddedRequest.md +33 -0
- data/docs/SignatureRequestCreateEmbeddedWithTemplateRequest.md +24 -0
- data/docs/SignatureRequestGetResponse.md +11 -0
- data/docs/SignatureRequestListResponse.md +12 -0
- data/docs/SignatureRequestRemindRequest.md +11 -0
- data/docs/SignatureRequestResponse.md +32 -0
- data/docs/SignatureRequestResponseAttachment.md +15 -0
- data/docs/SignatureRequestResponseCustomFieldBase.md +17 -0
- data/docs/SignatureRequestResponseCustomFieldCheckbox.md +11 -0
- data/docs/SignatureRequestResponseCustomFieldText.md +11 -0
- data/docs/SignatureRequestResponseCustomFieldTypeEnum.md +9 -0
- data/docs/SignatureRequestResponseDataBase.md +14 -0
- data/docs/SignatureRequestResponseDataTypeEnum.md +9 -0
- data/docs/SignatureRequestResponseDataValueCheckbox.md +11 -0
- data/docs/SignatureRequestResponseDataValueCheckboxMerge.md +11 -0
- data/docs/SignatureRequestResponseDataValueDateSigned.md +11 -0
- data/docs/SignatureRequestResponseDataValueDropdown.md +11 -0
- data/docs/SignatureRequestResponseDataValueInitials.md +11 -0
- data/docs/SignatureRequestResponseDataValueRadio.md +11 -0
- data/docs/SignatureRequestResponseDataValueSignature.md +11 -0
- data/docs/SignatureRequestResponseDataValueText.md +11 -0
- data/docs/SignatureRequestResponseDataValueTextMerge.md +11 -0
- data/docs/SignatureRequestResponseSignatures.md +28 -0
- data/docs/SignatureRequestSendRequest.md +34 -0
- data/docs/SignatureRequestSendWithTemplateRequest.md +25 -0
- data/docs/SignatureRequestUpdateRequest.md +13 -0
- data/docs/SubAttachment.md +13 -0
- data/docs/SubBulkSignerList.md +11 -0
- data/docs/SubBulkSignerListCustomField.md +11 -0
- data/docs/SubCC.md +11 -0
- data/docs/SubCustomField.md +17 -0
- data/docs/SubEditorOptions.md +11 -0
- data/docs/SubFieldOptions.md +10 -0
- data/docs/SubFormFieldGroup.md +12 -0
- data/docs/SubFormFieldRule.md +13 -0
- data/docs/SubFormFieldRuleAction.md +13 -0
- data/docs/SubFormFieldRuleTrigger.md +13 -0
- data/docs/SubFormFieldsPerDocumentBase.md +33 -0
- data/docs/SubFormFieldsPerDocumentCheckbox.md +12 -0
- data/docs/SubFormFieldsPerDocumentCheckboxMerge.md +10 -0
- data/docs/SubFormFieldsPerDocumentDateSigned.md +10 -0
- data/docs/SubFormFieldsPerDocumentDropdown.md +12 -0
- data/docs/SubFormFieldsPerDocumentHyperlink.md +12 -0
- data/docs/SubFormFieldsPerDocumentInitials.md +10 -0
- data/docs/SubFormFieldsPerDocumentRadio.md +12 -0
- data/docs/SubFormFieldsPerDocumentSignature.md +10 -0
- data/docs/SubFormFieldsPerDocumentText.md +17 -0
- data/docs/SubFormFieldsPerDocumentTextMerge.md +10 -0
- data/docs/SubFormFieldsPerDocumentTypeEnum.md +9 -0
- data/docs/SubMergeField.md +11 -0
- data/docs/SubOAuth.md +11 -0
- data/docs/SubOptions.md +10 -0
- data/docs/SubSignatureRequestGroupedSigners.md +12 -0
- data/docs/SubSignatureRequestSigner.md +15 -0
- data/docs/SubSignatureRequestTemplateSigner.md +15 -0
- data/docs/SubSigningOptions.md +16 -0
- data/docs/SubTeamResponse.md +11 -0
- data/docs/SubTemplateRole.md +11 -0
- data/docs/SubUnclaimedDraftSigner.md +12 -0
- data/docs/SubUnclaimedDraftTemplateSigner.md +12 -0
- data/docs/SubWhiteLabelingOptions.md +26 -0
- data/docs/TeamAddMemberRequest.md +12 -0
- data/docs/TeamApi.md +737 -0
- data/docs/TeamCreateRequest.md +10 -0
- data/docs/TeamGetInfoResponse.md +11 -0
- data/docs/TeamGetResponse.md +11 -0
- data/docs/TeamInfoResponse.md +14 -0
- data/docs/TeamInviteResponse.md +15 -0
- data/docs/TeamInvitesResponse.md +11 -0
- data/docs/TeamMemberResponse.md +12 -0
- data/docs/TeamMembersResponse.md +12 -0
- data/docs/TeamParentResponse.md +11 -0
- data/docs/TeamRemoveMemberRequest.md +14 -0
- data/docs/TeamResponse.md +12 -0
- data/docs/TeamSubTeamsResponse.md +12 -0
- data/docs/TeamUpdateRequest.md +10 -0
- data/docs/TemplateAddUserRequest.md +12 -0
- data/docs/TemplateApi.md +782 -0
- data/docs/TemplateCreateEmbeddedDraftRequest.md +34 -0
- data/docs/TemplateCreateEmbeddedDraftResponse.md +11 -0
- data/docs/TemplateCreateEmbeddedDraftResponseTemplate.md +13 -0
- data/docs/TemplateEditResponse.md +10 -0
- data/docs/TemplateGetResponse.md +11 -0
- data/docs/TemplateListResponse.md +12 -0
- data/docs/TemplateRemoveUserRequest.md +11 -0
- data/docs/TemplateResponse.md +24 -0
- data/docs/TemplateResponseAccount.md +15 -0
- data/docs/TemplateResponseAccountQuota.md +13 -0
- data/docs/TemplateResponseCCRole.md +10 -0
- data/docs/TemplateResponseCustomField.md +22 -0
- data/docs/TemplateResponseDocument.md +15 -0
- data/docs/TemplateResponseDocumentCustomField.md +25 -0
- data/docs/TemplateResponseDocumentFieldGroup.md +11 -0
- data/docs/TemplateResponseDocumentFormField.md +23 -0
- data/docs/TemplateResponseDocumentStaticField.md +19 -0
- data/docs/TemplateResponseFieldAvgTextLength.md +11 -0
- data/docs/TemplateResponseNamedFormField.md +23 -0
- data/docs/TemplateResponseSignerRole.md +11 -0
- data/docs/TemplateUpdateFilesRequest.md +15 -0
- data/docs/TemplateUpdateFilesResponse.md +10 -0
- data/docs/TemplateUpdateFilesResponseTemplate.md +11 -0
- data/docs/UnclaimedDraftApi.md +359 -0
- data/docs/UnclaimedDraftCreateEmbeddedRequest.md +45 -0
- data/docs/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md +38 -0
- data/docs/UnclaimedDraftCreateRequest.md +33 -0
- data/docs/UnclaimedDraftCreateResponse.md +11 -0
- data/docs/UnclaimedDraftEditAndResendRequest.md +17 -0
- data/docs/UnclaimedDraftResponse.md +15 -0
- data/docs/WarningResponse.md +11 -0
- data/dropbox-sign.gemspec +38 -0
- data/examples/AccountCreate.rb +21 -0
- data/examples/AccountGet.rb +18 -0
- data/examples/AccountUpdate.rb +21 -0
- data/examples/AccountVerify.rb +21 -0
- data/examples/ApiAppCreate.rb +35 -0
- data/examples/ApiAppDelete.rb +20 -0
- data/examples/ApiAppGet.rb +20 -0
- data/examples/ApiAppList.rb +21 -0
- data/examples/ApiAppUpdate.rb +32 -0
- data/examples/BulkSendJobGet.rb +20 -0
- data/examples/BulkSendJobList.rb +21 -0
- data/examples/EmbeddedEditUrl.rb +24 -0
- data/examples/EmbeddedSignUrl.rb +20 -0
- data/examples/EventCallback.rb +32 -0
- data/examples/OauthTokenGenerate.rb +24 -0
- data/examples/OauthTokenRefresh.rb +21 -0
- data/examples/ReportCreate.rb +23 -0
- data/examples/SignatureRequestBulkCreateEmbeddedWithTemplate.rb +59 -0
- data/examples/SignatureRequestBulkSendWithTemplate.rb +58 -0
- data/examples/SignatureRequestCancel.rb +20 -0
- data/examples/SignatureRequestCreateEmbedded.rb +46 -0
- data/examples/SignatureRequestCreateEmbeddedWithTemplate.rb +39 -0
- data/examples/SignatureRequestFiles.rb +20 -0
- data/examples/SignatureRequestFilesAsDataUri.rb +20 -0
- data/examples/SignatureRequestFilesAsFileUrl.rb +20 -0
- data/examples/SignatureRequestGet.rb +20 -0
- data/examples/SignatureRequestList.rb +21 -0
- data/examples/SignatureRequestReleaseHold.rb +20 -0
- data/examples/SignatureRequestRemind.rb +23 -0
- data/examples/SignatureRequestRemove.rb +20 -0
- data/examples/SignatureRequestSend.rb +56 -0
- data/examples/SignatureRequestSendWithTemplate.rb +50 -0
- data/examples/SignatureRequestUpdate.rb +24 -0
- data/examples/TeamAddMember.rb +21 -0
- data/examples/TeamCreate.rb +21 -0
- data/examples/TeamDelete.rb +18 -0
- data/examples/TeamGet.rb +18 -0
- data/examples/TeamInfo.rb +18 -0
- data/examples/TeamInvites.rb +20 -0
- data/examples/TeamMembers.rb +20 -0
- data/examples/TeamRemoveMember.rb +22 -0
- data/examples/TeamSubTeams.rb +20 -0
- data/examples/TeamUpdate.rb +21 -0
- data/examples/TemplateAddUser.rb +23 -0
- data/examples/TemplateCreateEmbeddedDraft.rb +49 -0
- data/examples/TemplateDelete.rb +20 -0
- data/examples/TemplateFiles.rb +20 -0
- data/examples/TemplateFilesAsDataUri.rb +20 -0
- data/examples/TemplateFilesAsFileUrl.rb +20 -0
- data/examples/TemplateGet.rb +20 -0
- data/examples/TemplateList.rb +20 -0
- data/examples/TemplateRemoveUser.rb +23 -0
- data/examples/TemplateUpdateFiles.rb +23 -0
- data/examples/UnclaimedDraftCreate.rb +56 -0
- data/examples/UnclaimedDraftCreateEmbedded.rb +24 -0
- data/examples/UnclaimedDraftCreateEmbeddedWithTemplate.rb +35 -0
- data/examples/UnclaimedDraftEditAndResend.rb +24 -0
- data/lib/dropbox-sign/api/account_api.rb +446 -0
- data/lib/dropbox-sign/api/api_app_api.rb +504 -0
- data/lib/dropbox-sign/api/bulk_send_job_api.rb +213 -0
- data/lib/dropbox-sign/api/embedded_api.rb +234 -0
- data/lib/dropbox-sign/api/o_auth_api.rb +215 -0
- data/lib/dropbox-sign/api/report_api.rb +134 -0
- data/lib/dropbox-sign/api/signature_request_api.rb +1620 -0
- data/lib/dropbox-sign/api/team_api.rb +1011 -0
- data/lib/dropbox-sign/api/template_api.rb +1037 -0
- data/lib/dropbox-sign/api/unclaimed_draft_api.rb +467 -0
- data/lib/dropbox-sign/api_client.rb +417 -0
- data/lib/dropbox-sign/api_error.rb +60 -0
- data/lib/dropbox-sign/configuration.rb +303 -0
- data/lib/dropbox-sign/event_callback_helper.rb +54 -0
- data/lib/dropbox-sign/models/account_create_request.rb +285 -0
- data/lib/dropbox-sign/models/account_create_response.rb +270 -0
- data/lib/dropbox-sign/models/account_get_response.rb +261 -0
- data/lib/dropbox-sign/models/account_response.rb +343 -0
- data/lib/dropbox-sign/models/account_response_quotas.rb +296 -0
- data/lib/dropbox-sign/models/account_update_request.rb +271 -0
- data/lib/dropbox-sign/models/account_verify_request.rb +255 -0
- data/lib/dropbox-sign/models/account_verify_response.rb +261 -0
- data/lib/dropbox-sign/models/account_verify_response_account.rb +250 -0
- data/lib/dropbox-sign/models/api_app_create_request.rb +347 -0
- data/lib/dropbox-sign/models/api_app_get_response.rb +261 -0
- data/lib/dropbox-sign/models/api_app_list_response.rb +273 -0
- data/lib/dropbox-sign/models/api_app_response.rb +343 -0
- data/lib/dropbox-sign/models/api_app_response_o_auth.rb +283 -0
- data/lib/dropbox-sign/models/api_app_response_options.rb +251 -0
- data/lib/dropbox-sign/models/api_app_response_owner_account.rb +261 -0
- data/lib/dropbox-sign/models/api_app_response_white_labeling_options.rb +367 -0
- data/lib/dropbox-sign/models/api_app_update_request.rb +324 -0
- data/lib/dropbox-sign/models/bulk_send_job_get_response.rb +282 -0
- data/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb +503 -0
- data/lib/dropbox-sign/models/bulk_send_job_list_response.rb +273 -0
- data/lib/dropbox-sign/models/bulk_send_job_response.rb +282 -0
- data/lib/dropbox-sign/models/bulk_send_job_send_response.rb +261 -0
- data/lib/dropbox-sign/models/embedded_edit_url_request.rb +357 -0
- data/lib/dropbox-sign/models/embedded_edit_url_response.rb +261 -0
- data/lib/dropbox-sign/models/embedded_edit_url_response_embedded.rb +261 -0
- data/lib/dropbox-sign/models/embedded_sign_url_response.rb +261 -0
- data/lib/dropbox-sign/models/embedded_sign_url_response_embedded.rb +261 -0
- data/lib/dropbox-sign/models/error_response.rb +254 -0
- data/lib/dropbox-sign/models/error_response_error.rb +281 -0
- data/lib/dropbox-sign/models/event_callback_request.rb +281 -0
- data/lib/dropbox-sign/models/event_callback_request_event.rb +334 -0
- data/lib/dropbox-sign/models/event_callback_request_event_metadata.rb +285 -0
- data/lib/dropbox-sign/models/file_response.rb +260 -0
- data/lib/dropbox-sign/models/file_response_data_uri.rb +250 -0
- data/lib/dropbox-sign/models/list_info_response.rb +282 -0
- data/lib/dropbox-sign/models/o_auth_token_generate_request.rb +317 -0
- data/lib/dropbox-sign/models/o_auth_token_refresh_request.rb +272 -0
- data/lib/dropbox-sign/models/o_auth_token_response.rb +287 -0
- data/lib/dropbox-sign/models/report_create_request.rb +319 -0
- data/lib/dropbox-sign/models/report_create_response.rb +261 -0
- data/lib/dropbox-sign/models/report_response.rb +305 -0
- data/lib/dropbox-sign/models/signature_request_bulk_create_embedded_with_template_request.rb +445 -0
- data/lib/dropbox-sign/models/signature_request_bulk_send_with_template_request.rb +440 -0
- data/lib/dropbox-sign/models/signature_request_create_embedded_request.rb +569 -0
- data/lib/dropbox-sign/models/signature_request_create_embedded_with_template_request.rb +475 -0
- data/lib/dropbox-sign/models/signature_request_get_response.rb +261 -0
- data/lib/dropbox-sign/models/signature_request_list_response.rb +273 -0
- data/lib/dropbox-sign/models/signature_request_remind_request.rb +265 -0
- data/lib/dropbox-sign/models/signature_request_response.rb +494 -0
- data/lib/dropbox-sign/models/signature_request_response_attachment.rb +323 -0
- data/lib/dropbox-sign/models/signature_request_response_custom_field_base.rb +316 -0
- data/lib/dropbox-sign/models/signature_request_response_custom_field_checkbox.rb +272 -0
- data/lib/dropbox-sign/models/signature_request_response_custom_field_text.rb +272 -0
- data/lib/dropbox-sign/models/signature_request_response_custom_field_type_enum.rb +40 -0
- data/lib/dropbox-sign/models/signature_request_response_data_base.rb +326 -0
- data/lib/dropbox-sign/models/signature_request_response_data_type_enum.rb +47 -0
- data/lib/dropbox-sign/models/signature_request_response_data_value_checkbox.rb +266 -0
- data/lib/dropbox-sign/models/signature_request_response_data_value_checkbox_merge.rb +266 -0
- data/lib/dropbox-sign/models/signature_request_response_data_value_date_signed.rb +266 -0
- data/lib/dropbox-sign/models/signature_request_response_data_value_dropdown.rb +266 -0
- data/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb +266 -0
- data/lib/dropbox-sign/models/signature_request_response_data_value_radio.rb +266 -0
- data/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb +266 -0
- data/lib/dropbox-sign/models/signature_request_response_data_value_text.rb +266 -0
- data/lib/dropbox-sign/models/signature_request_response_data_value_text_merge.rb +266 -0
- data/lib/dropbox-sign/models/signature_request_response_signatures.rb +446 -0
- data/lib/dropbox-sign/models/signature_request_send_request.rb +574 -0
- data/lib/dropbox-sign/models/signature_request_send_with_template_request.rb +480 -0
- data/lib/dropbox-sign/models/signature_request_update_request.rb +286 -0
- data/lib/dropbox-sign/models/sub_attachment.rb +292 -0
- data/lib/dropbox-sign/models/sub_bulk_signer_list.rb +264 -0
- data/lib/dropbox-sign/models/sub_bulk_signer_list_custom_field.rb +270 -0
- data/lib/dropbox-sign/models/sub_cc.rb +270 -0
- data/lib/dropbox-sign/models/sub_custom_field.rb +288 -0
- data/lib/dropbox-sign/models/sub_editor_options.rb +265 -0
- data/lib/dropbox-sign/models/sub_field_options.rb +290 -0
- data/lib/dropbox-sign/models/sub_form_field_group.rb +285 -0
- data/lib/dropbox-sign/models/sub_form_field_rule.rb +353 -0
- data/lib/dropbox-sign/models/sub_form_field_rule_action.rb +323 -0
- data/lib/dropbox-sign/models/sub_form_field_rule_trigger.rb +326 -0
- data/lib/dropbox-sign/models/sub_form_fields_per_document_base.rb +435 -0
- data/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox.rb +287 -0
- data/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox_merge.rb +262 -0
- data/lib/dropbox-sign/models/sub_form_fields_per_document_date_signed.rb +262 -0
- data/lib/dropbox-sign/models/sub_form_fields_per_document_dropdown.rb +308 -0
- data/lib/dropbox-sign/models/sub_form_fields_per_document_hyperlink.rb +292 -0
- data/lib/dropbox-sign/models/sub_form_fields_per_document_initials.rb +262 -0
- data/lib/dropbox-sign/models/sub_form_fields_per_document_radio.rb +292 -0
- data/lib/dropbox-sign/models/sub_form_fields_per_document_signature.rb +262 -0
- data/lib/dropbox-sign/models/sub_form_fields_per_document_text.rb +364 -0
- data/lib/dropbox-sign/models/sub_form_fields_per_document_text_merge.rb +262 -0
- data/lib/dropbox-sign/models/sub_form_fields_per_document_type_enum.rb +48 -0
- data/lib/dropbox-sign/models/sub_merge_field.rb +304 -0
- data/lib/dropbox-sign/models/sub_o_auth.rb +285 -0
- data/lib/dropbox-sign/models/sub_options.rb +253 -0
- data/lib/dropbox-sign/models/sub_signature_request_grouped_signers.rb +283 -0
- data/lib/dropbox-sign/models/sub_signature_request_signer.rb +369 -0
- data/lib/dropbox-sign/models/sub_signature_request_template_signer.rb +373 -0
- data/lib/dropbox-sign/models/sub_signing_options.rb +338 -0
- data/lib/dropbox-sign/models/sub_team_response.rb +260 -0
- data/lib/dropbox-sign/models/sub_template_role.rb +261 -0
- data/lib/dropbox-sign/models/sub_unclaimed_draft_signer.rb +281 -0
- data/lib/dropbox-sign/models/sub_unclaimed_draft_template_signer.rb +285 -0
- data/lib/dropbox-sign/models/sub_white_labeling_options.rb +439 -0
- data/lib/dropbox-sign/models/team_add_member_request.rb +304 -0
- data/lib/dropbox-sign/models/team_create_request.rb +252 -0
- data/lib/dropbox-sign/models/team_get_info_response.rb +261 -0
- data/lib/dropbox-sign/models/team_get_response.rb +261 -0
- data/lib/dropbox-sign/models/team_info_response.rb +290 -0
- data/lib/dropbox-sign/models/team_invite_response.rb +300 -0
- data/lib/dropbox-sign/models/team_invites_response.rb +263 -0
- data/lib/dropbox-sign/models/team_member_response.rb +270 -0
- data/lib/dropbox-sign/models/team_members_response.rb +272 -0
- data/lib/dropbox-sign/models/team_parent_response.rb +261 -0
- data/lib/dropbox-sign/models/team_remove_member_request.rb +324 -0
- data/lib/dropbox-sign/models/team_response.rb +274 -0
- data/lib/dropbox-sign/models/team_sub_teams_response.rb +272 -0
- data/lib/dropbox-sign/models/team_update_request.rb +250 -0
- data/lib/dropbox-sign/models/template_add_user_request.rb +272 -0
- data/lib/dropbox-sign/models/template_create_embedded_draft_request.rb +567 -0
- data/lib/dropbox-sign/models/template_create_embedded_draft_response.rb +261 -0
- data/lib/dropbox-sign/models/template_create_embedded_draft_response_template.rb +283 -0
- data/lib/dropbox-sign/models/template_edit_response.rb +250 -0
- data/lib/dropbox-sign/models/template_get_response.rb +261 -0
- data/lib/dropbox-sign/models/template_list_response.rb +273 -0
- data/lib/dropbox-sign/models/template_remove_user_request.rb +260 -0
- data/lib/dropbox-sign/models/template_response.rb +410 -0
- data/lib/dropbox-sign/models/template_response_account.rb +299 -0
- data/lib/dropbox-sign/models/template_response_account_quota.rb +281 -0
- data/lib/dropbox-sign/models/template_response_cc_role.rb +250 -0
- data/lib/dropbox-sign/models/template_response_custom_field.rb +407 -0
- data/lib/dropbox-sign/models/template_response_document.rb +309 -0
- data/lib/dropbox-sign/models/template_response_document_custom_field.rb +438 -0
- data/lib/dropbox-sign/models/template_response_document_field_group.rb +260 -0
- data/lib/dropbox-sign/models/template_response_document_form_field.rb +417 -0
- data/lib/dropbox-sign/models/template_response_document_static_field.rb +341 -0
- data/lib/dropbox-sign/models/template_response_field_avg_text_length.rb +261 -0
- data/lib/dropbox-sign/models/template_response_named_form_field.rb +383 -0
- data/lib/dropbox-sign/models/template_response_signer_role.rb +260 -0
- data/lib/dropbox-sign/models/template_update_files_request.rb +336 -0
- data/lib/dropbox-sign/models/template_update_files_response.rb +249 -0
- data/lib/dropbox-sign/models/template_update_files_response_template.rb +263 -0
- data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb +728 -0
- data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_with_template_request.rb +631 -0
- data/lib/dropbox-sign/models/unclaimed_draft_create_request.rb +586 -0
- data/lib/dropbox-sign/models/unclaimed_draft_create_response.rb +261 -0
- data/lib/dropbox-sign/models/unclaimed_draft_edit_and_resend_request.rb +328 -0
- data/lib/dropbox-sign/models/unclaimed_draft_response.rb +305 -0
- data/lib/dropbox-sign/models/warning_response.rb +271 -0
- data/lib/dropbox-sign/version.rb +18 -0
- data/lib/dropbox-sign.rb +204 -0
- data/openapi-config.yaml +21 -0
- data/openapi-sdk.yaml +11080 -0
- data/run-build +53 -0
- data/spec/api/account_api_spec.rb +107 -0
- data/spec/api/api_app_api_spec.rb +95 -0
- data/spec/api/bulk_send_job_api_spec.rb +52 -0
- data/spec/api/embedded_api_spec.rb +55 -0
- data/spec/api/oauth_api_spec.rb +55 -0
- data/spec/api/report_api_spec.rb +38 -0
- data/spec/api/signature_request_api_spec.rb +263 -0
- data/spec/api/team_api_spec.rb +105 -0
- data/spec/api/template_api_spec.rb +147 -0
- data/spec/api/unclaimed_draft_api_spec.rb +95 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/event_callback_helper_spec.rb +22 -0
- data/spec/fixtures_spec.rb +59 -0
- data/spec/models/sub_form_fields_per_document_base_spec.rb +24 -0
- data/spec/spec_helper.rb +111 -0
- data/spec/test_utils.rb +19 -0
- data/templates/Gemfile.mustache +10 -0
- data/templates/README.mustache +133 -0
- data/templates/Rakefile.mustache +10 -0
- data/templates/api.mustache +283 -0
- data/templates/api_client.mustache +291 -0
- data/templates/api_client_faraday_partial.mustache +136 -0
- data/templates/api_client_spec.mustache +220 -0
- data/templates/api_client_typhoeus_partial.mustache +153 -0
- data/templates/api_doc.mustache +77 -0
- data/templates/api_error.mustache +52 -0
- data/templates/api_info.mustache +12 -0
- data/templates/api_test.mustache +47 -0
- data/templates/base_object.mustache +132 -0
- data/templates/configuration.mustache +372 -0
- data/templates/configuration_spec.mustache +34 -0
- data/templates/configuration_tls_faraday_partial.mustache +29 -0
- data/templates/configuration_tls_typhoeus_partial.mustache +34 -0
- data/templates/event_callback_helper.mustache +46 -0
- data/templates/gem.mustache +55 -0
- data/templates/gemspec.mustache +35 -0
- data/templates/git_push.sh.mustache +57 -0
- data/templates/gitignore.mustache +41 -0
- data/templates/model.mustache +29 -0
- data/templates/model_doc.mustache +12 -0
- data/templates/model_test.mustache +77 -0
- data/templates/partial_model_enum_class.mustache +20 -0
- data/templates/partial_model_generic.mustache +414 -0
- data/templates/partial_model_generic_doc.mustache +10 -0
- data/templates/partial_oneof_module.mustache +137 -0
- data/templates/partial_oneof_module_doc.mustache +92 -0
- data/templates/rspec.mustache +2 -0
- data/templates/rubocop.mustache +148 -0
- data/templates/spec_helper.mustache +103 -0
- data/templates/travis.mustache +14 -0
- data/templates/version.mustache +10 -0
- data/test_fixtures/AccountCreateRequest.json +7 -0
- data/test_fixtures/AccountCreateResponse.json +15 -0
- data/test_fixtures/AccountGetResponse.json +14 -0
- data/test_fixtures/AccountUpdateRequest.json +5 -0
- data/test_fixtures/AccountVerifyRequest.json +5 -0
- data/test_fixtures/AccountVerifyResponse.json +7 -0
- data/test_fixtures/ApiAppCreateRequest.json +35 -0
- data/test_fixtures/ApiAppGetResponse.json +27 -0
- data/test_fixtures/ApiAppListResponse.json +42 -0
- data/test_fixtures/ApiAppUpdateRequest.json +35 -0
- data/test_fixtures/BulkSendJobGetResponse.json +67 -0
- data/test_fixtures/BulkSendJobListResponse.json +24 -0
- data/test_fixtures/BulkSendJobSendResponse.json +10 -0
- data/test_fixtures/EmbeddedEditUrlRequest.json +28 -0
- data/test_fixtures/EmbeddedEditUrlResponse.json +8 -0
- data/test_fixtures/EmbeddedSignUrlResponse.json +8 -0
- data/test_fixtures/ErrorResponse.json +9 -0
- data/test_fixtures/EventCallbackHelper.json +50 -0
- data/test_fixtures/FileResponse.json +6 -0
- data/test_fixtures/OAuthTokenGenerateRequest.json +9 -0
- data/test_fixtures/OAuthTokenRefreshRequest.json +6 -0
- data/test_fixtures/OAuthTokenResponse.json +15 -0
- data/test_fixtures/ReportCreateRequest.json +10 -0
- data/test_fixtures/ReportCreateResponse.json +13 -0
- data/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json +67 -0
- data/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json +66 -0
- data/test_fixtures/SignatureRequestCreateEmbeddedRequest.json +252 -0
- data/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json +60 -0
- data/test_fixtures/SignatureRequestGetResponse.json +146 -0
- data/test_fixtures/SignatureRequestListResponse.json +102 -0
- data/test_fixtures/SignatureRequestRemindRequest.json +5 -0
- data/test_fixtures/SignatureRequestSendRequest.json +463 -0
- data/test_fixtures/SignatureRequestSendWithTemplateRequest.json +48 -0
- data/test_fixtures/SignatureRequestUpdateRequest.json +7 -0
- data/test_fixtures/SubFormFieldsPerDocument.json +107 -0
- data/test_fixtures/TeamAddMemberRequest.json +6 -0
- data/test_fixtures/TeamCreateRequest.json +5 -0
- data/test_fixtures/TeamGetResponse.json +34 -0
- data/test_fixtures/TeamRemoveMemberRequest.json +7 -0
- data/test_fixtures/TeamUpdateRequest.json +5 -0
- data/test_fixtures/TemplateAddUserRequest.json +7 -0
- data/test_fixtures/TemplateCreateEmbeddedDraftRequest.json +118 -0
- data/test_fixtures/TemplateCreateEmbeddedDraftResponse.json +9 -0
- data/test_fixtures/TemplateGetResponse.json +102 -0
- data/test_fixtures/TemplateListResponse.json +143 -0
- data/test_fixtures/TemplateRemoveUserRequest.json +6 -0
- data/test_fixtures/TemplateUpdateFilesRequest.json +11 -0
- data/test_fixtures/TemplateUpdateFilesResponse.json +7 -0
- data/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json +134 -0
- data/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json +67 -0
- data/test_fixtures/UnclaimedDraftCreateRequest.json +119 -0
- data/test_fixtures/UnclaimedDraftCreateResponse.json +9 -0
- data/test_fixtures/UnclaimedDraftEditAndResendRequest.json +15 -0
- data/test_fixtures/bulk-send-sample.csv +3 -0
- data/test_fixtures/pdf-sample-2.pdf +0 -0
- data/test_fixtures/pdf-sample.pdf +0 -0
- data/vendor/autoload.php +7 -0
- data/vendor/bin/yaml-lint +117 -0
- data/vendor/composer/ClassLoader.php +572 -0
- data/vendor/composer/InstalledVersions.php +350 -0
- data/vendor/composer/LICENSE +21 -0
- data/vendor/composer/autoload_classmap.php +10 -0
- data/vendor/composer/autoload_files.php +11 -0
- data/vendor/composer/autoload_namespaces.php +9 -0
- data/vendor/composer/autoload_psr4.php +11 -0
- data/vendor/composer/autoload_real.php +80 -0
- data/vendor/composer/autoload_static.php +46 -0
- data/vendor/composer/installed.json +239 -0
- data/vendor/composer/installed.php +50 -0
- data/vendor/composer/platform_check.php +26 -0
- data/vendor/symfony/deprecation-contracts/.gitignore +3 -0
- data/vendor/symfony/deprecation-contracts/CHANGELOG.md +5 -0
- data/vendor/symfony/deprecation-contracts/LICENSE +19 -0
- data/vendor/symfony/deprecation-contracts/README.md +26 -0
- data/vendor/symfony/deprecation-contracts/composer.json +35 -0
- data/vendor/symfony/deprecation-contracts/function.php +27 -0
- data/vendor/symfony/polyfill-ctype/Ctype.php +232 -0
- data/vendor/symfony/polyfill-ctype/LICENSE +19 -0
- data/vendor/symfony/polyfill-ctype/README.md +12 -0
- data/vendor/symfony/polyfill-ctype/bootstrap.php +50 -0
- data/vendor/symfony/polyfill-ctype/bootstrap80.php +46 -0
- data/vendor/symfony/polyfill-ctype/composer.json +41 -0
- data/vendor/symfony/yaml/CHANGELOG.md +237 -0
- data/vendor/symfony/yaml/Command/LintCommand.php +289 -0
- data/vendor/symfony/yaml/Dumper.php +140 -0
- data/vendor/symfony/yaml/Escaper.php +95 -0
- data/vendor/symfony/yaml/Exception/DumpException.php +21 -0
- data/vendor/symfony/yaml/Exception/ExceptionInterface.php +21 -0
- data/vendor/symfony/yaml/Exception/ParseException.php +132 -0
- data/vendor/symfony/yaml/Exception/RuntimeException.php +21 -0
- data/vendor/symfony/yaml/Inline.php +812 -0
- data/vendor/symfony/yaml/LICENSE +19 -0
- data/vendor/symfony/yaml/Parser.php +1305 -0
- data/vendor/symfony/yaml/README.md +13 -0
- data/vendor/symfony/yaml/Resources/bin/yaml-lint +45 -0
- data/vendor/symfony/yaml/Tag/TaggedValue.php +38 -0
- data/vendor/symfony/yaml/Unescaper.php +132 -0
- data/vendor/symfony/yaml/Yaml.php +100 -0
- data/vendor/symfony/yaml/composer.json +42 -0
- metadata +650 -0
@@ -0,0 +1,574 @@
|
|
1
|
+
=begin
|
2
|
+
#Dropbox Sign API
|
3
|
+
|
4
|
+
#Dropbox Sign v3 API
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 3.0.0
|
7
|
+
Contact: apisupport@hellosign.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Dropbox
|
17
|
+
end
|
18
|
+
|
19
|
+
module Dropbox::Sign
|
20
|
+
class SignatureRequestSendRequest
|
21
|
+
# Use `files[]` to indicate the uploaded file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both.
|
22
|
+
attr_accessor :files
|
23
|
+
|
24
|
+
# Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature. This endpoint requires either **files** or **file_urls[]**, but not both.
|
25
|
+
attr_accessor :file_urls
|
26
|
+
|
27
|
+
# Add Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both.
|
28
|
+
attr_accessor :signers
|
29
|
+
|
30
|
+
# Add Grouped Signers to your Signature Request. This endpoint requires either **signers** or **grouped_signers**, but not both.
|
31
|
+
attr_accessor :grouped_signers
|
32
|
+
|
33
|
+
# Allows signers to decline to sign a document if `true`. Defaults to `false`.
|
34
|
+
attr_accessor :allow_decline
|
35
|
+
|
36
|
+
# Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **Note**: Only available for Premium plan and higher.
|
37
|
+
attr_accessor :allow_reassign
|
38
|
+
|
39
|
+
# A list describing the attachments
|
40
|
+
attr_accessor :attachments
|
41
|
+
|
42
|
+
# The email addresses that should be CCed.
|
43
|
+
attr_accessor :cc_email_addresses
|
44
|
+
|
45
|
+
# The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app.
|
46
|
+
attr_accessor :client_id
|
47
|
+
|
48
|
+
# When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests. Pre-filled data can be used with \"send-once\" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call. For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template.
|
49
|
+
attr_accessor :custom_fields
|
50
|
+
|
51
|
+
attr_accessor :field_options
|
52
|
+
|
53
|
+
# Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`.
|
54
|
+
attr_accessor :form_field_groups
|
55
|
+
|
56
|
+
# Conditional Logic rules for fields defined in `form_fields_per_document`.
|
57
|
+
attr_accessor :form_field_rules
|
58
|
+
|
59
|
+
# The fields that should appear on the document, expressed as an array of objects. (We're currently fixing a bug where this property only accepts a two-dimensional array. You can read about it here: <a href=\"/docs/openapi/form-fields-per-document\" target=\"_blank\">Using Form Fields per Document</a>.) **NOTE**: Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge`
|
60
|
+
attr_accessor :form_fields_per_document
|
61
|
+
|
62
|
+
# Enables automatic Text Tag removal when set to true. **NOTE**: Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information.
|
63
|
+
attr_accessor :hide_text_tags
|
64
|
+
|
65
|
+
# Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br> **Note**: QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer.
|
66
|
+
attr_accessor :is_qualified_signature
|
67
|
+
|
68
|
+
# The custom message in the email that will be sent to the signers.
|
69
|
+
attr_accessor :message
|
70
|
+
|
71
|
+
# Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long.
|
72
|
+
attr_accessor :metadata
|
73
|
+
|
74
|
+
attr_accessor :signing_options
|
75
|
+
|
76
|
+
# The URL you want signers redirected to after they successfully sign.
|
77
|
+
attr_accessor :signing_redirect_url
|
78
|
+
|
79
|
+
# The subject in the email that will be sent to the signers.
|
80
|
+
attr_accessor :subject
|
81
|
+
|
82
|
+
# Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`.
|
83
|
+
attr_accessor :test_mode
|
84
|
+
|
85
|
+
# The title you want to assign to the SignatureRequest.
|
86
|
+
attr_accessor :title
|
87
|
+
|
88
|
+
# Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`.
|
89
|
+
attr_accessor :use_text_tags
|
90
|
+
|
91
|
+
# When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.
|
92
|
+
attr_accessor :expires_at
|
93
|
+
|
94
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
95
|
+
def self.attribute_map
|
96
|
+
{
|
97
|
+
:'files' => :'files',
|
98
|
+
:'file_urls' => :'file_urls',
|
99
|
+
:'signers' => :'signers',
|
100
|
+
:'grouped_signers' => :'grouped_signers',
|
101
|
+
:'allow_decline' => :'allow_decline',
|
102
|
+
:'allow_reassign' => :'allow_reassign',
|
103
|
+
:'attachments' => :'attachments',
|
104
|
+
:'cc_email_addresses' => :'cc_email_addresses',
|
105
|
+
:'client_id' => :'client_id',
|
106
|
+
:'custom_fields' => :'custom_fields',
|
107
|
+
:'field_options' => :'field_options',
|
108
|
+
:'form_field_groups' => :'form_field_groups',
|
109
|
+
:'form_field_rules' => :'form_field_rules',
|
110
|
+
:'form_fields_per_document' => :'form_fields_per_document',
|
111
|
+
:'hide_text_tags' => :'hide_text_tags',
|
112
|
+
:'is_qualified_signature' => :'is_qualified_signature',
|
113
|
+
:'message' => :'message',
|
114
|
+
:'metadata' => :'metadata',
|
115
|
+
:'signing_options' => :'signing_options',
|
116
|
+
:'signing_redirect_url' => :'signing_redirect_url',
|
117
|
+
:'subject' => :'subject',
|
118
|
+
:'test_mode' => :'test_mode',
|
119
|
+
:'title' => :'title',
|
120
|
+
:'use_text_tags' => :'use_text_tags',
|
121
|
+
:'expires_at' => :'expires_at'
|
122
|
+
}
|
123
|
+
end
|
124
|
+
|
125
|
+
# Returns all the JSON keys this model knows about
|
126
|
+
def self.acceptable_attributes
|
127
|
+
attribute_map.values
|
128
|
+
end
|
129
|
+
|
130
|
+
# Returns attribute map of this model + parent
|
131
|
+
def self.merged_attributes
|
132
|
+
self.attribute_map
|
133
|
+
end
|
134
|
+
|
135
|
+
# Attribute type mapping.
|
136
|
+
def self.openapi_types
|
137
|
+
{
|
138
|
+
:'files' => :'Array<File>',
|
139
|
+
:'file_urls' => :'Array<String>',
|
140
|
+
:'signers' => :'Array<SubSignatureRequestSigner>',
|
141
|
+
:'grouped_signers' => :'Array<SubSignatureRequestGroupedSigners>',
|
142
|
+
:'allow_decline' => :'Boolean',
|
143
|
+
:'allow_reassign' => :'Boolean',
|
144
|
+
:'attachments' => :'Array<SubAttachment>',
|
145
|
+
:'cc_email_addresses' => :'Array<String>',
|
146
|
+
:'client_id' => :'String',
|
147
|
+
:'custom_fields' => :'Array<SubCustomField>',
|
148
|
+
:'field_options' => :'SubFieldOptions',
|
149
|
+
:'form_field_groups' => :'Array<SubFormFieldGroup>',
|
150
|
+
:'form_field_rules' => :'Array<SubFormFieldRule>',
|
151
|
+
:'form_fields_per_document' => :'Array<SubFormFieldsPerDocumentBase>',
|
152
|
+
:'hide_text_tags' => :'Boolean',
|
153
|
+
:'is_qualified_signature' => :'Boolean',
|
154
|
+
:'message' => :'String',
|
155
|
+
:'metadata' => :'Hash<String, Object>',
|
156
|
+
:'signing_options' => :'SubSigningOptions',
|
157
|
+
:'signing_redirect_url' => :'String',
|
158
|
+
:'subject' => :'String',
|
159
|
+
:'test_mode' => :'Boolean',
|
160
|
+
:'title' => :'String',
|
161
|
+
:'use_text_tags' => :'Boolean',
|
162
|
+
:'expires_at' => :'Integer'
|
163
|
+
}
|
164
|
+
end
|
165
|
+
|
166
|
+
# Attribute type mapping of this model + parent
|
167
|
+
def self.merged_types
|
168
|
+
self.openapi_types
|
169
|
+
end
|
170
|
+
|
171
|
+
# List of attributes with nullable: true
|
172
|
+
def self.openapi_nullable
|
173
|
+
Set.new([
|
174
|
+
:'expires_at'
|
175
|
+
])
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns list of attributes with nullable: true of this model + parent
|
179
|
+
def self.merged_nullable
|
180
|
+
self.openapi_nullable
|
181
|
+
end
|
182
|
+
|
183
|
+
# Attempt to instantiate and hydrate a new instance of this class
|
184
|
+
# @param [Object] data Data to be converted
|
185
|
+
# @return [SignatureRequestSendRequest]
|
186
|
+
def self.init(data)
|
187
|
+
return ApiClient.default.convert_to_type(
|
188
|
+
data,
|
189
|
+
"SignatureRequestSendRequest"
|
190
|
+
) || SignatureRequestSendRequest.new
|
191
|
+
end
|
192
|
+
|
193
|
+
# Initializes the object
|
194
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
195
|
+
def initialize(attributes = {})
|
196
|
+
if (!attributes.is_a?(Hash))
|
197
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::SignatureRequestSendRequest` initialize method"
|
198
|
+
end
|
199
|
+
|
200
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
201
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
202
|
+
if (!self.class.merged_attributes.key?(k.to_sym))
|
203
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::SignatureRequestSendRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
204
|
+
end
|
205
|
+
h[k.to_sym] = v
|
206
|
+
}
|
207
|
+
|
208
|
+
if attributes.key?(:'files')
|
209
|
+
if (value = attributes[:'files']).is_a?(Array)
|
210
|
+
self.files = value
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
if attributes.key?(:'file_urls')
|
215
|
+
if (value = attributes[:'file_urls']).is_a?(Array)
|
216
|
+
self.file_urls = value
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
if attributes.key?(:'signers')
|
221
|
+
if (value = attributes[:'signers']).is_a?(Array)
|
222
|
+
self.signers = value
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
if attributes.key?(:'grouped_signers')
|
227
|
+
if (value = attributes[:'grouped_signers']).is_a?(Array)
|
228
|
+
self.grouped_signers = value
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
if attributes.key?(:'allow_decline')
|
233
|
+
self.allow_decline = attributes[:'allow_decline']
|
234
|
+
else
|
235
|
+
self.allow_decline = false
|
236
|
+
end
|
237
|
+
|
238
|
+
if attributes.key?(:'allow_reassign')
|
239
|
+
self.allow_reassign = attributes[:'allow_reassign']
|
240
|
+
else
|
241
|
+
self.allow_reassign = false
|
242
|
+
end
|
243
|
+
|
244
|
+
if attributes.key?(:'attachments')
|
245
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
246
|
+
self.attachments = value
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
if attributes.key?(:'cc_email_addresses')
|
251
|
+
if (value = attributes[:'cc_email_addresses']).is_a?(Array)
|
252
|
+
self.cc_email_addresses = value
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
if attributes.key?(:'client_id')
|
257
|
+
self.client_id = attributes[:'client_id']
|
258
|
+
end
|
259
|
+
|
260
|
+
if attributes.key?(:'custom_fields')
|
261
|
+
if (value = attributes[:'custom_fields']).is_a?(Array)
|
262
|
+
self.custom_fields = value
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
if attributes.key?(:'field_options')
|
267
|
+
self.field_options = attributes[:'field_options']
|
268
|
+
end
|
269
|
+
|
270
|
+
if attributes.key?(:'form_field_groups')
|
271
|
+
if (value = attributes[:'form_field_groups']).is_a?(Array)
|
272
|
+
self.form_field_groups = value
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
276
|
+
if attributes.key?(:'form_field_rules')
|
277
|
+
if (value = attributes[:'form_field_rules']).is_a?(Array)
|
278
|
+
self.form_field_rules = value
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
if attributes.key?(:'form_fields_per_document')
|
283
|
+
if (value = attributes[:'form_fields_per_document']).is_a?(Array)
|
284
|
+
self.form_fields_per_document = value
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
if attributes.key?(:'hide_text_tags')
|
289
|
+
self.hide_text_tags = attributes[:'hide_text_tags']
|
290
|
+
else
|
291
|
+
self.hide_text_tags = false
|
292
|
+
end
|
293
|
+
|
294
|
+
if attributes.key?(:'is_qualified_signature')
|
295
|
+
self.is_qualified_signature = attributes[:'is_qualified_signature']
|
296
|
+
else
|
297
|
+
self.is_qualified_signature = false
|
298
|
+
end
|
299
|
+
|
300
|
+
if attributes.key?(:'message')
|
301
|
+
self.message = attributes[:'message']
|
302
|
+
end
|
303
|
+
|
304
|
+
if attributes.key?(:'metadata')
|
305
|
+
if (value = attributes[:'metadata']).is_a?(Hash)
|
306
|
+
self.metadata = value
|
307
|
+
end
|
308
|
+
end
|
309
|
+
|
310
|
+
if attributes.key?(:'signing_options')
|
311
|
+
self.signing_options = attributes[:'signing_options']
|
312
|
+
end
|
313
|
+
|
314
|
+
if attributes.key?(:'signing_redirect_url')
|
315
|
+
self.signing_redirect_url = attributes[:'signing_redirect_url']
|
316
|
+
end
|
317
|
+
|
318
|
+
if attributes.key?(:'subject')
|
319
|
+
self.subject = attributes[:'subject']
|
320
|
+
end
|
321
|
+
|
322
|
+
if attributes.key?(:'test_mode')
|
323
|
+
self.test_mode = attributes[:'test_mode']
|
324
|
+
else
|
325
|
+
self.test_mode = false
|
326
|
+
end
|
327
|
+
|
328
|
+
if attributes.key?(:'title')
|
329
|
+
self.title = attributes[:'title']
|
330
|
+
end
|
331
|
+
|
332
|
+
if attributes.key?(:'use_text_tags')
|
333
|
+
self.use_text_tags = attributes[:'use_text_tags']
|
334
|
+
else
|
335
|
+
self.use_text_tags = false
|
336
|
+
end
|
337
|
+
|
338
|
+
if attributes.key?(:'expires_at')
|
339
|
+
self.expires_at = attributes[:'expires_at']
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
344
|
+
# @return Array for valid properties with the reasons
|
345
|
+
def list_invalid_properties
|
346
|
+
invalid_properties = Array.new
|
347
|
+
if !@message.nil? && @message.to_s.length > 5000
|
348
|
+
invalid_properties.push('invalid value for "message", the character length must be smaller than or equal to 5000.')
|
349
|
+
end
|
350
|
+
|
351
|
+
if !@subject.nil? && @subject.to_s.length > 255
|
352
|
+
invalid_properties.push('invalid value for "subject", the character length must be smaller than or equal to 255.')
|
353
|
+
end
|
354
|
+
|
355
|
+
if !@title.nil? && @title.to_s.length > 255
|
356
|
+
invalid_properties.push('invalid value for "title", the character length must be smaller than or equal to 255.')
|
357
|
+
end
|
358
|
+
|
359
|
+
invalid_properties
|
360
|
+
end
|
361
|
+
|
362
|
+
# Check to see if the all the properties in the model are valid
|
363
|
+
# @return true if the model is valid
|
364
|
+
def valid?
|
365
|
+
return false if !@message.nil? && @message.to_s.length > 5000
|
366
|
+
return false if !@subject.nil? && @subject.to_s.length > 255
|
367
|
+
return false if !@title.nil? && @title.to_s.length > 255
|
368
|
+
true
|
369
|
+
end
|
370
|
+
|
371
|
+
# Custom attribute writer method with validation
|
372
|
+
# @param [Object] message Value to be assigned
|
373
|
+
def message=(message)
|
374
|
+
if !message.nil? && message.to_s.length > 5000
|
375
|
+
fail ArgumentError, 'invalid value for "message", the character length must be smaller than or equal to 5000.'
|
376
|
+
end
|
377
|
+
|
378
|
+
@message = message
|
379
|
+
end
|
380
|
+
|
381
|
+
# Custom attribute writer method with validation
|
382
|
+
# @param [Object] metadata Value to be assigned
|
383
|
+
def metadata=(metadata)
|
384
|
+
@metadata = metadata
|
385
|
+
end
|
386
|
+
|
387
|
+
# Custom attribute writer method with validation
|
388
|
+
# @param [Object] subject Value to be assigned
|
389
|
+
def subject=(subject)
|
390
|
+
if !subject.nil? && subject.to_s.length > 255
|
391
|
+
fail ArgumentError, 'invalid value for "subject", the character length must be smaller than or equal to 255.'
|
392
|
+
end
|
393
|
+
|
394
|
+
@subject = subject
|
395
|
+
end
|
396
|
+
|
397
|
+
# Custom attribute writer method with validation
|
398
|
+
# @param [Object] title Value to be assigned
|
399
|
+
def title=(title)
|
400
|
+
if !title.nil? && title.to_s.length > 255
|
401
|
+
fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 255.'
|
402
|
+
end
|
403
|
+
|
404
|
+
@title = title
|
405
|
+
end
|
406
|
+
|
407
|
+
# Checks equality by comparing each attribute.
|
408
|
+
# @param [Object] Object to be compared
|
409
|
+
def ==(o)
|
410
|
+
return true if self.equal?(o)
|
411
|
+
self.class == o.class &&
|
412
|
+
files == o.files &&
|
413
|
+
file_urls == o.file_urls &&
|
414
|
+
signers == o.signers &&
|
415
|
+
grouped_signers == o.grouped_signers &&
|
416
|
+
allow_decline == o.allow_decline &&
|
417
|
+
allow_reassign == o.allow_reassign &&
|
418
|
+
attachments == o.attachments &&
|
419
|
+
cc_email_addresses == o.cc_email_addresses &&
|
420
|
+
client_id == o.client_id &&
|
421
|
+
custom_fields == o.custom_fields &&
|
422
|
+
field_options == o.field_options &&
|
423
|
+
form_field_groups == o.form_field_groups &&
|
424
|
+
form_field_rules == o.form_field_rules &&
|
425
|
+
form_fields_per_document == o.form_fields_per_document &&
|
426
|
+
hide_text_tags == o.hide_text_tags &&
|
427
|
+
is_qualified_signature == o.is_qualified_signature &&
|
428
|
+
message == o.message &&
|
429
|
+
metadata == o.metadata &&
|
430
|
+
signing_options == o.signing_options &&
|
431
|
+
signing_redirect_url == o.signing_redirect_url &&
|
432
|
+
subject == o.subject &&
|
433
|
+
test_mode == o.test_mode &&
|
434
|
+
title == o.title &&
|
435
|
+
use_text_tags == o.use_text_tags &&
|
436
|
+
expires_at == o.expires_at
|
437
|
+
end
|
438
|
+
|
439
|
+
# @see the `==` method
|
440
|
+
# @param [Object] Object to be compared
|
441
|
+
def eql?(o)
|
442
|
+
self == o
|
443
|
+
end
|
444
|
+
|
445
|
+
# Calculates hash code according to all attributes.
|
446
|
+
# @return [Integer] Hash code
|
447
|
+
def hash
|
448
|
+
[files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, client_id, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, is_qualified_signature, message, metadata, signing_options, signing_redirect_url, subject, test_mode, title, use_text_tags, expires_at].hash
|
449
|
+
end
|
450
|
+
|
451
|
+
# Builds the object from hash
|
452
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
453
|
+
# @return [Object] Returns the model itself
|
454
|
+
def self.build_from_hash(attributes)
|
455
|
+
new.build_from_hash(attributes)
|
456
|
+
end
|
457
|
+
|
458
|
+
# Builds the object from hash
|
459
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
460
|
+
# @return [Object] Returns the model itself
|
461
|
+
def build_from_hash(attributes)
|
462
|
+
return nil unless attributes.is_a?(Hash)
|
463
|
+
attribute_map = self.class.merged_attributes
|
464
|
+
|
465
|
+
self.class.merged_types.each_pair do |key, type|
|
466
|
+
if type =~ /\AArray<(.*)>/i
|
467
|
+
# check to ensure the input is an array given that the attribute
|
468
|
+
# is documented as an array but the input is not
|
469
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
470
|
+
self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
|
471
|
+
end
|
472
|
+
elsif !attributes[attribute_map[key]].nil?
|
473
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
|
474
|
+
end
|
475
|
+
end
|
476
|
+
|
477
|
+
self
|
478
|
+
end
|
479
|
+
|
480
|
+
# Deserializes the data based on type
|
481
|
+
# @param string type Data type
|
482
|
+
# @param string value Value to be deserialized
|
483
|
+
# @return [Object] Deserialized data
|
484
|
+
def _deserialize(type, value)
|
485
|
+
case type.to_sym
|
486
|
+
when :Time
|
487
|
+
Time.parse(value)
|
488
|
+
when :Date
|
489
|
+
Date.parse(value)
|
490
|
+
when :String
|
491
|
+
value.to_s
|
492
|
+
when :Integer
|
493
|
+
value.to_i
|
494
|
+
when :Float
|
495
|
+
value.to_f
|
496
|
+
when :Boolean
|
497
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
498
|
+
true
|
499
|
+
else
|
500
|
+
false
|
501
|
+
end
|
502
|
+
when :File
|
503
|
+
value
|
504
|
+
when :Object
|
505
|
+
# generic object (usually a Hash), return directly
|
506
|
+
value
|
507
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
508
|
+
inner_type = Regexp.last_match[:inner_type]
|
509
|
+
value.map { |v| _deserialize(inner_type, v) }
|
510
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
511
|
+
k_type = Regexp.last_match[:k_type]
|
512
|
+
v_type = Regexp.last_match[:v_type]
|
513
|
+
{}.tap do |hash|
|
514
|
+
value.each do |k, v|
|
515
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
516
|
+
end
|
517
|
+
end
|
518
|
+
else # model
|
519
|
+
# models (e.g. Pet)
|
520
|
+
klass = Dropbox::Sign.const_get(type)
|
521
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
522
|
+
end
|
523
|
+
end
|
524
|
+
|
525
|
+
# Returns the string representation of the object
|
526
|
+
# @return [String] String presentation of the object
|
527
|
+
def to_s
|
528
|
+
to_hash.to_s
|
529
|
+
end
|
530
|
+
|
531
|
+
# to_body is an alias to to_hash (backward compatibility)
|
532
|
+
# @return [Hash] Returns the object in the form of hash
|
533
|
+
def to_body
|
534
|
+
to_hash
|
535
|
+
end
|
536
|
+
|
537
|
+
# Returns the object in the form of hash
|
538
|
+
# @return [Hash] Returns the object in the form of hash
|
539
|
+
def to_hash(include_nil = true)
|
540
|
+
hash = {}
|
541
|
+
self.class.merged_attributes.each_pair do |attr, param|
|
542
|
+
value = self.send(attr)
|
543
|
+
if value.nil?
|
544
|
+
next unless include_nil
|
545
|
+
is_nullable = self.class.merged_nullable.include?(attr)
|
546
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
547
|
+
end
|
548
|
+
|
549
|
+
hash[param] = _to_hash(value, include_nil)
|
550
|
+
end
|
551
|
+
hash
|
552
|
+
end
|
553
|
+
|
554
|
+
# Outputs non-array value in the form of hash
|
555
|
+
# For object, use to_hash. Otherwise, just return the value
|
556
|
+
# @param [Object] value Any valid value
|
557
|
+
# @return [Hash] Returns the value in the form of hash
|
558
|
+
def _to_hash(value, include_nil = true)
|
559
|
+
if value.is_a?(Array)
|
560
|
+
value.compact.map { |v| _to_hash(v, include_nil) }
|
561
|
+
elsif value.is_a?(Hash)
|
562
|
+
{}.tap do |hash|
|
563
|
+
value.each { |k, v| hash[k] = _to_hash(v, include_nil) }
|
564
|
+
end
|
565
|
+
elsif value.respond_to? :to_hash
|
566
|
+
value.to_hash(include_nil)
|
567
|
+
else
|
568
|
+
value
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
572
|
+
end
|
573
|
+
|
574
|
+
end
|