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
@@ -32,10 +32,10 @@ module DocuSign_eSign
|
|
32
32
|
# Specifies units of the X and Y offset. Units could be pixels, millimeters, centimeters, or inches.
|
33
33
|
attr_accessor :anchor_units
|
34
34
|
|
35
|
-
# Specifies the X axis location of the tab, in
|
35
|
+
# Specifies the X axis location of the tab, in anchorUnits, relative to the anchorString.
|
36
36
|
attr_accessor :anchor_x_offset
|
37
37
|
|
38
|
-
# Specifies the Y axis location of the tab, in
|
38
|
+
# Specifies the Y axis location of the tab, in anchorUnits, relative to the anchorString.
|
39
39
|
attr_accessor :anchor_y_offset
|
40
40
|
|
41
41
|
# When set to **true**, the information in the tab is bold.
|
@@ -87,6 +87,9 @@ module DocuSign_eSign
|
|
87
87
|
# Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later.
|
88
88
|
attr_accessor :status
|
89
89
|
|
90
|
+
#
|
91
|
+
attr_accessor :tab_group_labels
|
92
|
+
|
90
93
|
# The unique identifier for the tab. The tabid can be retrieved with the [ML:GET call].
|
91
94
|
attr_accessor :tab_id
|
92
95
|
|
@@ -102,6 +105,9 @@ module DocuSign_eSign
|
|
102
105
|
# When set to **true**, the sender may not remove the recipient. Used only when working with template recipients.
|
103
106
|
attr_accessor :template_required
|
104
107
|
|
108
|
+
#
|
109
|
+
attr_accessor :tooltip
|
110
|
+
|
105
111
|
# When set to **true**, the information in the tab is underlined.
|
106
112
|
attr_accessor :underline
|
107
113
|
|
@@ -146,11 +152,13 @@ module DocuSign_eSign
|
|
146
152
|
:'recipient_id' => :'recipientId',
|
147
153
|
:'shared' => :'shared',
|
148
154
|
:'status' => :'status',
|
155
|
+
:'tab_group_labels' => :'tabGroupLabels',
|
149
156
|
:'tab_id' => :'tabId',
|
150
157
|
:'tab_label' => :'tabLabel',
|
151
158
|
:'tab_order' => :'tabOrder',
|
152
159
|
:'template_locked' => :'templateLocked',
|
153
160
|
:'template_required' => :'templateRequired',
|
161
|
+
:'tooltip' => :'tooltip',
|
154
162
|
:'underline' => :'underline',
|
155
163
|
:'value' => :'value',
|
156
164
|
:'width' => :'width',
|
@@ -187,11 +195,13 @@ module DocuSign_eSign
|
|
187
195
|
:'recipient_id' => :'String',
|
188
196
|
:'shared' => :'String',
|
189
197
|
:'status' => :'String',
|
198
|
+
:'tab_group_labels' => :'Array<String>',
|
190
199
|
:'tab_id' => :'String',
|
191
200
|
:'tab_label' => :'String',
|
192
201
|
:'tab_order' => :'String',
|
193
202
|
:'template_locked' => :'String',
|
194
203
|
:'template_required' => :'String',
|
204
|
+
:'tooltip' => :'String',
|
195
205
|
:'underline' => :'String',
|
196
206
|
:'value' => :'String',
|
197
207
|
:'width' => :'Integer',
|
@@ -308,6 +318,12 @@ module DocuSign_eSign
|
|
308
318
|
self.status = attributes[:'status']
|
309
319
|
end
|
310
320
|
|
321
|
+
if attributes.has_key?(:'tabGroupLabels')
|
322
|
+
if (value = attributes[:'tabGroupLabels']).is_a?(Array)
|
323
|
+
self.tab_group_labels = value
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
311
327
|
if attributes.has_key?(:'tabId')
|
312
328
|
self.tab_id = attributes[:'tabId']
|
313
329
|
end
|
@@ -328,6 +344,10 @@ module DocuSign_eSign
|
|
328
344
|
self.template_required = attributes[:'templateRequired']
|
329
345
|
end
|
330
346
|
|
347
|
+
if attributes.has_key?(:'tooltip')
|
348
|
+
self.tooltip = attributes[:'tooltip']
|
349
|
+
end
|
350
|
+
|
331
351
|
if attributes.has_key?(:'underline')
|
332
352
|
self.underline = attributes[:'underline']
|
333
353
|
end
|
@@ -393,11 +413,13 @@ module DocuSign_eSign
|
|
393
413
|
recipient_id == o.recipient_id &&
|
394
414
|
shared == o.shared &&
|
395
415
|
status == o.status &&
|
416
|
+
tab_group_labels == o.tab_group_labels &&
|
396
417
|
tab_id == o.tab_id &&
|
397
418
|
tab_label == o.tab_label &&
|
398
419
|
tab_order == o.tab_order &&
|
399
420
|
template_locked == o.template_locked &&
|
400
421
|
template_required == o.template_required &&
|
422
|
+
tooltip == o.tooltip &&
|
401
423
|
underline == o.underline &&
|
402
424
|
value == o.value &&
|
403
425
|
width == o.width &&
|
@@ -414,7 +436,7 @@ module DocuSign_eSign
|
|
414
436
|
# Calculates hash code according to all attributes.
|
415
437
|
# @return [Fixnum] Hash code
|
416
438
|
def hash
|
417
|
-
[anchor_case_sensitive, anchor_horizontal_alignment, anchor_ignore_if_not_present, anchor_match_whole_word, anchor_string, anchor_units, anchor_x_offset, anchor_y_offset, bold, conditional_parent_label, conditional_parent_value, custom_tab_id, document_id, error_details, font, font_color, font_size, height, italic, merge_field, name, page_number, recipient_id, shared, status, tab_id, tab_label, tab_order, template_locked, template_required, underline, value, width, x_position, y_position].hash
|
439
|
+
[anchor_case_sensitive, anchor_horizontal_alignment, anchor_ignore_if_not_present, anchor_match_whole_word, anchor_string, anchor_units, anchor_x_offset, anchor_y_offset, bold, conditional_parent_label, conditional_parent_value, custom_tab_id, document_id, error_details, font, font_color, font_size, height, italic, merge_field, name, page_number, recipient_id, shared, status, tab_group_labels, tab_id, tab_label, tab_order, template_locked, template_required, tooltip, underline, value, width, x_position, y_position].hash
|
418
440
|
end
|
419
441
|
|
420
442
|
# Builds the object from hash
|
@@ -32,10 +32,10 @@ module DocuSign_eSign
|
|
32
32
|
# Specifies units of the X and Y offset. Units could be pixels, millimeters, centimeters, or inches.
|
33
33
|
attr_accessor :anchor_units
|
34
34
|
|
35
|
-
# Specifies the X axis location of the tab, in
|
35
|
+
# Specifies the X axis location of the tab, in anchorUnits, relative to the anchorString.
|
36
36
|
attr_accessor :anchor_x_offset
|
37
37
|
|
38
|
-
# Specifies the Y axis location of the tab, in
|
38
|
+
# Specifies the Y axis location of the tab, in anchorUnits, relative to the anchorString.
|
39
39
|
attr_accessor :anchor_y_offset
|
40
40
|
|
41
41
|
# When set to **true**, the information in the tab is bold.
|
@@ -117,6 +117,9 @@ module DocuSign_eSign
|
|
117
117
|
# Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later.
|
118
118
|
attr_accessor :status
|
119
119
|
|
120
|
+
#
|
121
|
+
attr_accessor :tab_group_labels
|
122
|
+
|
120
123
|
# The unique identifier for the tab. The tabid can be retrieved with the [ML:GET call].
|
121
124
|
attr_accessor :tab_id
|
122
125
|
|
@@ -132,13 +135,16 @@ module DocuSign_eSign
|
|
132
135
|
# When set to **true**, the sender may not remove the recipient. Used only when working with template recipients.
|
133
136
|
attr_accessor :template_required
|
134
137
|
|
138
|
+
#
|
139
|
+
attr_accessor :tooltip
|
140
|
+
|
135
141
|
# When set to **true**, the information in the tab is underlined.
|
136
142
|
attr_accessor :underline
|
137
143
|
|
138
144
|
# The message displayed if the custom tab fails input validation (either custom of embedded).
|
139
145
|
attr_accessor :validation_message
|
140
146
|
|
141
|
-
# A regular
|
147
|
+
# A regular expression used to validate input for the tab.
|
142
148
|
attr_accessor :validation_pattern
|
143
149
|
|
144
150
|
# Specifies the value of the tab.
|
@@ -192,11 +198,13 @@ module DocuSign_eSign
|
|
192
198
|
:'sender_required' => :'senderRequired',
|
193
199
|
:'shared' => :'shared',
|
194
200
|
:'status' => :'status',
|
201
|
+
:'tab_group_labels' => :'tabGroupLabels',
|
195
202
|
:'tab_id' => :'tabId',
|
196
203
|
:'tab_label' => :'tabLabel',
|
197
204
|
:'tab_order' => :'tabOrder',
|
198
205
|
:'template_locked' => :'templateLocked',
|
199
206
|
:'template_required' => :'templateRequired',
|
207
|
+
:'tooltip' => :'tooltip',
|
200
208
|
:'underline' => :'underline',
|
201
209
|
:'validation_message' => :'validationMessage',
|
202
210
|
:'validation_pattern' => :'validationPattern',
|
@@ -245,11 +253,13 @@ module DocuSign_eSign
|
|
245
253
|
:'sender_required' => :'String',
|
246
254
|
:'shared' => :'String',
|
247
255
|
:'status' => :'String',
|
256
|
+
:'tab_group_labels' => :'Array<String>',
|
248
257
|
:'tab_id' => :'String',
|
249
258
|
:'tab_label' => :'String',
|
250
259
|
:'tab_order' => :'String',
|
251
260
|
:'template_locked' => :'String',
|
252
261
|
:'template_required' => :'String',
|
262
|
+
:'tooltip' => :'String',
|
253
263
|
:'underline' => :'String',
|
254
264
|
:'validation_message' => :'String',
|
255
265
|
:'validation_pattern' => :'String',
|
@@ -408,6 +418,12 @@ module DocuSign_eSign
|
|
408
418
|
self.status = attributes[:'status']
|
409
419
|
end
|
410
420
|
|
421
|
+
if attributes.has_key?(:'tabGroupLabels')
|
422
|
+
if (value = attributes[:'tabGroupLabels']).is_a?(Array)
|
423
|
+
self.tab_group_labels = value
|
424
|
+
end
|
425
|
+
end
|
426
|
+
|
411
427
|
if attributes.has_key?(:'tabId')
|
412
428
|
self.tab_id = attributes[:'tabId']
|
413
429
|
end
|
@@ -428,6 +444,10 @@ module DocuSign_eSign
|
|
428
444
|
self.template_required = attributes[:'templateRequired']
|
429
445
|
end
|
430
446
|
|
447
|
+
if attributes.has_key?(:'tooltip')
|
448
|
+
self.tooltip = attributes[:'tooltip']
|
449
|
+
end
|
450
|
+
|
431
451
|
if attributes.has_key?(:'underline')
|
432
452
|
self.underline = attributes[:'underline']
|
433
453
|
end
|
@@ -511,11 +531,13 @@ module DocuSign_eSign
|
|
511
531
|
sender_required == o.sender_required &&
|
512
532
|
shared == o.shared &&
|
513
533
|
status == o.status &&
|
534
|
+
tab_group_labels == o.tab_group_labels &&
|
514
535
|
tab_id == o.tab_id &&
|
515
536
|
tab_label == o.tab_label &&
|
516
537
|
tab_order == o.tab_order &&
|
517
538
|
template_locked == o.template_locked &&
|
518
539
|
template_required == o.template_required &&
|
540
|
+
tooltip == o.tooltip &&
|
519
541
|
underline == o.underline &&
|
520
542
|
validation_message == o.validation_message &&
|
521
543
|
validation_pattern == o.validation_pattern &&
|
@@ -534,7 +556,7 @@ module DocuSign_eSign
|
|
534
556
|
# Calculates hash code according to all attributes.
|
535
557
|
# @return [Fixnum] Hash code
|
536
558
|
def hash
|
537
|
-
[anchor_case_sensitive, anchor_horizontal_alignment, anchor_ignore_if_not_present, anchor_match_whole_word, anchor_string, anchor_units, anchor_x_offset, anchor_y_offset, bold, conceal_value_on_document, conditional_parent_label, conditional_parent_value, custom_tab_id, disable_auto_size, document_id, error_details, font, font_color, font_size, formula, is_payment_amount, italic, locked, max_length, merge_field, name, original_value, page_number, recipient_id, require_all, required, require_initial_on_shared_change, sender_required, shared, status, tab_id, tab_label, tab_order, template_locked, template_required, underline, validation_message, validation_pattern, value, width, x_position, y_position].hash
|
559
|
+
[anchor_case_sensitive, anchor_horizontal_alignment, anchor_ignore_if_not_present, anchor_match_whole_word, anchor_string, anchor_units, anchor_x_offset, anchor_y_offset, bold, conceal_value_on_document, conditional_parent_label, conditional_parent_value, custom_tab_id, disable_auto_size, document_id, error_details, font, font_color, font_size, formula, is_payment_amount, italic, locked, max_length, merge_field, name, original_value, page_number, recipient_id, require_all, required, require_initial_on_shared_change, sender_required, shared, status, tab_group_labels, tab_id, tab_label, tab_order, template_locked, template_required, tooltip, underline, validation_message, validation_pattern, value, width, x_position, y_position].hash
|
538
560
|
end
|
539
561
|
|
540
562
|
# Builds the object from hash
|
@@ -14,15 +14,30 @@ require 'date'
|
|
14
14
|
module DocuSign_eSign
|
15
15
|
|
16
16
|
class PaymentDetails
|
17
|
+
#
|
18
|
+
attr_accessor :allowed_payment_methods
|
19
|
+
|
20
|
+
#
|
21
|
+
attr_accessor :charge_id
|
22
|
+
|
17
23
|
#
|
18
24
|
attr_accessor :currency_code
|
19
25
|
|
20
26
|
#
|
21
27
|
attr_accessor :gateway_account_id
|
22
28
|
|
29
|
+
#
|
30
|
+
attr_accessor :gateway_display_name
|
31
|
+
|
32
|
+
#
|
33
|
+
attr_accessor :gateway_name
|
34
|
+
|
23
35
|
#
|
24
36
|
attr_accessor :line_items
|
25
37
|
|
38
|
+
#
|
39
|
+
attr_accessor :payment_option
|
40
|
+
|
26
41
|
# Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later.
|
27
42
|
attr_accessor :status
|
28
43
|
|
@@ -32,9 +47,14 @@ module DocuSign_eSign
|
|
32
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
48
|
def self.attribute_map
|
34
49
|
{
|
50
|
+
:'allowed_payment_methods' => :'allowedPaymentMethods',
|
51
|
+
:'charge_id' => :'chargeId',
|
35
52
|
:'currency_code' => :'currencyCode',
|
36
53
|
:'gateway_account_id' => :'gatewayAccountId',
|
54
|
+
:'gateway_display_name' => :'gatewayDisplayName',
|
55
|
+
:'gateway_name' => :'gatewayName',
|
37
56
|
:'line_items' => :'lineItems',
|
57
|
+
:'payment_option' => :'paymentOption',
|
38
58
|
:'status' => :'status',
|
39
59
|
:'total' => :'total'
|
40
60
|
}
|
@@ -43,9 +63,14 @@ module DocuSign_eSign
|
|
43
63
|
# Attribute type mapping.
|
44
64
|
def self.swagger_types
|
45
65
|
{
|
66
|
+
:'allowed_payment_methods' => :'Array<String>',
|
67
|
+
:'charge_id' => :'String',
|
46
68
|
:'currency_code' => :'String',
|
47
69
|
:'gateway_account_id' => :'String',
|
70
|
+
:'gateway_display_name' => :'String',
|
71
|
+
:'gateway_name' => :'String',
|
48
72
|
:'line_items' => :'Array<PaymentLineItem>',
|
73
|
+
:'payment_option' => :'String',
|
49
74
|
:'status' => :'String',
|
50
75
|
:'total' => :'Money'
|
51
76
|
}
|
@@ -59,6 +84,16 @@ module DocuSign_eSign
|
|
59
84
|
# convert string to symbol for hash key
|
60
85
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
61
86
|
|
87
|
+
if attributes.has_key?(:'allowedPaymentMethods')
|
88
|
+
if (value = attributes[:'allowedPaymentMethods']).is_a?(Array)
|
89
|
+
self.allowed_payment_methods = value
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.has_key?(:'chargeId')
|
94
|
+
self.charge_id = attributes[:'chargeId']
|
95
|
+
end
|
96
|
+
|
62
97
|
if attributes.has_key?(:'currencyCode')
|
63
98
|
self.currency_code = attributes[:'currencyCode']
|
64
99
|
end
|
@@ -67,12 +102,24 @@ module DocuSign_eSign
|
|
67
102
|
self.gateway_account_id = attributes[:'gatewayAccountId']
|
68
103
|
end
|
69
104
|
|
105
|
+
if attributes.has_key?(:'gatewayDisplayName')
|
106
|
+
self.gateway_display_name = attributes[:'gatewayDisplayName']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.has_key?(:'gatewayName')
|
110
|
+
self.gateway_name = attributes[:'gatewayName']
|
111
|
+
end
|
112
|
+
|
70
113
|
if attributes.has_key?(:'lineItems')
|
71
114
|
if (value = attributes[:'lineItems']).is_a?(Array)
|
72
115
|
self.line_items = value
|
73
116
|
end
|
74
117
|
end
|
75
118
|
|
119
|
+
if attributes.has_key?(:'paymentOption')
|
120
|
+
self.payment_option = attributes[:'paymentOption']
|
121
|
+
end
|
122
|
+
|
76
123
|
if attributes.has_key?(:'status')
|
77
124
|
self.status = attributes[:'status']
|
78
125
|
end
|
@@ -101,9 +148,14 @@ module DocuSign_eSign
|
|
101
148
|
def ==(o)
|
102
149
|
return true if self.equal?(o)
|
103
150
|
self.class == o.class &&
|
151
|
+
allowed_payment_methods == o.allowed_payment_methods &&
|
152
|
+
charge_id == o.charge_id &&
|
104
153
|
currency_code == o.currency_code &&
|
105
154
|
gateway_account_id == o.gateway_account_id &&
|
155
|
+
gateway_display_name == o.gateway_display_name &&
|
156
|
+
gateway_name == o.gateway_name &&
|
106
157
|
line_items == o.line_items &&
|
158
|
+
payment_option == o.payment_option &&
|
107
159
|
status == o.status &&
|
108
160
|
total == o.total
|
109
161
|
end
|
@@ -117,7 +169,7 @@ module DocuSign_eSign
|
|
117
169
|
# Calculates hash code according to all attributes.
|
118
170
|
# @return [Fixnum] Hash code
|
119
171
|
def hash
|
120
|
-
[currency_code, gateway_account_id, line_items, status, total].hash
|
172
|
+
[allowed_payment_methods, charge_id, currency_code, gateway_account_id, gateway_display_name, gateway_name, line_items, payment_option, status, total].hash
|
121
173
|
end
|
122
174
|
|
123
175
|
# Builds the object from hash
|
@@ -0,0 +1,218 @@
|
|
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 PaymentGatewayAccount
|
17
|
+
#
|
18
|
+
attr_accessor :display_name
|
19
|
+
|
20
|
+
#
|
21
|
+
attr_accessor :payment_gateway
|
22
|
+
|
23
|
+
#
|
24
|
+
attr_accessor :payment_gateway_account_id
|
25
|
+
|
26
|
+
#
|
27
|
+
attr_accessor :payment_gateway_display_name
|
28
|
+
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'display_name' => :'displayName',
|
34
|
+
:'payment_gateway' => :'paymentGateway',
|
35
|
+
:'payment_gateway_account_id' => :'paymentGatewayAccountId',
|
36
|
+
:'payment_gateway_display_name' => :'paymentGatewayDisplayName'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Attribute type mapping.
|
41
|
+
def self.swagger_types
|
42
|
+
{
|
43
|
+
:'display_name' => :'String',
|
44
|
+
:'payment_gateway' => :'String',
|
45
|
+
:'payment_gateway_account_id' => :'String',
|
46
|
+
:'payment_gateway_display_name' => :'String'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
return unless attributes.is_a?(Hash)
|
54
|
+
|
55
|
+
# convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
57
|
+
|
58
|
+
if attributes.has_key?(:'displayName')
|
59
|
+
self.display_name = attributes[:'displayName']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'paymentGateway')
|
63
|
+
self.payment_gateway = attributes[:'paymentGateway']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'paymentGatewayAccountId')
|
67
|
+
self.payment_gateway_account_id = attributes[:'paymentGatewayAccountId']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.has_key?(:'paymentGatewayDisplayName')
|
71
|
+
self.payment_gateway_display_name = attributes[:'paymentGatewayDisplayName']
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
75
|
+
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
77
|
+
# @return Array for valid properies with the reasons
|
78
|
+
def list_invalid_properties
|
79
|
+
invalid_properties = Array.new
|
80
|
+
return invalid_properties
|
81
|
+
end
|
82
|
+
|
83
|
+
# Check to see if the all the properties in the model are valid
|
84
|
+
# @return true if the model is valid
|
85
|
+
def valid?
|
86
|
+
return true
|
87
|
+
end
|
88
|
+
|
89
|
+
# Checks equality by comparing each attribute.
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def ==(o)
|
92
|
+
return true if self.equal?(o)
|
93
|
+
self.class == o.class &&
|
94
|
+
display_name == o.display_name &&
|
95
|
+
payment_gateway == o.payment_gateway &&
|
96
|
+
payment_gateway_account_id == o.payment_gateway_account_id &&
|
97
|
+
payment_gateway_display_name == o.payment_gateway_display_name
|
98
|
+
end
|
99
|
+
|
100
|
+
# @see the `==` method
|
101
|
+
# @param [Object] Object to be compared
|
102
|
+
def eql?(o)
|
103
|
+
self == o
|
104
|
+
end
|
105
|
+
|
106
|
+
# Calculates hash code according to all attributes.
|
107
|
+
# @return [Fixnum] Hash code
|
108
|
+
def hash
|
109
|
+
[display_name, payment_gateway, payment_gateway_account_id, payment_gateway_display_name].hash
|
110
|
+
end
|
111
|
+
|
112
|
+
# Builds the object from hash
|
113
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
114
|
+
# @return [Object] Returns the model itself
|
115
|
+
def build_from_hash(attributes)
|
116
|
+
return nil unless attributes.is_a?(Hash)
|
117
|
+
self.class.swagger_types.each_pair do |key, type|
|
118
|
+
if type =~ /\AArray<(.*)>/i
|
119
|
+
# check to ensure the input is an array given that the the attribute
|
120
|
+
# is documented as an array but the input is not
|
121
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
122
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
123
|
+
end
|
124
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
125
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
126
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
127
|
+
end
|
128
|
+
|
129
|
+
self
|
130
|
+
end
|
131
|
+
|
132
|
+
# Deserializes the data based on type
|
133
|
+
# @param string type Data type
|
134
|
+
# @param string value Value to be deserialized
|
135
|
+
# @return [Object] Deserialized data
|
136
|
+
def _deserialize(type, value)
|
137
|
+
case type.to_sym
|
138
|
+
when :DateTime
|
139
|
+
DateTime.parse(value)
|
140
|
+
when :Date
|
141
|
+
Date.parse(value)
|
142
|
+
when :String
|
143
|
+
value.to_s
|
144
|
+
when :Integer
|
145
|
+
value.to_i
|
146
|
+
when :Float
|
147
|
+
value.to_f
|
148
|
+
when :BOOLEAN
|
149
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
150
|
+
true
|
151
|
+
else
|
152
|
+
false
|
153
|
+
end
|
154
|
+
when :Object
|
155
|
+
# generic object (usually a Hash), return directly
|
156
|
+
value
|
157
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
158
|
+
inner_type = Regexp.last_match[:inner_type]
|
159
|
+
value.map { |v| _deserialize(inner_type, v) }
|
160
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
161
|
+
k_type = Regexp.last_match[:k_type]
|
162
|
+
v_type = Regexp.last_match[:v_type]
|
163
|
+
{}.tap do |hash|
|
164
|
+
value.each do |k, v|
|
165
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
else # model
|
169
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
170
|
+
temp_model.build_from_hash(value)
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
# Returns the string representation of the object
|
175
|
+
# @return [String] String presentation of the object
|
176
|
+
def to_s
|
177
|
+
to_hash.to_s
|
178
|
+
end
|
179
|
+
|
180
|
+
# to_body is an alias to to_hash (backward compatibility)
|
181
|
+
# @return [Hash] Returns the object in the form of hash
|
182
|
+
def to_body
|
183
|
+
to_hash
|
184
|
+
end
|
185
|
+
|
186
|
+
# Returns the object in the form of hash
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_hash
|
189
|
+
hash = {}
|
190
|
+
self.class.attribute_map.each_pair do |attr, param|
|
191
|
+
value = self.send(attr)
|
192
|
+
next if value.nil?
|
193
|
+
hash[param] = _to_hash(value)
|
194
|
+
end
|
195
|
+
hash
|
196
|
+
end
|
197
|
+
|
198
|
+
# Outputs non-array value in the form of hash
|
199
|
+
# For object, use to_hash. Otherwise, just return the value
|
200
|
+
# @param [Object] value Any valid value
|
201
|
+
# @return [Hash] Returns the value in the form of hash
|
202
|
+
def _to_hash(value)
|
203
|
+
if value.is_a?(Array)
|
204
|
+
value.compact.map{ |v| _to_hash(v) }
|
205
|
+
elsif value.is_a?(Hash)
|
206
|
+
{}.tap do |hash|
|
207
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
208
|
+
end
|
209
|
+
elsif value.respond_to? :to_hash
|
210
|
+
value.to_hash
|
211
|
+
else
|
212
|
+
value
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
end
|
217
|
+
|
218
|
+
end
|