docusign_esign 1.0.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +16 -14
- data/README.md +44 -19
- data/docusign_esign.gemspec +5 -5
- data/lib/.DS_Store +0 -0
- data/lib/docusign_esign.rb +69 -6
- data/lib/docusign_esign/.DS_Store +0 -0
- data/lib/docusign_esign/api/accounts_api.rb +786 -74
- data/lib/docusign_esign/api/billing_api.rb +51 -2
- data/lib/docusign_esign/api/bulk_envelopes_api.rb +3 -1
- data/lib/docusign_esign/api/comments_api.rb +89 -0
- data/lib/docusign_esign/api/connect_api.rb +0 -151
- data/lib/docusign_esign/api/envelopes_api.rb +578 -195
- data/lib/docusign_esign/api/folders_api.rb +5 -14
- data/lib/docusign_esign/api/groups_api.rb +0 -4
- data/lib/docusign_esign/api/notary_api.rb +89 -0
- data/lib/docusign_esign/api/power_forms_api.rb +4 -0
- data/lib/docusign_esign/api/templates_api.rb +465 -6
- data/lib/docusign_esign/api/trust_service_providers_api.rb +73 -0
- data/lib/docusign_esign/api/users_api.rb +89 -10
- data/{tests → lib/docusign_esign/client}/.DS_Store +0 -0
- data/lib/docusign_esign/{api_client.rb → client/api_client.rb} +187 -34
- data/lib/docusign_esign/{api_error.rb → client/api_error.rb} +0 -0
- data/lib/docusign_esign/client/auth/oauth.rb +1061 -0
- data/lib/docusign_esign/configuration.rb +7 -0
- data/lib/docusign_esign/models/account_address.rb +1 -1
- data/lib/docusign_esign/models/account_billing_plan_response.rb +10 -1
- data/lib/docusign_esign/models/account_identity_verification_response.rb +190 -0
- data/lib/docusign_esign/models/{view_link_request.rb → account_identity_verification_step.rb} +14 -14
- data/lib/docusign_esign/models/account_identity_verification_workflow.rb +210 -0
- data/lib/docusign_esign/models/account_information.rb +11 -1
- data/lib/docusign_esign/models/account_minimum_password_length.rb +198 -0
- data/lib/docusign_esign/models/{post_transactions_response.rb → account_password_expire_password_days.rb} +14 -14
- data/lib/docusign_esign/models/account_password_lockout_duration_minutes.rb +198 -0
- data/lib/docusign_esign/models/account_password_lockout_duration_type.rb +190 -0
- data/lib/docusign_esign/models/account_password_minimum_password_age_days.rb +198 -0
- data/lib/docusign_esign/models/account_password_questions_required.rb +198 -0
- data/lib/docusign_esign/models/account_password_rules.rb +371 -0
- data/lib/docusign_esign/models/account_password_strength_type.rb +190 -0
- data/lib/docusign_esign/models/account_password_strength_type_option.rb +248 -0
- data/lib/docusign_esign/models/account_role_settings.rb +39 -1
- data/lib/docusign_esign/models/account_seals.rb +190 -0
- data/lib/docusign_esign/models/agent.rb +33 -3
- data/lib/docusign_esign/models/approve.rb +25 -3
- data/lib/docusign_esign/models/authentication_status.rb +10 -1
- data/lib/docusign_esign/models/billing_charge.rb +1 -1
- data/lib/docusign_esign/models/billing_plan_information.rb +10 -1
- data/lib/docusign_esign/models/billing_plan_update_response.rb +11 -1
- data/lib/docusign_esign/models/bulk_recipient.rb +1 -1
- data/lib/docusign_esign/models/carbon_copy.rb +53 -3
- data/lib/docusign_esign/models/certified_delivery.rb +53 -3
- data/lib/docusign_esign/models/checkbox.rb +25 -3
- data/lib/docusign_esign/models/chunked_upload_response.rb +21 -1
- data/lib/docusign_esign/models/company.rb +25 -3
- data/lib/docusign_esign/models/complete_sign_hash_response.rb +210 -0
- data/lib/docusign_esign/models/complete_sign_request.rb +220 -0
- data/lib/docusign_esign/models/composite_template.rb +1 -1
- data/lib/docusign_esign/models/connect_custom_configuration.rb +14 -4
- data/lib/docusign_esign/models/consumer_disclosure.rb +19 -1
- data/lib/docusign_esign/models/contact.rb +13 -1
- data/lib/docusign_esign/models/contact_phone_number.rb +198 -0
- data/lib/docusign_esign/models/credential.rb +198 -0
- data/lib/docusign_esign/models/{offline_attributes.rb → custom_field.rb} +65 -44
- data/lib/docusign_esign/models/date.rb +26 -4
- data/lib/docusign_esign/models/date_signed.rb +25 -3
- data/lib/docusign_esign/models/{post_transactions_request.rb → date_stamp_properties.rb} +26 -26
- data/lib/docusign_esign/models/decline.rb +25 -3
- data/lib/docusign_esign/models/dob_information_input.rb +1 -1
- data/lib/docusign_esign/models/document.rb +31 -2
- data/lib/docusign_esign/models/document_fields_information.rb +1 -1
- data/lib/docusign_esign/models/document_html_collapsible_display_settings.rb +278 -0
- data/lib/docusign_esign/models/document_html_definition.rb +290 -0
- data/lib/docusign_esign/models/document_html_definition_original.rb +207 -0
- data/lib/docusign_esign/models/document_html_definition_originals.rb +190 -0
- data/lib/docusign_esign/models/document_html_definitions.rb +190 -0
- data/lib/docusign_esign/models/document_html_display_anchor.rb +237 -0
- data/lib/docusign_esign/models/document_html_display_settings.rb +287 -0
- data/lib/docusign_esign/models/document_security_store.rb +214 -0
- data/lib/docusign_esign/models/document_update_info.rb +248 -0
- data/lib/docusign_esign/models/editor.rb +33 -3
- data/lib/docusign_esign/models/email.rb +26 -4
- data/lib/docusign_esign/models/email_address.rb +35 -3
- data/lib/docusign_esign/models/email_settings.rb +1 -1
- data/lib/docusign_esign/models/envelope.rb +32 -2
- data/lib/docusign_esign/models/envelope_definition.rb +33 -3
- data/lib/docusign_esign/models/envelope_document.rb +11 -21
- data/lib/docusign_esign/models/envelope_id.rb +25 -3
- data/lib/docusign_esign/models/envelope_template.rb +32 -2
- data/lib/docusign_esign/models/envelope_template_definition.rb +11 -1
- data/lib/docusign_esign/models/envelope_template_result.rb +42 -2
- data/lib/docusign_esign/models/envelopes_information.rb +21 -1
- data/lib/docusign_esign/models/first_name.rb +35 -3
- data/lib/docusign_esign/models/formula_tab.rb +36 -4
- data/lib/docusign_esign/models/full_name.rb +35 -3
- data/lib/docusign_esign/models/id_check_information_input.rb +1 -1
- data/lib/docusign_esign/models/in_person_signer.rb +45 -3
- data/lib/docusign_esign/models/initial_here.rb +26 -4
- data/lib/docusign_esign/models/intermediary.rb +33 -3
- data/lib/docusign_esign/models/jurisdiction.rb +278 -0
- data/lib/docusign_esign/models/last_name.rb +35 -3
- data/lib/docusign_esign/models/list.rb +25 -3
- data/lib/docusign_esign/models/new_account_definition.rb +10 -1
- data/lib/docusign_esign/models/notarize.rb +448 -0
- data/lib/docusign_esign/models/notary_host.rb +12 -21
- data/lib/docusign_esign/models/notary_journal.rb +236 -0
- data/lib/docusign_esign/models/notary_journal_credible_witness.rb +208 -0
- data/lib/docusign_esign/models/notary_journal_list.rb +250 -0
- data/lib/docusign_esign/models/notary_journal_meta_data.rb +220 -0
- data/lib/docusign_esign/models/note.rb +25 -3
- data/lib/docusign_esign/models/number.rb +26 -4
- data/lib/docusign_esign/models/payment_details.rb +53 -1
- data/lib/docusign_esign/models/payment_gateway_account.rb +218 -0
- data/lib/docusign_esign/models/payment_gateway_accounts_info.rb +190 -0
- data/lib/docusign_esign/models/payment_processor_information.rb +207 -0
- data/lib/docusign_esign/models/power_form.rb +11 -1
- data/lib/docusign_esign/models/power_form_recipient.rb +1 -1
- data/lib/docusign_esign/models/radio.rb +2 -2
- data/lib/docusign_esign/models/radio_group.rb +34 -4
- data/lib/docusign_esign/models/recipient_signature_provider.rb +21 -1
- data/lib/docusign_esign/models/recipients.rb +28 -4
- data/lib/docusign_esign/models/revision.rb +228 -0
- data/lib/docusign_esign/models/seal.rb +200 -0
- data/lib/docusign_esign/models/seal_identifier.rb +198 -0
- data/lib/docusign_esign/models/seal_sign.rb +560 -0
- data/lib/docusign_esign/models/sender.rb +198 -0
- data/lib/docusign_esign/models/sender_email_notifications.rb +21 -1
- data/lib/docusign_esign/models/sign_hash_document.rb +250 -0
- data/lib/docusign_esign/models/sign_hash_session_info_response.rb +248 -0
- data/lib/docusign_esign/models/sign_here.rb +45 -4
- data/lib/docusign_esign/models/sign_session_info_request.rb +208 -0
- data/lib/docusign_esign/models/signature_data_info.rb +207 -0
- data/lib/docusign_esign/models/signer.rb +54 -4
- data/lib/docusign_esign/models/signer_attachment.rb +26 -4
- data/lib/docusign_esign/models/signer_email_notifications.rb +21 -1
- data/lib/docusign_esign/models/smart_section.rb +505 -0
- data/lib/docusign_esign/models/smart_section_anchor_position.rb +208 -0
- data/lib/docusign_esign/models/smart_section_collapsible_display_settings.rb +278 -0
- data/lib/docusign_esign/models/smart_section_display_settings.rb +287 -0
- data/lib/docusign_esign/models/ssn.rb +26 -4
- data/lib/docusign_esign/models/supported_languages.rb +190 -0
- data/lib/docusign_esign/models/tab_metadata.rb +63 -4
- data/lib/docusign_esign/models/tabs.rb +27 -3
- data/lib/docusign_esign/models/template_recipients.rb +28 -4
- data/lib/docusign_esign/models/template_role.rb +15 -3
- data/lib/docusign_esign/models/template_tabs.rb +27 -3
- data/lib/docusign_esign/models/text.rb +26 -4
- data/lib/docusign_esign/models/time_stamp_field.rb +207 -0
- data/lib/docusign_esign/models/title.rb +25 -3
- data/lib/docusign_esign/models/tsp_health_check_request.rb +230 -0
- data/lib/docusign_esign/models/tsp_health_check_status_description.rb +238 -0
- data/lib/docusign_esign/models/update_transaction_request.rb +208 -0
- data/lib/docusign_esign/models/update_transaction_response.rb +188 -0
- data/lib/docusign_esign/models/usage_history.rb +1 -1
- data/lib/docusign_esign/models/user.rb +220 -0
- data/lib/docusign_esign/models/user_account_management_granular_information.rb +77 -1
- data/lib/docusign_esign/models/user_info_response.rb +225 -0
- data/lib/docusign_esign/models/user_information.rb +46 -6
- data/lib/docusign_esign/models/user_password_rules.rb +197 -0
- data/lib/docusign_esign/models/user_signature.rb +83 -4
- data/lib/docusign_esign/models/view.rb +25 -3
- data/lib/docusign_esign/models/watermark.rb +268 -0
- data/lib/docusign_esign/models/witness.rb +812 -0
- data/lib/docusign_esign/models/zip.rb +26 -4
- data/lib/docusign_esign/version.rb +1 -1
- data/tests/Gemfile +1 -1
- data/tests/Gemfile.lock +24 -20
- data/tests/{rsa_keys → docs}/private.pem +0 -0
- data/tests/spec/unit_tests_spec.rb +6 -8
- data/tests/spec/unit_tests_using_jwt_spec.rb +37 -35
- metadata +122 -672
- data/spec/api/accounts_api_spec.rb +0 -556
- data/spec/api/authentication_api_spec.rb +0 -125
- data/spec/api/billing_api_spec.rb +0 -178
- data/spec/api/bulk_envelopes_api_spec.rb +0 -110
- data/spec/api/cloud_storage_api_spec.rb +0 -146
- data/spec/api/connect_api_spec.rb +0 -261
- data/spec/api/custom_tabs_api_spec.rb +0 -100
- data/spec/api/diagnostics_api_spec.rb +0 -114
- data/spec/api/envelopes_api_spec.rb +0 -1171
- data/spec/api/folders_api_spec.rb +0 -107
- data/spec/api/groups_api_spec.rb +0 -174
- data/spec/api/power_forms_api_spec.rb +0 -144
- data/spec/api/signing_groups_api_spec.rb +0 -155
- data/spec/api/templates_api_spec.rb +0 -649
- data/spec/api/users_api_spec.rb +0 -442
- data/spec/api/workspaces_api_spec.rb +0 -201
- data/spec/api_client_spec.rb +0 -225
- data/spec/configuration_spec.rb +0 -41
- data/spec/models/account_address_spec.rb +0 -107
- data/spec/models/account_billing_plan_response_spec.rb +0 -71
- data/spec/models/account_billing_plan_spec.rb +0 -155
- data/spec/models/account_information_spec.rb +0 -221
- data/spec/models/account_role_settings_spec.rb +0 -419
- data/spec/models/account_settings_information_spec.rb +0 -41
- data/spec/models/account_shared_access_spec.rb +0 -89
- data/spec/models/account_signature_provider_option_spec.rb +0 -53
- data/spec/models/account_signature_provider_spec.rb +0 -77
- data/spec/models/account_signature_providers_spec.rb +0 -41
- data/spec/models/add_on_spec.rb +0 -59
- data/spec/models/address_information_input_spec.rb +0 -53
- data/spec/models/address_information_spec.rb +0 -83
- data/spec/models/address_information_v2_spec.rb +0 -83
- data/spec/models/agent_spec.rb +0 -287
- data/spec/models/api_request_log_spec.rb +0 -59
- data/spec/models/api_request_logs_result_spec.rb +0 -41
- data/spec/models/app_store_product_spec.rb +0 -47
- data/spec/models/app_store_receipt_spec.rb +0 -47
- data/spec/models/approve_spec.rb +0 -233
- data/spec/models/attachment_spec.rb +0 -77
- data/spec/models/authentication_method_spec.rb +0 -59
- data/spec/models/authentication_status_spec.rb +0 -137
- data/spec/models/bcc_email_address_spec.rb +0 -47
- data/spec/models/billing_charge_response_spec.rb +0 -41
- data/spec/models/billing_charge_spec.rb +0 -113
- data/spec/models/billing_discount_spec.rb +0 -53
- data/spec/models/billing_invoice_item_spec.rb +0 -65
- data/spec/models/billing_invoice_spec.rb +0 -95
- data/spec/models/billing_invoices_response_spec.rb +0 -53
- data/spec/models/billing_invoices_summary_spec.rb +0 -53
- data/spec/models/billing_payment_item_spec.rb +0 -65
- data/spec/models/billing_payment_request_spec.rb +0 -41
- data/spec/models/billing_payment_response_spec.rb +0 -41
- data/spec/models/billing_payment_spec.rb +0 -53
- data/spec/models/billing_payments_response_spec.rb +0 -53
- data/spec/models/billing_plan_information_spec.rb +0 -125
- data/spec/models/billing_plan_preview_spec.rb +0 -71
- data/spec/models/billing_plan_response_spec.rb +0 -47
- data/spec/models/billing_plan_spec.rb +0 -125
- data/spec/models/billing_plan_update_response_spec.rb +0 -77
- data/spec/models/billing_plans_response_spec.rb +0 -41
- data/spec/models/billing_price_spec.rb +0 -53
- data/spec/models/brand_email_content_spec.rb +0 -59
- data/spec/models/brand_link_spec.rb +0 -59
- data/spec/models/brand_logos_spec.rb +0 -53
- data/spec/models/brand_request_spec.rb +0 -41
- data/spec/models/brand_resource_urls_spec.rb +0 -59
- data/spec/models/brand_resources_list_spec.rb +0 -41
- data/spec/models/brand_resources_spec.rb +0 -77
- data/spec/models/brand_spec.rb +0 -113
- data/spec/models/brands_request_spec.rb +0 -41
- data/spec/models/brands_response_spec.rb +0 -53
- data/spec/models/bulk_envelope_spec.rb +0 -89
- data/spec/models/bulk_envelope_status_spec.rb +0 -119
- data/spec/models/bulk_envelopes_response_spec.rb +0 -77
- data/spec/models/bulk_recipient_signature_provider_spec.rb +0 -47
- data/spec/models/bulk_recipient_spec.rb +0 -95
- data/spec/models/bulk_recipient_tab_label_spec.rb +0 -47
- data/spec/models/bulk_recipients_request_spec.rb +0 -41
- data/spec/models/bulk_recipients_response_spec.rb +0 -77
- data/spec/models/bulk_recipients_summary_response_spec.rb +0 -59
- data/spec/models/bulk_recipients_update_response_spec.rb +0 -41
- data/spec/models/captive_recipient_information_spec.rb +0 -41
- data/spec/models/captive_recipient_spec.rb +0 -59
- data/spec/models/carbon_copy_spec.rb +0 -287
- data/spec/models/certified_delivery_spec.rb +0 -287
- data/spec/models/checkbox_spec.rb +0 -215
- data/spec/models/chunked_upload_part_spec.rb +0 -47
- data/spec/models/chunked_upload_request_spec.rb +0 -47
- data/spec/models/chunked_upload_response_spec.rb +0 -77
- data/spec/models/cloud_storage_provider_spec.rb +0 -65
- data/spec/models/cloud_storage_providers_spec.rb +0 -41
- data/spec/models/company_spec.rb +0 -269
- data/spec/models/composite_template_spec.rb +0 -65
- data/spec/models/connect_config_results_spec.rb +0 -47
- data/spec/models/connect_custom_configuration_spec.rb +0 -161
- data/spec/models/connect_debug_log_spec.rb +0 -65
- data/spec/models/connect_failure_filter_spec.rb +0 -47
- data/spec/models/connect_failure_result_spec.rb +0 -65
- data/spec/models/connect_failure_results_spec.rb +0 -41
- data/spec/models/connect_log_spec.rb +0 -143
- data/spec/models/connect_logs_spec.rb +0 -59
- data/spec/models/console_view_request_spec.rb +0 -47
- data/spec/models/consumer_disclosure_spec.rb +0 -215
- data/spec/models/contact_get_response_spec.rb +0 -77
- data/spec/models/contact_mod_request_spec.rb +0 -41
- data/spec/models/contact_spec.rb +0 -89
- data/spec/models/contact_update_response_spec.rb +0 -41
- data/spec/models/correct_view_request_spec.rb +0 -47
- data/spec/models/country_spec.rb +0 -59
- data/spec/models/credit_card_information_spec.rb +0 -71
- data/spec/models/credit_card_types_spec.rb +0 -41
- data/spec/models/currency_feature_set_price_spec.rb +0 -65
- data/spec/models/currency_plan_price_spec.rb +0 -71
- data/spec/models/custom_field_v2_spec.rb +0 -77
- data/spec/models/custom_fields_envelope_spec.rb +0 -47
- data/spec/models/custom_fields_spec.rb +0 -47
- data/spec/models/custom_settings_information_spec.rb +0 -41
- data/spec/models/date_signed_spec.rb +0 -227
- data/spec/models/date_spec.rb +0 -305
- data/spec/models/decline_spec.rb +0 -239
- data/spec/models/diagnostics_settings_information_spec.rb +0 -53
- data/spec/models/dob_information_input_spec.rb +0 -53
- data/spec/models/document_fields_information_spec.rb +0 -41
- data/spec/models/document_spec.rb +0 -155
- data/spec/models/document_template_list_spec.rb +0 -41
- data/spec/models/document_template_spec.rb +0 -65
- data/spec/models/document_visibility_list_spec.rb +0 -41
- data/spec/models/document_visibility_spec.rb +0 -65
- data/spec/models/e_note_configuration_spec.rb +0 -65
- data/spec/models/editor_spec.rb +0 -281
- data/spec/models/email_address_spec.rb +0 -221
- data/spec/models/email_settings_spec.rb +0 -53
- data/spec/models/email_spec.rb +0 -305
- data/spec/models/envelope_attachment_spec.rb +0 -71
- data/spec/models/envelope_attachments_request_spec.rb +0 -41
- data/spec/models/envelope_attachments_result_spec.rb +0 -41
- data/spec/models/envelope_audit_event_response_spec.rb +0 -41
- data/spec/models/envelope_audit_event_spec.rb +0 -41
- data/spec/models/envelope_definition_spec.rb +0 -371
- data/spec/models/envelope_document_spec.rb +0 -137
- data/spec/models/envelope_documents_result_spec.rb +0 -47
- data/spec/models/envelope_event_spec.rb +0 -47
- data/spec/models/envelope_form_data_spec.rb +0 -71
- data/spec/models/envelope_id_spec.rb +0 -221
- data/spec/models/envelope_ids_request_spec.rb +0 -47
- data/spec/models/envelope_notification_request_spec.rb +0 -53
- data/spec/models/envelope_spec.rb +0 -317
- data/spec/models/envelope_summary_spec.rb +0 -59
- data/spec/models/envelope_template_definition_spec.rb +0 -125
- data/spec/models/envelope_template_result_spec.rb +0 -401
- data/spec/models/envelope_template_results_spec.rb +0 -83
- data/spec/models/envelope_template_spec.rb +0 -329
- data/spec/models/envelope_transaction_status_spec.rb +0 -59
- data/spec/models/envelope_update_summary_spec.rb +0 -83
- data/spec/models/envelopes_information_spec.rb +0 -83
- data/spec/models/error_details_spec.rb +0 -47
- data/spec/models/event_notification_spec.rb +0 -125
- data/spec/models/event_result_spec.rb +0 -59
- data/spec/models/expirations_spec.rb +0 -53
- data/spec/models/external_doc_service_error_details_spec.rb +0 -53
- data/spec/models/external_file_spec.rb +0 -83
- data/spec/models/external_folder_spec.rb +0 -95
- data/spec/models/feature_set_spec.rb +0 -89
- data/spec/models/file_type_list_spec.rb +0 -41
- data/spec/models/file_type_spec.rb +0 -47
- data/spec/models/filter_spec.rb +0 -101
- data/spec/models/first_name_spec.rb +0 -221
- data/spec/models/folder_item_response_spec.rb +0 -77
- data/spec/models/folder_item_spec.rb +0 -161
- data/spec/models/folder_item_v2_spec.rb +0 -155
- data/spec/models/folder_items_response_spec.rb +0 -77
- data/spec/models/folder_spec.rb +0 -107
- data/spec/models/folders_request_spec.rb +0 -47
- data/spec/models/folders_response_spec.rb +0 -41
- data/spec/models/forgotten_password_information_spec.rb +0 -83
- data/spec/models/formula_tab_spec.rb +0 -329
- data/spec/models/full_name_spec.rb +0 -221
- data/spec/models/group_information_spec.rb +0 -77
- data/spec/models/group_spec.rb +0 -71
- data/spec/models/id_check_information_input_spec.rb +0 -59
- data/spec/models/in_person_signer_spec.rb +0 -365
- data/spec/models/initial_here_spec.rb +0 -197
- data/spec/models/inline_template_spec.rb +0 -65
- data/spec/models/integrated_user_info_list_spec.rb +0 -83
- data/spec/models/intermediary_spec.rb +0 -287
- data/spec/models/last_name_spec.rb +0 -221
- data/spec/models/list_custom_field_spec.rb +0 -83
- data/spec/models/list_item_spec.rb +0 -53
- data/spec/models/list_spec.rb +0 -269
- data/spec/models/lock_information_spec.rb +0 -83
- data/spec/models/lock_request_spec.rb +0 -65
- data/spec/models/login_account_spec.rb +0 -101
- data/spec/models/login_information_spec.rb +0 -47
- data/spec/models/match_box_spec.rb +0 -65
- data/spec/models/member_group_shared_item_spec.rb +0 -53
- data/spec/models/member_shared_items_spec.rb +0 -59
- data/spec/models/merge_field_spec.rb +0 -65
- data/spec/models/mobile_notifier_configuration_information_spec.rb +0 -41
- data/spec/models/mobile_notifier_configuration_spec.rb +0 -53
- data/spec/models/money_spec.rb +0 -53
- data/spec/models/name_value_spec.rb +0 -59
- data/spec/models/new_account_definition_spec.rb +0 -95
- data/spec/models/new_account_summary_spec.rb +0 -77
- data/spec/models/new_user_spec.rb +0 -95
- data/spec/models/new_users_definition_spec.rb +0 -41
- data/spec/models/new_users_summary_spec.rb +0 -41
- data/spec/models/notary_host_spec.rb +0 -275
- data/spec/models/note_spec.rb +0 -245
- data/spec/models/notification_spec.rb +0 -53
- data/spec/models/number_spec.rb +0 -317
- data/spec/models/oauth_access_spec.rb +0 -71
- data/spec/models/offline_attributes_spec.rb +0 -71
- data/spec/models/page_images_spec.rb +0 -77
- data/spec/models/page_request_spec.rb +0 -47
- data/spec/models/page_spec.rb +0 -83
- data/spec/models/payment_details_spec.rb +0 -65
- data/spec/models/payment_line_item_spec.rb +0 -59
- data/spec/models/permission_profile_information_spec.rb +0 -41
- data/spec/models/permission_profile_spec.rb +0 -77
- data/spec/models/plan_information_spec.rb +0 -71
- data/spec/models/post_transactions_request_spec.rb +0 -59
- data/spec/models/post_transactions_response_spec.rb +0 -47
- data/spec/models/power_form_form_data_envelope_spec.rb +0 -47
- data/spec/models/power_form_form_data_recipient_spec.rb +0 -59
- data/spec/models/power_form_recipient_spec.rb +0 -113
- data/spec/models/power_form_senders_response_spec.rb +0 -77
- data/spec/models/power_form_spec.rb +0 -179
- data/spec/models/power_forms_form_data_response_spec.rb +0 -41
- data/spec/models/power_forms_request_spec.rb +0 -41
- data/spec/models/power_forms_response_spec.rb +0 -77
- data/spec/models/property_metadata_spec.rb +0 -47
- data/spec/models/province_spec.rb +0 -47
- data/spec/models/provisioning_information_spec.rb +0 -77
- data/spec/models/purchased_envelopes_information_spec.rb +0 -89
- data/spec/models/radio_group_spec.rb +0 -89
- data/spec/models/radio_spec.rb +0 -143
- data/spec/models/recipient_attachment_spec.rb +0 -71
- data/spec/models/recipient_domain_spec.rb +0 -59
- data/spec/models/recipient_email_notification_spec.rb +0 -53
- data/spec/models/recipient_event_spec.rb +0 -47
- data/spec/models/recipient_form_data_spec.rb +0 -83
- data/spec/models/recipient_names_response_spec.rb +0 -53
- data/spec/models/recipient_phone_authentication_spec.rb +0 -59
- data/spec/models/recipient_saml_authentication_spec.rb +0 -41
- data/spec/models/recipient_signature_information_spec.rb +0 -53
- data/spec/models/recipient_signature_provider_options_spec.rb +0 -59
- data/spec/models/recipient_signature_provider_spec.rb +0 -47
- data/spec/models/recipient_sms_authentication_spec.rb +0 -41
- data/spec/models/recipient_update_response_spec.rb +0 -53
- data/spec/models/recipient_view_request_spec.rb +0 -119
- data/spec/models/recipients_spec.rb +0 -95
- data/spec/models/recipients_update_summary_spec.rb +0 -41
- data/spec/models/referral_information_spec.rb +0 -143
- data/spec/models/reminders_spec.rb +0 -53
- data/spec/models/resource_information_spec.rb +0 -41
- data/spec/models/return_url_request_spec.rb +0 -41
- data/spec/models/saml_assertion_attribute_spec.rb +0 -59
- data/spec/models/seat_discount_spec.rb +0 -53
- data/spec/models/sender_email_notifications_spec.rb +0 -77
- data/spec/models/server_template_spec.rb +0 -47
- data/spec/models/service_information_spec.rb +0 -71
- data/spec/models/service_version_spec.rb +0 -47
- data/spec/models/settings_metadata_spec.rb +0 -71
- data/spec/models/shared_item_spec.rb +0 -53
- data/spec/models/sign_here_spec.rb +0 -197
- data/spec/models/signature_provider_required_option_spec.rb +0 -47
- data/spec/models/signature_type_spec.rb +0 -47
- data/spec/models/signer_attachment_spec.rb +0 -197
- data/spec/models/signer_email_notifications_spec.rb +0 -119
- data/spec/models/signer_spec.rb +0 -371
- data/spec/models/signing_group_information_spec.rb +0 -41
- data/spec/models/signing_group_spec.rb +0 -95
- data/spec/models/signing_group_user_spec.rb +0 -53
- data/spec/models/signing_group_users_spec.rb +0 -41
- data/spec/models/social_account_information_spec.rb +0 -65
- data/spec/models/social_authentication_spec.rb +0 -41
- data/spec/models/ssn4_information_input_spec.rb +0 -53
- data/spec/models/ssn9_information_input_spec.rb +0 -47
- data/spec/models/ssn_spec.rb +0 -305
- data/spec/models/tab_account_settings_spec.rb +0 -263
- data/spec/models/tab_metadata_list_spec.rb +0 -41
- data/spec/models/tab_metadata_spec.rb +0 -269
- data/spec/models/tabs_spec.rb +0 -185
- data/spec/models/template_custom_fields_spec.rb +0 -47
- data/spec/models/template_document_visibility_list_spec.rb +0 -41
- data/spec/models/template_documents_result_spec.rb +0 -47
- data/spec/models/template_information_spec.rb +0 -41
- data/spec/models/template_match_spec.rb +0 -53
- data/spec/models/template_notification_request_spec.rb +0 -59
- data/spec/models/template_recipients_spec.rb +0 -95
- data/spec/models/template_role_spec.rb +0 -107
- data/spec/models/template_shared_item_spec.rb +0 -77
- data/spec/models/template_summary_spec.rb +0 -77
- data/spec/models/template_tabs_spec.rb +0 -185
- data/spec/models/template_update_summary_spec.rb +0 -83
- data/spec/models/text_custom_field_spec.rb +0 -77
- data/spec/models/text_spec.rb +0 -323
- data/spec/models/title_spec.rb +0 -269
- data/spec/models/usage_history_spec.rb +0 -59
- data/spec/models/user_account_management_granular_information_spec.rb +0 -83
- data/spec/models/user_info_list_spec.rb +0 -41
- data/spec/models/user_info_spec.rb +0 -95
- data/spec/models/user_information_list_spec.rb +0 -77
- data/spec/models/user_information_spec.rb +0 -239
- data/spec/models/user_password_information_spec.rb +0 -59
- data/spec/models/user_profile_spec.rb +0 -107
- data/spec/models/user_settings_information_spec.rb +0 -59
- data/spec/models/user_shared_item_spec.rb +0 -53
- data/spec/models/user_signature_definition_spec.rb +0 -59
- data/spec/models/user_signature_spec.rb +0 -113
- data/spec/models/user_signatures_information_spec.rb +0 -41
- data/spec/models/user_social_id_result_spec.rb +0 -47
- data/spec/models/users_response_spec.rb +0 -77
- data/spec/models/view_link_request_spec.rb +0 -47
- data/spec/models/view_spec.rb +0 -245
- data/spec/models/view_url_spec.rb +0 -41
- data/spec/models/workspace_folder_contents_spec.rb +0 -83
- data/spec/models/workspace_item_list_spec.rb +0 -41
- data/spec/models/workspace_item_spec.rb +0 -149
- data/spec/models/workspace_list_spec.rb +0 -65
- data/spec/models/workspace_spec.rb +0 -101
- data/spec/models/workspace_user_authorization_spec.rb +0 -101
- data/spec/models/workspace_user_spec.rb +0 -131
- data/spec/models/zip_spec.rb +0 -311
- data/spec/spec_helper.rb +0 -110
- data/tests/keys/docusign_private_key.txt.enc +0 -0
@@ -0,0 +1,371 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign REST API
|
3
|
+
|
4
|
+
#The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: devcenter@docusign.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module DocuSign_eSign
|
15
|
+
|
16
|
+
class AccountPasswordRules
|
17
|
+
#
|
18
|
+
attr_accessor :expire_password
|
19
|
+
|
20
|
+
#
|
21
|
+
attr_accessor :expire_password_days
|
22
|
+
|
23
|
+
attr_accessor :expire_password_days_metadata
|
24
|
+
|
25
|
+
#
|
26
|
+
attr_accessor :lockout_duration_minutes
|
27
|
+
|
28
|
+
attr_accessor :lockout_duration_minutes_metadata
|
29
|
+
|
30
|
+
#
|
31
|
+
attr_accessor :lockout_duration_type
|
32
|
+
|
33
|
+
attr_accessor :lockout_duration_type_metadata
|
34
|
+
|
35
|
+
#
|
36
|
+
attr_accessor :minimum_password_age_days
|
37
|
+
|
38
|
+
attr_accessor :minimum_password_age_days_metadata
|
39
|
+
|
40
|
+
#
|
41
|
+
attr_accessor :minimum_password_length
|
42
|
+
|
43
|
+
attr_accessor :minimum_password_length_metadata
|
44
|
+
|
45
|
+
#
|
46
|
+
attr_accessor :password_include_digit
|
47
|
+
|
48
|
+
#
|
49
|
+
attr_accessor :password_include_digit_or_special_character
|
50
|
+
|
51
|
+
#
|
52
|
+
attr_accessor :password_include_lower_case
|
53
|
+
|
54
|
+
#
|
55
|
+
attr_accessor :password_include_special_character
|
56
|
+
|
57
|
+
#
|
58
|
+
attr_accessor :password_include_upper_case
|
59
|
+
|
60
|
+
#
|
61
|
+
attr_accessor :password_strength_type
|
62
|
+
|
63
|
+
attr_accessor :password_strength_type_metadata
|
64
|
+
|
65
|
+
#
|
66
|
+
attr_accessor :questions_required
|
67
|
+
|
68
|
+
attr_accessor :questions_required_metadata
|
69
|
+
|
70
|
+
|
71
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
72
|
+
def self.attribute_map
|
73
|
+
{
|
74
|
+
:'expire_password' => :'expirePassword',
|
75
|
+
:'expire_password_days' => :'expirePasswordDays',
|
76
|
+
:'expire_password_days_metadata' => :'expirePasswordDaysMetadata',
|
77
|
+
:'lockout_duration_minutes' => :'lockoutDurationMinutes',
|
78
|
+
:'lockout_duration_minutes_metadata' => :'lockoutDurationMinutesMetadata',
|
79
|
+
:'lockout_duration_type' => :'lockoutDurationType',
|
80
|
+
:'lockout_duration_type_metadata' => :'lockoutDurationTypeMetadata',
|
81
|
+
:'minimum_password_age_days' => :'minimumPasswordAgeDays',
|
82
|
+
:'minimum_password_age_days_metadata' => :'minimumPasswordAgeDaysMetadata',
|
83
|
+
:'minimum_password_length' => :'minimumPasswordLength',
|
84
|
+
:'minimum_password_length_metadata' => :'minimumPasswordLengthMetadata',
|
85
|
+
:'password_include_digit' => :'passwordIncludeDigit',
|
86
|
+
:'password_include_digit_or_special_character' => :'passwordIncludeDigitOrSpecialCharacter',
|
87
|
+
:'password_include_lower_case' => :'passwordIncludeLowerCase',
|
88
|
+
:'password_include_special_character' => :'passwordIncludeSpecialCharacter',
|
89
|
+
:'password_include_upper_case' => :'passwordIncludeUpperCase',
|
90
|
+
:'password_strength_type' => :'passwordStrengthType',
|
91
|
+
:'password_strength_type_metadata' => :'passwordStrengthTypeMetadata',
|
92
|
+
:'questions_required' => :'questionsRequired',
|
93
|
+
:'questions_required_metadata' => :'questionsRequiredMetadata'
|
94
|
+
}
|
95
|
+
end
|
96
|
+
|
97
|
+
# Attribute type mapping.
|
98
|
+
def self.swagger_types
|
99
|
+
{
|
100
|
+
:'expire_password' => :'String',
|
101
|
+
:'expire_password_days' => :'String',
|
102
|
+
:'expire_password_days_metadata' => :'AccountPasswordExpirePasswordDays',
|
103
|
+
:'lockout_duration_minutes' => :'String',
|
104
|
+
:'lockout_duration_minutes_metadata' => :'AccountPasswordLockoutDurationMinutes',
|
105
|
+
:'lockout_duration_type' => :'String',
|
106
|
+
:'lockout_duration_type_metadata' => :'AccountPasswordLockoutDurationType',
|
107
|
+
:'minimum_password_age_days' => :'String',
|
108
|
+
:'minimum_password_age_days_metadata' => :'AccountPasswordMinimumPasswordAgeDays',
|
109
|
+
:'minimum_password_length' => :'String',
|
110
|
+
:'minimum_password_length_metadata' => :'AccountMinimumPasswordLength',
|
111
|
+
:'password_include_digit' => :'String',
|
112
|
+
:'password_include_digit_or_special_character' => :'String',
|
113
|
+
:'password_include_lower_case' => :'String',
|
114
|
+
:'password_include_special_character' => :'String',
|
115
|
+
:'password_include_upper_case' => :'String',
|
116
|
+
:'password_strength_type' => :'String',
|
117
|
+
:'password_strength_type_metadata' => :'AccountPasswordStrengthType',
|
118
|
+
:'questions_required' => :'String',
|
119
|
+
:'questions_required_metadata' => :'AccountPasswordQuestionsRequired'
|
120
|
+
}
|
121
|
+
end
|
122
|
+
|
123
|
+
# Initializes the object
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
125
|
+
def initialize(attributes = {})
|
126
|
+
return unless attributes.is_a?(Hash)
|
127
|
+
|
128
|
+
# convert string to symbol for hash key
|
129
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
130
|
+
|
131
|
+
if attributes.has_key?(:'expirePassword')
|
132
|
+
self.expire_password = attributes[:'expirePassword']
|
133
|
+
end
|
134
|
+
|
135
|
+
if attributes.has_key?(:'expirePasswordDays')
|
136
|
+
self.expire_password_days = attributes[:'expirePasswordDays']
|
137
|
+
end
|
138
|
+
|
139
|
+
if attributes.has_key?(:'expirePasswordDaysMetadata')
|
140
|
+
self.expire_password_days_metadata = attributes[:'expirePasswordDaysMetadata']
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.has_key?(:'lockoutDurationMinutes')
|
144
|
+
self.lockout_duration_minutes = attributes[:'lockoutDurationMinutes']
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.has_key?(:'lockoutDurationMinutesMetadata')
|
148
|
+
self.lockout_duration_minutes_metadata = attributes[:'lockoutDurationMinutesMetadata']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.has_key?(:'lockoutDurationType')
|
152
|
+
self.lockout_duration_type = attributes[:'lockoutDurationType']
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.has_key?(:'lockoutDurationTypeMetadata')
|
156
|
+
self.lockout_duration_type_metadata = attributes[:'lockoutDurationTypeMetadata']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.has_key?(:'minimumPasswordAgeDays')
|
160
|
+
self.minimum_password_age_days = attributes[:'minimumPasswordAgeDays']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.has_key?(:'minimumPasswordAgeDaysMetadata')
|
164
|
+
self.minimum_password_age_days_metadata = attributes[:'minimumPasswordAgeDaysMetadata']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.has_key?(:'minimumPasswordLength')
|
168
|
+
self.minimum_password_length = attributes[:'minimumPasswordLength']
|
169
|
+
end
|
170
|
+
|
171
|
+
if attributes.has_key?(:'minimumPasswordLengthMetadata')
|
172
|
+
self.minimum_password_length_metadata = attributes[:'minimumPasswordLengthMetadata']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.has_key?(:'passwordIncludeDigit')
|
176
|
+
self.password_include_digit = attributes[:'passwordIncludeDigit']
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes.has_key?(:'passwordIncludeDigitOrSpecialCharacter')
|
180
|
+
self.password_include_digit_or_special_character = attributes[:'passwordIncludeDigitOrSpecialCharacter']
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes.has_key?(:'passwordIncludeLowerCase')
|
184
|
+
self.password_include_lower_case = attributes[:'passwordIncludeLowerCase']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.has_key?(:'passwordIncludeSpecialCharacter')
|
188
|
+
self.password_include_special_character = attributes[:'passwordIncludeSpecialCharacter']
|
189
|
+
end
|
190
|
+
|
191
|
+
if attributes.has_key?(:'passwordIncludeUpperCase')
|
192
|
+
self.password_include_upper_case = attributes[:'passwordIncludeUpperCase']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.has_key?(:'passwordStrengthType')
|
196
|
+
self.password_strength_type = attributes[:'passwordStrengthType']
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.has_key?(:'passwordStrengthTypeMetadata')
|
200
|
+
self.password_strength_type_metadata = attributes[:'passwordStrengthTypeMetadata']
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.has_key?(:'questionsRequired')
|
204
|
+
self.questions_required = attributes[:'questionsRequired']
|
205
|
+
end
|
206
|
+
|
207
|
+
if attributes.has_key?(:'questionsRequiredMetadata')
|
208
|
+
self.questions_required_metadata = attributes[:'questionsRequiredMetadata']
|
209
|
+
end
|
210
|
+
|
211
|
+
end
|
212
|
+
|
213
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
214
|
+
# @return Array for valid properies with the reasons
|
215
|
+
def list_invalid_properties
|
216
|
+
invalid_properties = Array.new
|
217
|
+
return invalid_properties
|
218
|
+
end
|
219
|
+
|
220
|
+
# Check to see if the all the properties in the model are valid
|
221
|
+
# @return true if the model is valid
|
222
|
+
def valid?
|
223
|
+
return true
|
224
|
+
end
|
225
|
+
|
226
|
+
# Checks equality by comparing each attribute.
|
227
|
+
# @param [Object] Object to be compared
|
228
|
+
def ==(o)
|
229
|
+
return true if self.equal?(o)
|
230
|
+
self.class == o.class &&
|
231
|
+
expire_password == o.expire_password &&
|
232
|
+
expire_password_days == o.expire_password_days &&
|
233
|
+
expire_password_days_metadata == o.expire_password_days_metadata &&
|
234
|
+
lockout_duration_minutes == o.lockout_duration_minutes &&
|
235
|
+
lockout_duration_minutes_metadata == o.lockout_duration_minutes_metadata &&
|
236
|
+
lockout_duration_type == o.lockout_duration_type &&
|
237
|
+
lockout_duration_type_metadata == o.lockout_duration_type_metadata &&
|
238
|
+
minimum_password_age_days == o.minimum_password_age_days &&
|
239
|
+
minimum_password_age_days_metadata == o.minimum_password_age_days_metadata &&
|
240
|
+
minimum_password_length == o.minimum_password_length &&
|
241
|
+
minimum_password_length_metadata == o.minimum_password_length_metadata &&
|
242
|
+
password_include_digit == o.password_include_digit &&
|
243
|
+
password_include_digit_or_special_character == o.password_include_digit_or_special_character &&
|
244
|
+
password_include_lower_case == o.password_include_lower_case &&
|
245
|
+
password_include_special_character == o.password_include_special_character &&
|
246
|
+
password_include_upper_case == o.password_include_upper_case &&
|
247
|
+
password_strength_type == o.password_strength_type &&
|
248
|
+
password_strength_type_metadata == o.password_strength_type_metadata &&
|
249
|
+
questions_required == o.questions_required &&
|
250
|
+
questions_required_metadata == o.questions_required_metadata
|
251
|
+
end
|
252
|
+
|
253
|
+
# @see the `==` method
|
254
|
+
# @param [Object] Object to be compared
|
255
|
+
def eql?(o)
|
256
|
+
self == o
|
257
|
+
end
|
258
|
+
|
259
|
+
# Calculates hash code according to all attributes.
|
260
|
+
# @return [Fixnum] Hash code
|
261
|
+
def hash
|
262
|
+
[expire_password, expire_password_days, expire_password_days_metadata, lockout_duration_minutes, lockout_duration_minutes_metadata, lockout_duration_type, lockout_duration_type_metadata, minimum_password_age_days, minimum_password_age_days_metadata, minimum_password_length, minimum_password_length_metadata, password_include_digit, password_include_digit_or_special_character, password_include_lower_case, password_include_special_character, password_include_upper_case, password_strength_type, password_strength_type_metadata, questions_required, questions_required_metadata].hash
|
263
|
+
end
|
264
|
+
|
265
|
+
# Builds the object from hash
|
266
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
267
|
+
# @return [Object] Returns the model itself
|
268
|
+
def build_from_hash(attributes)
|
269
|
+
return nil unless attributes.is_a?(Hash)
|
270
|
+
self.class.swagger_types.each_pair do |key, type|
|
271
|
+
if type =~ /\AArray<(.*)>/i
|
272
|
+
# check to ensure the input is an array given that the the attribute
|
273
|
+
# is documented as an array but the input is not
|
274
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
275
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
276
|
+
end
|
277
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
278
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
279
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
280
|
+
end
|
281
|
+
|
282
|
+
self
|
283
|
+
end
|
284
|
+
|
285
|
+
# Deserializes the data based on type
|
286
|
+
# @param string type Data type
|
287
|
+
# @param string value Value to be deserialized
|
288
|
+
# @return [Object] Deserialized data
|
289
|
+
def _deserialize(type, value)
|
290
|
+
case type.to_sym
|
291
|
+
when :DateTime
|
292
|
+
DateTime.parse(value)
|
293
|
+
when :Date
|
294
|
+
Date.parse(value)
|
295
|
+
when :String
|
296
|
+
value.to_s
|
297
|
+
when :Integer
|
298
|
+
value.to_i
|
299
|
+
when :Float
|
300
|
+
value.to_f
|
301
|
+
when :BOOLEAN
|
302
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
303
|
+
true
|
304
|
+
else
|
305
|
+
false
|
306
|
+
end
|
307
|
+
when :Object
|
308
|
+
# generic object (usually a Hash), return directly
|
309
|
+
value
|
310
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
311
|
+
inner_type = Regexp.last_match[:inner_type]
|
312
|
+
value.map { |v| _deserialize(inner_type, v) }
|
313
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
314
|
+
k_type = Regexp.last_match[:k_type]
|
315
|
+
v_type = Regexp.last_match[:v_type]
|
316
|
+
{}.tap do |hash|
|
317
|
+
value.each do |k, v|
|
318
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
319
|
+
end
|
320
|
+
end
|
321
|
+
else # model
|
322
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
323
|
+
temp_model.build_from_hash(value)
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
# Returns the string representation of the object
|
328
|
+
# @return [String] String presentation of the object
|
329
|
+
def to_s
|
330
|
+
to_hash.to_s
|
331
|
+
end
|
332
|
+
|
333
|
+
# to_body is an alias to to_hash (backward compatibility)
|
334
|
+
# @return [Hash] Returns the object in the form of hash
|
335
|
+
def to_body
|
336
|
+
to_hash
|
337
|
+
end
|
338
|
+
|
339
|
+
# Returns the object in the form of hash
|
340
|
+
# @return [Hash] Returns the object in the form of hash
|
341
|
+
def to_hash
|
342
|
+
hash = {}
|
343
|
+
self.class.attribute_map.each_pair do |attr, param|
|
344
|
+
value = self.send(attr)
|
345
|
+
next if value.nil?
|
346
|
+
hash[param] = _to_hash(value)
|
347
|
+
end
|
348
|
+
hash
|
349
|
+
end
|
350
|
+
|
351
|
+
# Outputs non-array value in the form of hash
|
352
|
+
# For object, use to_hash. Otherwise, just return the value
|
353
|
+
# @param [Object] value Any valid value
|
354
|
+
# @return [Hash] Returns the value in the form of hash
|
355
|
+
def _to_hash(value)
|
356
|
+
if value.is_a?(Array)
|
357
|
+
value.compact.map{ |v| _to_hash(v) }
|
358
|
+
elsif value.is_a?(Hash)
|
359
|
+
{}.tap do |hash|
|
360
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
361
|
+
end
|
362
|
+
elsif value.respond_to? :to_hash
|
363
|
+
value.to_hash
|
364
|
+
else
|
365
|
+
value
|
366
|
+
end
|
367
|
+
end
|
368
|
+
|
369
|
+
end
|
370
|
+
|
371
|
+
end
|
@@ -0,0 +1,190 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign REST API
|
3
|
+
|
4
|
+
#The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: devcenter@docusign.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module DocuSign_eSign
|
15
|
+
|
16
|
+
class AccountPasswordStrengthType
|
17
|
+
#
|
18
|
+
attr_accessor :options
|
19
|
+
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'options' => :'options'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Attribute type mapping.
|
29
|
+
def self.swagger_types
|
30
|
+
{
|
31
|
+
:'options' => :'Array<AccountPasswordStrengthTypeOption>'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Initializes the object
|
36
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
37
|
+
def initialize(attributes = {})
|
38
|
+
return unless attributes.is_a?(Hash)
|
39
|
+
|
40
|
+
# convert string to symbol for hash key
|
41
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
42
|
+
|
43
|
+
if attributes.has_key?(:'options')
|
44
|
+
if (value = attributes[:'options']).is_a?(Array)
|
45
|
+
self.options = value
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
50
|
+
|
51
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
52
|
+
# @return Array for valid properies with the reasons
|
53
|
+
def list_invalid_properties
|
54
|
+
invalid_properties = Array.new
|
55
|
+
return invalid_properties
|
56
|
+
end
|
57
|
+
|
58
|
+
# Check to see if the all the properties in the model are valid
|
59
|
+
# @return true if the model is valid
|
60
|
+
def valid?
|
61
|
+
return true
|
62
|
+
end
|
63
|
+
|
64
|
+
# Checks equality by comparing each attribute.
|
65
|
+
# @param [Object] Object to be compared
|
66
|
+
def ==(o)
|
67
|
+
return true if self.equal?(o)
|
68
|
+
self.class == o.class &&
|
69
|
+
options == o.options
|
70
|
+
end
|
71
|
+
|
72
|
+
# @see the `==` method
|
73
|
+
# @param [Object] Object to be compared
|
74
|
+
def eql?(o)
|
75
|
+
self == o
|
76
|
+
end
|
77
|
+
|
78
|
+
# Calculates hash code according to all attributes.
|
79
|
+
# @return [Fixnum] Hash code
|
80
|
+
def hash
|
81
|
+
[options].hash
|
82
|
+
end
|
83
|
+
|
84
|
+
# Builds the object from hash
|
85
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
86
|
+
# @return [Object] Returns the model itself
|
87
|
+
def build_from_hash(attributes)
|
88
|
+
return nil unless attributes.is_a?(Hash)
|
89
|
+
self.class.swagger_types.each_pair do |key, type|
|
90
|
+
if type =~ /\AArray<(.*)>/i
|
91
|
+
# check to ensure the input is an array given that the the attribute
|
92
|
+
# is documented as an array but the input is not
|
93
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
95
|
+
end
|
96
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
97
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
98
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
99
|
+
end
|
100
|
+
|
101
|
+
self
|
102
|
+
end
|
103
|
+
|
104
|
+
# Deserializes the data based on type
|
105
|
+
# @param string type Data type
|
106
|
+
# @param string value Value to be deserialized
|
107
|
+
# @return [Object] Deserialized data
|
108
|
+
def _deserialize(type, value)
|
109
|
+
case type.to_sym
|
110
|
+
when :DateTime
|
111
|
+
DateTime.parse(value)
|
112
|
+
when :Date
|
113
|
+
Date.parse(value)
|
114
|
+
when :String
|
115
|
+
value.to_s
|
116
|
+
when :Integer
|
117
|
+
value.to_i
|
118
|
+
when :Float
|
119
|
+
value.to_f
|
120
|
+
when :BOOLEAN
|
121
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
122
|
+
true
|
123
|
+
else
|
124
|
+
false
|
125
|
+
end
|
126
|
+
when :Object
|
127
|
+
# generic object (usually a Hash), return directly
|
128
|
+
value
|
129
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
130
|
+
inner_type = Regexp.last_match[:inner_type]
|
131
|
+
value.map { |v| _deserialize(inner_type, v) }
|
132
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
133
|
+
k_type = Regexp.last_match[:k_type]
|
134
|
+
v_type = Regexp.last_match[:v_type]
|
135
|
+
{}.tap do |hash|
|
136
|
+
value.each do |k, v|
|
137
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
else # model
|
141
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
142
|
+
temp_model.build_from_hash(value)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
# Returns the string representation of the object
|
147
|
+
# @return [String] String presentation of the object
|
148
|
+
def to_s
|
149
|
+
to_hash.to_s
|
150
|
+
end
|
151
|
+
|
152
|
+
# to_body is an alias to to_hash (backward compatibility)
|
153
|
+
# @return [Hash] Returns the object in the form of hash
|
154
|
+
def to_body
|
155
|
+
to_hash
|
156
|
+
end
|
157
|
+
|
158
|
+
# Returns the object in the form of hash
|
159
|
+
# @return [Hash] Returns the object in the form of hash
|
160
|
+
def to_hash
|
161
|
+
hash = {}
|
162
|
+
self.class.attribute_map.each_pair do |attr, param|
|
163
|
+
value = self.send(attr)
|
164
|
+
next if value.nil?
|
165
|
+
hash[param] = _to_hash(value)
|
166
|
+
end
|
167
|
+
hash
|
168
|
+
end
|
169
|
+
|
170
|
+
# Outputs non-array value in the form of hash
|
171
|
+
# For object, use to_hash. Otherwise, just return the value
|
172
|
+
# @param [Object] value Any valid value
|
173
|
+
# @return [Hash] Returns the value in the form of hash
|
174
|
+
def _to_hash(value)
|
175
|
+
if value.is_a?(Array)
|
176
|
+
value.compact.map{ |v| _to_hash(v) }
|
177
|
+
elsif value.is_a?(Hash)
|
178
|
+
{}.tap do |hash|
|
179
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
180
|
+
end
|
181
|
+
elsif value.respond_to? :to_hash
|
182
|
+
value.to_hash
|
183
|
+
else
|
184
|
+
value
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
end
|
189
|
+
|
190
|
+
end
|